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 05863708..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: v0.6.0-347-gfff9fda +- 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) @@ -51,19 +51,15 @@ 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.V1alpha1MigrationPolicy() # V1alpha1MigrationPolicy | try: - # Health endpoint - api_instance.check_health() + api_response = api_instance.create_migration_policy(body) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->check_health: %s\n" % e) + print("Exception when calling DefaultApi->create_migration_policy: %s\n" % e) ``` @@ -73,140 +69,588 @@ 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* | [**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/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. +*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 | +*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/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 | +*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/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 | +*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 | +*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/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 | +*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/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} | +*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} | +*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/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} | +*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/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* | [**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/ | +*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_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/ | +*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_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 | +*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}/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 | +*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/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 | +*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 | +*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 | +*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/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 | +*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} | +*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} | +*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/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} | +*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/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} | +*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} | +*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/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} | +*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/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} | +*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} | +*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/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} | +*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/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 | +*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}/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_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 | +*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}/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 | +*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}/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_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 | +*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}/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}/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} | +*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}/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} | +*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}/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 | +*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/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 | +*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 | +*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 | +*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/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 | +*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 - - [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) - - [V1APIResourceList](docs/V1APIResourceList.md) - - [V1Affinity](docs/V1Affinity.md) + - [K8sIoApiCoreV1Affinity](docs/K8sIoApiCoreV1Affinity.md) + - [K8sIoApiCoreV1DownwardAPIVolumeFile](docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md) + - [K8sIoApiCoreV1ExecAction](docs/K8sIoApiCoreV1ExecAction.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) + - [K8sIoApiCoreV1ObjectFieldSelector](docs/K8sIoApiCoreV1ObjectFieldSelector.md) + - [K8sIoApiCoreV1PersistentVolumeClaimSpec](docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.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) + - [K8sIoApiCoreV1PodResourceClaim](docs/K8sIoApiCoreV1PodResourceClaim.md) + - [K8sIoApiCoreV1PreferredSchedulingTerm](docs/K8sIoApiCoreV1PreferredSchedulingTerm.md) + - [K8sIoApiCoreV1ResourceFieldSelector](docs/K8sIoApiCoreV1ResourceFieldSelector.md) + - [K8sIoApiCoreV1TCPSocketAction](docs/K8sIoApiCoreV1TCPSocketAction.md) + - [K8sIoApiCoreV1Toleration](docs/K8sIoApiCoreV1Toleration.md) + - [K8sIoApiCoreV1TopologySpreadConstraint](docs/K8sIoApiCoreV1TopologySpreadConstraint.md) + - [K8sIoApiCoreV1TypedLocalObjectReference](docs/K8sIoApiCoreV1TypedLocalObjectReference.md) + - [K8sIoApiCoreV1TypedObjectReference](docs/K8sIoApiCoreV1TypedObjectReference.md) + - [K8sIoApiCoreV1VolumeResourceRequirements](docs/K8sIoApiCoreV1VolumeResourceRequirements.md) + - [K8sIoApiCoreV1WeightedPodAffinityTerm](docs/K8sIoApiCoreV1WeightedPodAffinityTerm.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) + - [V1ACPI](docs/V1ACPI.md) + - [V1AccessCredential](docs/V1AccessCredential.md) + - [V1AccessCredentialSecretSource](docs/V1AccessCredentialSecretSource.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) - [V1CDRomTarget](docs/V1CDRomTarget.md) - [V1CPU](docs/V1CPU.md) + - [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) + - [V1ClockOffset](docs/V1ClockOffset.md) - [V1ClockOffsetUTC](docs/V1ClockOffsetUTC.md) + - [V1CloudInitConfigDriveSource](docs/V1CloudInitConfigDriveSource.md) - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) - - [V1DeleteOptions](docs/V1DeleteOptions.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) + - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) + - [V1ContainerPathVolumeSource](docs/V1ContainerPathVolumeSource.md) + - [V1ControllerRevisionRef](docs/V1ControllerRevisionRef.md) + - [V1CustomBlockSize](docs/V1CustomBlockSize.md) + - [V1CustomProfile](docs/V1CustomProfile.md) + - [V1CustomizeComponents](docs/V1CustomizeComponents.md) + - [V1CustomizeComponentsPatch](docs/V1CustomizeComponentsPatch.md) + - [V1DHCPOptions](docs/V1DHCPOptions.md) + - [V1DHCPPrivateOptions](docs/V1DHCPPrivateOptions.md) + - [V1DataVolumeSource](docs/V1DataVolumeSource.md) + - [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) + - [V1Diag288Watchdog](docs/V1Diag288Watchdog.md) + - [V1DisableFreePageReporting](docs/V1DisableFreePageReporting.md) + - [V1DisableSerialConsoleLog](docs/V1DisableSerialConsoleLog.md) - [V1Disk](docs/V1Disk.md) + - [V1DiskIOThreads](docs/V1DiskIOThreads.md) - [V1DiskTarget](docs/V1DiskTarget.md) - - [V1DomainPresetSpec](docs/V1DomainPresetSpec.md) + - [V1DiskVerification](docs/V1DiskVerification.md) + - [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) - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) + - [V1EvacuateCancelOptions](docs/V1EvacuateCancelOptions.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) - [V1Features](docs/V1Features.md) + - [V1Filesystem](docs/V1Filesystem.md) + - [V1FilesystemVirtiofs](docs/V1FilesystemVirtiofs.md) - [V1Firmware](docs/V1Firmware.md) - - [V1FloppyTarget](docs/V1FloppyTarget.md) - - [V1GroupVersionForDiscovery](docs/V1GroupVersionForDiscovery.md) + - [V1Flags](docs/V1Flags.md) + - [V1FreezeUnfreezeTimeout](docs/V1FreezeUnfreezeTimeout.md) + - [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) + - [V1HotplugVolumeSource](docs/V1HotplugVolumeSource.md) + - [V1HotplugVolumeStatus](docs/V1HotplugVolumeStatus.md) - [V1Hugepages](docs/V1Hugepages.md) + - [V1HyperVPassthrough](docs/V1HyperVPassthrough.md) - [V1HypervTimer](docs/V1HypervTimer.md) + - [V1HypervisorConfiguration](docs/V1HypervisorConfiguration.md) - [V1I6300ESBWatchdog](docs/V1I6300ESBWatchdog.md) - - [V1Initializer](docs/V1Initializer.md) - - [V1Initializers](docs/V1Initializers.md) + - [V1InitrdInfo](docs/V1InitrdInfo.md) + - [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) + - [V1InterfaceBridge](docs/V1InterfaceBridge.md) + - [V1InterfaceMasquerade](docs/V1InterfaceMasquerade.md) + - [V1InterfacePasstBinding](docs/V1InterfacePasstBinding.md) + - [V1InterfaceSRIOV](docs/V1InterfaceSRIOV.md) + - [V1KSMConfiguration](docs/V1KSMConfiguration.md) - [V1KVMTimer](docs/V1KVMTimer.md) - - [V1LabelSelector](docs/V1LabelSelector.md) - - [V1LabelSelectorRequirement](docs/V1LabelSelectorRequirement.md) - - [V1ListMeta](docs/V1ListMeta.md) - - [V1LocalObjectReference](docs/V1LocalObjectReference.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) + - [V1KubeVirtConfiguration](docs/V1KubeVirtConfiguration.md) + - [V1KubeVirtList](docs/V1KubeVirtList.md) + - [V1KubeVirtSelfSignConfiguration](docs/V1KubeVirtSelfSignConfiguration.md) + - [V1KubeVirtSpec](docs/V1KubeVirtSpec.md) + - [V1KubeVirtStatus](docs/V1KubeVirtStatus.md) + - [V1KubeVirtWorkloadUpdateStrategy](docs/V1KubeVirtWorkloadUpdateStrategy.md) + - [V1LaunchSecurity](docs/V1LaunchSecurity.md) + - [V1LiveUpdateConfiguration](docs/V1LiveUpdateConfiguration.md) + - [V1LogVerbosity](docs/V1LogVerbosity.md) - [V1LunTarget](docs/V1LunTarget.md) - [V1Machine](docs/V1Machine.md) + - [V1MediatedDevicesConfiguration](docs/V1MediatedDevicesConfiguration.md) + - [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) + - [V1NUMA](docs/V1NUMA.md) + - [V1NUMAGuestMappingPassthrough](docs/V1NUMAGuestMappingPassthrough.md) - [V1Network](docs/V1Network.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) + - [V1NetworkConfiguration](docs/V1NetworkConfiguration.md) + - [V1NoCloudSSHPublicKeyAccessCredentialPropagation](docs/V1NoCloudSSHPublicKeyAccessCredentialPropagation.md) + - [V1NodeMediatedDeviceTypesConfig](docs/V1NodeMediatedDeviceTypesConfig.md) + - [V1NodePlacement](docs/V1NodePlacement.md) + - [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) + - [V1PersistentVolumeClaimInfo](docs/V1PersistentVolumeClaimInfo.md) - [V1PersistentVolumeClaimVolumeSource](docs/V1PersistentVolumeClaimVolumeSource.md) - - [V1PodAffinity](docs/V1PodAffinity.md) - - [V1PodAffinityTerm](docs/V1PodAffinityTerm.md) - - [V1PodAntiAffinity](docs/V1PodAntiAffinity.md) + - [V1PluginBinding](docs/V1PluginBinding.md) - [V1PodNetwork](docs/V1PodNetwork.md) - [V1Port](docs/V1Port.md) - - [V1Preconditions](docs/V1Preconditions.md) - - [V1PreferredSchedulingTerm](docs/V1PreferredSchedulingTerm.md) + - [V1PreferenceMatcher](docs/V1PreferenceMatcher.md) + - [V1Probe](docs/V1Probe.md) + - [V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation](docs/V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation.md) + - [V1QemuGuestAgentUserPasswordAccessCredentialPropagation](docs/V1QemuGuestAgentUserPasswordAccessCredentialPropagation.md) + - [V1RESTClientConfiguration](docs/V1RESTClientConfiguration.md) - [V1RTCTimer](docs/V1RTCTimer.md) - - [V1RegistryDiskSource](docs/V1RegistryDiskSource.md) + - [V1RateLimiter](docs/V1RateLimiter.md) + - [V1Realtime](docs/V1Realtime.md) + - [V1ReloadableComponentConfiguration](docs/V1ReloadableComponentConfiguration.md) + - [V1RemoveVolumeOptions](docs/V1RemoveVolumeOptions.md) + - [V1ReservedOverhead](docs/V1ReservedOverhead.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - - [V1ServerAddressByClientCIDR](docs/V1ServerAddressByClientCIDR.md) - - [V1Status](docs/V1Status.md) - - [V1StatusCause](docs/V1StatusCause.md) - - [V1StatusDetails](docs/V1StatusDetails.md) + - [V1ResourceRequirementsWithoutClaims](docs/V1ResourceRequirementsWithoutClaims.md) + - [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) + - [V1SEVSNP](docs/V1SEVSNP.md) + - [V1SEVSecretOptions](docs/V1SEVSecretOptions.md) + - [V1SEVSessionOptions](docs/V1SEVSessionOptions.md) + - [V1SMBiosConfiguration](docs/V1SMBiosConfiguration.md) + - [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) + - [V1StartOptions](docs/V1StartOptions.md) + - [V1StopOptions](docs/V1StopOptions.md) + - [V1StorageMigratedVolumeInfo](docs/V1StorageMigratedVolumeInfo.md) + - [V1SupportContainerResources](docs/V1SupportContainerResources.md) + - [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) - [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) + - [V1UserPasswordAccessCredentialSource](docs/V1UserPasswordAccessCredentialSource.md) + - [V1UtilityVolume](docs/V1UtilityVolume.md) + - [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) + - [V1VirtualMachineInstanceBackupStatus](docs/V1VirtualMachineInstanceBackupStatus.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) + - [V1VirtualMachineInstanceGuestOSInfo](docs/V1VirtualMachineInstanceGuestOSInfo.md) + - [V1VirtualMachineInstanceGuestOSUser](docs/V1VirtualMachineInstanceGuestOSUser.md) + - [V1VirtualMachineInstanceGuestOSUserList](docs/V1VirtualMachineInstanceGuestOSUserList.md) - [V1VirtualMachineInstanceList](docs/V1VirtualMachineInstanceList.md) + - [V1VirtualMachineInstanceMigration](docs/V1VirtualMachineInstanceMigration.md) + - [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) - [V1VirtualMachineInstancePresetList](docs/V1VirtualMachineInstancePresetList.md) - [V1VirtualMachineInstancePresetSpec](docs/V1VirtualMachineInstancePresetSpec.md) + - [V1VirtualMachineInstanceProfile](docs/V1VirtualMachineInstanceProfile.md) - [V1VirtualMachineInstanceReplicaSet](docs/V1VirtualMachineInstanceReplicaSet.md) - [V1VirtualMachineInstanceReplicaSetCondition](docs/V1VirtualMachineInstanceReplicaSetCondition.md) - [V1VirtualMachineInstanceReplicaSetList](docs/V1VirtualMachineInstanceReplicaSetList.md) @@ -216,12 +660,127 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstanceStatus](docs/V1VirtualMachineInstanceStatus.md) - [V1VirtualMachineInstanceTemplateSpec](docs/V1VirtualMachineInstanceTemplateSpec.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) - [V1VirtualMachineStatus](docs/V1VirtualMachineStatus.md) + - [V1VirtualMachineVolumeRequest](docs/V1VirtualMachineVolumeRequest.md) - [V1Volume](docs/V1Volume.md) - - [V1WatchEvent](docs/V1WatchEvent.md) + - [V1VolumeMigrationState](docs/V1VolumeMigrationState.md) + - [V1VolumeSnapshotStatus](docs/V1VolumeSnapshotStatus.md) + - [V1VolumeStatus](docs/V1VolumeStatus.md) + - [V1VolumeUpdateState](docs/V1VolumeUpdateState.md) - [V1Watchdog](docs/V1Watchdog.md) - - [V1WeightedPodAffinityTerm](docs/V1WeightedPodAffinityTerm.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) + - [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) + - [V1beta1ClockPreferences](docs/V1beta1ClockPreferences.md) + - [V1beta1Condition](docs/V1beta1Condition.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) + - [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) + - [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) + - [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) + - [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) + - [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) + - [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) + - [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) + - [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) + - [V1beta1VirtualMachineTemplateSpec](docs/V1beta1VirtualMachineTemplateSpec.md) + - [V1beta1VolumeBackup](docs/V1beta1VolumeBackup.md) + - [V1beta1VolumePreferences](docs/V1beta1VolumePreferences.md) + - [V1beta1VolumeRestore](docs/V1beta1VolumeRestore.md) + - [V1beta1VolumeRestoreOverride](docs/V1beta1VolumeRestoreOverride.md) + - [V1beta1VolumeSnapshotStatus](docs/V1beta1VolumeSnapshotStatus.md) ## Documentation For Authorization diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 356129ef..c5df68f0 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -4,62 +4,304 @@ 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 -[**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/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** -> check_health() - -Health endpoint +[**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 | +[**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/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 | +[**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/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 | +[**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 | +[**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/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 | +[**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/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} | +[**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} | +[**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/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} | +[**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/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} | +[**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/ | +[**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_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/ | +[**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_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 | +[**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}/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 | +[**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/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 | +[**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 | +[**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 | +[**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/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 | +[**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} | +[**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} | +[**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/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} | +[**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/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} | +[**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} | +[**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/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} | +[**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/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} | +[**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} | +[**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/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} | +[**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/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 | +[**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}/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_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 | +[**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}/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 | +[**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}/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_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 | +[**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}/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}/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} | +[**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}/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} | +[**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}/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 | +[**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/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 | +[**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 | +[**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 | +[**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/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 | +[**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** +> V1alpha1MigrationPolicy create_migration_policy(body) + + + +Create a MigrationPolicy object. ### Example ```python @@ -69,43 +311,44 @@ 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.V1alpha1MigrationPolicy() # V1alpha1MigrationPolicy | try: - # Health endpoint - api_instance.check_health() + api_response = api_instance.create_migration_policy(body) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->check_health: %s\n" % e) + print("Exception when calling DefaultApi->create_migration_policy: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1MigrationPolicy**](V1alpha1MigrationPolicy.md)| | ### Return type -void (empty response body) +[**V1alpha1MigrationPolicy**](V1alpha1MigrationPolicy.md) ### Authorization -[BearerToken](../README.md#BearerToken) +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) -# **console** -> console(namespace, name) +# **create_namespaced_kube_virt** +> V1KubeVirt create_namespaced_kube_virt(body, namespace) -Open a websocket connection to a serial console on the specified VirtualMachineInstance. + + +Create a KubeVirt object. ### Example ```python @@ -115,48 +358,45 @@ 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.V1KubeVirt() # V1KubeVirt | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -name = 'name_example' # str | Name of the resource try: - # Open a websocket connection to a serial console on the specified VirtualMachineInstance. - api_instance.console(namespace, name) + api_response = api_instance.create_namespaced_kube_virt(body, namespace) + pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->console: %s\n" % 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 | - **name** | **str**| Name of the resource | ### Return type -void (empty response body) +[**V1KubeVirt**](V1KubeVirt.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **Accept**: Not defined + - **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) + + Create a VirtualMachine object. ### Example @@ -167,18 +407,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: @@ -198,7 +432,7 @@ Name | Type | Description | Notes ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -207,10 +441,12 @@ 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** -> V1VirtualMachineInstance create_namespaced_virtual_machine_instance(body, namespace) +# **create_namespaced_virtual_machine_backup** +> V1alpha1VirtualMachineBackup create_namespaced_virtual_machine_backup(body, namespace) + -Create a VirtualMachineInstance object. + +Create a VirtualMachineBackup object. ### Example ```python @@ -220,38 +456,32 @@ 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 | +body = kubevirt.V1alpha1VirtualMachineBackup() # V1alpha1VirtualMachineBackup | 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) + 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_instance: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_backup: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachineInstance**](V1VirtualMachineInstance.md)| | + **body** | [**V1alpha1VirtualMachineBackup**](V1alpha1VirtualMachineBackup.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) +[**V1alpha1VirtualMachineBackup**](V1alpha1VirtualMachineBackup.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -260,10 +490,12 @@ 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_preset** -> V1VirtualMachineInstancePreset create_namespaced_virtual_machine_instance_preset(body, namespace) +# **create_namespaced_virtual_machine_export** +> V1beta1VirtualMachineExport create_namespaced_virtual_machine_export(body, namespace) -Create a VirtualMachineInstancePreset object. + + +Create a VirtualMachineExport object. ### Example ```python @@ -273,38 +505,32 @@ 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 | +body = kubevirt.V1beta1VirtualMachineExport() # V1beta1VirtualMachineExport | 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) + 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_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_export: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md)| | + **body** | [**V1beta1VirtualMachineExport**](V1beta1VirtualMachineExport.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) +[**V1beta1VirtualMachineExport**](V1beta1VirtualMachineExport.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -313,10 +539,12 @@ 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_replica_set** -> V1VirtualMachineInstanceReplicaSet create_namespaced_virtual_machine_instance_replica_set(body, namespace) +# **create_namespaced_virtual_machine_instance** +> V1VirtualMachineInstance create_namespaced_virtual_machine_instance(body, namespace) + -Create a VirtualMachineInstanceReplicaSet object. + +Create a VirtualMachineInstance object. ### Example ```python @@ -326,38 +554,32 @@ 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 | +body = kubevirt.V1VirtualMachineInstance() # V1VirtualMachineInstance | 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) + 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_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md)| | + **body** | [**V1VirtualMachineInstance**](V1VirtualMachineInstance.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) +[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -366,10 +588,12 @@ 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) +# **create_namespaced_virtual_machine_instance_migration** +> V1VirtualMachineInstanceMigration create_namespaced_virtual_machine_instance_migration(body, namespace) + -Delete a collection of VirtualMachine objects. + +Create a VirtualMachineInstanceMigration object. ### Example ```python @@ -379,62 +603,46 @@ 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) +body = kubevirt.V1VirtualMachineInstanceMigration() # V1VirtualMachineInstanceMigration | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects 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) + api_response = api_instance.create_namespaced_virtual_machine_instance_migration(body, namespace) 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->create_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] + **body** | [**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1Status**](V1Status.md) +[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **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_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) +# **create_namespaced_virtual_machine_instance_preset** +> V1VirtualMachineInstancePreset create_namespaced_virtual_machine_instance_preset(body, namespace) -Delete a collection of VirtualMachineInstance objects. + + +Create a VirtualMachineInstancePreset object. ### Example ```python @@ -444,62 +652,46 @@ 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) +body = kubevirt.V1VirtualMachineInstancePreset() # V1VirtualMachineInstancePreset | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects 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) + api_response = api_instance.create_namespaced_virtual_machine_instance_preset(body, namespace) 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->create_namespaced_virtual_machine_instance_preset: %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] + **body** | [**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1Status**](V1Status.md) +[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **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_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) +# **create_namespaced_virtual_machine_instance_replica_set** +> V1VirtualMachineInstanceReplicaSet create_namespaced_virtual_machine_instance_replica_set(body, namespace) + -Delete a collection of VirtualMachineInstancePreset objects. + +Create a VirtualMachineInstanceReplicaSet object. ### Example ```python @@ -509,62 +701,46 @@ 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) +body = kubevirt.V1VirtualMachineInstanceReplicaSet() # V1VirtualMachineInstanceReplicaSet | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects 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) + 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->delete_collection_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 ------------- | ------------- | ------------- | ------------- - **_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] + **body** | [**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1Status**](V1Status.md) +[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **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_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) +# **create_namespaced_virtual_machine_instancetype** +> V1beta1VirtualMachineInstancetype create_namespaced_virtual_machine_instancetype(body, namespace) -Delete a collection of VirtualMachineInstanceReplicaSet objects. + + +Create a VirtualMachineInstancetype object. ### Example ```python @@ -574,62 +750,46 @@ 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) +body = kubevirt.V1beta1VirtualMachineInstancetype() # V1beta1VirtualMachineInstancetype | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects 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) + api_response = api_instance.create_namespaced_virtual_machine_instancetype(body, namespace) 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->create_namespaced_virtual_machine_instancetype: %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] + **body** | [**V1beta1VirtualMachineInstancetype**](V1beta1VirtualMachineInstancetype.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1Status**](V1Status.md) +[**V1beta1VirtualMachineInstancetype**](V1beta1VirtualMachineInstancetype.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: Not defined + - **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(body, namespace, name, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) +# **create_namespaced_virtual_machine_pool** +> V1beta1VirtualMachinePool create_namespaced_virtual_machine_pool(body, namespace) + -Delete a VirtualMachine object. + +Create a VirtualMachinePool object. ### Example ```python @@ -639,46 +799,32 @@ 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 | +body = kubevirt.V1beta1VirtualMachinePool() # V1beta1VirtualMachinePool | 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 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.create_namespaced_virtual_machine_pool(body, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->delete_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_pool: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.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) +[**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -687,10 +833,12 @@ 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) +# **create_namespaced_virtual_machine_preference** +> V1beta1VirtualMachinePreference create_namespaced_virtual_machine_preference(body, namespace) + -Delete a VirtualMachineInstance object. + +Create a VirtualMachinePreference object. ### Example ```python @@ -700,46 +848,32 @@ 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 | +body = kubevirt.V1beta1VirtualMachinePreference() # V1beta1VirtualMachinePreference | 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 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.create_namespaced_virtual_machine_preference(body, namespace) 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->create_namespaced_virtual_machine_preference: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**V1beta1VirtualMachinePreference**](V1beta1VirtualMachinePreference.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) +[**V1beta1VirtualMachinePreference**](V1beta1VirtualMachinePreference.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -748,10 +882,12 @@ 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) +# **create_namespaced_virtual_machine_restore** +> V1beta1VirtualMachineRestore create_namespaced_virtual_machine_restore(body, namespace) + -Delete a VirtualMachineInstancePreset object. + +Create a VirtualMachineRestore object. ### Example ```python @@ -761,46 +897,32 @@ 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 | +body = kubevirt.V1beta1VirtualMachineRestore() # V1beta1VirtualMachineRestore | 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 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.create_namespaced_virtual_machine_restore(body, namespace) 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->create_namespaced_virtual_machine_restore: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**V1beta1VirtualMachineRestore**](V1beta1VirtualMachineRestore.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) +[**V1beta1VirtualMachineRestore**](V1beta1VirtualMachineRestore.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -809,10 +931,12 @@ 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) +# **create_namespaced_virtual_machine_snapshot** +> V1beta1VirtualMachineSnapshot create_namespaced_virtual_machine_snapshot(body, namespace) + -Delete a VirtualMachineInstanceReplicaSet object. + +Create a VirtualMachineSnapshot object. ### Example ```python @@ -822,46 +946,32 @@ 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 | +body = kubevirt.V1beta1VirtualMachineSnapshot() # V1beta1VirtualMachineSnapshot | 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 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.create_namespaced_virtual_machine_snapshot(body, namespace) 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->create_namespaced_virtual_machine_snapshot: %s\n" % e) ``` ### Parameters Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1DeleteOptions**](V1DeleteOptions.md)| | + **body** | [**V1beta1VirtualMachineSnapshot**](V1beta1VirtualMachineSnapshot.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) +[**V1beta1VirtualMachineSnapshot**](V1beta1VirtualMachineSnapshot.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -870,10 +980,12 @@ 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) -# **get_api_group** -> V1APIGroupList get_api_group() +# **create_namespaced_virtual_machine_snapshot_content** +> V1beta1VirtualMachineSnapshotContent create_namespaced_virtual_machine_snapshot_content(body, namespace) -Get a KubeVirt API GroupList + + +Create a VirtualMachineSnapshotContent object. ### Example ```python @@ -883,44 +995,46 @@ 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.V1beta1VirtualMachineSnapshotContent() # V1beta1VirtualMachineSnapshotContent | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: - # Get a KubeVirt API GroupList - api_response = api_instance.get_api_group() + api_response = api_instance.create_namespaced_virtual_machine_snapshot_content(body, namespace) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_group: %s\n" % e) + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_snapshot_content: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. -### Return type +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1VirtualMachineSnapshotContent**](V1beta1VirtualMachineSnapshotContent.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type -[**V1APIGroupList**](V1APIGroupList.md) +[**V1beta1VirtualMachineSnapshotContent**](V1beta1VirtualMachineSnapshotContent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **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_0** -> V1APIGroup get_api_group_0() +# **create_virtual_machine_clone** +> V1beta1VirtualMachineClone create_virtual_machine_clone(body) -Get a KubeVirt API group + + +Create a VirtualMachineClone object. ### Example ```python @@ -930,44 +1044,44 @@ 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.V1beta1VirtualMachineClone() # V1beta1VirtualMachineClone | try: - # Get a KubeVirt API group - api_response = api_instance.get_api_group_0() + api_response = api_instance.create_virtual_machine_clone(body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_group_0: %s\n" % e) + print("Exception when calling DefaultApi->create_virtual_machine_clone: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md)| | ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **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_1** -> V1APIGroup get_api_group_1() +# **create_virtual_machine_cluster_instancetype** +> V1beta1VirtualMachineClusterInstancetype create_virtual_machine_cluster_instancetype(body) -Get a KubeVirt API Group + + +Create a VirtualMachineClusterInstancetype object. ### Example ```python @@ -977,44 +1091,44 @@ 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.V1beta1VirtualMachineClusterInstancetype() # V1beta1VirtualMachineClusterInstancetype | try: - # Get a KubeVirt API Group - api_response = api_instance.get_api_group_1() + api_response = api_instance.create_virtual_machine_cluster_instancetype(body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_group_1: %s\n" % e) + print("Exception when calling DefaultApi->create_virtual_machine_cluster_instancetype: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1VirtualMachineClusterInstancetype**](V1beta1VirtualMachineClusterInstancetype.md)| | ### Return type -[**V1APIGroup**](V1APIGroup.md) +[**V1beta1VirtualMachineClusterInstancetype**](V1beta1VirtualMachineClusterInstancetype.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **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_resources** -> V1APIResourceList get_api_resources() +# **create_virtual_machine_cluster_preference** +> V1beta1VirtualMachineClusterPreference create_virtual_machine_cluster_preference(body) -Get KubeVirt API Resources + + +Create a VirtualMachineClusterPreference object. ### Example ```python @@ -1024,44 +1138,44 @@ 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.V1beta1VirtualMachineClusterPreference() # V1beta1VirtualMachineClusterPreference | try: - # Get KubeVirt API Resources - api_response = api_instance.get_api_resources() + api_response = api_instance.create_virtual_machine_cluster_preference(body) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_resources: %s\n" % e) + print("Exception when calling DefaultApi->create_virtual_machine_cluster_preference: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1beta1VirtualMachineClusterPreference**](V1beta1VirtualMachineClusterPreference.md)| | ### Return type -[**V1APIResourceList**](V1APIResourceList.md) +[**V1beta1VirtualMachineClusterPreference**](V1beta1VirtualMachineClusterPreference.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: Not defined - - **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_resources_0** -> V1APIResourceList get_api_resources_0() +# **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) -Get a KubeVirt API resources + + +Delete a collection of MigrationPolicy objects. ### Example ```python @@ -1071,44 +1185,58 @@ 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: - # Get a KubeVirt API resources - api_response = api_instance.get_api_resources_0() + 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->get_api_resources_0: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_migration_policy: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +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 -[**V1APIResourceList**](V1APIResourceList.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json + - **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) -# **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) +# **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) -Get a list of VirtualMachine objects. + + +Delete a collection of KubeVirt objects. ### Example ```python @@ -1118,14 +1246,8 @@ 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) @@ -1136,18 +1258,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: - # 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) + 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->list_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_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] @@ -1159,23 +1279,25 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineList**](V1VirtualMachineList.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/json;stream=watch + - **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) -# **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) +# **delete_collection_namespaced_virtual_machine** +> 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) -Get a list of VirtualMachineInstance objects. + + +Delete a collection of VirtualMachine objects. ### Example ```python @@ -1185,14 +1307,8 @@ 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) @@ -1203,18 +1319,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: - # 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) + 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->list_namespaced_virtual_machine_instance: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine: %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] @@ -1226,23 +1340,25 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceList**](V1VirtualMachineInstanceList.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/json;stream=watch + - **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) -# **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) +# **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) -Get a list of VirtualMachineInstancePreset objects. + + +Delete a collection of VirtualMachineBackup objects. ### Example ```python @@ -1252,14 +1368,8 @@ 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) @@ -1270,18 +1380,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: - # 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) + 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->list_namespaced_virtual_machine_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_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] @@ -1293,23 +1401,25 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstancePresetList**](V1VirtualMachineInstancePresetList.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/json;stream=watch + - **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) -# **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) +# **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) + -Get a list of VirtualMachineInstanceReplicaSet objects. + +Delete a collection of VirtualMachineExport objects. ### Example ```python @@ -1319,14 +1429,8 @@ 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) @@ -1337,18 +1441,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: - # 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) + 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->list_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_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] @@ -1360,23 +1462,25 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceReplicaSetList**](V1VirtualMachineInstanceReplicaSetList.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/json;stream=watch + - **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) -# **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) +# **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) + -Get a list of all VirtualMachine objects. + +Delete a collection of VirtualMachineInstance objects. ### Example ```python @@ -1386,11 +1490,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) @@ -1403,11 +1502,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: - # 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) + 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->list_virtual_machine_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -1425,23 +1523,25 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineList**](V1VirtualMachineList.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/json;stream=watch + - **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) -# **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) +# **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) + -Get a list of all VirtualMachineInstance objects. + +Delete a collection of VirtualMachineInstanceMigration objects. ### Example ```python @@ -1451,11 +1551,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) @@ -1468,11 +1563,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: - # 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) + 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->list_virtual_machine_instance_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance_migration: %s\n" % e) ``` ### Parameters @@ -1490,23 +1584,25 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceList**](V1VirtualMachineInstanceList.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/json;stream=watch + - **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) -# **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) +# **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) -Get a list of all VirtualMachineInstancePreset objects. + + +Delete a collection of VirtualMachineInstancePreset objects. ### Example ```python @@ -1516,11 +1612,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) @@ -1533,11 +1624,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: - # 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) + 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->list_virtual_machine_instance_preset_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance_preset: %s\n" % e) ``` ### Parameters @@ -1555,23 +1645,25 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstancePresetList**](V1VirtualMachineInstancePresetList.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/json;stream=watch + - **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) -# **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) +# **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) -Get a list of all VirtualMachineInstanceReplicaSet objects. + + +Delete a collection of VirtualMachineInstanceReplicaSet objects. ### Example ```python @@ -1581,11 +1673,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) @@ -1598,11 +1685,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: - # 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) + 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->list_virtual_machine_instance_replica_set_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instance_replica_set: %s\n" % e) ``` ### Parameters @@ -1620,23 +1706,25 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceReplicaSetList**](V1VirtualMachineInstanceReplicaSetList.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/json;stream=watch + - **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) -# **patch_namespaced_virtual_machine** -> V1VirtualMachine patch_namespaced_virtual_machine(body, namespace, name) +# **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) + -Patch a VirtualMachine object. + +Delete a collection of VirtualMachineInstancetype objects. ### Example ```python @@ -1646,52 +1734,58 @@ 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 +_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: - # Patch a VirtualMachine object. - api_response = api_instance.patch_namespaced_virtual_machine(body, namespace, name) + 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->patch_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_instancetype: %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 | + **_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 -[**V1VirtualMachine**](V1VirtualMachine.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json - - **Accept**: application/json + - **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) -# **patch_namespaced_virtual_machine_instance** -> V1VirtualMachineInstance patch_namespaced_virtual_machine_instance(body, namespace, name) +# **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) -Patch a VirtualMachineInstance object. + + +Delete a collection of VirtualMachinePool objects. ### Example ```python @@ -1701,52 +1795,58 @@ 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 +_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: - # Patch a VirtualMachineInstance object. - api_response = api_instance.patch_namespaced_virtual_machine_instance(body, namespace, name) + 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->patch_namespaced_virtual_machine_instance: %s\n" % e) + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_pool: %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 | + **_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 -[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json - - **Accept**: application/json + - **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) -# **patch_namespaced_virtual_machine_instance_preset** -> V1VirtualMachineInstancePreset patch_namespaced_virtual_machine_instance_preset(body, namespace, name) +# **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) + -Patch a VirtualMachineInstancePreset object. + +Delete a collection of VirtualMachinePreference objects. ### Example ```python @@ -1756,22 +1856,4778 @@ 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 VirtualMachineInstancePreset object. - api_response = api_instance.patch_namespaced_virtual_machine_instance_preset(body, namespace, name) - pprint(api_response) -except ApiException as e: +_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) + + + +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 + +[**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_snapshot** +> 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) + + + +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 + +[**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_snapshot_content** +> 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) + + + +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 + +[**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_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_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 VirtualMachineClusterInstancetype 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_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_instancetype: %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_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) + + + +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) + + + +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.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_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** | [**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** +> K8sIoApimachineryPkgApisMetaV1Status 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. + +### Example +```python +from __future__ import print_function +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(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) +``` + +### 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_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) + + + +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_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 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.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_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) +``` + +### 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_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 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.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_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) +``` + +### 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_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 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.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_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) +``` + +### 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_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 VirtualMachineInstanceReplicaSet 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_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) +``` + +### 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_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 VirtualMachineInstancetype 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_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_instancetype: %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_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_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) + + + +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.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_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** | [**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_snapshot** +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_snapshot(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +Delete 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 +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_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->delete_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 | + **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_snapshot_content** +> K8sIoApimachineryPkgApisMetaV1Status 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 +from __future__ import print_function +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_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->delete_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 | + **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_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_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 VirtualMachineClusterInstancetype 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_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_instancetype: %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_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) + +# **func15** +> func15() + + + +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.func15() +except ApiException as e: + print("Exception when calling DefaultApi->func15: %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) + +# **func6** +> func6() + + + +### Example +```python +from __future__ import print_function +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.func6() +except ApiException as e: + print("Exception when calling DefaultApi->func6: %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_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() + + + +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() + + + +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_instancetype_kubevirt_io** +> K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_instancetype_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_instancetype_kubevirt_io() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_group_instancetype_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() + + + +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 + +[**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_list** +> K8sIoApimachineryPkgApisMetaV1APIGroupList get_api_group_list() + + + +Get a KubeVirt API GroupList + +### Example +```python +from __future__ import print_function +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_list() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_group_list: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIGroupList**](K8sIoApimachineryPkgApisMetaV1APIGroupList.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_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_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() + + + +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 + +[**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_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() + + + +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_v1beta1() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_resources_clone_kubevirt_io_v1beta1: %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_v1beta1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_export_kubevirt_io_v1beta1() + + + +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_v1beta1() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_resources_export_kubevirt_io_v1beta1: %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_instancetype_kubevirt_io_v1beta1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_instancetype_kubevirt_io_v1beta1() + + + +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_instancetype_kubevirt_io_v1beta1() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_resources_instancetype_kubevirt_io_v1beta1: %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() + + + +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_kubevirt_io_v1() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_resources_kubevirt_io_v1: %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_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_pool_kubevirt_io_v1beta1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_pool_kubevirt_io_v1beta1() + + + +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_v1beta1() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_resources_pool_kubevirt_io_v1beta1: %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_v1beta1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_snapshot_kubevirt_io_v1beta1() + + + +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_v1beta1() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_resources_snapshot_kubevirt_io_v1beta1: %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() + + + +Get KubeVirt API root paths + +### Example +```python +from __future__ import print_function +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_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 + +[**K8sIoApimachineryPkgApisMetaV1RootPaths**](K8sIoApimachineryPkgApisMetaV1RootPaths.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) + +# **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) + + + +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_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) + + + +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) + + + +Get a list of VirtualMachine 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(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) +``` + +### 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 + +[**V1VirtualMachineList**](V1VirtualMachineList.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_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) + + + +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 + +[**V1beta1VirtualMachineExportList**](V1beta1VirtualMachineExportList.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) + + + +Get a list of VirtualMachineInstance 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_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_instance: %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 + +[**V1VirtualMachineInstanceList**](V1VirtualMachineInstanceList.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_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 + +# 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_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 + +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_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 +```python +from __future__ import print_function +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_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_preset: %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 + +[**V1VirtualMachineInstancePresetList**](V1VirtualMachineInstancePresetList.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_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 +```python +from __future__ import print_function +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_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_replica_set: %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 + +[**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_namespaced_virtual_machine_instancetype** +> 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) + + + +Get a list of VirtualMachineInstancetype 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_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_instancetype: %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 + +[**V1beta1VirtualMachineInstancetypeList**](V1beta1VirtualMachineInstancetypeList.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_pool** +> 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) + + + +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 + +[**V1beta1VirtualMachinePoolList**](V1beta1VirtualMachinePoolList.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_preference** +> 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) + + + +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 + +[**V1beta1VirtualMachinePreferenceList**](V1beta1VirtualMachinePreferenceList.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** +> 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) + + + +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 + +[**V1beta1VirtualMachineRestoreList**](V1beta1VirtualMachineRestoreList.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** +> 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) + + + +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 + +[**V1beta1VirtualMachineSnapshotList**](V1beta1VirtualMachineSnapshotList.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** +> 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) + + + +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 + +[**V1beta1VirtualMachineSnapshotContentList**](V1beta1VirtualMachineSnapshotContentList.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_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) + + + +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 + +[**V1beta1VirtualMachineCloneList**](V1beta1VirtualMachineCloneList.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_instancetype** +> 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) + + + +Get a list of VirtualMachineClusterInstancetype 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_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_instancetype: %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 + +[**V1beta1VirtualMachineClusterInstancetypeList**](V1beta1VirtualMachineClusterInstancetypeList.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_preference** +> 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) + + + +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 + +[**V1beta1VirtualMachineClusterPreferenceList**](V1beta1VirtualMachineClusterPreferenceList.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** +> 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) + + + +Get a list of all 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.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_export_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 + +[**V1beta1VirtualMachineExportList**](V1beta1VirtualMachineExportList.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) + + + +Get a list of all VirtualMachine 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_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) +``` + +### 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 + +[**V1VirtualMachineList**](V1VirtualMachineList.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_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 +```python +from __future__ import print_function +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_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) +``` + +### 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 + +[**V1VirtualMachineInstanceList**](V1VirtualMachineInstanceList.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_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 +```python +from __future__ import print_function +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_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_migration_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 + +[**V1VirtualMachineInstanceMigrationList**](V1VirtualMachineInstanceMigrationList.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_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 +```python +from __future__ import print_function +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_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_preset_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 + +[**V1VirtualMachineInstancePresetList**](V1VirtualMachineInstancePresetList.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_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_instancetype_for_all_namespaces** +> 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) + + + +Get a list of all VirtualMachineInstancetype 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_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_instancetype_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 + +[**V1beta1VirtualMachineInstancetypeList**](V1beta1VirtualMachineInstancetypeList.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** +> 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) + + + +Get a list of all 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.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_pool_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 + +[**V1beta1VirtualMachinePoolList**](V1beta1VirtualMachinePoolList.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_preference_for_all_namespaces** +> 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) + + + +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 + +[**V1beta1VirtualMachinePreferenceList**](V1beta1VirtualMachinePreferenceList.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** +> 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) + + + +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 + +[**V1beta1VirtualMachineRestoreList**](V1beta1VirtualMachineRestoreList.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** +> 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) + + + +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 + +[**V1beta1VirtualMachineSnapshotContentList**](V1beta1VirtualMachineSnapshotContentList.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** +> 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) + + + +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 + +[**V1beta1VirtualMachineSnapshotList**](V1beta1VirtualMachineSnapshotList.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) + +# **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) + + + +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) + +### 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) + + + +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.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +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** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.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_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) + + + +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 + +[**V1beta1VirtualMachineExport**](V1beta1VirtualMachineExport.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.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +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->patch_namespaced_virtual_machine_instance: %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 + +[**V1VirtualMachineInstance**](V1VirtualMachineInstance.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_migration** +> V1VirtualMachineInstanceMigration patch_namespaced_virtual_machine_instance_migration(name, namespace, body) + + + +Patch 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.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +try: + 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) +``` + +### 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 + +[**V1VirtualMachineInstanceMigration**](V1VirtualMachineInstanceMigration.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_preset** +> V1VirtualMachineInstancePreset patch_namespaced_virtual_machine_instance_preset(name, namespace, body) + + + +Patch 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.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +try: + 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) ``` @@ -1779,29 +6635,7778 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1Patch**](V1Patch.md)| | + **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 + +[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.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_replica_set** +> V1VirtualMachineInstanceReplicaSet patch_namespaced_virtual_machine_instance_replica_set(name, namespace, body) + + + +Patch a VirtualMachineInstanceReplicaSet 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_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) +``` + +### 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 + +[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.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_instancetype** +> V1beta1VirtualMachineInstancetype patch_namespaced_virtual_machine_instancetype(name, namespace, body) + + + +Patch a VirtualMachineInstancetype 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_instancetype(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_instancetype: %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 + +[**V1beta1VirtualMachineInstancetype**](V1beta1VirtualMachineInstancetype.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_pool** +> V1beta1VirtualMachinePool 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 + +[**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.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_preference** +> V1beta1VirtualMachinePreference 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 + +[**V1beta1VirtualMachinePreference**](V1beta1VirtualMachinePreference.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** +> V1beta1VirtualMachineRestore 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.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +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** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | + +### Return type + +[**V1beta1VirtualMachineRestore**](V1beta1VirtualMachineRestore.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** +> V1beta1VirtualMachineSnapshot patch_namespaced_virtual_machine_snapshot(name, namespace, body) + + + +Patch 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 +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +try: + 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_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 | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | + +### Return type + +[**V1beta1VirtualMachineSnapshot**](V1beta1VirtualMachineSnapshot.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_content** +> V1beta1VirtualMachineSnapshotContent patch_namespaced_virtual_machine_snapshot_content(name, namespace, body) + + + +Patch 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 +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +try: + 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_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 | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | + +### Return type + +[**V1beta1VirtualMachineSnapshotContent**](V1beta1VirtualMachineSnapshotContent.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_clone** +> V1beta1VirtualMachineClone 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 + +[**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.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_instancetype** +> V1beta1VirtualMachineClusterInstancetype patch_virtual_machine_cluster_instancetype(name, body) + + + +Patch a VirtualMachineClusterInstancetype 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_instancetype(name, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_virtual_machine_cluster_instancetype: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | + +### Return type + +[**V1beta1VirtualMachineClusterInstancetype**](V1beta1VirtualMachineClusterInstancetype.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_preference** +> V1beta1VirtualMachineClusterPreference 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 + +[**V1beta1VirtualMachineClusterPreference**](V1beta1VirtualMachineClusterPreference.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) + + + +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) + + + +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) + + + +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 + +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 + +[**V1VirtualMachine**](V1VirtualMachine.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_backup** +> V1alpha1VirtualMachineBackup read_namespaced_virtual_machine_backup(name, namespace, exact=exact, export=export) + + + +Get 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 +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_backup(name, namespace, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_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 | + **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 + +[**V1alpha1VirtualMachineBackup**](V1alpha1VirtualMachineBackup.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_export** +> V1beta1VirtualMachineExport 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 + +[**V1beta1VirtualMachineExport**](V1beta1VirtualMachineExport.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) + + + +Get 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 +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_instance(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) +``` + +### 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 + +[**V1VirtualMachineInstance**](V1VirtualMachineInstance.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_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 + +# 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_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 + +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_preset** +> V1VirtualMachineInstancePreset read_namespaced_virtual_machine_instance_preset(name, namespace, exact=exact, export=export) + + + +Get 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 +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_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_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 | + **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 + +[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.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_replica_set** +> V1VirtualMachineInstanceReplicaSet read_namespaced_virtual_machine_instance_replica_set(name, namespace, exact=exact, export=export) + + + +Get a VirtualMachineInstanceReplicaSet 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_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_replica_set: %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 + +[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.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_instancetype** +> V1beta1VirtualMachineInstancetype read_namespaced_virtual_machine_instancetype(name, namespace, exact=exact, export=export) + + + +Get a VirtualMachineInstancetype 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_instancetype(name, namespace, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_namespaced_virtual_machine_instancetype: %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 + +[**V1beta1VirtualMachineInstancetype**](V1beta1VirtualMachineInstancetype.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_pool** +> V1beta1VirtualMachinePool 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 + +[**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.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_preference** +> V1beta1VirtualMachinePreference 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 + +[**V1beta1VirtualMachinePreference**](V1beta1VirtualMachinePreference.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** +> V1beta1VirtualMachineRestore 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 + +[**V1beta1VirtualMachineRestore**](V1beta1VirtualMachineRestore.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** +> V1beta1VirtualMachineSnapshot 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 + +[**V1beta1VirtualMachineSnapshot**](V1beta1VirtualMachineSnapshot.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** +> V1beta1VirtualMachineSnapshotContent 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 + +[**V1beta1VirtualMachineSnapshotContent**](V1beta1VirtualMachineSnapshotContent.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_clone** +> V1beta1VirtualMachineClone 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 + +[**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.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_instancetype** +> V1beta1VirtualMachineClusterInstancetype read_virtual_machine_cluster_instancetype(name, exact=exact, export=export) + + + +Get a VirtualMachineClusterInstancetype 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_instancetype(name, exact=exact, export=export) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->read_virtual_machine_cluster_instancetype: %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 + +[**V1beta1VirtualMachineClusterInstancetype**](V1beta1VirtualMachineClusterInstancetype.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** +> V1beta1VirtualMachineClusterPreference 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 + +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 + +[**V1beta1VirtualMachineClusterPreference**](V1beta1VirtualMachineClusterPreference.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_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) + + + +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) + + + +Update 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.V1VirtualMachine() # V1VirtualMachine | + +try: + 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) +``` + +### 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** | [**V1VirtualMachine**](V1VirtualMachine.md)| | + +### Return type + +[**V1VirtualMachine**](V1VirtualMachine.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_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) + + + +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.V1beta1VirtualMachineExport() # V1beta1VirtualMachineExport | + +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** | [**V1beta1VirtualMachineExport**](V1beta1VirtualMachineExport.md)| | + +### Return type + +[**V1beta1VirtualMachineExport**](V1beta1VirtualMachineExport.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** +> V1VirtualMachineInstance replace_namespaced_virtual_machine_instance(name, namespace, body) + + + +Update 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.V1VirtualMachineInstance() # V1VirtualMachineInstance | + +try: + 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) +``` + +### 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** | [**V1VirtualMachineInstance**](V1VirtualMachineInstance.md)| | + +### Return type + +[**V1VirtualMachineInstance**](V1VirtualMachineInstance.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_migration** +> V1VirtualMachineInstanceMigration replace_namespaced_virtual_machine_instance_migration(name, namespace, body) + + + +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 +from __future__ import print_function +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.V1VirtualMachineInstanceReplicaSet() # V1VirtualMachineInstanceReplicaSet | + +try: + 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) +``` + +### 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** | [**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md)| | + +### Return type + +[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.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_instancetype** +> V1beta1VirtualMachineInstancetype replace_namespaced_virtual_machine_instancetype(name, namespace, body) + + + +Update a VirtualMachineInstancetype 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.V1beta1VirtualMachineInstancetype() # V1beta1VirtualMachineInstancetype | + +try: + 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_instancetype: %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** | [**V1beta1VirtualMachineInstancetype**](V1beta1VirtualMachineInstancetype.md)| | + +### Return type + +[**V1beta1VirtualMachineInstancetype**](V1beta1VirtualMachineInstancetype.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_pool** +> V1beta1VirtualMachinePool 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.V1beta1VirtualMachinePool() # V1beta1VirtualMachinePool | + +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** | [**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.md)| | + +### Return type + +[**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.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_preference** +> V1beta1VirtualMachinePreference 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.V1beta1VirtualMachinePreference() # V1beta1VirtualMachinePreference | + +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** | [**V1beta1VirtualMachinePreference**](V1beta1VirtualMachinePreference.md)| | + +### Return type + +[**V1beta1VirtualMachinePreference**](V1beta1VirtualMachinePreference.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** +> V1beta1VirtualMachineRestore 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.V1beta1VirtualMachineRestore() # V1beta1VirtualMachineRestore | + +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** | [**V1beta1VirtualMachineRestore**](V1beta1VirtualMachineRestore.md)| | + +### Return type + +[**V1beta1VirtualMachineRestore**](V1beta1VirtualMachineRestore.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** +> V1beta1VirtualMachineSnapshot replace_namespaced_virtual_machine_snapshot(name, namespace, body) + + + +Update 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 +body = kubevirt.V1beta1VirtualMachineSnapshot() # V1beta1VirtualMachineSnapshot | + +try: + 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_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 | + **body** | [**V1beta1VirtualMachineSnapshot**](V1beta1VirtualMachineSnapshot.md)| | + +### Return type + +[**V1beta1VirtualMachineSnapshot**](V1beta1VirtualMachineSnapshot.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_content** +> V1beta1VirtualMachineSnapshotContent replace_namespaced_virtual_machine_snapshot_content(name, namespace, body) + + + +Update 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 +body = kubevirt.V1beta1VirtualMachineSnapshotContent() # V1beta1VirtualMachineSnapshotContent | + +try: + 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_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 | + **body** | [**V1beta1VirtualMachineSnapshotContent**](V1beta1VirtualMachineSnapshotContent.md)| | + +### Return type + +[**V1beta1VirtualMachineSnapshotContent**](V1beta1VirtualMachineSnapshotContent.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_clone** +> V1beta1VirtualMachineClone 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.V1beta1VirtualMachineClone() # V1beta1VirtualMachineClone | + +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** | [**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md)| | + +### Return type + +[**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.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_instancetype** +> V1beta1VirtualMachineClusterInstancetype replace_virtual_machine_cluster_instancetype(name, body) + + + +Update a VirtualMachineClusterInstancetype 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.V1beta1VirtualMachineClusterInstancetype() # V1beta1VirtualMachineClusterInstancetype | + +try: + 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_instancetype: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **body** | [**V1beta1VirtualMachineClusterInstancetype**](V1beta1VirtualMachineClusterInstancetype.md)| | + +### Return type + +[**V1beta1VirtualMachineClusterInstancetype**](V1beta1VirtualMachineClusterInstancetype.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_preference** +> V1beta1VirtualMachineClusterPreference 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.V1beta1VirtualMachineClusterPreference() # V1beta1VirtualMachineClusterPreference | + +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** | [**V1beta1VirtualMachineClusterPreference**](V1beta1VirtualMachineClusterPreference.md)| | + +### Return type + +[**V1beta1VirtualMachineClusterPreference**](V1beta1VirtualMachineClusterPreference.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_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() + + + +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.v1_check_health() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_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) + +# **v1_console** +> v1_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.v1_console(name, namespace) +except ApiException as e: + print("Exception when calling DefaultApi->v1_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) + +# **v1_expand_spec** +> str v1_expand_spec(namespace) + + + +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() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + 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 + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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**: 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(name, namespace) + + + +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() +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(name, namespace) + pprint(api_response) +except ApiException as 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 | + +### 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) + +# **v1_freeze** +> str v1_freeze(name, namespace, body) + + + +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 +body = kubevirt.V1FreezeUnfreezeTimeout() # V1FreezeUnfreezeTimeout | + +try: + 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) +``` + +### 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** | [**V1FreezeUnfreezeTimeout**](V1FreezeUnfreezeTimeout.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_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() + + + +### Example +```python +from __future__ import print_function +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) + + + +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.v1_guestosinfo(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_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) + +# **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**: */* + - **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) + + + +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 +body = kubevirt.V1MigrateOptions() # V1MigrateOptions | + +try: + 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) +``` + +### 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** | [**V1MigrateOptions**](V1MigrateOptions.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_pause** +> str v1_pause(name, namespace, body) + + + +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 +body = kubevirt.V1PauseOptions() # V1PauseOptions | + +try: + 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) +``` + +### 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** | [**V1PauseOptions**](V1PauseOptions.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_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) + + + +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_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) + + + +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.v1_restart(name, namespace, body=body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_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**: */* + - **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_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**: */* + - **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**: */* + - **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) + + + +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) + + + +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 +body = kubevirt.V1StartOptions() # V1StartOptions | + +try: + 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) +``` + +### 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** | [**V1StartOptions**](V1StartOptions.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_stop** +> str v1_stop(name, namespace, body=body) + + + +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 +body = kubevirt.V1StopOptions() # V1StopOptions | (optional) + +try: + 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) +``` + +### 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** | [**V1StopOptions**](V1StopOptions.md)| | [optional] + +### 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_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, body) + + + +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 +body = kubevirt.V1UnpauseOptions() # V1UnpauseOptions | + +try: + 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) +``` + +### 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** | [**V1UnpauseOptions**](V1UnpauseOptions.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_userlist** +> V1VirtualMachineInstanceGuestOSUserList v1_userlist(name, namespace) + + + +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() +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(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_userlist: %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 + +[**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, preserve_session=preserve_session) + + + +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 +preserve_session = true # bool | Connect only if ongoing session is not disturbed. (optional) + +try: + api_instance.v1_vnc(name, namespace, preserve_session=preserve_session) +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 | + **preserve_session** | **bool**| Connect only if ongoing session is not disturbed. | [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) + +# **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) + +# **v1_vsock** +> v1_vsock(name, namespace, port, tls=tls) + + + +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. +tls = true # bool | Weather to request a TLS encrypted session from the VSOCK application. (optional) + +try: + api_instance.v1_vsock(name, namespace, port, tls=tls) +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. | + **tls** | **bool**| Weather to request a TLS encrypted session from the VSOCK application. | [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_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() + + + +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_expand_spec** +> str v1alpha3_expand_spec(namespace) + + + +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() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + 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 + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **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**: 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(name, namespace) + + + +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() +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(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_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 | + +### 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_freeze** +> str v1alpha3_freeze(name, namespace, body) + + + +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 +body = kubevirt.V1FreezeUnfreezeTimeout() # V1FreezeUnfreezeTimeout | + +try: + 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) +``` + +### 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** | [**V1FreezeUnfreezeTimeout**](V1FreezeUnfreezeTimeout.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_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) + + + +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_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**: */* + - **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) + + + +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 +body = kubevirt.V1MigrateOptions() # V1MigrateOptions | + +try: + 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) +``` + +### 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** | [**V1MigrateOptions**](V1MigrateOptions.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_pause** +> str v1alpha3_pause(name, namespace, body) + + + +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 +body = kubevirt.V1PauseOptions() # V1PauseOptions | + +try: + 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) +``` + +### 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** | [**V1PauseOptions**](V1PauseOptions.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_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) + + + +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_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) + + + +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**: */* + - **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_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**: */* + - **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**: */* + - **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) + + + +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) + + + +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 +body = kubevirt.V1StartOptions() # V1StartOptions | + +try: + 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) +``` + +### 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** | [**V1StartOptions**](V1StartOptions.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_stop** +> str v1alpha3_stop(name, namespace, body=body) + + + +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 +body = kubevirt.V1StopOptions() # V1StopOptions | (optional) + +try: + 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) +``` + +### 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** | [**V1StopOptions**](V1StopOptions.md)| | [optional] + +### 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_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, body) + + + +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 +body = kubevirt.V1UnpauseOptions() # V1UnpauseOptions | + +try: + 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) +``` + +### 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** | [**V1UnpauseOptions**](V1UnpauseOptions.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_userlist** +> V1VirtualMachineInstanceGuestOSUserList v1alpha3_userlist(name, namespace) + + + +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() +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(name, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_userlist: %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 + +[**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, preserve_session=preserve_session) + + + +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 +preserve_session = true # bool | Connect only if ongoing session is not disturbed. (optional) + +try: + api_instance.v1alpha3_vnc(name, namespace, preserve_session=preserve_session) +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 | + **preserve_session** | **bool**| Connect only if ongoing session is not disturbed. | [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_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) + +# **v1alpha3_vsock** +> v1alpha3_vsock(name, namespace, port, tls=tls) + + + +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. +tls = true # bool | Weather to request a TLS encrypted session from the VSOCK application. (optional) + +try: + api_instance.v1alpha3_vsock(name, namespace, port, tls=tls) +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. | + **tls** | **bool**| Weather to request a TLS encrypted session from the VSOCK application. | [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() + + + +### Example +```python +from __future__ import print_function +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() + + + +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) + +# **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) + + + +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) + + + +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 +body = kubevirt.V1AddVolumeOptions() # V1AddVolumeOptions | + +try: + 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) +``` + +### 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** | [**V1AddVolumeOptions**](V1AddVolumeOptions.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_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) + + + +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_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) + + + +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) + + + +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 +body = kubevirt.V1RemoveVolumeOptions() # V1RemoveVolumeOptions | + +try: + 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) +``` + +### 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** | [**V1RemoveVolumeOptions**](V1RemoveVolumeOptions.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_addvolume** +> str v1alpha3vmi_addvolume(name, namespace, body) + + + +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 +body = kubevirt.V1AddVolumeOptions() # V1AddVolumeOptions | + +try: + 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) +``` + +### 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** | [**V1AddVolumeOptions**](V1AddVolumeOptions.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_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) + + + +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) + + + +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) + + + +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 +body = kubevirt.V1RemoveVolumeOptions() # V1RemoveVolumeOptions | + +try: + 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) +``` + +### 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** | [**V1RemoveVolumeOptions**](V1RemoveVolumeOptions.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) + +# **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() + + + +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) + +# **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) + + + +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) + + + +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 +body = kubevirt.V1AddVolumeOptions() # V1AddVolumeOptions | + +try: + 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) +``` + +### 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** | [**V1AddVolumeOptions**](V1AddVolumeOptions.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_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) + + + +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_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) + + + +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) + + + +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 +body = kubevirt.V1RemoveVolumeOptions() # V1RemoveVolumeOptions | + +try: + 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) +``` + +### 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** | [**V1RemoveVolumeOptions**](V1RemoveVolumeOptions.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_addvolume** +> str v1vmi_addvolume(name, namespace, body) + + + +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 +body = kubevirt.V1AddVolumeOptions() # V1AddVolumeOptions | + +try: + 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) +``` + +### 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** | [**V1AddVolumeOptions**](V1AddVolumeOptions.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_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) + + + +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) + + + +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) + + + +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 +body = kubevirt.V1RemoveVolumeOptions() # V1RemoveVolumeOptions | + +try: + 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) +``` + +### 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** | [**V1RemoveVolumeOptions**](V1RemoveVolumeOptions.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) + +# **watch_kube_virt_list_for_all_namespaces** +> 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) + + + +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 + +[**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_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) + + + +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 + +[**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** +> 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) + + + +Watch 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() +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(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) +``` + +### 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_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) + + + +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_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 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() +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_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_instance: %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_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 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() +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_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 + +[**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_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 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() +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_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_preset: %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_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 VirtualMachineInstanceReplicaSet 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_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_replica_set: %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_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 VirtualMachineInstancetype 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_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_instancetype: %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_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 | - **name** | **str**| Name of the resource | + **_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 -[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **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) -# **patch_namespaced_virtual_machine_instance_replica_set** -> V1VirtualMachineInstanceReplicaSet patch_namespaced_virtual_machine_instance_replica_set(body, namespace, name) +# **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) -Patch a VirtualMachineInstanceReplicaSet object. + + +Watch a VirtualMachinePreference object. ### Example ```python @@ -1811,52 +14416,60 @@ 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 +_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: - # Patch a VirtualMachineInstanceReplicaSet object. - api_response = api_instance.patch_namespaced_virtual_machine_instance_replica_set(body, namespace, name) + 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->patch_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_preference: %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 | + **_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 -[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **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) -# **read_namespaced_virtual_machine** -> V1VirtualMachine read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) +# **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) -Get a VirtualMachine object. + + +Watch a VirtualMachineRestore object. ### Example ```python @@ -1866,54 +14479,60 @@ 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) +_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 VirtualMachine object. - api_response = api_instance.read_namespaced_virtual_machine(name, namespace, exact=exact, export=export) + 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->read_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->watch_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] + **_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 -[**V1VirtualMachine**](V1VirtualMachine.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/json;stream=watch + - **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_virtual_machine_instance** -> V1VirtualMachineInstance read_namespaced_virtual_machine_instance(name, namespace, exact=exact, export=export) +# **watch_namespaced_virtual_machine_snapshot** +> 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) + -Get a VirtualMachineInstance object. + +Watch a VirtualMachineSnapshot object. ### Example ```python @@ -1923,54 +14542,60 @@ 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) +_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 VirtualMachineInstance object. - api_response = api_instance.read_namespaced_virtual_machine_instance(name, namespace, exact=exact, export=export) + 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->read_namespaced_virtual_machine_instance: %s\n" % e) + print("Exception when calling DefaultApi->watch_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] + **_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 -[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/json;stream=watch + - **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_virtual_machine_instance_preset** -> V1VirtualMachineInstancePreset read_namespaced_virtual_machine_instance_preset(name, namespace, exact=exact, export=export) +# **watch_namespaced_virtual_machine_snapshot_content** +> 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) -Get a VirtualMachineInstancePreset object. + + +Watch a VirtualMachineSnapshotContent object. ### Example ```python @@ -1980,54 +14605,60 @@ 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) +_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 VirtualMachineInstancePreset object. - api_response = api_instance.read_namespaced_virtual_machine_instance_preset(name, namespace, exact=exact, export=export) + 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->read_namespaced_virtual_machine_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->watch_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] + **_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 -[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/json;stream=watch + - **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_virtual_machine_instance_replica_set** -> V1VirtualMachineInstanceReplicaSet read_namespaced_virtual_machine_instance_replica_set(name, namespace, exact=exact, export=export) +# **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) + -Get a VirtualMachineInstanceReplicaSet object. + +Watch a VirtualMachineBackupList object. ### Example ```python @@ -2037,54 +14668,58 @@ 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) +_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 VirtualMachineInstanceReplicaSet object. - api_response = api_instance.read_namespaced_virtual_machine_instance_replica_set(name, namespace, exact=exact, export=export) + 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->read_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_backup_list_for_all_namespaces: %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] + **_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 -[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: application/json, application/yaml, application/json;stream=watch + - **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) -# **replace_namespaced_virtual_machine** -> V1VirtualMachine replace_namespaced_virtual_machine(body, namespace, name) +# **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) + -Update a VirtualMachine object. + +Watch a VirtualMachineCloneList object. ### Example ```python @@ -2094,52 +14729,58 @@ 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 +_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: - # Update a VirtualMachine object. - api_response = api_instance.replace_namespaced_virtual_machine(body, namespace, name) + 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->replace_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_clone_list_for_all_namespaces: %s\n" % e) ``` ### Parameters 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 | + **_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 -[**V1VirtualMachine**](V1VirtualMachine.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: application/json, application/yaml - - **Accept**: application/json, application/yaml + - **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) -# **replace_namespaced_virtual_machine_instance** -> V1VirtualMachineInstance replace_namespaced_virtual_machine_instance(body, namespace, name) +# **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) + + -Update a VirtualMachineInstance object. +Watch a VirtualMachineClusterInstancetypeList object. ### Example ```python @@ -2149,52 +14790,58 @@ 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 +_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: - # Update a VirtualMachineInstance object. - api_response = api_instance.replace_namespaced_virtual_machine_instance(body, namespace, name) + 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->replace_namespaced_virtual_machine_instance: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_cluster_instancetype_list_for_all_namespaces: %s\n" % e) ``` ### Parameters 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 | + **_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 -[**V1VirtualMachineInstance**](V1VirtualMachineInstance.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: application/json, application/yaml - - **Accept**: application/json, application/yaml + - **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) -# **replace_namespaced_virtual_machine_instance_preset** -> V1VirtualMachineInstancePreset replace_namespaced_virtual_machine_instance_preset(body, namespace, name) +# **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) + -Update a VirtualMachineInstancePreset object. + +Watch a VirtualMachineClusterPreferenceList object. ### Example ```python @@ -2204,52 +14851,58 @@ 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 +_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: - # Update a VirtualMachineInstancePreset object. - api_response = api_instance.replace_namespaced_virtual_machine_instance_preset(body, namespace, name) + 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->replace_namespaced_virtual_machine_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_cluster_preference_list_for_all_namespaces: %s\n" % e) ``` ### Parameters 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 | + **_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 -[**V1VirtualMachineInstancePreset**](V1VirtualMachineInstancePreset.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: application/json, application/yaml - - **Accept**: application/json, application/yaml + - **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) -# **replace_namespaced_virtual_machine_instance_replica_set** -> V1VirtualMachineInstanceReplicaSet replace_namespaced_virtual_machine_instance_replica_set(body, namespace, name) +# **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) -Update a VirtualMachineInstanceReplicaSet object. + + +Watch a VirtualMachineExportList object. ### Example ```python @@ -2259,52 +14912,58 @@ 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 +_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: - # Update a VirtualMachineInstanceReplicaSet object. - api_response = api_instance.replace_namespaced_virtual_machine_instance_replica_set(body, namespace, name) + 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->replace_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_export_list_for_all_namespaces: %s\n" % e) ``` ### Parameters 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 | + **_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 -[**V1VirtualMachineInstanceReplicaSet**](V1VirtualMachineInstanceReplicaSet.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - - **Content-Type**: application/json, application/yaml - - **Accept**: application/json, application/yaml + - **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) -# **test** -> test(namespace, name) +# **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) + + -Test endpoint verifying apiserver connectivity. +Watch a VirtualMachineInstanceList object. ### Example ```python @@ -2314,50 +14973,59 @@ 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 +_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: - # Test endpoint verifying apiserver connectivity. - api_instance.test(namespace, name) + 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->test: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_instance_list_for_all_namespaces: %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 | + **_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 -void (empty response body) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: 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) -# **version** -> version() +# **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 VirtualMachineInstanceMigrationList object. + ### Example ```python from __future__ import print_function @@ -2366,30 +15034,44 @@ 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: - api_instance.version() + 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->version: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_instance_migration_list_for_all_namespaces: %s\n" % e) ``` ### Parameters -This endpoint does not need any parameter. + +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 -void (empty response body) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2398,10 +15080,12 @@ 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) +# **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) -Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + + +Watch a VirtualMachineInstancePresetList object. ### Example ```python @@ -2411,49 +15095,58 @@ 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 +_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: - # Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. - api_instance.vnc(namespace, name) + 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->vnc: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_instance_preset_list_for_all_namespaces: %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 | + **_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 -void (empty response body) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers - **Content-Type**: Not defined - - **Accept**: 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) +# **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 VirtualMachine object. + +Watch a VirtualMachineInstanceReplicaSetList object. ### Example ```python @@ -2463,14 +15156,8 @@ 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) @@ -2481,18 +15168,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: - # 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) + 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_namespaced_virtual_machine: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_instance_replica_set_list_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] @@ -2504,11 +15189,11 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2517,10 +15202,12 @@ 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** -> 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_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 VirtualMachineInstance object. + +Watch a VirtualMachineInstancetypeList object. ### Example ```python @@ -2530,14 +15217,8 @@ 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) @@ -2548,18 +15229,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: - # 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) + 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_namespaced_virtual_machine_instance: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_instancetype_list_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] @@ -2571,11 +15250,11 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2584,10 +15263,12 @@ 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_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_virtual_machine_list_for_all_namespaces** +> 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) -Watch a VirtualMachineInstancePreset object. + + +Watch a VirtualMachineList object. ### Example ```python @@ -2597,14 +15278,8 @@ 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) @@ -2615,18 +15290,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: - # 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) + 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_namespaced_virtual_machine_instance_preset: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_list_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] @@ -2638,11 +15311,11 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2651,10 +15324,12 @@ 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_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_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 VirtualMachineInstanceReplicaSet object. + +Watch a VirtualMachinePoolList object. ### Example ```python @@ -2664,14 +15339,8 @@ 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) @@ -2682,18 +15351,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: - # 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) + 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_namespaced_virtual_machine_instance_replica_set: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_pool_list_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] @@ -2705,11 +15372,11 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2718,10 +15385,12 @@ 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_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_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 VirtualMachineInstanceList object. + + +Watch a VirtualMachinePreferenceList object. ### Example ```python @@ -2731,11 +15400,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) @@ -2748,11 +15412,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: - # 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) + 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_instance_list_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_preference_list_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -2770,11 +15433,11 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2783,10 +15446,12 @@ 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_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_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) + -Watch a VirtualMachineInstancePresetList object. + +Watch a VirtualMachineRestoreList object. ### Example ```python @@ -2796,11 +15461,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) @@ -2813,11 +15473,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: - # 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) + 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_instance_preset_list_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_restore_list_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -2835,11 +15494,11 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2848,10 +15507,12 @@ 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_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_virtual_machine_snapshot_content_list_for_all_namespaces** +> 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) -Watch a VirtualMachineInstanceReplicaSetList object. + + +Watch a VirtualMachineSnapshotContentList object. ### Example ```python @@ -2861,11 +15522,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) @@ -2878,11 +15534,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: - # 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) + 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_instance_replica_set_list_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_snapshot_content_list_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -2900,11 +15555,11 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers @@ -2913,10 +15568,12 @@ 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_snapshot_list_for_all_namespaces** +> 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) + -Watch a VirtualMachineList object. + +Watch a VirtualMachineSnapshotList object. ### Example ```python @@ -2926,11 +15583,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) @@ -2943,11 +15595,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: - # 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) + 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_list_for_all_namespaces: %s\n" % e) + print("Exception when calling DefaultApi->watch_virtual_machine_snapshot_list_for_all_namespaces: %s\n" % e) ``` ### Parameters @@ -2965,11 +15616,11 @@ Name | Type | Description | Notes ### Return type -[**V1WatchEvent**](V1WatchEvent.md) +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) ### Authorization -[BearerToken](../README.md#BearerToken) +No authorization required ### HTTP request headers 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/K8sIoApiCoreV1DownwardAPIVolumeFile.md b/docs/K8sIoApiCoreV1DownwardAPIVolumeFile.md new file mode 100644 index 00000000..d5fef73c --- /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, 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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/K8sIoApiCoreV1HTTPGetAction.md b/docs/K8sIoApiCoreV1HTTPGetAction.md new file mode 100644 index 00000000..45b9ff0c --- /dev/null +++ b/docs/K8sIoApiCoreV1HTTPGetAction.md @@ -0,0 +1,13 @@ +# 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[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. 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 new file mode 100644 index 00000000..1a90fa5d --- /dev/null +++ b/docs/K8sIoApiCoreV1HTTPHeader.md @@ -0,0 +1,11 @@ +# K8sIoApiCoreV1HTTPHeader + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/K8sIoApiCoreV1LocalObjectReference.md b/docs/K8sIoApiCoreV1LocalObjectReference.md new file mode 100644 index 00000000..f1c83e85 --- /dev/null +++ b/docs/K8sIoApiCoreV1LocalObjectReference.md @@ -0,0 +1,10 @@ +# K8sIoApiCoreV1LocalObjectReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/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 72% rename from docs/V1NodeSelectorRequirement.md rename to docs/K8sIoApiCoreV1NodeSelectorRequirement.md index 0495e448..3cd1a78b 100644 --- a/docs/V1NodeSelectorRequirement.md +++ b/docs/K8sIoApiCoreV1NodeSelectorRequirement.md @@ -1,10 +1,10 @@ -# V1NodeSelectorRequirement +# K8sIoApiCoreV1NodeSelectorRequirement ## 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/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/K8sIoApiCoreV1ObjectFieldSelector.md b/docs/K8sIoApiCoreV1ObjectFieldSelector.md new file mode 100644 index 00000000..86abc281 --- /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. | [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 new file mode 100644 index 00000000..7d683ecb --- /dev/null +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md @@ -0,0 +1,18 @@ +# 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) | 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** | [**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 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] + +[[Back to Model list]](../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 new file mode 100644 index 00000000..22e1ce95 --- /dev/null +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimVolumeSource.md @@ -0,0 +1,11 @@ +# K8sIoApiCoreV1PersistentVolumeClaimVolumeSource + +## 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 ''] +**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/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/K8sIoApiCoreV1PodAffinityTerm.md b/docs/K8sIoApiCoreV1PodAffinityTerm.md new file mode 100644 index 00000000..30c5585c --- /dev/null +++ b/docs/K8sIoApiCoreV1PodAffinityTerm.md @@ -0,0 +1,15 @@ +# K8sIoApiCoreV1PodAffinityTerm + +## Properties +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. | [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 ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/K8sIoApiCoreV1PodAntiAffinity.md b/docs/K8sIoApiCoreV1PodAntiAffinity.md new file mode 100644 index 00000000..9fca15bb --- /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 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/docs/K8sIoApiCoreV1PodDNSConfig.md b/docs/K8sIoApiCoreV1PodDNSConfig.md new file mode 100644 index 00000000..853ee910 --- /dev/null +++ b/docs/K8sIoApiCoreV1PodDNSConfig.md @@ -0,0 +1,12 @@ +# 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[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/K8sIoApiCoreV1PodDNSConfigOption.md b/docs/K8sIoApiCoreV1PodDNSConfigOption.md new file mode 100644 index 00000000..07435d0e --- /dev/null +++ b/docs/K8sIoApiCoreV1PodDNSConfigOption.md @@ -0,0 +1,11 @@ +# K8sIoApiCoreV1PodDNSConfigOption + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/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/V1PreferredSchedulingTerm.md b/docs/K8sIoApiCoreV1PreferredSchedulingTerm.md similarity index 56% rename from docs/V1PreferredSchedulingTerm.md rename to docs/K8sIoApiCoreV1PreferredSchedulingTerm.md index 92f5b359..3142680a 100644 --- a/docs/V1PreferredSchedulingTerm.md +++ b/docs/K8sIoApiCoreV1PreferredSchedulingTerm.md @@ -1,10 +1,10 @@ -# V1PreferredSchedulingTerm +# K8sIoApiCoreV1PreferredSchedulingTerm ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**preference** | [**V1NodeSelectorTerm**](V1NodeSelectorTerm.md) | A node selector term, associated with the corresponding weight. | -**weight** | **int** | Weight associated with matching the corresponding nodeSelectorTerm, in the range 1-100. | +**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. | [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/K8sIoApiCoreV1ResourceFieldSelector.md b/docs/K8sIoApiCoreV1ResourceFieldSelector.md new file mode 100644 index 00000000..b2d35925 --- /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 | [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/K8sIoApiCoreV1TCPSocketAction.md b/docs/K8sIoApiCoreV1TCPSocketAction.md new file mode 100644 index 00000000..4bd106e3 --- /dev/null +++ b/docs/K8sIoApiCoreV1TCPSocketAction.md @@ -0,0 +1,10 @@ +# K8sIoApiCoreV1TCPSocketAction + +## 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/K8sIoApiCoreV1Toleration.md b/docs/K8sIoApiCoreV1Toleration.md new file mode 100644 index 00000000..69dce2b0 --- /dev/null +++ b/docs/K8sIoApiCoreV1Toleration.md @@ -0,0 +1,14 @@ +# K8sIoApiCoreV1Toleration + +## 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. 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. 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] + +[[Back to Model list]](../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 new file mode 100644 index 00000000..2b4310a3 --- /dev/null +++ b/docs/K8sIoApiCoreV1TopologySpreadConstraint.md @@ -0,0 +1,17 @@ +# 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] +**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. 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 ''] + +[[Back to Model list]](../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 new file mode 100644 index 00000000..8027409e --- /dev/null +++ b/docs/K8sIoApiCoreV1TypedLocalObjectReference.md @@ -0,0 +1,12 @@ +# K8sIoApiCoreV1TypedLocalObjectReference + +## 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 ''] + +[[Back to Model list]](../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/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/V1WeightedPodAffinityTerm.md b/docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md similarity index 55% rename from docs/V1WeightedPodAffinityTerm.md rename to docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md index 9d92fe55..a0258056 100644 --- a/docs/V1WeightedPodAffinityTerm.md +++ b/docs/K8sIoApiCoreV1WeightedPodAffinityTerm.md @@ -1,10 +1,10 @@ -# V1WeightedPodAffinityTerm +# K8sIoApiCoreV1WeightedPodAffinityTerm ## 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. | +**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. | [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 new file mode 100644 index 00000000..182f2960 --- /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. | [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. | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1APIResourceList.md b/docs/K8sIoApimachineryPkgApisMetaV1APIGroupList.md similarity index 68% rename from docs/V1APIResourceList.md rename to docs/K8sIoApimachineryPkgApisMetaV1APIGroupList.md index 30100546..007642ab 100644 --- a/docs/V1APIResourceList.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1APIGroupList.md @@ -1,12 +1,11 @@ -# V1APIResourceList +# 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/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] -**resources** | [**list[V1APIResource]**](V1APIResource.md) | resources contains the name of the resources and if they are namespaced. | +**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[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 70% rename from docs/V1APIResource.md rename to docs/K8sIoApimachineryPkgApisMetaV1APIResource.md index 8c4c5bd1..65fb7982 100644 --- a/docs/V1APIResource.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1APIResource.md @@ -1,15 +1,16 @@ -# V1APIResource +# K8sIoApimachineryPkgApisMetaV1APIResource ## Properties 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 new file mode 100644 index 00000000..671b2550 --- /dev/null +++ b/docs/K8sIoApimachineryPkgApisMetaV1APIResourceList.md @@ -0,0 +1,13 @@ +# K8sIoApimachineryPkgApisMetaV1APIResourceList + +## 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] +**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. | + +[[Back to Model list]](../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 new file mode 100644 index 00000000..f2186413 --- /dev/null +++ b/docs/K8sIoApimachineryPkgApisMetaV1DeleteOptions.md @@ -0,0 +1,17 @@ +# K8sIoApimachineryPkgApisMetaV1DeleteOptions + +## 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] +**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] +**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/ResourceInfDecAmount.md b/docs/K8sIoApimachineryPkgApisMetaV1Duration.md similarity index 81% rename from docs/ResourceInfDecAmount.md rename to docs/K8sIoApimachineryPkgApisMetaV1Duration.md index 987283da..7d62f1a4 100644 --- a/docs/ResourceInfDecAmount.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1Duration.md @@ -1,9 +1,8 @@ -# ResourceInfDecAmount +# K8sIoApimachineryPkgApisMetaV1Duration ## 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/V1WatchEvent.md b/docs/K8sIoApimachineryPkgApisMetaV1FieldsV1.md similarity index 80% rename from docs/V1WatchEvent.md rename to docs/K8sIoApimachineryPkgApisMetaV1FieldsV1.md index 29bfe05e..42e005d8 100644 --- a/docs/V1WatchEvent.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1FieldsV1.md @@ -1,10 +1,8 @@ -# V1WatchEvent +# K8sIoApimachineryPkgApisMetaV1FieldsV1 ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**object** | **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/V1GroupVersionForDiscovery.md b/docs/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md similarity index 71% rename from docs/V1GroupVersionForDiscovery.md rename to docs/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md index e292a96b..b29aa934 100644 --- a/docs/V1GroupVersionForDiscovery.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery.md @@ -1,10 +1,10 @@ -# V1GroupVersionForDiscovery +# K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery ## 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/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 86% rename from docs/V1LabelSelectorRequirement.md rename to docs/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.md index 1fc8ad32..edd44176 100644 --- a/docs/V1LabelSelectorRequirement.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement.md @@ -1,10 +1,10 @@ -# V1LabelSelectorRequirement +# K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement ## 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 new file mode 100644 index 00000000..c2f2505c --- /dev/null +++ b/docs/K8sIoApimachineryPkgApisMetaV1ListMeta.md @@ -0,0 +1,13 @@ +# K8sIoApimachineryPkgApisMetaV1ListMeta + +## 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 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** | 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 new file mode 100644 index 00000000..5b99bad3 --- /dev/null +++ b/docs/K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry.md @@ -0,0 +1,16 @@ +# 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** | [**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 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 new file mode 100644 index 00000000..9cd8fdd1 --- /dev/null +++ b/docs/K8sIoApimachineryPkgApisMetaV1ObjectMeta.md @@ -0,0 +1,23 @@ +# K8sIoApimachineryPkgApisMetaV1ObjectMeta + +## 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: 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: 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: 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: 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 new file mode 100644 index 00000000..d7d98cb3 --- /dev/null +++ b/docs/K8sIoApimachineryPkgApisMetaV1OwnerReference.md @@ -0,0 +1,15 @@ +# K8sIoApimachineryPkgApisMetaV1OwnerReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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 | [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/BigInt.md b/docs/K8sIoApimachineryPkgApisMetaV1Patch.md similarity index 77% rename from docs/BigInt.md rename to docs/K8sIoApimachineryPkgApisMetaV1Patch.md index d522b83d..9c2066a8 100644 --- a/docs/BigInt.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1Patch.md @@ -1,10 +1,8 @@ -# BigInt +# K8sIoApimachineryPkgApisMetaV1Patch ## 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/K8sIoApimachineryPkgApisMetaV1Preconditions.md b/docs/K8sIoApimachineryPkgApisMetaV1Preconditions.md new file mode 100644 index 00000000..2242b2d9 --- /dev/null +++ b/docs/K8sIoApimachineryPkgApisMetaV1Preconditions.md @@ -0,0 +1,11 @@ +# K8sIoApimachineryPkgApisMetaV1Preconditions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource_version** | **str** | Specifies the target ResourceVersion | [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/K8sIoApimachineryPkgApisMetaV1RootPaths.md b/docs/K8sIoApimachineryPkgApisMetaV1RootPaths.md new file mode 100644 index 00000000..05838d80 --- /dev/null +++ b/docs/K8sIoApimachineryPkgApisMetaV1RootPaths.md @@ -0,0 +1,10 @@ +# K8sIoApimachineryPkgApisMetaV1RootPaths + +## 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/docs/V1ServerAddressByClientCIDR.md b/docs/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md similarity index 80% rename from docs/V1ServerAddressByClientCIDR.md rename to docs/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md index ced289fa..51ff9caa 100644 --- a/docs/V1ServerAddressByClientCIDR.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR.md @@ -1,10 +1,10 @@ -# V1ServerAddressByClientCIDR +# K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR ## 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/V1Status.md b/docs/K8sIoApimachineryPkgApisMetaV1Status.md similarity index 60% rename from docs/V1Status.md rename to docs/K8sIoApimachineryPkgApisMetaV1Status.md index a69ba142..5f2568c8 100644 --- a/docs/V1Status.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1Status.md @@ -1,16 +1,16 @@ -# 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/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] +**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/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/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/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 67% rename from docs/V1StatusDetails.md rename to docs/K8sIoApimachineryPkgApisMetaV1StatusDetails.md index 1badffd2..4a3b1313 100644 --- a/docs/V1StatusDetails.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1StatusDetails.md @@ -1,14 +1,14 @@ -# 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/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] +**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/docs/V1Preconditions.md b/docs/K8sIoApimachineryPkgApisMetaV1Time.md similarity index 73% rename from docs/V1Preconditions.md rename to docs/K8sIoApimachineryPkgApisMetaV1Time.md index 1e883051..01f2ff55 100644 --- a/docs/V1Preconditions.md +++ b/docs/K8sIoApimachineryPkgApisMetaV1Time.md @@ -1,9 +1,8 @@ -# V1Preconditions +# K8sIoApimachineryPkgApisMetaV1Time ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**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/K8sIoApimachineryPkgApisMetaV1WatchEvent.md b/docs/K8sIoApimachineryPkgApisMetaV1WatchEvent.md new file mode 100644 index 00000000..a82c40bb --- /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** | | [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/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/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/V1ACPI.md b/docs/V1ACPI.md new file mode 100644 index 00000000..e4aebf3d --- /dev/null +++ b/docs/V1ACPI.md @@ -0,0 +1,11 @@ +# V1ACPI + +## 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/docs/V1APIGroup.md b/docs/V1APIGroup.md deleted file mode 100644 index bd353f2f..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/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] -**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. | -**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/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..3d07e2a3 --- /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 | [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 new file mode 100644 index 00000000..23caeedc --- /dev/null +++ b/docs/V1AddVolumeOptions.md @@ -0,0 +1,13 @@ +# V1AddVolumeOptions + +## Properties +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. | [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/V1Affinity.md b/docs/V1Affinity.md deleted file mode 100644 index 93ab85f0..00000000 --- a/docs/V1Affinity.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1Affinity - -## 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] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1ArchConfiguration.md b/docs/V1ArchConfiguration.md new file mode 100644 index 00000000..39636210 --- /dev/null +++ b/docs/V1ArchConfiguration.md @@ -0,0 +1,14 @@ +# V1ArchConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**amd64** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] +**arm64** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] +**default_architecture** | **str** | | [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/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/V1BIOS.md b/docs/V1BIOS.md new file mode 100644 index 00000000..4a0c3d0e --- /dev/null +++ b/docs/V1BIOS.md @@ -0,0 +1,10 @@ +# V1BIOS + +## 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/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/V1Bootloader.md b/docs/V1Bootloader.md new file mode 100644 index 00000000..b4b85848 --- /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] +**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 48b3bab0..87bd6a93 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] +**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 e069cb02..a5c8bdd5 100644 --- a/docs/V1CPU.md +++ b/docs/V1CPU.md @@ -4,7 +4,15 @@ 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] +**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] +**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/V1CPUFeature.md b/docs/V1CPUFeature.md new file mode 100644 index 00000000..c74d68d0 --- /dev/null +++ b/docs/V1CPUFeature.md @@ -0,0 +1,11 @@ +# V1CPUFeature + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/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/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/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..247acae1 --- /dev/null +++ b/docs/V1ChangedBlockTrackingStatus.md @@ -0,0 +1,11 @@ +# V1ChangedBlockTrackingStatus + +## 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/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/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/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/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/V1CloudInitConfigDriveSource.md b/docs/V1CloudInitConfigDriveSource.md new file mode 100644 index 00000000..6e05ddf1 --- /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] +**network_data_base64** | **str** | NetworkDataBase64 contains config drive cloud-init networkdata as a base64 encoded string. | [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] + +[[Back to Model list]](../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 c02bfe37..85f70766 100644 --- a/docs/V1CloudInitNoCloudSource.md +++ b/docs/V1CloudInitNoCloudSource.md @@ -3,9 +3,12 @@ ## 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] +**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** | [**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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/V1ComponentConfig.md b/docs/V1ComponentConfig.md new file mode 100644 index 00000000..55842c5a --- /dev/null +++ b/docs/V1ComponentConfig.md @@ -0,0 +1,11 @@ +# V1ComponentConfig + +## Properties +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. 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/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/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/V1ConfigMapVolumeSource.md b/docs/V1ConfigMapVolumeSource.md new file mode 100644 index 00000000..1ef042fb --- /dev/null +++ b/docs/V1ConfigMapVolumeSource.md @@ -0,0 +1,12 @@ +# V1ConfigMapVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/V1ContainerDiskSource.md b/docs/V1ContainerDiskSource.md new file mode 100644 index 00000000..a50291ea --- /dev/null +++ b/docs/V1ContainerDiskSource.md @@ -0,0 +1,13 @@ +# V1ContainerDiskSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/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/V1CustomBlockSize.md b/docs/V1CustomBlockSize.md new file mode 100644 index 00000000..4d4a3bb3 --- /dev/null +++ b/docs/V1CustomBlockSize.md @@ -0,0 +1,12 @@ +# V1CustomBlockSize + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/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/V1CustomizeComponents.md b/docs/V1CustomizeComponents.md new file mode 100644 index 00000000..a3cad85a --- /dev/null +++ b/docs/V1CustomizeComponents.md @@ -0,0 +1,11 @@ +# V1CustomizeComponents + +## 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/V1CustomizeComponentsPatch.md b/docs/V1CustomizeComponentsPatch.md new file mode 100644 index 00000000..6652a8d3 --- /dev/null +++ b/docs/V1CustomizeComponentsPatch.md @@ -0,0 +1,13 @@ +# V1CustomizeComponentsPatch + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/V1DHCPOptions.md b/docs/V1DHCPOptions.md new file mode 100644 index 00000000..dad49ebb --- /dev/null +++ b/docs/V1DHCPOptions.md @@ -0,0 +1,13 @@ +# V1DHCPOptions + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/V1DHCPPrivateOptions.md b/docs/V1DHCPPrivateOptions.md new file mode 100644 index 00000000..ed270492 --- /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. | [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 new file mode 100644 index 00000000..41f3517c --- /dev/null +++ b/docs/V1DataVolumeSource.md @@ -0,0 +1,11 @@ +# V1DataVolumeSource + +## Properties +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. | [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/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 new file mode 100644 index 00000000..e9009b60 --- /dev/null +++ b/docs/V1DataVolumeTemplateSpec.md @@ -0,0 +1,14 @@ +# V1DataVolumeTemplateSpec + +## 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** | [**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/V1DeleteOptions.md b/docs/V1DeleteOptions.md deleted file mode 100644 index 4eb255b7..00000000 --- a/docs/V1DeleteOptions.md +++ /dev/null @@ -1,15 +0,0 @@ -# V1DeleteOptions - -## 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 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] -**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] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1DeprecatedInterfaceMacvtap.md b/docs/V1DeprecatedInterfaceMacvtap.md new file mode 100644 index 00000000..4eaa7198 --- /dev/null +++ b/docs/V1DeprecatedInterfaceMacvtap.md @@ -0,0 +1,9 @@ +# V1DeprecatedInterfaceMacvtap + +## 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/V1DeprecatedInterfacePasst.md b/docs/V1DeprecatedInterfacePasst.md new file mode 100644 index 00000000..165db7e1 --- /dev/null +++ b/docs/V1DeprecatedInterfacePasst.md @@ -0,0 +1,9 @@ +# V1DeprecatedInterfacePasst + +## 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/V1DeprecatedInterfaceSlirp.md b/docs/V1DeprecatedInterfaceSlirp.md new file mode 100644 index 00000000..a79ff012 --- /dev/null +++ b/docs/V1DeprecatedInterfaceSlirp.md @@ -0,0 +1,9 @@ +# V1DeprecatedInterfaceSlirp + +## 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 new file mode 100644 index 00000000..01f61254 --- /dev/null +++ b/docs/V1DeveloperConfiguration.md @@ -0,0 +1,21 @@ +# V1DeveloperConfiguration + +## 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] +**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 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] +**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/V1Devices.md b/docs/V1Devices.md index 8bb011e6..ac6bee50 100644 --- a/docs/V1Devices.md +++ b/docs/V1Devices.md @@ -3,8 +3,30 @@ ## 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] +**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 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] +**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] +**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] +**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] +**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/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/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/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/V1Disk.md b/docs/V1Disk.md index 72c52b6b..f85eee30 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -3,14 +3,20 @@ ## 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] +**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: 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] -**floppy** | [**V1FloppyTarget**](V1FloppyTarget.md) | Attach a volume as a floppy 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 | -**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. | +**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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/V1DiskTarget.md b/docs/V1DiskTarget.md index ff83d649..fb78ad64 100644 --- a/docs/V1DiskTarget.md +++ b/docs/V1DiskTarget.md @@ -3,7 +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] +**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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) 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/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/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/V1DomainSpec.md b/docs/V1DomainSpec.md index 26f66cc3..18ec51c4 100644 --- a/docs/V1DomainSpec.md +++ b/docs/V1DomainSpec.md @@ -3,13 +3,18 @@ ## 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, ... | -**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] +**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** | [**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, 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] +**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/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/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/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/V1EFI.md b/docs/V1EFI.md new file mode 100644 index 00000000..dc8b04e7 --- /dev/null +++ b/docs/V1EFI.md @@ -0,0 +1,11 @@ +# V1EFI + +## 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/docs/V1EmptyDiskSource.md b/docs/V1EmptyDiskSource.md index 8102ed31..8c2f3a6e 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** | [**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 8fdf747b..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 | [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/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/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 9b62c8fd..b5a809ec 100644 --- a/docs/V1FeatureHyperv.md +++ b/docs/V1FeatureHyperv.md @@ -3,15 +3,20 @@ ## 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] +**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** | [**V1SyNICTimer**](V1SyNICTimer.md) | SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. 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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/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 e260cee3..2f590120 100644 --- a/docs/V1Features.md +++ b/docs/V1Features.md @@ -3,9 +3,13 @@ ## 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 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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1Filesystem.md b/docs/V1Filesystem.md new file mode 100644 index 00000000..104df7db --- /dev/null +++ b/docs/V1Filesystem.md @@ -0,0 +1,11 @@ +# V1Filesystem + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/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/docs/V1Firmware.md b/docs/V1Firmware.md index a833e3c7..26b5bcea 100644 --- a/docs/V1Firmware.md +++ b/docs/V1Firmware.md @@ -3,6 +3,10 @@ ## 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] **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/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/docs/V1FloppyTarget.md b/docs/V1FloppyTarget.md deleted file mode 100644 index 04dafe27..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 | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - 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/docs/V1GPU.md b/docs/V1GPU.md new file mode 100644 index 00000000..51658bcb --- /dev/null +++ b/docs/V1GPU.md @@ -0,0 +1,15 @@ +# V1GPU + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1GenerationStatus.md b/docs/V1GenerationStatus.md new file mode 100644 index 00000000..59e0855e --- /dev/null +++ b/docs/V1GenerationStatus.md @@ -0,0 +1,15 @@ +# V1GenerationStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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 | [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 | [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/ResourceInt64Amount.md b/docs/V1GuestAgentCommandInfo.md similarity index 72% rename from docs/ResourceInt64Amount.md rename to docs/V1GuestAgentCommandInfo.md index 2e64489e..d3fdf91a 100644 --- a/docs/ResourceInt64Amount.md +++ b/docs/V1GuestAgentCommandInfo.md @@ -1,10 +1,10 @@ -# ResourceInt64Amount +# V1GuestAgentCommandInfo ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**scale** | [**ResourceScale**](ResourceScale.md) | | -**value** | **int** | | +**enabled** | **bool** | | [optional] +**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/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/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/V1HostDevice.md b/docs/V1HostDevice.md new file mode 100644 index 00000000..aba388d3 --- /dev/null +++ b/docs/V1HostDevice.md @@ -0,0 +1,14 @@ +# V1HostDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/V1HostDisk.md b/docs/V1HostDisk.md new file mode 100644 index 00000000..92240d41 --- /dev/null +++ b/docs/V1HostDisk.md @@ -0,0 +1,13 @@ +# V1HostDisk + +## Properties +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 | [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' | [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/V1HotplugVolumeSource.md b/docs/V1HotplugVolumeSource.md new file mode 100644 index 00000000..72dc6278 --- /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** | [**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/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/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/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/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/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/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/V1Input.md b/docs/V1Input.md new file mode 100644 index 00000000..b1c23b0d --- /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 | [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/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/V1InstancetypeMatcher.md b/docs/V1InstancetypeMatcher.md new file mode 100644 index 00000000..ece2503b --- /dev/null +++ b/docs/V1InstancetypeMatcher.md @@ -0,0 +1,14 @@ +# V1InstancetypeMatcher + +## 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] +**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] + +[[Back to Model list]](../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/V1Interface.md b/docs/V1Interface.md index c9b04df7..bc64c33a 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -3,12 +3,24 @@ ## 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] +**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] **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. | +**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, 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** | [**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 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/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 new file mode 100644 index 00000000..500d924e --- /dev/null +++ b/docs/V1InterfaceBindingPlugin.md @@ -0,0 +1,15 @@ +# V1InterfaceBindingPlugin + +## Properties +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] +**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] + +[[Back to Model list]](../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/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/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/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/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/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..dbd24ced --- /dev/null +++ b/docs/V1KernelBootContainer.md @@ -0,0 +1,14 @@ +# V1KernelBootContainer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] + +[[Back to Model list]](../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/V1KubeVirt.md b/docs/V1KubeVirt.md new file mode 100644 index 00000000..5f1d87d4 --- /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** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.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..24c219dd --- /dev/null +++ b/docs/V1KubeVirtCondition.md @@ -0,0 +1,13 @@ +# V1KubeVirtCondition + +## 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/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md new file mode 100644 index 00000000..f4c00059 --- /dev/null +++ b/docs/V1KubeVirtConfiguration.md @@ -0,0 +1,51 @@ +# V1KubeVirtConfiguration + +## 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] +**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] +**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] +**default_runtime_class** | **str** | | [optional] +**developer_configuration** | [**V1DeveloperConfiguration**](V1DeveloperConfiguration.md) | | [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] +**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] +**live_update_configuration** | [**V1LiveUpdateConfiguration**](V1LiveUpdateConfiguration.md) | LiveUpdateConfiguration holds defaults for live update features | [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] +**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] +**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] +**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] +**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/docs/V1KubeVirtList.md b/docs/V1KubeVirtList.md new file mode 100644 index 00000000..2cd433d0 --- /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** | [**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 new file mode 100644 index 00000000..cf20db45 --- /dev/null +++ b/docs/V1KubeVirtSelfSignConfiguration.md @@ -0,0 +1,14 @@ +# V1KubeVirtSelfSignConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/docs/V1KubeVirtSpec.md b/docs/V1KubeVirtSpec.md new file mode 100644 index 00000000..32a3d0dc --- /dev/null +++ b/docs/V1KubeVirtSpec.md @@ -0,0 +1,27 @@ +# 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] +**customize_components** | [**V1CustomizeComponents**](V1CustomizeComponents.md) | | [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] +**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] +**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] + +[[Back to Model list]](../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..114ba329 --- /dev/null +++ b/docs/V1KubeVirtStatus.md @@ -0,0 +1,25 @@ +# V1KubeVirtStatus + +## Properties +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] +**observed_generation** | **int** | | [optional] +**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] +**synchronization_addresses** | **list[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/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/V1LaunchSecurity.md b/docs/V1LaunchSecurity.md new file mode 100644 index 00000000..cd192ada --- /dev/null +++ b/docs/V1LaunchSecurity.md @@ -0,0 +1,12 @@ +# V1LaunchSecurity + +## Properties +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/V1ListMeta.md b/docs/V1ListMeta.md deleted file mode 100644 index 10bd3a52..00000000 --- a/docs/V1ListMeta.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1ListMeta - -## 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] -**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] - -[[Back to Model list]](../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..5e778132 --- /dev/null +++ b/docs/V1LiveUpdateConfiguration.md @@ -0,0 +1,12 @@ +# V1LiveUpdateConfiguration + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1LocalObjectReference.md b/docs/V1LocalObjectReference.md deleted file mode 100644 index 0a5910af..00000000 --- a/docs/V1LocalObjectReference.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1LocalObjectReference - -## 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] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1LogVerbosity.md b/docs/V1LogVerbosity.md new file mode 100644 index 00000000..c5b101d1 --- /dev/null +++ b/docs/V1LogVerbosity.md @@ -0,0 +1,16 @@ +# 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] +**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/docs/V1LunTarget.md b/docs/V1LunTarget.md index cdcbeafd..64ca99e6 100644 --- a/docs/V1LunTarget.md +++ b/docs/V1LunTarget.md @@ -3,8 +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] +**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/docs/V1Machine.md b/docs/V1Machine.md index 85576308..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. | +**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/V1MediatedDevicesConfiguration.md b/docs/V1MediatedDevicesConfiguration.md new file mode 100644 index 00000000..1fe42afe --- /dev/null +++ b/docs/V1MediatedDevicesConfiguration.md @@ -0,0 +1,13 @@ +# V1MediatedDevicesConfiguration + +## 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] + +[[Back to Model list]](../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 new file mode 100644 index 00000000..da66c080 --- /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** | | [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/V1Memory.md b/docs/V1Memory.md index b5ef1946..bbdcb46e 100644 --- a/docs/V1Memory.md +++ b/docs/V1Memory.md @@ -3,7 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**hugepages** | [**V1Hugepages**](V1Hugepages.md) | Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. +optional | [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] +**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/V1MemoryDumpVolumeSource.md b/docs/V1MemoryDumpVolumeSource.md new file mode 100644 index 00000000..3789df4c --- /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 | [default to ''] +**hotpluggable** | **bool** | Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. | [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/V1MemoryStatus.md b/docs/V1MemoryStatus.md new file mode 100644 index 00000000..99c9687b --- /dev/null +++ b/docs/V1MemoryStatus.md @@ -0,0 +1,13 @@ +# 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] +**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/V1MigrateOptions.md b/docs/V1MigrateOptions.md new file mode 100644 index 00000000..5c3f4a20 --- /dev/null +++ b/docs/V1MigrateOptions.md @@ -0,0 +1,13 @@ +# V1MigrateOptions + +## 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] + +[[Back to Model list]](../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..386d48db --- /dev/null +++ b/docs/V1MigrationConfiguration.md @@ -0,0 +1,23 @@ +# V1MigrationConfiguration + +## Properties +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 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] +**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] +**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/V1MultusNetwork.md b/docs/V1MultusNetwork.md new file mode 100644 index 00000000..fd6119b1 --- /dev/null +++ b/docs/V1MultusNetwork.md @@ -0,0 +1,11 @@ +# V1MultusNetwork + +## Properties +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. | [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/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/docs/V1Network.md b/docs/V1Network.md index 541c1e8d..afd1dbbf 100644 --- a/docs/V1Network.md +++ b/docs/V1Network.md @@ -3,7 +3,8 @@ ## 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 | +**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 | [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/V1NetworkConfiguration.md b/docs/V1NetworkConfiguration.md new file mode 100644 index 00000000..e1778070 --- /dev/null +++ b/docs/V1NetworkConfiguration.md @@ -0,0 +1,13 @@ +# V1NetworkConfiguration + +## 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** | 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/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/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/V1NodeMediatedDeviceTypesConfig.md b/docs/V1NodeMediatedDeviceTypesConfig.md new file mode 100644 index 00000000..6e5e8733 --- /dev/null +++ b/docs/V1NodeMediatedDeviceTypesConfig.md @@ -0,0 +1,12 @@ +# V1NodeMediatedDeviceTypesConfig + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/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/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 e030c3ac..00000000 --- a/docs/V1NodeSelectorTerm.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1NodeSelectorTerm - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**match_expressions** | [**list[V1NodeSelectorRequirement]**](V1NodeSelectorRequirement.md) | Required. A list of node selector requirements. The requirements are ANDed. | - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - 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/docs/V1ObjectMeta.md b/docs/V1ObjectMeta.md deleted file mode 100644 index 91a34a7c..00000000 --- a/docs/V1ObjectMeta.md +++ /dev/null @@ -1,25 +0,0 @@ -# V1ObjectMeta - -## 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] -**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] -**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] -**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] -**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 deleted file mode 100644 index 2fc34039..00000000 --- a/docs/V1OwnerReference.md +++ /dev/null @@ -1,15 +0,0 @@ -# V1OwnerReference - -## 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] -**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 | -**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 | - -[[Back to Model list]](../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 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/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/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/V1PciHostDevice.md b/docs/V1PciHostDevice.md new file mode 100644 index 00000000..49aaea0b --- /dev/null +++ b/docs/V1PciHostDevice.md @@ -0,0 +1,12 @@ +# V1PciHostDevice + +## Properties +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_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/V1PermittedHostDevices.md b/docs/V1PermittedHostDevices.md new file mode 100644 index 00000000..6998a99e --- /dev/null +++ b/docs/V1PermittedHostDevices.md @@ -0,0 +1,12 @@ +# V1PermittedHostDevices + +## Properties +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/V1PersistentVolumeClaimInfo.md b/docs/V1PersistentVolumeClaimInfo.md new file mode 100644 index 00000000..b444c821 --- /dev/null +++ b/docs/V1PersistentVolumeClaimInfo.md @@ -0,0 +1,16 @@ +# 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 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] +**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/V1PersistentVolumeClaimVolumeSource.md b/docs/V1PersistentVolumeClaimVolumeSource.md index f0b3f4c6..ab6f255a 100644 --- a/docs/V1PersistentVolumeClaimVolumeSource.md +++ b/docs/V1PersistentVolumeClaimVolumeSource.md @@ -3,8 +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 | -**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 ''] +**hotpluggable** | **bool** | Hotpluggable indicates whether the volume can be hotplugged and hotunplugged. | [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/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/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/V1PodAffinityTerm.md b/docs/V1PodAffinityTerm.md deleted file mode 100644 index 100df314..00000000 --- a/docs/V1PodAffinityTerm.md +++ /dev/null @@ -1,12 +0,0 @@ -# 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 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/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/docs/V1Port.md b/docs/V1Port.md index 05f6431c..81f0a5af 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] -**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] +**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. | [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/V1PreferenceMatcher.md b/docs/V1PreferenceMatcher.md new file mode 100644 index 00000000..b329ce2a --- /dev/null +++ b/docs/V1PreferenceMatcher.md @@ -0,0 +1,14 @@ +# V1PreferenceMatcher + +## 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] +**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] + +[[Back to Model list]](../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..ffa6a100 --- /dev/null +++ b/docs/V1Probe.md @@ -0,0 +1,18 @@ +# V1Probe + +## 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] +**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] +**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. 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/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/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/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/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/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/docs/V1RegistryDiskSource.md b/docs/V1RegistryDiskSource.md deleted file mode 100644 index 99b23ae3..00000000 --- a/docs/V1RegistryDiskSource.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1RegistryDiskSource - -## 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] - -[[Back to Model list]](../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/V1RemoveVolumeOptions.md b/docs/V1RemoveVolumeOptions.md new file mode 100644 index 00000000..20214019 --- /dev/null +++ b/docs/V1RemoveVolumeOptions.md @@ -0,0 +1,11 @@ +# V1RemoveVolumeOptions + +## 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 | [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/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/docs/V1ResourceRequirements.md b/docs/V1ResourceRequirements.md index 1ef3f4bd..75655ecd 100644 --- a/docs/V1ResourceRequirements.md +++ b/docs/V1ResourceRequirements.md @@ -3,8 +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] -**requests** | [**dict(str, ResourceQuantity)**](ResourceQuantity.md) | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". +optional | [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, 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/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/V1RestartOptions.md b/docs/V1RestartOptions.md new file mode 100644 index 00000000..c19ff285 --- /dev/null +++ b/docs/V1RestartOptions.md @@ -0,0 +1,13 @@ +# 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/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 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/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/V1SEV.md b/docs/V1SEV.md new file mode 100644 index 00000000..578d88cd --- /dev/null +++ b/docs/V1SEV.md @@ -0,0 +1,13 @@ +# V1SEV + +## 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/V1APIGroupList.md b/docs/V1SEVPlatformInfo.md similarity index 70% rename from docs/V1APIGroupList.md rename to docs/V1SEVPlatformInfo.md index ab2865cd..3c480fb6 100644 --- a/docs/V1APIGroupList.md +++ b/docs/V1SEVPlatformInfo.md @@ -1,11 +1,12 @@ -# V1APIGroupList +# 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/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] +**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/InfDec.md b/docs/V1SEVPolicy.md similarity index 73% rename from docs/InfDec.md rename to docs/V1SEVPolicy.md index 6eded2d5..aa0c7d97 100644 --- a/docs/InfDec.md +++ b/docs/V1SEVPolicy.md @@ -1,10 +1,9 @@ -# InfDec +# V1SEVPolicy ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**scale** | [**InfScale**](InfScale.md) | | -**unscaled** | [**BigInt**](BigInt.md) | | +**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/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/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/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/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..8b22ff22 --- /dev/null +++ b/docs/V1SSHPublicKeyAccessCredentialPropagationMethod.md @@ -0,0 +1,12 @@ +# 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] +**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/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/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/V1SecretVolumeSource.md b/docs/V1SecretVolumeSource.md new file mode 100644 index 00000000..080ea079 --- /dev/null +++ b/docs/V1SecretVolumeSource.md @@ -0,0 +1,12 @@ +# V1SecretVolumeSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/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/V1SoundDevice.md b/docs/V1SoundDevice.md new file mode 100644 index 00000000..bbe4c79e --- /dev/null +++ b/docs/V1SoundDevice.md @@ -0,0 +1,11 @@ +# 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] +**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/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 new file mode 100644 index 00000000..29a701df --- /dev/null +++ b/docs/V1StopOptions.md @@ -0,0 +1,13 @@ +# 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] +**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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + 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/V1SupportContainerResources.md b/docs/V1SupportContainerResources.md new file mode 100644 index 00000000..579ff2fe --- /dev/null +++ b/docs/V1SupportContainerResources.md @@ -0,0 +1,11 @@ +# V1SupportContainerResources + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/docs/V1SyNICTimer.md b/docs/V1SyNICTimer.md new file mode 100644 index 00000000..155cb3a8 --- /dev/null +++ b/docs/V1SyNICTimer.md @@ -0,0 +1,11 @@ +# V1SyNICTimer + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**direct** | [**V1FeatureState**](V1FeatureState.md) | | [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/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/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/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/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/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/docs/V1TPMDevice.md b/docs/V1TPMDevice.md new file mode 100644 index 00000000..f5c1d9b9 --- /dev/null +++ b/docs/V1TPMDevice.md @@ -0,0 +1,11 @@ +# V1TPMDevice + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/docs/V1TokenBucketRateLimiter.md b/docs/V1TokenBucketRateLimiter.md new file mode 100644 index 00000000..b4d91475 --- /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 | [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/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/V1USBHostDevice.md b/docs/V1USBHostDevice.md new file mode 100644 index 00000000..f507f34c --- /dev/null +++ b/docs/V1USBHostDevice.md @@ -0,0 +1,12 @@ +# V1USBHostDevice + +## 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] + +[[Back to Model list]](../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/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/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/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/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/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/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/docs/V1VirtualMachine.md b/docs/V1VirtualMachine.md index 3186e14b..41e5304e 100644 --- a/docs/V1VirtualMachine.md +++ b/docs/V1VirtualMachine.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] -**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] +**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** | [**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/V1VirtualMachineCondition.md b/docs/V1VirtualMachineCondition.md index d7b0d8ea..70657a4b 100644 --- a/docs/V1VirtualMachineCondition.md +++ b/docs/V1VirtualMachineCondition.md @@ -3,12 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_probe_time** | **str** | | [optional] -**last_transition_time** | **str** | | [optional] **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/V1VirtualMachineInstance.md b/docs/V1VirtualMachineInstance.md index ec72fdae..eef565e9 100644 --- a/docs/V1VirtualMachineInstance.md +++ b/docs/V1VirtualMachineInstance.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] -**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] +**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** | [**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/V1VirtualMachineInstanceBackupStatus.md b/docs/V1VirtualMachineInstanceBackupStatus.md new file mode 100644 index 00000000..f1ea1e47 --- /dev/null +++ b/docs/V1VirtualMachineInstanceBackupStatus.md @@ -0,0 +1,17 @@ +# 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] +**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] + +[[Back to Model list]](../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 a69c27fd..25709d57 100644 --- a/docs/V1VirtualMachineInstanceCondition.md +++ b/docs/V1VirtualMachineInstanceCondition.md @@ -3,12 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_probe_time** | **str** | | [optional] -**last_transition_time** | **str** | | [optional] **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 new file mode 100644 index 00000000..ed2183be --- /dev/null +++ b/docs/V1VirtualMachineInstanceFileSystem.md @@ -0,0 +1,15 @@ +# V1VirtualMachineInstanceFileSystem + +## 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 ''] +**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/V1VirtualMachineInstanceFileSystemDisk.md b/docs/V1VirtualMachineInstanceFileSystemDisk.md new file mode 100644 index 00000000..46844c68 --- /dev/null +++ b/docs/V1VirtualMachineInstanceFileSystemDisk.md @@ -0,0 +1,11 @@ +# V1VirtualMachineInstanceFileSystemDisk + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**bus_type** | **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/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/V1VirtualMachineInstanceFileSystemList.md b/docs/V1VirtualMachineInstanceFileSystemList.md new file mode 100644 index 00000000..2f979be1 --- /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** | [**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/V1VirtualMachineInstanceGuestAgentInfo.md b/docs/V1VirtualMachineInstanceGuestAgentInfo.md new file mode 100644 index 00000000..c443c525 --- /dev/null +++ b/docs/V1VirtualMachineInstanceGuestAgentInfo.md @@ -0,0 +1,19 @@ +# 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_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] +**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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/V1VirtualMachineInstanceGuestOSUser.md b/docs/V1VirtualMachineInstanceGuestOSUser.md new file mode 100644 index 00000000..e5b6a503 --- /dev/null +++ b/docs/V1VirtualMachineInstanceGuestOSUser.md @@ -0,0 +1,12 @@ +# V1VirtualMachineInstanceGuestOSUser + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**domain** | **str** | | [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/docs/V1VirtualMachineInstanceGuestOSUserList.md b/docs/V1VirtualMachineInstanceGuestOSUserList.md new file mode 100644 index 00000000..c0f551c6 --- /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** | [**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 39c32a08..cef50191 100644 --- a/docs/V1VirtualMachineInstanceList.md +++ b/docs/V1VirtualMachineInstanceList.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] **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] +**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/V1VirtualMachineInstanceMigration.md b/docs/V1VirtualMachineInstanceMigration.md new file mode 100644 index 00000000..9fd0eeee --- /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/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** | [**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/V1VirtualMachineInstanceMigrationCondition.md b/docs/V1VirtualMachineInstanceMigrationCondition.md new file mode 100644 index 00000000..52c234d0 --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationCondition.md @@ -0,0 +1,13 @@ +# V1VirtualMachineInstanceMigrationCondition + +## 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/V1VirtualMachineInstanceMigrationList.md b/docs/V1VirtualMachineInstanceMigrationList.md new file mode 100644 index 00000000..af2db5b4 --- /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/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** | [**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/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/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..7d3ab535 --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationSourceState.md @@ -0,0 +1,19 @@ +# 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] +**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/V1VirtualMachineInstanceMigrationSpec.md b/docs/V1VirtualMachineInstanceMigrationSpec.md new file mode 100644 index 00000000..38949e0e --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationSpec.md @@ -0,0 +1,14 @@ +# V1VirtualMachineInstanceMigrationSpec + +## 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] +**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] + +[[Back to Model list]](../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 new file mode 100644 index 00000000..ac7d8ba6 --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -0,0 +1,37 @@ +# V1VirtualMachineInstanceMigrationState + +## 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** | [**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_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] +**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] +**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] +**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/V1VirtualMachineInstanceMigrationStatus.md b/docs/V1VirtualMachineInstanceMigrationStatus.md new file mode 100644 index 00000000..538f1f9c --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationStatus.md @@ -0,0 +1,14 @@ +# V1VirtualMachineInstanceMigrationStatus + +## Properties +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] +**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/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..74a8cf0e --- /dev/null +++ b/docs/V1VirtualMachineInstanceMigrationTargetState.md @@ -0,0 +1,25 @@ +# 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] +**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/V1VirtualMachineInstanceNetworkInterface.md b/docs/V1VirtualMachineInstanceNetworkInterface.md index b65190ec..1ff9d3b2 100644 --- a/docs/V1VirtualMachineInstanceNetworkInterface.md +++ b/docs/V1VirtualMachineInstanceNetworkInterface.md @@ -3,8 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ip_address** | **str** | IP address of a Virtual Machine interface | [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] +**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] +**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/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/V1VirtualMachineInstancePreset.md b/docs/V1VirtualMachineInstancePreset.md index 9df081f7..e7b6f50f 100644 --- a/docs/V1VirtualMachineInstancePreset.md +++ b/docs/V1VirtualMachineInstancePreset.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] -**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] +**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** | [**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 75533746..42d2642e 100644 --- a/docs/V1VirtualMachineInstancePresetList.md +++ b/docs/V1VirtualMachineInstancePresetList.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] **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] +**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/V1VirtualMachineInstancePresetSpec.md b/docs/V1VirtualMachineInstancePresetSpec.md index 43169bb1..4f25ef47 100644 --- a/docs/V1VirtualMachineInstancePresetSpec.md +++ b/docs/V1VirtualMachineInstancePresetSpec.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**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. | +**domain** | [**V1DomainSpec**](V1DomainSpec.md) | Domain is the same object type as contained in VirtualMachineInstanceSpec | [optional] +**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/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/docs/V1VirtualMachineInstanceReplicaSet.md b/docs/V1VirtualMachineInstanceReplicaSet.md index 9dadd3d2..2b96ac59 100644 --- a/docs/V1VirtualMachineInstanceReplicaSet.md +++ b/docs/V1VirtualMachineInstanceReplicaSet.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] -**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] +**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** | [**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/V1VirtualMachineInstanceReplicaSetCondition.md b/docs/V1VirtualMachineInstanceReplicaSetCondition.md index 7fdf644f..fba27172 100644 --- a/docs/V1VirtualMachineInstanceReplicaSetCondition.md +++ b/docs/V1VirtualMachineInstanceReplicaSetCondition.md @@ -3,12 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**last_probe_time** | **str** | | [optional] -**last_transition_time** | **str** | | [optional] **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/V1VirtualMachineInstanceReplicaSetList.md b/docs/V1VirtualMachineInstanceReplicaSetList.md index 0d1bcfaa..0209b6d4 100644 --- a/docs/V1VirtualMachineInstanceReplicaSetList.md +++ b/docs/V1VirtualMachineInstanceReplicaSetList.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] **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) | | [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** | [**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 2fcb5292..47cd2f22 100644 --- a/docs/V1VirtualMachineInstanceReplicaSetSpec.md +++ b/docs/V1VirtualMachineInstanceReplicaSetSpec.md @@ -3,9 +3,9 @@ ## 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] -**selector** | [**V1LabelSelector**](V1LabelSelector.md) | Label selector for pods. Existing ReplicaSets whose pods are selected by this will be the ones affected by this deployment. | +**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** | [**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/V1VirtualMachineInstanceReplicaSetStatus.md b/docs/V1VirtualMachineInstanceReplicaSetStatus.md index 6dab1459..9fada54d 100644 --- a/docs/V1VirtualMachineInstanceReplicaSetStatus.md +++ b/docs/V1VirtualMachineInstanceReplicaSetStatus.md @@ -4,8 +4,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **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] +**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] +**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 84b8270d..d97c3a81 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -3,13 +3,27 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**affinity** | [**V1Affinity**](V1Affinity.md) | If affinity is specifies, obey all the affinity rules | [optional] +**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'. 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. | -**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] +**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] -**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] +**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] **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/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index d9b864d2..fff64b2e 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -3,10 +3,33 @@ ## 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] +**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] +**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] **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] +**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] **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 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] [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] +**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/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 33b81a77..e216a69b 100644 --- a/docs/V1VirtualMachineList.md +++ b/docs/V1VirtualMachineList.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] -**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) | | +**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** | [**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/V1VirtualMachineMemoryDumpRequest.md b/docs/V1VirtualMachineMemoryDumpRequest.md new file mode 100644 index 00000000..9fe90a67 --- /dev/null +++ b/docs/V1VirtualMachineMemoryDumpRequest.md @@ -0,0 +1,16 @@ +# V1VirtualMachineMemoryDumpRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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 | [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] + +[[Back to Model list]](../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 new file mode 100644 index 00000000..c6d0347b --- /dev/null +++ b/docs/V1VirtualMachineOptions.md @@ -0,0 +1,11 @@ +# 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] +**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/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index 1ce4ac2a..835c03f5 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -3,8 +3,13 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not | +**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 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] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/V1VirtualMachineStateChangeRequest.md b/docs/V1VirtualMachineStateChangeRequest.md new file mode 100644 index 00000000..b947981e --- /dev/null +++ b/docs/V1VirtualMachineStateChangeRequest.md @@ -0,0 +1,12 @@ +# V1VirtualMachineStateChangeRequest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] + +[[Back to Model list]](../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..2cec03af 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -3,9 +3,24 @@ ## 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] +**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] +**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] +**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/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/V1Volume.md b/docs/V1Volume.md index eb72e744..7d4a11a8 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -3,12 +3,23 @@ ## 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 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 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] +**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] +**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] +**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 | [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] +**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/docs/V1VolumeMigrationState.md b/docs/V1VolumeMigrationState.md new file mode 100644 index 00000000..243ea719 --- /dev/null +++ b/docs/V1VolumeMigrationState.md @@ -0,0 +1,10 @@ +# V1VolumeMigrationState + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/V1VolumeSnapshotStatus.md b/docs/V1VolumeSnapshotStatus.md new file mode 100644 index 00000000..f0bb35fd --- /dev/null +++ b/docs/V1VolumeSnapshotStatus.md @@ -0,0 +1,12 @@ +# V1VolumeSnapshotStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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 new file mode 100644 index 00000000..86b960a6 --- /dev/null +++ b/docs/V1VolumeStatus.md @@ -0,0 +1,19 @@ +# V1VolumeStatus + +## 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] +**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 | [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/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/docs/V1Watchdog.md b/docs/V1Watchdog.md index 4efce81b..2549ada6 100644 --- a/docs/V1Watchdog.md +++ b/docs/V1Watchdog.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**i6300esb** | [**V1I6300ESBWatchdog**](V1I6300ESBWatchdog.md) | i6300esb watchdog device. +optional | [optional] -**name** | **str** | Name of the watchdog. | +**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 ''] [[Back to Model list]](../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/V1alpha1BackupOptions.md b/docs/V1alpha1BackupOptions.md new file mode 100644 index 00000000..2bafb7c7 --- /dev/null +++ b/docs/V1alpha1BackupOptions.md @@ -0,0 +1,21 @@ +# V1alpha1BackupOptions + +## 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] +**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 new file mode 100644 index 00000000..636e9cf1 --- /dev/null +++ b/docs/V1alpha1BackupVolumeInfo.md @@ -0,0 +1,13 @@ +# V1alpha1BackupVolumeInfo + +## 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/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/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..dabd3aeb --- /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] +**allow_workload_disruption** | **bool** | | [optional] +**bandwidth_per_migration** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | | [optional] +**completion_timeout_per_gi_b** | **int** | | [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..a83a7a0f --- /dev/null +++ b/docs/V1alpha1Selectors.md @@ -0,0 +1,11 @@ +# V1alpha1Selectors + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/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..53531759 --- /dev/null +++ b/docs/V1alpha1VirtualMachineBackupSpec.md @@ -0,0 +1,16 @@ +# 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 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 new file mode 100644 index 00000000..c1452118 --- /dev/null +++ b/docs/V1alpha1VirtualMachineBackupStatus.md @@ -0,0 +1,14 @@ +# V1alpha1VirtualMachineBackupStatus + +## 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] +**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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1CPUInstancetype.md b/docs/V1beta1CPUInstancetype.md new file mode 100644 index 00000000..b0059732 --- /dev/null +++ b/docs/V1beta1CPUInstancetype.md @@ -0,0 +1,16 @@ +# V1beta1CPUInstancetype + +## 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 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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.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/V1beta1CPUPreferences.md b/docs/V1beta1CPUPreferences.md new file mode 100644 index 00000000..f98b96e3 --- /dev/null +++ b/docs/V1beta1CPUPreferences.md @@ -0,0 +1,12 @@ +# V1beta1CPUPreferences + +## 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] +**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/V1beta1ClockPreferences.md b/docs/V1beta1ClockPreferences.md new file mode 100644 index 00000000..effc8e42 --- /dev/null +++ b/docs/V1beta1ClockPreferences.md @@ -0,0 +1,11 @@ +# V1beta1ClockPreferences + +## 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/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/V1beta1DataVolumeBlankImage.md b/docs/V1beta1DataVolumeBlankImage.md new file mode 100644 index 00000000..67d69d90 --- /dev/null +++ b/docs/V1beta1DataVolumeBlankImage.md @@ -0,0 +1,9 @@ +# V1beta1DataVolumeBlankImage + +## 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/V1beta1DataVolumeCheckpoint.md b/docs/V1beta1DataVolumeCheckpoint.md new file mode 100644 index 00000000..73a584c0 --- /dev/null +++ b/docs/V1beta1DataVolumeCheckpoint.md @@ -0,0 +1,11 @@ +# V1beta1DataVolumeCheckpoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/V1beta1DataVolumeSource.md b/docs/V1beta1DataVolumeSource.md new file mode 100644 index 00000000..1d1a3dce --- /dev/null +++ b/docs/V1beta1DataVolumeSource.md @@ -0,0 +1,19 @@ +# V1beta1DataVolumeSource + +## Properties +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] +**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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + 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/V1beta1DataVolumeSourceHTTP.md b/docs/V1beta1DataVolumeSourceHTTP.md new file mode 100644 index 00000000..13b75a94 --- /dev/null +++ b/docs/V1beta1DataVolumeSourceHTTP.md @@ -0,0 +1,14 @@ +# V1beta1DataVolumeSourceHTTP + +## 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] +**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 | [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 new file mode 100644 index 00000000..e3f32b0d --- /dev/null +++ b/docs/V1beta1DataVolumeSourceImageIO.md @@ -0,0 +1,14 @@ +# V1beta1DataVolumeSourceImageIO + +## 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 | [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 ''] + +[[Back to Model list]](../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 new file mode 100644 index 00000000..48594e7d --- /dev/null +++ b/docs/V1beta1DataVolumeSourcePVC.md @@ -0,0 +1,11 @@ +# V1beta1DataVolumeSourcePVC + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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 new file mode 100644 index 00000000..d6bbafd4 --- /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 | [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/V1beta1DataVolumeSourceRegistry.md b/docs/V1beta1DataVolumeSourceRegistry.md new file mode 100644 index 00000000..536a244c --- /dev/null +++ b/docs/V1beta1DataVolumeSourceRegistry.md @@ -0,0 +1,15 @@ +# V1beta1DataVolumeSourceRegistry + +## Properties +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] + +[[Back to Model list]](../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 new file mode 100644 index 00000000..4ae4f7d3 --- /dev/null +++ b/docs/V1beta1DataVolumeSourceS3.md @@ -0,0 +1,12 @@ +# V1beta1DataVolumeSourceS3 + +## 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 | [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/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/V1beta1DataVolumeSourceUpload.md b/docs/V1beta1DataVolumeSourceUpload.md new file mode 100644 index 00000000..0e72fbf8 --- /dev/null +++ b/docs/V1beta1DataVolumeSourceUpload.md @@ -0,0 +1,9 @@ +# V1beta1DataVolumeSourceUpload + +## 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/V1beta1DataVolumeSourceVDDK.md b/docs/V1beta1DataVolumeSourceVDDK.md new file mode 100644 index 00000000..32889763 --- /dev/null +++ b/docs/V1beta1DataVolumeSourceVDDK.md @@ -0,0 +1,16 @@ +# V1beta1DataVolumeSourceVDDK + +## Properties +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] +**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/docs/V1beta1DataVolumeSpec.md b/docs/V1beta1DataVolumeSpec.md new file mode 100644 index 00000000..8f14e908 --- /dev/null +++ b/docs/V1beta1DataVolumeSpec.md @@ -0,0 +1,18 @@ +# V1beta1DataVolumeSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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** | [**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/V1beta1DevicePreferences.md b/docs/V1beta1DevicePreferences.md new file mode 100644 index 00000000..59d5fb77 --- /dev/null +++ b/docs/V1beta1DevicePreferences.md @@ -0,0 +1,35 @@ +# V1beta1DevicePreferences + +## Properties +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] +**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 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] +**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] +**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] +**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/docs/V1beta1Error.md b/docs/V1beta1Error.md new file mode 100644 index 00000000..3a8d8e27 --- /dev/null +++ b/docs/V1beta1Error.md @@ -0,0 +1,11 @@ +# V1beta1Error + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**message** | **str** | | [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/V1beta1FeaturePreferences.md b/docs/V1beta1FeaturePreferences.md new file mode 100644 index 00000000..524d4f1c --- /dev/null +++ b/docs/V1beta1FeaturePreferences.md @@ -0,0 +1,15 @@ +# V1beta1FeaturePreferences + +## 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/V1beta1FirmwarePreferences.md b/docs/V1beta1FirmwarePreferences.md new file mode 100644 index 00000000..f867904b --- /dev/null +++ b/docs/V1beta1FirmwarePreferences.md @@ -0,0 +1,14 @@ +# V1beta1FirmwarePreferences + +## 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 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/docs/V1beta1MachinePreferences.md b/docs/V1beta1MachinePreferences.md new file mode 100644 index 00000000..8b037e06 --- /dev/null +++ b/docs/V1beta1MachinePreferences.md @@ -0,0 +1,10 @@ +# V1beta1MachinePreferences + +## 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/V1beta1MemoryInstancetype.md b/docs/V1beta1MemoryInstancetype.md new file mode 100644 index 00000000..8b366db6 --- /dev/null +++ b/docs/V1beta1MemoryInstancetype.md @@ -0,0 +1,13 @@ +# V1beta1MemoryInstancetype + +## Properties +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/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/V1beta1PersistentVolumeClaim.md b/docs/V1beta1PersistentVolumeClaim.md new file mode 100644 index 00000000..f80f4a38 --- /dev/null +++ b/docs/V1beta1PersistentVolumeClaim.md @@ -0,0 +1,11 @@ +# V1beta1PersistentVolumeClaim + +## 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/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/docs/V1beta1PreferenceRequirements.md b/docs/V1beta1PreferenceRequirements.md new file mode 100644 index 00000000..c4ca50bc --- /dev/null +++ b/docs/V1beta1PreferenceRequirements.md @@ -0,0 +1,12 @@ +# V1beta1PreferenceRequirements + +## 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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1SnapshotVolumesLists.md b/docs/V1beta1SnapshotVolumesLists.md new file mode 100644 index 00000000..6e6a540b --- /dev/null +++ b/docs/V1beta1SnapshotVolumesLists.md @@ -0,0 +1,11 @@ +# V1beta1SnapshotVolumesLists + +## 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/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/V1beta1SourceSpec.md b/docs/V1beta1SourceSpec.md new file mode 100644 index 00000000..496b5020 --- /dev/null +++ b/docs/V1beta1SourceSpec.md @@ -0,0 +1,10 @@ +# V1beta1SourceSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/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/docs/V1beta1StorageSpec.md b/docs/V1beta1StorageSpec.md new file mode 100644 index 00000000..bdd4d7a5 --- /dev/null +++ b/docs/V1beta1StorageSpec.md @@ -0,0 +1,17 @@ +# V1beta1StorageSpec + +## 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) * 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** | [**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. - `\"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/V1beta1VirtualMachine.md b/docs/V1beta1VirtualMachine.md new file mode 100644 index 00000000..f8a76bca --- /dev/null +++ b/docs/V1beta1VirtualMachine.md @@ -0,0 +1,12 @@ +# V1beta1VirtualMachine + +## 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/docs/V1beta1VirtualMachineClone.md b/docs/V1beta1VirtualMachineClone.md new file mode 100644 index 00000000..5c82a7f0 --- /dev/null +++ b/docs/V1beta1VirtualMachineClone.md @@ -0,0 +1,14 @@ +# V1beta1VirtualMachineClone + +## 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** | [**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/V1beta1VirtualMachineCloneList.md b/docs/V1beta1VirtualMachineCloneList.md new file mode 100644 index 00000000..b722e6f2 --- /dev/null +++ b/docs/V1beta1VirtualMachineCloneList.md @@ -0,0 +1,13 @@ +# 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[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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineCloneSpec.md b/docs/V1beta1VirtualMachineCloneSpec.md new file mode 100644 index 00000000..0d0ee21a --- /dev/null +++ b/docs/V1beta1VirtualMachineCloneSpec.md @@ -0,0 +1,18 @@ +# V1beta1VirtualMachineCloneSpec + +## 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] +**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] +**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/docs/V1beta1VirtualMachineCloneStatus.md b/docs/V1beta1VirtualMachineCloneStatus.md new file mode 100644 index 00000000..63dbbd2c --- /dev/null +++ b/docs/V1beta1VirtualMachineCloneStatus.md @@ -0,0 +1,15 @@ +# V1beta1VirtualMachineCloneStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1beta1Condition]**](V1beta1Condition.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/docs/V1beta1VirtualMachineCloneTemplateFilters.md b/docs/V1beta1VirtualMachineCloneTemplateFilters.md new file mode 100644 index 00000000..5141cab8 --- /dev/null +++ b/docs/V1beta1VirtualMachineCloneTemplateFilters.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachineCloneTemplateFilters + +## 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/docs/V1beta1VirtualMachineClusterInstancetype.md b/docs/V1beta1VirtualMachineClusterInstancetype.md new file mode 100644 index 00000000..3778326b --- /dev/null +++ b/docs/V1beta1VirtualMachineClusterInstancetype.md @@ -0,0 +1,13 @@ +# V1beta1VirtualMachineClusterInstancetype + +## 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** | [**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/V1beta1VirtualMachineClusterInstancetypeList.md b/docs/V1beta1VirtualMachineClusterInstancetypeList.md new file mode 100644 index 00000000..7a5c158a --- /dev/null +++ b/docs/V1beta1VirtualMachineClusterInstancetypeList.md @@ -0,0 +1,13 @@ +# 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[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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineClusterPreference.md b/docs/V1beta1VirtualMachineClusterPreference.md new file mode 100644 index 00000000..9e7b642e --- /dev/null +++ b/docs/V1beta1VirtualMachineClusterPreference.md @@ -0,0 +1,13 @@ +# V1beta1VirtualMachineClusterPreference + +## 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** | [**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/V1beta1VirtualMachineClusterPreferenceList.md b/docs/V1beta1VirtualMachineClusterPreferenceList.md new file mode 100644 index 00000000..7d46525c --- /dev/null +++ b/docs/V1beta1VirtualMachineClusterPreferenceList.md @@ -0,0 +1,13 @@ +# 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[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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineExport.md b/docs/V1beta1VirtualMachineExport.md new file mode 100644 index 00000000..43d4c529 --- /dev/null +++ b/docs/V1beta1VirtualMachineExport.md @@ -0,0 +1,14 @@ +# V1beta1VirtualMachineExport + +## 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** | [**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/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 new file mode 100644 index 00000000..96b01438 --- /dev/null +++ b/docs/V1beta1VirtualMachineExportLink.md @@ -0,0 +1,13 @@ +# V1beta1VirtualMachineExportLink + +## 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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineExportLinks.md b/docs/V1beta1VirtualMachineExportLinks.md new file mode 100644 index 00000000..9ed9956e --- /dev/null +++ b/docs/V1beta1VirtualMachineExportLinks.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachineExportLinks + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/V1beta1VirtualMachineExportList.md b/docs/V1beta1VirtualMachineExportList.md new file mode 100644 index 00000000..df151d15 --- /dev/null +++ b/docs/V1beta1VirtualMachineExportList.md @@ -0,0 +1,13 @@ +# 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[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) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineExportManifest.md b/docs/V1beta1VirtualMachineExportManifest.md new file mode 100644 index 00000000..82dbd3b9 --- /dev/null +++ b/docs/V1beta1VirtualMachineExportManifest.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachineExportManifest + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/V1beta1VirtualMachineExportSpec.md b/docs/V1beta1VirtualMachineExportSpec.md new file mode 100644 index 00000000..dcc8699a --- /dev/null +++ b/docs/V1beta1VirtualMachineExportSpec.md @@ -0,0 +1,12 @@ +# V1beta1VirtualMachineExportSpec + +## Properties +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/V1beta1VirtualMachineExportStatus.md b/docs/V1beta1VirtualMachineExportStatus.md new file mode 100644 index 00000000..7f76aa91 --- /dev/null +++ b/docs/V1beta1VirtualMachineExportStatus.md @@ -0,0 +1,16 @@ +# V1beta1VirtualMachineExportStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] +**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/docs/V1beta1VirtualMachineExportVolume.md b/docs/V1beta1VirtualMachineExportVolume.md new file mode 100644 index 00000000..e5ddd796 --- /dev/null +++ b/docs/V1beta1VirtualMachineExportVolume.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachineExportVolume + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/V1beta1VirtualMachineExportVolumeFormat.md b/docs/V1beta1VirtualMachineExportVolumeFormat.md new file mode 100644 index 00000000..dfd0897b --- /dev/null +++ b/docs/V1beta1VirtualMachineExportVolumeFormat.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachineExportVolumeFormat + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/V1beta1VirtualMachineInstancetype.md b/docs/V1beta1VirtualMachineInstancetype.md new file mode 100644 index 00000000..efc8665f --- /dev/null +++ b/docs/V1beta1VirtualMachineInstancetype.md @@ -0,0 +1,13 @@ +# V1beta1VirtualMachineInstancetype + +## 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** | [**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/V1beta1VirtualMachineInstancetypeList.md b/docs/V1beta1VirtualMachineInstancetypeList.md new file mode 100644 index 00000000..73f13db3 --- /dev/null +++ b/docs/V1beta1VirtualMachineInstancetypeList.md @@ -0,0 +1,13 @@ +# 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[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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineInstancetypeSpec.md b/docs/V1beta1VirtualMachineInstancetypeSpec.md new file mode 100644 index 00000000..3f28deaf --- /dev/null +++ b/docs/V1beta1VirtualMachineInstancetypeSpec.md @@ -0,0 +1,19 @@ +# V1beta1VirtualMachineInstancetypeSpec + +## 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] +**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. | +**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/docs/V1beta1VirtualMachineOpportunisticUpdateStrategy.md b/docs/V1beta1VirtualMachineOpportunisticUpdateStrategy.md new file mode 100644 index 00000000..2ee7bc00 --- /dev/null +++ b/docs/V1beta1VirtualMachineOpportunisticUpdateStrategy.md @@ -0,0 +1,9 @@ +# V1beta1VirtualMachineOpportunisticUpdateStrategy + +## 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/V1beta1VirtualMachinePool.md b/docs/V1beta1VirtualMachinePool.md new file mode 100644 index 00000000..e8ed8905 --- /dev/null +++ b/docs/V1beta1VirtualMachinePool.md @@ -0,0 +1,14 @@ +# V1beta1VirtualMachinePool + +## 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** | [**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/V1beta1VirtualMachinePoolAutohealingStrategy.md b/docs/V1beta1VirtualMachinePoolAutohealingStrategy.md new file mode 100644 index 00000000..d5e5a725 --- /dev/null +++ b/docs/V1beta1VirtualMachinePoolAutohealingStrategy.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachinePoolAutohealingStrategy + +## 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/V1beta1VirtualMachinePoolCondition.md b/docs/V1beta1VirtualMachinePoolCondition.md new file mode 100644 index 00000000..748ec41f --- /dev/null +++ b/docs/V1beta1VirtualMachinePoolCondition.md @@ -0,0 +1,13 @@ +# V1beta1VirtualMachinePoolCondition + +## 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/V1beta1VirtualMachinePoolList.md b/docs/V1beta1VirtualMachinePoolList.md new file mode 100644 index 00000000..df4bbdbf --- /dev/null +++ b/docs/V1beta1VirtualMachinePoolList.md @@ -0,0 +1,13 @@ +# 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[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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachinePoolNameGeneration.md b/docs/V1beta1VirtualMachinePoolNameGeneration.md new file mode 100644 index 00000000..99398fc4 --- /dev/null +++ b/docs/V1beta1VirtualMachinePoolNameGeneration.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachinePoolNameGeneration + +## 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/V1beta1VirtualMachinePoolOpportunisticScaleInStrategy.md b/docs/V1beta1VirtualMachinePoolOpportunisticScaleInStrategy.md new file mode 100644 index 00000000..fe44436a --- /dev/null +++ b/docs/V1beta1VirtualMachinePoolOpportunisticScaleInStrategy.md @@ -0,0 +1,10 @@ +# V1beta1VirtualMachinePoolOpportunisticScaleInStrategy + +## 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/V1beta1VirtualMachinePoolProactiveScaleInStrategy.md b/docs/V1beta1VirtualMachinePoolProactiveScaleInStrategy.md new file mode 100644 index 00000000..06530a2e --- /dev/null +++ b/docs/V1beta1VirtualMachinePoolProactiveScaleInStrategy.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachinePoolProactiveScaleInStrategy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/V1beta1VirtualMachinePoolSelectionPolicy.md b/docs/V1beta1VirtualMachinePoolSelectionPolicy.md new file mode 100644 index 00000000..4a859d2b --- /dev/null +++ b/docs/V1beta1VirtualMachinePoolSelectionPolicy.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachinePoolSelectionPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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/V1beta1VirtualMachinePoolSelectors.md b/docs/V1beta1VirtualMachinePoolSelectors.md new file mode 100644 index 00000000..61090b1f --- /dev/null +++ b/docs/V1beta1VirtualMachinePoolSelectors.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachinePoolSelectors + +## 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/V1beta1VirtualMachinePoolSpec.md b/docs/V1beta1VirtualMachinePoolSpec.md new file mode 100644 index 00000000..f5b28a3d --- /dev/null +++ b/docs/V1beta1VirtualMachinePoolSpec.md @@ -0,0 +1,18 @@ +# V1beta1VirtualMachinePoolSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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** | [**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** | [**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** | [**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/V1beta1VirtualMachinePoolStatus.md b/docs/V1beta1VirtualMachinePoolStatus.md new file mode 100644 index 00000000..0291019d --- /dev/null +++ b/docs/V1beta1VirtualMachinePoolStatus.md @@ -0,0 +1,13 @@ +# V1beta1VirtualMachinePoolStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachinePoolUnmanagedStrategy.md b/docs/V1beta1VirtualMachinePoolUnmanagedStrategy.md new file mode 100644 index 00000000..51eb708e --- /dev/null +++ b/docs/V1beta1VirtualMachinePoolUnmanagedStrategy.md @@ -0,0 +1,9 @@ +# V1beta1VirtualMachinePoolUnmanagedStrategy + +## 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/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/V1beta1VirtualMachinePreference.md b/docs/V1beta1VirtualMachinePreference.md new file mode 100644 index 00000000..a395f264 --- /dev/null +++ b/docs/V1beta1VirtualMachinePreference.md @@ -0,0 +1,13 @@ +# V1beta1VirtualMachinePreference + +## 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** | [**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/V1beta1VirtualMachinePreferenceList.md b/docs/V1beta1VirtualMachinePreferenceList.md new file mode 100644 index 00000000..2b71fa0b --- /dev/null +++ b/docs/V1beta1VirtualMachinePreferenceList.md @@ -0,0 +1,13 @@ +# 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[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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachinePreferenceSpec.md b/docs/V1beta1VirtualMachinePreferenceSpec.md new file mode 100644 index 00000000..c6dd3a86 --- /dev/null +++ b/docs/V1beta1VirtualMachinePreferenceSpec.md @@ -0,0 +1,22 @@ +# V1beta1VirtualMachinePreferenceSpec + +## 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] +**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_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] +**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/V1beta1VirtualMachineRestore.md b/docs/V1beta1VirtualMachineRestore.md new file mode 100644 index 00000000..0a8c28c9 --- /dev/null +++ b/docs/V1beta1VirtualMachineRestore.md @@ -0,0 +1,14 @@ +# V1beta1VirtualMachineRestore + +## 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** | [**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/V1beta1VirtualMachineRestoreList.md b/docs/V1beta1VirtualMachineRestoreList.md new file mode 100644 index 00000000..cb1dc394 --- /dev/null +++ b/docs/V1beta1VirtualMachineRestoreList.md @@ -0,0 +1,13 @@ +# 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[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) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineRestoreSpec.md b/docs/V1beta1VirtualMachineRestoreSpec.md new file mode 100644 index 00000000..55244b0d --- /dev/null +++ b/docs/V1beta1VirtualMachineRestoreSpec.md @@ -0,0 +1,16 @@ +# V1beta1VirtualMachineRestoreSpec + +## 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 | +**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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineRestoreStatus.md b/docs/V1beta1VirtualMachineRestoreStatus.md new file mode 100644 index 00000000..9bbe2055 --- /dev/null +++ b/docs/V1beta1VirtualMachineRestoreStatus.md @@ -0,0 +1,14 @@ +# V1beta1VirtualMachineRestoreStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**complete** | **bool** | | [optional] +**conditions** | [**list[V1beta1Condition]**](V1beta1Condition.md) | | [optional] +**deleted_data_volumes** | **list[str]** | | [optional] +**restore_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.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/V1beta1VirtualMachineSnapshot.md b/docs/V1beta1VirtualMachineSnapshot.md new file mode 100644 index 00000000..a7d21614 --- /dev/null +++ b/docs/V1beta1VirtualMachineSnapshot.md @@ -0,0 +1,14 @@ +# V1beta1VirtualMachineSnapshot + +## 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** | [**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/V1beta1VirtualMachineSnapshotContent.md b/docs/V1beta1VirtualMachineSnapshotContent.md new file mode 100644 index 00000000..884417ac --- /dev/null +++ b/docs/V1beta1VirtualMachineSnapshotContent.md @@ -0,0 +1,14 @@ +# V1beta1VirtualMachineSnapshotContent + +## 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** | [**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/V1beta1VirtualMachineSnapshotContentList.md b/docs/V1beta1VirtualMachineSnapshotContentList.md new file mode 100644 index 00000000..9bf940b9 --- /dev/null +++ b/docs/V1beta1VirtualMachineSnapshotContentList.md @@ -0,0 +1,13 @@ +# 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[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) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineSnapshotContentSpec.md b/docs/V1beta1VirtualMachineSnapshotContentSpec.md new file mode 100644 index 00000000..501e8e73 --- /dev/null +++ b/docs/V1beta1VirtualMachineSnapshotContentSpec.md @@ -0,0 +1,12 @@ +# V1beta1VirtualMachineSnapshotContentSpec + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**source** | [**V1beta1SourceSpec**](V1beta1SourceSpec.md) | | +**virtual_machine_snapshot_name** | **str** | | [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/V1beta1VirtualMachineSnapshotContentStatus.md b/docs/V1beta1VirtualMachineSnapshotContentStatus.md new file mode 100644 index 00000000..22c5b8d6 --- /dev/null +++ b/docs/V1beta1VirtualMachineSnapshotContentStatus.md @@ -0,0 +1,13 @@ +# V1beta1VirtualMachineSnapshotContentStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] +**error** | [**V1beta1Error**](V1beta1Error.md) | | [optional] +**ready_to_use** | **bool** | | [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/V1beta1VirtualMachineSnapshotList.md b/docs/V1beta1VirtualMachineSnapshotList.md new file mode 100644 index 00000000..340f1479 --- /dev/null +++ b/docs/V1beta1VirtualMachineSnapshotList.md @@ -0,0 +1,13 @@ +# 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[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) | | + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineSnapshotSpec.md b/docs/V1beta1VirtualMachineSnapshotSpec.md new file mode 100644 index 00000000..ab4c9802 --- /dev/null +++ b/docs/V1beta1VirtualMachineSnapshotSpec.md @@ -0,0 +1,12 @@ +# V1beta1VirtualMachineSnapshotSpec + +## Properties +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/V1beta1VirtualMachineSnapshotStatus.md b/docs/V1beta1VirtualMachineSnapshotStatus.md new file mode 100644 index 00000000..e48e9deb --- /dev/null +++ b/docs/V1beta1VirtualMachineSnapshotStatus.md @@ -0,0 +1,19 @@ +# V1beta1VirtualMachineSnapshotStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**conditions** | [**list[V1beta1Condition]**](V1beta1Condition.md) | | [optional] +**creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] +**error** | [**V1beta1Error**](V1beta1Error.md) | | [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] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineTemplateSpec.md b/docs/V1beta1VirtualMachineTemplateSpec.md new file mode 100644 index 00000000..4d43a953 --- /dev/null +++ b/docs/V1beta1VirtualMachineTemplateSpec.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachineTemplateSpec + +## 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/docs/V1beta1VolumeBackup.md b/docs/V1beta1VolumeBackup.md new file mode 100644 index 00000000..e17c2db2 --- /dev/null +++ b/docs/V1beta1VolumeBackup.md @@ -0,0 +1,12 @@ +# V1beta1VolumeBackup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**persistent_volume_claim** | [**V1beta1PersistentVolumeClaim**](V1beta1PersistentVolumeClaim.md) | | +**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/V1beta1VolumePreferences.md b/docs/V1beta1VolumePreferences.md new file mode 100644 index 00000000..faed1ace --- /dev/null +++ b/docs/V1beta1VolumePreferences.md @@ -0,0 +1,10 @@ +# V1beta1VolumePreferences + +## 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/docs/V1beta1VolumeRestore.md b/docs/V1beta1VolumeRestore.md new file mode 100644 index 00000000..aee2e8a5 --- /dev/null +++ b/docs/V1beta1VolumeRestore.md @@ -0,0 +1,13 @@ +# V1beta1VolumeRestore + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**data_volume_name** | **str** | | [optional] +**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/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/docs/V1beta1VolumeSnapshotStatus.md b/docs/V1beta1VolumeSnapshotStatus.md new file mode 100644 index 00000000..a6c5e67c --- /dev/null +++ b/docs/V1beta1VolumeSnapshotStatus.md @@ -0,0 +1,13 @@ +# V1beta1VolumeSnapshotStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] +**error** | [**V1beta1Error**](V1beta1Error.md) | | [optional] +**ready_to_use** | **bool** | | [optional] +**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/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 diff --git a/git_push.sh b/git_push.sh index 54069655..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 v0.6.0-347-gfff9fda" + 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 4b7f1e2f..21ed5851 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -1,82 +1,382 @@ [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=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} +[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 -[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 -[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_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 +[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_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_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_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_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 +[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_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_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 +[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 +[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_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 +[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_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 +[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 [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 [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_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 +[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 +[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 +[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 +[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 -[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_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 +[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 +[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 +[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 +[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 +[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 +[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 +[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 +[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 +[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 +[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 +[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 +[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 -[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_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 +[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 +[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 [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 [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 @@ -89,132 +389,411 @@ [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 -[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_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_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_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 +[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 +[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 +[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 +[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 +[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 +[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 -[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_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 +[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 +[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 +[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 +[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_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 +[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 -[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_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_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 +[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_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_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_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 [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 [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_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 +[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_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 -[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_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 +[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 +[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 +[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_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_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_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 [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_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 +[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_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_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_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 +[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 -[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_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_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 +[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_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_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 +[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 +[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_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 +[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 +[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 +[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 +[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 +[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 [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 +[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 +[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_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 +[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_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 @@ -224,15 +803,78 @@ [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 +[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 +[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 +[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_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 +[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 +[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 +[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_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 +[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 @@ -242,6 +884,9 @@ [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 @@ -269,25 +914,689 @@ [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_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 +[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 [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_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_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 -[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] 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 +[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_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 +[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 +[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 +[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_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 +[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_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 +[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 +[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_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 +[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_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_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 +[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 +[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_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 +[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_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 +[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 +[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_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 +[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_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_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 +[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_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 +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. @@ -432,8 +1741,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.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 [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 edf450f6..db2fcd1d 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -14,86 +14,294 @@ 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 -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_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 +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_object_field_selector import K8sIoApiCoreV1ObjectFieldSelector +from .models.k8s_io_api_core_v1_persistent_volume_claim_spec import K8sIoApiCoreV1PersistentVolumeClaimSpec +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_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 +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_volume_resource_requirements import K8sIoApiCoreV1VolumeResourceRequirements +from .models.k8s_io_api_core_v1_weighted_pod_affinity_term import K8sIoApiCoreV1WeightedPodAffinityTerm +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_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 +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 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_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 +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 -from .models.v1_delete_options import V1DeleteOptions +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 +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 +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 +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 +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 +from .models.v1_disk_io_threads import V1DiskIOThreads from .models.v1_disk_target import V1DiskTarget -from .models.v1_domain_preset_spec import V1DomainPresetSpec +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 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 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 from .models.v1_feature_spinlocks import V1FeatureSpinlocks 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_group_version_for_discovery import V1GroupVersionForDiscovery +from .models.v1_flags import V1Flags +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 +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 +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_hypervisor_configuration import V1HypervisorConfiguration from .models.v1_i6300_esb_watchdog import V1I6300ESBWatchdog -from .models.v1_initializer import V1Initializer -from .models.v1_initializers import V1Initializers +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_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 +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 -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_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 +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_kube_virt_workload_update_strategy import V1KubeVirtWorkloadUpdateStrategy +from .models.v1_launch_security import V1LaunchSecurity +from .models.v1_live_update_configuration import V1LiveUpdateConfiguration +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_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 +from .models.v1_numa import V1NUMA +from .models.v1_numa_guest_mapping_passthrough import V1NUMAGuestMappingPassthrough 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 -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_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_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 +from .models.v1_persistent_volume_claim_info import V1PersistentVolumeClaimInfo 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_plugin_binding import V1PluginBinding 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_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 +from .models.v1_rest_client_configuration import V1RESTClientConfiguration from .models.v1_rtc_timer import V1RTCTimer -from .models.v1_registry_disk_source import V1RegistryDiskSource +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_reserved_overhead import V1ReservedOverhead from .models.v1_resource_requirements import V1ResourceRequirements -from .models.v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR -from .models.v1_status import V1Status -from .models.v1_status_cause import V1StatusCause -from .models.v1_status_details import V1StatusDetails +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 +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_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 +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 +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 +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 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 +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 +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 +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 +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 +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 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 @@ -103,12 +311,127 @@ 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_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 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_watch_event import V1WatchEvent +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.v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm +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 +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 +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 +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 +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 +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_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 +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 +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 +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 +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 +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_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 +from .models.v1beta1_volume_restore_override import V1beta1VolumeRestoreOverride +from .models.v1beta1_volume_snapshot_status import V1beta1VolumeSnapshotStatus # import apis into sdk package from .apis.default_api import DefaultApi @@ -119,3 +442,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 384a265f..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/v0.6.0-347-gfff9fda/python' + self.user_agent = 'Swagger-Codegen/v1.8.0-beta.0-476-ga23a67089c/python' @property def user_agent(self): diff --git a/kubevirt/apis/default_api.py b/kubevirt/apis/default_api.py index b72b87a3..b07b8c90 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -40,49 +40,51 @@ def __init__(self, api_client=None): config.api_client = ApiClient() self.api_client = config.api_client - def check_health(self, **kwargs): + def create_migration_policy(self, body, **kwargs): """ - Health endpoint + 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.check_health(callback=callback_function) + >>> thread = api.create_migration_policy(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :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.check_health_with_http_info(**kwargs) + return self.create_migration_policy_with_http_info(body, **kwargs) else: - (data) = self.check_health_with_http_info(**kwargs) + (data) = self.create_migration_policy_with_http_info(body, **kwargs) return data - def check_health_with_http_info(self, **kwargs): + def create_migration_policy_with_http_info(self, body, **kwargs): """ - Health endpoint + 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.check_health_with_http_info(callback=callback_function) + >>> thread = api.create_migration_policy_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: None + :param V1alpha1MigrationPolicy body: (required) + :return: V1alpha1MigrationPolicy If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -93,10 +95,14 @@ def check_health_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method check_health" % key + " 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 = {} @@ -110,25 +116,27 @@ def 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 = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/healthz', 'GET', + 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=None, + response_type='V1alpha1MigrationPolicy', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -136,53 +144,53 @@ 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 create_namespaced_kube_virt(self, body, namespace, **kwargs): """ - Open a websocket connection to a serial console on the specified VirtualMachineInstance. + 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.console(namespace, name, callback=callback_function) + >>> 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) - :param str name: Name of the resource (required) - :return: None + :return: V1KubeVirt 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.create_namespaced_kube_virt_with_http_info(body, namespace, **kwargs) else: - (data) = self.console_with_http_info(namespace, name, **kwargs) + (data) = self.create_namespaced_kube_virt_with_http_info(body, namespace, **kwargs) return data - def console_with_http_info(self, namespace, name, **kwargs): + def create_namespaced_kube_virt_with_http_info(self, body, namespace, **kwargs): """ - Open a websocket connection to a serial console on the specified VirtualMachineInstance. + 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.console_with_http_info(namespace, name, callback=callback_function) + >>> 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) - :param str name: Name of the resource (required) - :return: None + :return: V1KubeVirt If the method is called asynchronously, returns the request thread. """ - all_params = ['namespace', 'name'] + all_params = ['body', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -193,29 +201,23 @@ def console_with_http_info(self, namespace, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method console" % key + " 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 `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`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_kube_virt`") - 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'] query_params = [] @@ -225,17 +227,27 @@ def console_with_http_info(self, namespace, 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']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/console', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type=None, + response_type='V1KubeVirt', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -311,8 +323,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 +349,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/v1alpha2/namespaces/{namespace}/virtualmachines', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines', 'POST', path_params, query_params, header_params, @@ -356,48 +366,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_instance(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_backup(self, body, namespace, **kwargs): """ - Create a VirtualMachineInstance object. + 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_instance(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_backup(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstance body: (required) + :param V1alpha1VirtualMachineBackup body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstance + :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_instance_with_http_info(body, namespace, **kwargs) + return self.create_namespaced_virtual_machine_backup_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_backup_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_backup_with_http_info(self, body, namespace, **kwargs): """ - Create a VirtualMachineInstance object. + 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_instance_with_http_info(body, namespace, callback=callback_function) + >>> 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 V1VirtualMachineInstance body: (required) + :param V1alpha1VirtualMachineBackup body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstance + :return: V1alpha1VirtualMachineBackup If the method is called asynchronously, returns the request thread. """ @@ -413,19 +423,17 @@ 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_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_instance`") + 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_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_backup`") - 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,16 +460,16 @@ 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/v1alpha2/namespaces/{namespace}/virtualmachineinstances', 'POST', + 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='V1VirtualMachineInstance', + response_type='V1alpha1VirtualMachineBackup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -469,48 +477,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_preset(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_export(self, body, namespace, **kwargs): """ - Create a VirtualMachineInstancePreset object. + 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_instance_preset(body, namespace, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_export(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1VirtualMachineInstancePreset body: (required) + :param V1beta1VirtualMachineExport body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstancePreset + :return: V1beta1VirtualMachineExport 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_export_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_export_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_export_with_http_info(self, body, namespace, **kwargs): """ - Create a VirtualMachineInstancePreset object. + 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_instance_preset_with_http_info(body, namespace, callback=callback_function) + >>> 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 V1VirtualMachineInstancePreset body: (required) + :param V1beta1VirtualMachineExport body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstancePreset + :return: V1beta1VirtualMachineExport If the method is called asynchronously, returns the request thread. """ @@ -526,19 +534,17 @@ 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_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_instance_preset`") + 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_instance_preset`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_export`") - 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 = {} @@ -565,16 +571,16 @@ 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/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets', '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='V1VirtualMachineInstancePreset', + response_type='V1beta1VirtualMachineExport', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -582,48 +588,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_instance(self, body, namespace, **kwargs): """ - Create a VirtualMachineInstanceReplicaSet 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_instance_replica_set(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 V1VirtualMachineInstanceReplicaSet body: (required) + :param V1VirtualMachineInstance body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceReplicaSet + :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_instance_replica_set_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_instance_replica_set_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_instance_replica_set_with_http_info(self, body, namespace, **kwargs): + def create_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, **kwargs): """ - Create a VirtualMachineInstanceReplicaSet 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_instance_replica_set_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 V1VirtualMachineInstanceReplicaSet body: (required) + :param V1VirtualMachineInstance body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1VirtualMachineInstanceReplicaSet + :return: V1VirtualMachineInstance If the method is called asynchronously, returns the request thread. """ @@ -639,19 +645,17 @@ 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_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_instance_replica_set`") + 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_instance_replica_set`") + 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_replica_set`, must conform to the pattern `/[a-z0-9][a-z0-9\\-]*/`") collection_formats = {} @@ -678,16 +682,16 @@ 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/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets', 'POST', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances', 'POST', 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'), @@ -695,65 +699,53 @@ def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_collection_namespaced_virtual_machine(self, **kwargs): + def create_namespaced_virtual_machine_instance_migration(self, body, namespace, **kwargs): """ - Delete a collection of VirtualMachine objects. + 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.delete_collection_namespaced_virtual_machine(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 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 + :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.delete_collection_namespaced_virtual_machine_with_http_info(**kwargs) + return self.create_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, **kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_with_http_info(**kwargs) + (data) = self.create_namespaced_virtual_machine_instance_migration_with_http_info(body, namespace, **kwargs) return data - def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): + def create_namespaced_virtual_machine_instance_migration_with_http_info(self, body, namespace, **kwargs): """ - Delete a collection of VirtualMachine objects. + 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.delete_collection_namespaced_virtual_machine_with_http_info(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 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 + :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 = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params = ['body', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -764,33 +756,25 @@ 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 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`") 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 = {} @@ -798,21 +782,27 @@ def delete_collection_namespaced_virtual_machine_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 = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1VirtualMachineInstanceMigration', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -820,65 +810,53 @@ 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 create_namespaced_virtual_machine_instance_preset(self, body, namespace, **kwargs): """ - Delete a collection of VirtualMachineInstance objects. + 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.delete_collection_namespaced_virtual_machine_instance(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 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 + :param V1VirtualMachineInstancePreset body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (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.delete_collection_namespaced_virtual_machine_instance_with_http_info(**kwargs) + return self.create_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, **kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_instance_with_http_info(**kwargs) + (data) = self.create_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, **kwargs) return data - def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, **kwargs): + def create_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, **kwargs): """ - Delete a collection of VirtualMachineInstance objects. + 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.delete_collection_namespaced_virtual_machine_instance_with_http_info(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 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 + :param V1VirtualMachineInstancePreset body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1VirtualMachineInstancePreset 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', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -889,33 +867,25 @@ 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 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_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_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 = {} @@ -923,21 +893,27 @@ def delete_collection_namespaced_virtual_machine_instance_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 = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1VirtualMachineInstancePreset', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -945,65 +921,53 @@ 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_preset(self, **kwargs): + def create_namespaced_virtual_machine_instance_replica_set(self, body, namespace, **kwargs): """ - Delete a collection of VirtualMachineInstancePreset objects. + 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.delete_collection_namespaced_virtual_machine_instance_preset(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 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 + :param V1VirtualMachineInstanceReplicaSet body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (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.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(**kwargs) + return self.create_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, **kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(**kwargs) + (data) = self.create_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, **kwargs) return data - def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(self, **kwargs): + def create_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, **kwargs): """ - Delete a collection of VirtualMachineInstancePreset objects. + 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.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(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 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 + :param V1VirtualMachineInstanceReplicaSet body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1VirtualMachineInstanceReplicaSet 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', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1014,33 +978,25 @@ 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 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_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_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 = {} @@ -1048,21 +1004,27 @@ def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info( 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'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets', 'DELETE', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1VirtualMachineInstanceReplicaSet', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1070,65 +1032,53 @@ 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 create_namespaced_virtual_machine_instancetype(self, body, namespace, **kwargs): """ - Delete a collection of VirtualMachineInstanceReplicaSet objects. + 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.delete_collection_namespaced_virtual_machine_instance_replica_set(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 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 + :param V1beta1VirtualMachineInstancetype body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1beta1VirtualMachineInstancetype 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_replica_set_with_http_info(**kwargs) + return self.create_namespaced_virtual_machine_instancetype_with_http_info(body, namespace, **kwargs) else: - (data) = self.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(**kwargs) + (data) = self.create_namespaced_virtual_machine_instancetype_with_http_info(body, namespace, **kwargs) return data - def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(self, **kwargs): + def create_namespaced_virtual_machine_instancetype_with_http_info(self, body, namespace, **kwargs): """ - Delete a collection of VirtualMachineInstanceReplicaSet objects. + 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.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(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 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 + :param V1beta1VirtualMachineInstancetype body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1beta1VirtualMachineInstancetype 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', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1139,33 +1089,25 @@ 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 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_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_instancetype`") 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 = {} @@ -1173,21 +1115,27 @@ def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_ 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'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1beta1VirtualMachineInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1195,61 +1143,53 @@ 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 create_namespaced_virtual_machine_pool(self, body, namespace, **kwargs): """ - Delete a VirtualMachine object. + 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.delete_namespaced_virtual_machine(body, namespace, name, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_pool(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1DeleteOptions body: (required) + :param V1beta1VirtualMachinePool 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 + :return: V1beta1VirtualMachinePool 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(body, namespace, name, **kwargs) + return self.create_namespaced_virtual_machine_pool_with_http_info(body, namespace, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) + (data) = self.create_namespaced_virtual_machine_pool_with_http_info(body, namespace, **kwargs) return data - def delete_namespaced_virtual_machine_with_http_info(self, body, namespace, name, **kwargs): + def create_namespaced_virtual_machine_pool_with_http_info(self, body, namespace, **kwargs): """ - Delete a VirtualMachine object. + 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.delete_namespaced_virtual_machine_with_http_info(body, namespace, name, callback=callback_function) + >>> 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 V1DeleteOptions body: (required) + :param V1beta1VirtualMachinePool 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 + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['body', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1260,40 +1200,25 @@ 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 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 `delete_namespaced_virtual_machine`") + 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 `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`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_pool`") - 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'] 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 = {} @@ -1312,16 +1237,16 @@ 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/v1alpha2/namespaces/{namespace}/virtualmachines/{name}', 'DELETE', + 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='V1Status', + response_type='V1beta1VirtualMachinePool', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1329,61 +1254,53 @@ 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 create_namespaced_virtual_machine_preference(self, body, namespace, **kwargs): """ - Delete a VirtualMachineInstance object. + 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.delete_namespaced_virtual_machine_instance(body, namespace, name, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_preference(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1DeleteOptions body: (required) + :param V1beta1VirtualMachinePreference 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 + :return: V1beta1VirtualMachinePreference 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(body, namespace, name, **kwargs) + return self.create_namespaced_virtual_machine_preference_with_http_info(body, namespace, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + (data) = self.create_namespaced_virtual_machine_preference_with_http_info(body, namespace, **kwargs) return data - def delete_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, name, **kwargs): + def create_namespaced_virtual_machine_preference_with_http_info(self, body, namespace, **kwargs): """ - Delete a VirtualMachineInstance object. + 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.delete_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, callback=callback_function) + >>> 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 V1DeleteOptions body: (required) + :param V1beta1VirtualMachinePreference 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 + :return: V1beta1VirtualMachinePreference If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['body', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1394,40 +1311,25 @@ def delete_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 delete_namespaced_virtual_machine_instance" % key + " 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 `delete_namespaced_virtual_machine_instance`") + 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 `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`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_preference`") - 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'] 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 = {} @@ -1446,16 +1348,16 @@ 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/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}', 'DELETE', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1Status', + response_type='V1beta1VirtualMachinePreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1463,61 +1365,53 @@ 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 create_namespaced_virtual_machine_restore(self, body, namespace, **kwargs): """ - Delete a VirtualMachineInstancePreset object. + 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.delete_namespaced_virtual_machine_instance_preset(body, namespace, name, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_restore(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1DeleteOptions body: (required) + :param V1beta1VirtualMachineRestore 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 + :return: V1beta1VirtualMachineRestore 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_preset_with_http_info(body, namespace, name, **kwargs) + return self.create_namespaced_virtual_machine_restore_with_http_info(body, namespace, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) + (data) = self.create_namespaced_virtual_machine_restore_with_http_info(body, namespace, **kwargs) return data - def delete_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, name, **kwargs): + def create_namespaced_virtual_machine_restore_with_http_info(self, body, namespace, **kwargs): """ - Delete a VirtualMachineInstancePreset object. + 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.delete_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, callback=callback_function) + >>> 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 V1DeleteOptions body: (required) + :param V1beta1VirtualMachineRestore 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 + :return: V1beta1VirtualMachineRestore If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['body', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1528,40 +1422,25 @@ 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 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 `delete_namespaced_virtual_machine_instance_preset`") + 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 `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`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_restore`") - 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'] 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 = {} @@ -1580,16 +1459,16 @@ 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/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'DELETE', + 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='V1Status', + response_type='V1beta1VirtualMachineRestore', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1597,61 +1476,53 @@ 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 create_namespaced_virtual_machine_snapshot(self, body, namespace, **kwargs): """ - Delete a VirtualMachineInstanceReplicaSet object. + 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.delete_namespaced_virtual_machine_instance_replica_set(body, namespace, name, callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_snapshot(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param V1DeleteOptions body: (required) + :param V1beta1VirtualMachineSnapshot 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 + :return: V1beta1VirtualMachineSnapshot 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) + return self.create_namespaced_virtual_machine_snapshot_with_http_info(body, namespace, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + (data) = self.create_namespaced_virtual_machine_snapshot_with_http_info(body, namespace, **kwargs) return data - def delete_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, name, **kwargs): + def create_namespaced_virtual_machine_snapshot_with_http_info(self, body, namespace, **kwargs): """ - Delete a VirtualMachineInstanceReplicaSet object. + 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.delete_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, callback=callback_function) + >>> 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 V1DeleteOptions body: (required) + :param V1beta1VirtualMachineSnapshot 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 + :return: V1beta1VirtualMachineSnapshot If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params = ['body', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1662,40 +1533,25 @@ 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 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 `delete_namespaced_virtual_machine_instance_replica_set`") + 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 `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`") + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_snapshot`") - 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 = {} @@ -1714,16 +1570,16 @@ 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/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'DELETE', + 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='V1Status', + response_type='V1beta1VirtualMachineSnapshot', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1731,49 +1587,53 @@ 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 create_namespaced_virtual_machine_snapshot_content(self, body, namespace, **kwargs): """ - Get a KubeVirt API GroupList + 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.get_api_group(callback=callback_function) + >>> thread = api.create_namespaced_virtual_machine_snapshot_content(body, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroupList + :param V1beta1VirtualMachineSnapshotContent body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1beta1VirtualMachineSnapshotContent 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.create_namespaced_virtual_machine_snapshot_content_with_http_info(body, namespace, **kwargs) else: - (data) = self.get_api_group_with_http_info(**kwargs) + (data) = self.create_namespaced_virtual_machine_snapshot_content_with_http_info(body, namespace, **kwargs) return data - def get_api_group_with_http_info(self, **kwargs): + def create_namespaced_virtual_machine_snapshot_content_with_http_info(self, body, namespace, **kwargs): """ - Get a KubeVirt API GroupList + 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.get_api_group_with_http_info(callback=callback_function) + >>> 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) - :return: V1APIGroupList + :param V1beta1VirtualMachineSnapshotContent body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1beta1VirtualMachineSnapshotContent If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['body', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1784,14 +1644,23 @@ 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 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 = [] @@ -1801,21 +1670,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 = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis', 'GET', + 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='V1APIGroupList', + response_type='V1beta1VirtualMachineSnapshotContent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1823,49 +1698,51 @@ 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 create_virtual_machine_clone(self, body, **kwargs): """ - Get a KubeVirt API group + 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.get_api_group_0(callback=callback_function) + >>> thread = api.create_virtual_machine_clone(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :param V1beta1VirtualMachineClone body: (required) + :return: V1beta1VirtualMachineClone 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.create_virtual_machine_clone_with_http_info(body, **kwargs) else: - (data) = self.get_api_group_0_with_http_info(**kwargs) + (data) = self.create_virtual_machine_clone_with_http_info(body, **kwargs) return data - def get_api_group_0_with_http_info(self, **kwargs): + def create_virtual_machine_clone_with_http_info(self, body, **kwargs): """ - Get a KubeVirt API group + 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.get_api_group_0_with_http_info(callback=callback_function) + >>> thread = api.create_virtual_machine_clone_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :param V1beta1VirtualMachineClone body: (required) + :return: V1beta1VirtualMachineClone If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1876,10 +1753,14 @@ 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 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 = {} @@ -1893,21 +1774,27 @@ def get_api_group_0_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 = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io', 'GET', + 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='V1APIGroup', + response_type='V1beta1VirtualMachineClone', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -1915,49 +1802,51 @@ 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 create_virtual_machine_cluster_instancetype(self, body, **kwargs): """ - Get a KubeVirt API Group + 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.get_api_group_1(callback=callback_function) + >>> thread = api.create_virtual_machine_cluster_instancetype(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIGroup + :param V1beta1VirtualMachineClusterInstancetype body: (required) + :return: V1beta1VirtualMachineClusterInstancetype 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.create_virtual_machine_cluster_instancetype_with_http_info(body, **kwargs) else: - (data) = self.get_api_group_1_with_http_info(**kwargs) + (data) = self.create_virtual_machine_cluster_instancetype_with_http_info(body, **kwargs) return data - def get_api_group_1_with_http_info(self, **kwargs): + def create_virtual_machine_cluster_instancetype_with_http_info(self, body, **kwargs): """ - Get a KubeVirt API Group + 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.get_api_group_1_with_http_info(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) - :return: V1APIGroup + :param V1beta1VirtualMachineClusterInstancetype body: (required) + :return: V1beta1VirtualMachineClusterInstancetype If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -1968,10 +1857,14 @@ 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 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_instancetype`") + collection_formats = {} @@ -1985,21 +1878,27 @@ def get_api_group_1_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']) - - # Authentication setting - auth_settings = ['BearerToken'] + select_header_accept(['application/json', 'application/yaml']) - return self.api_client.call_api('/apis/subresources.kubevirt.io', 'GET', + # 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/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='V1APIGroup', + response_type='V1beta1VirtualMachineClusterInstancetype', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2007,49 +1906,51 @@ def get_api_group_1_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources(self, **kwargs): + def create_virtual_machine_cluster_preference(self, body, **kwargs): """ - Get KubeVirt API Resources + 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.get_api_resources(callback=callback_function) + >>> thread = api.create_virtual_machine_cluster_preference(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :param V1beta1VirtualMachineClusterPreference body: (required) + :return: V1beta1VirtualMachineClusterPreference 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.create_virtual_machine_cluster_preference_with_http_info(body, **kwargs) else: - (data) = self.get_api_resources_with_http_info(**kwargs) + (data) = self.create_virtual_machine_cluster_preference_with_http_info(body, **kwargs) return data - def get_api_resources_with_http_info(self, **kwargs): + def create_virtual_machine_cluster_preference_with_http_info(self, body, **kwargs): """ - Get KubeVirt API Resources + 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.get_api_resources_with_http_info(callback=callback_function) + >>> thread = api.create_virtual_machine_cluster_preference_with_http_info(body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :param V1beta1VirtualMachineClusterPreference body: (required) + :return: V1beta1VirtualMachineClusterPreference If the method is called asynchronously, returns the request thread. """ - all_params = [] + all_params = ['body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -2060,10 +1961,14 @@ 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 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 = {} @@ -2077,21 +1982,27 @@ def get_api_resources_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 = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2', 'GET', + 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='V1APIResourceList', + response_type='V1beta1VirtualMachineClusterPreference', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2099,49 +2010,65 @@ 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 delete_collection_migration_policy(self, **kwargs): """ - Get a KubeVirt API resources + 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.get_api_resources_0(callback=callback_function) + >>> thread = api.delete_collection_migration_policy(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :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.get_api_resources_0_with_http_info(**kwargs) + return self.delete_collection_migration_policy_with_http_info(**kwargs) else: - (data) = self.get_api_resources_0_with_http_info(**kwargs) + (data) = self.delete_collection_migration_policy_with_http_info(**kwargs) return data - def get_api_resources_0_with_http_info(self, **kwargs): + def delete_collection_migration_policy_with_http_info(self, **kwargs): """ - Get a KubeVirt API resources + 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.get_api_resources_0_with_http_info(callback=callback_function) + >>> thread = api.delete_collection_migration_policy_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :return: V1APIResourceList + :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 = [] + 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') @@ -2152,16 +2079,33 @@ 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 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 = {} @@ -2171,19 +2115,19 @@ def get_api_resources_0_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']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2', 'GET', + 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='V1APIResourceList', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2191,20 +2135,19 @@ def get_api_resources_0_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_namespaced_virtual_machine(self, namespace, **kwargs): + def delete_collection_namespaced_kube_virt(self, **kwargs): """ - Get a list 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.list_namespaced_virtual_machine(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_kube_virt(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. @@ -2213,31 +2156,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: K8sIoApimachineryPkgApisMetaV1Status 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.delete_collection_namespaced_kube_virt_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_kube_virt_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + def delete_collection_namespaced_kube_virt_with_http_info(self, **kwargs): """ - Get a list 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.list_namespaced_virtual_machine_with_http_info(namespace, 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) - :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. @@ -2246,12 +2188,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: K8sIoApimachineryPkgApisMetaV1Status 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') @@ -2262,22 +2204,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 delete_collection_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`") - 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 = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -2305,19 +2240,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', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2325,20 +2260,19 @@ 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 delete_collection_namespaced_virtual_machine(self, **kwargs): """ - Get a list 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.list_namespaced_virtual_machine_instance(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine(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. @@ -2347,31 +2281,30 @@ 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: K8sIoApimachineryPkgApisMetaV1Status 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.delete_collection_namespaced_virtual_machine_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): + def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): """ - Get a list 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.list_namespaced_virtual_machine_instance_with_http_info(namespace, 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) - :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. @@ -2380,12 +2313,12 @@ 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: K8sIoApimachineryPkgApisMetaV1Status 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') @@ -2396,22 +2329,15 @@ 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 delete_collection_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`") - 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 = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -2439,19 +2365,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', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceList', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2459,20 +2385,19 @@ 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_preset(self, namespace, **kwargs): + def delete_collection_namespaced_virtual_machine_backup(self, **kwargs): """ - Get a list of VirtualMachineInstancePreset objects. + 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.list_namespaced_virtual_machine_instance_preset(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_backup(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. @@ -2481,31 +2406,30 @@ 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: K8sIoApimachineryPkgApisMetaV1Status 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.delete_collection_namespaced_virtual_machine_backup_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_backup_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_instance_preset_with_http_info(self, namespace, **kwargs): + def delete_collection_namespaced_virtual_machine_backup_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineInstancePreset objects. + 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.list_namespaced_virtual_machine_instance_preset_with_http_info(namespace, callback=callback_function) + >>> 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 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. @@ -2514,12 +2438,12 @@ 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: K8sIoApimachineryPkgApisMetaV1Status 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') @@ -2530,22 +2454,15 @@ 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 delete_collection_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_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 = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -2573,19 +2490,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', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets', 'GET', + 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='V1VirtualMachineInstancePresetList', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2593,20 +2510,19 @@ 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 delete_collection_namespaced_virtual_machine_export(self, **kwargs): """ - Get a list of VirtualMachineInstanceReplicaSet objects. + 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.list_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_export(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. @@ -2615,31 +2531,30 @@ 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: K8sIoApimachineryPkgApisMetaV1Status 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.delete_collection_namespaced_virtual_machine_export_with_http_info(**kwargs) else: - (data) = self.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, **kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_export_with_http_info(**kwargs) return data - def list_namespaced_virtual_machine_instance_replica_set_with_http_info(self, namespace, **kwargs): + def delete_collection_namespaced_virtual_machine_export_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineInstanceReplicaSet objects. + 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.list_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) + >>> 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 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. @@ -2648,12 +2563,12 @@ 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: K8sIoApimachineryPkgApisMetaV1Status 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') @@ -2664,22 +2579,15 @@ 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 delete_collection_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_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 = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -2707,19 +2615,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', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSetList', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2727,16 +2635,16 @@ 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 delete_collection_namespaced_virtual_machine_instance(self, **kwargs): """ - Get a list of all 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.list_virtual_machine_for_all_namespaces(callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instance(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -2748,27 +2656,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: K8sIoApimachineryPkgApisMetaV1Status 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.delete_collection_namespaced_virtual_machine_instance_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_for_all_namespaces_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_with_http_info(**kwargs) return data - def list_virtual_machine_for_all_namespaces_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_with_http_info(self, **kwargs): """ - Get a list of all 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.list_virtual_machine_for_all_namespaces_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) @@ -2780,7 +2688,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: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2796,7 +2704,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 delete_collection_namespaced_virtual_machine_instance" % key ) params[key] = val del params['kwargs'] @@ -2832,19 +2740,19 @@ 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', 'application/yaml']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineList', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2852,16 +2760,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 delete_collection_namespaced_virtual_machine_instance_migration(self, **kwargs): """ - Get a list of all 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.list_virtual_machine_instance_for_all_namespaces(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) @@ -2873,27 +2781,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: K8sIoApimachineryPkgApisMetaV1Status 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.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_instance_for_all_namespaces_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(**kwargs) return data - def list_virtual_machine_instance_for_all_namespaces_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_migration_with_http_info(self, **kwargs): """ - Get a list of all 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.list_virtual_machine_instance_for_all_namespaces_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) @@ -2905,7 +2813,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: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -2921,7 +2829,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 delete_collection_namespaced_virtual_machine_instance_migration" % key ) params[key] = val del params['kwargs'] @@ -2957,19 +2865,19 @@ def list_virtual_machine_instance_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']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceList', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2977,16 +2885,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_preset_for_all_namespaces(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_preset(self, **kwargs): """ - Get a list of all VirtualMachineInstancePreset 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.list_virtual_machine_instance_preset_for_all_namespaces(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) @@ -2998,27 +2906,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: K8sIoApimachineryPkgApisMetaV1Status 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.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(**kwargs) return data - def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_preset_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachineInstancePreset 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.list_virtual_machine_instance_preset_for_all_namespaces_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) @@ -3030,7 +2938,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: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -3046,7 +2954,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 delete_collection_namespaced_virtual_machine_instance_preset" % key ) params[key] = val del params['kwargs'] @@ -3082,19 +2990,19 @@ def list_virtual_machine_instance_preset_for_all_namespaces_with_http_info(self, 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']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePresetList', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3102,16 +3010,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 delete_collection_namespaced_virtual_machine_instance_replica_set(self, **kwargs): """ - Get a list of all VirtualMachineInstanceReplicaSet 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.list_virtual_machine_instance_replica_set_for_all_namespaces(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) @@ -3123,27 +3031,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: K8sIoApimachineryPkgApisMetaV1Status 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.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(**kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(**kwargs) return data - def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info(self, **kwargs): + def delete_collection_namespaced_virtual_machine_instance_replica_set_with_http_info(self, **kwargs): """ - Get a list of all VirtualMachineInstanceReplicaSet 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.list_virtual_machine_instance_replica_set_for_all_namespaces_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) @@ -3155,7 +3063,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: K8sIoApimachineryPkgApisMetaV1Status If the method is called asynchronously, returns the request thread. """ @@ -3171,7 +3079,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 delete_collection_namespaced_virtual_machine_instance_replica_set" % key ) params[key] = val del params['kwargs'] @@ -3207,19 +3115,19 @@ def list_virtual_machine_instance_replica_set_for_all_namespaces_with_http_info( 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']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets', 'DELETE', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSetList', + response_type='K8sIoApimachineryPkgApisMetaV1Status', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3227,55 +3135,27376 @@ 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, namespace, name, **kwargs): + def delete_collection_namespaced_virtual_machine_instancetype(self, **kwargs): """ - Patch a VirtualMachine object. + 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.patch_namespaced_virtual_machine(body, namespace, name, callback=callback_function) + >>> thread = api.delete_collection_namespaced_virtual_machine_instancetype(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 + :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.patch_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) + return self.delete_collection_namespaced_virtual_machine_instancetype_with_http_info(**kwargs) else: - (data) = self.patch_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) + (data) = self.delete_collection_namespaced_virtual_machine_instancetype_with_http_info(**kwargs) return data - def patch_namespaced_virtual_machine_with_http_info(self, body, namespace, name, **kwargs): + def delete_collection_namespaced_virtual_machine_instancetype_with_http_info(self, **kwargs): """ - Patch a VirtualMachine object. + 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.patch_namespaced_virtual_machine_with_http_info(body, namespace, name, 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) + :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_instancetype" % 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/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes', '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_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/v1beta1/namespaces/{namespace}/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_preference(self, **kwargs): + """ + 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_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_namespaced_virtual_machine_preference_with_http_info(**kwargs) + else: + (data) = self.delete_collection_namespaced_virtual_machine_preference_with_http_info(**kwargs) + return data + + def delete_collection_namespaced_virtual_machine_preference_with_http_info(self, **kwargs): + """ + 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_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_namespaced_virtual_machine_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/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences', '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. + This method makes a synchronous HTTP request by default. To make 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: 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_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: 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_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/v1beta1/namespaces/{namespace}/virtualmachinerestores', '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_snapshot(self, **kwargs): + """ + 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(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_snapshot_with_http_info(**kwargs) + else: + (data) = self.delete_collection_namespaced_virtual_machine_snapshot_with_http_info(**kwargs) + return data + + def delete_collection_namespaced_virtual_machine_snapshot_with_http_info(self, **kwargs): + """ + 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_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_snapshot" % 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/v1beta1/namespaces/{namespace}/virtualmachinesnapshots', '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_snapshot_content(self, **kwargs): + """ + 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_namespaced_virtual_machine_snapshot_content(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_snapshot_content_with_http_info(**kwargs) + else: + (data) = self.delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(**kwargs) + return data + + def delete_collection_namespaced_virtual_machine_snapshot_content_with_http_info(self, **kwargs): + """ + 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_namespaced_virtual_machine_snapshot_content_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_snapshot_content" % 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/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents', '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_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/v1beta1/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_instancetype(self, **kwargs): + """ + 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_instancetype(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_instancetype_with_http_info(**kwargs) + else: + (data) = self.delete_collection_virtual_machine_cluster_instancetype_with_http_info(**kwargs) + return data + + def delete_collection_virtual_machine_cluster_instancetype_with_http_info(self, **kwargs): + """ + 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_instancetype_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_instancetype" % 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/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes', '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/instancetype.kubevirt.io/v1beta1/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. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> 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 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_migration_policy_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_migration_policy_with_http_info(name, body, **kwargs) + return data + + def delete_migration_policy_with_http_info(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. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> 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 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_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_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_migration_policy`") + + + 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/migrations.kubevirt.io/v1alpha1/migrationpolicies/{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_kube_virt(self, name, namespace, body, **kwargs): + """ + 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_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 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_kube_virt_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_kube_virt_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_kube_virt_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 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_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_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'])) + + 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}', '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(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(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :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}/virtualmachines/{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_backup(self, name, namespace, body, **kwargs): + """ + 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_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 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_backup_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_virtual_machine_backup_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 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_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_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_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_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 '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/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{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_export(self, name, namespace, body, **kwargs): + """ + 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_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 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_export_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 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_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_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_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_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 '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/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{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(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(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :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_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 + + 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 + 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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_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_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`") + + + 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}/virtualmachineinstancemigrations/{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_preset(self, name, namespace, body, **kwargs): + """ + 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_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 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_preset_with_http_info(name, namespace, body, **kwargs) + else: + (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, name, namespace, body, **kwargs): + """ + 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_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 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_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 = {} + + 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}/virtualmachineinstancepresets/{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_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.delete_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 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_replica_set_with_http_info(name, namespace, body, **kwargs) + else: + (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, 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.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 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_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 = {} + + 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}/virtualmachineinstancereplicasets/{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_instancetype(self, name, namespace, body, **kwargs): + """ + 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_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 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_instancetype_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_virtual_machine_instancetype_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 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_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_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_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_instancetype`") + + + 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/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{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_pool(self, name, namespace, body, **kwargs): + """ + 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_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 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_pool_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_virtual_machine_pool_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 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_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_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_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_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 '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/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{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_preference(self, name, namespace, body, **kwargs): + """ + 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_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 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_preference_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_virtual_machine_preference_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_virtual_machine_preference_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 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_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_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_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_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 '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/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{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_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.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/v1beta1/namespaces/{namespace}/virtualmachinerestores/{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_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. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_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 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_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/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{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_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 + + 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 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_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/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{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_virtual_machine_clone(self, name, body, **kwargs): + """ + 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_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 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_clone_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_virtual_machine_clone_with_http_info(name, body, **kwargs) + return data + + def delete_virtual_machine_clone_with_http_info(self, name, body, **kwargs): + """ + 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_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 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_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_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_clone`") + + + 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/clone.kubevirt.io/v1beta1/virtualmachineclones/{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_virtual_machine_cluster_instancetype(self, name, body, **kwargs): + """ + 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_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 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_instancetype_with_http_info(name, body, **kwargs) + else: + (data) = self.delete_virtual_machine_cluster_instancetype_with_http_info(name, body, **kwargs) + return data + + def delete_virtual_machine_cluster_instancetype_with_http_info(self, name, body, **kwargs): + """ + 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_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 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_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_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_instancetype`") + + + 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/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{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_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/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{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 func15(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.func15(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.func15_with_http_info(**kwargs) + else: + (data) = self.func15_with_http_info(**kwargs) + return data + + def func15_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.func15_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 func15" % 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 func6(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.func6(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.func6_with_http_info(**kwargs) + else: + (data) = self.func6_with_http_info(**kwargs) + return data + + 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 + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.func6_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 func6" % 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_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 + This method makes a synchronous HTTP request by default. To make 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 + This method makes a synchronous HTTP request by default. To make 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_instancetype_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_instancetype_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_instancetype_kubevirt_io_with_http_info(**kwargs) + else: + (data) = self.get_api_group_instancetype_kubevirt_io_with_http_info(**kwargs) + return data + + 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 + 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_instancetype_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_instancetype_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/instancetype.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_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 + ) + 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/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_list(self, **kwargs): + """ + 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_list(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroupList + 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) + else: + (data) = self.get_api_group_list_with_http_info(**kwargs) + return data + + def get_api_group_list_with_http_info(self, **kwargs): + """ + 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_list_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroupList + 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_list" % 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', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIGroupList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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_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 + This method makes a synchronous HTTP request by default. To make 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) + + :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_snapshot_kubevirt_io_with_http_info(**kwargs) + else: + (data) = self.get_api_group_snapshot_kubevirt_io_with_http_info(**kwargs) + return data + + def get_api_group_snapshot_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_snapshot_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_snapshot_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/snapshot.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_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 + This method makes a synchronous HTTP request by default. To make 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_v1beta1(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_v1beta1_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(**kwargs) + return data + + 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 + 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_v1beta1_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_v1beta1" % 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/v1beta1/', '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_v1beta1(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_v1beta1(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_v1beta1_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_export_kubevirt_io_v1beta1_with_http_info(**kwargs) + return data + + 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 + 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_v1beta1_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_v1beta1" % 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/v1beta1/', '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_instancetype_kubevirt_io_v1beta1(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_instancetype_kubevirt_io_v1beta1(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_instancetype_kubevirt_io_v1beta1_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_instancetype_kubevirt_io_v1beta1_with_http_info(**kwargs) + return data + + 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 + 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_instancetype_kubevirt_io_v1beta1_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_instancetype_kubevirt_io_v1beta1" % 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/instancetype.kubevirt.io/v1beta1/', '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_kubevirt_io_v1(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_kubevirt_io_v1(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_kubevirt_io_v1_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_kubevirt_io_v1_with_http_info(**kwargs) + return data + + 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 + 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) + + :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_kubevirt_io_v1" % 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/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 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_pool_kubevirt_io_v1beta1(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_v1beta1(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_v1beta1_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_pool_kubevirt_io_v1beta1_with_http_info(**kwargs) + return data + + 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 + 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_v1beta1_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_v1beta1" % 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/v1beta1/', '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_v1beta1(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_v1beta1(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_snapshot_kubevirt_io_v1beta1_with_http_info(**kwargs) + else: + (data) = self.get_api_resources_snapshot_kubevirt_io_v1beta1_with_http_info(**kwargs) + return data + + 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 + 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_v1beta1_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_snapshot_kubevirt_io_v1beta1" % 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/snapshot.kubevirt.io/v1beta1/', '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_root_paths(self, **kwargs): + """ + 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_root_paths(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :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_root_paths_with_http_info(**kwargs) + else: + (data) = self.get_root_paths_with_http_info(**kwargs) + return data + + def get_root_paths_with_http_info(self, **kwargs): + """ + 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_root_paths_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1RootPaths + 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_root_paths" % 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('/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1RootPaths', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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. + This method makes a synchronous HTTP request by default. To make 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') + all_params.append('_request_timeout') + + params = 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_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 = {} + + 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/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_migration_policy(self, **kwargs): + """ + 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_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: V1alpha1MigrationPolicyList + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.list_migration_policy_with_http_info(**kwargs) + else: + (data) = self.list_migration_policy_with_http_info(**kwargs) + return data + + def list_migration_policy_with_http_info(self, **kwargs): + """ + 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_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: V1alpha1MigrationPolicyList + 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_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', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + 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='V1alpha1MigrationPolicyList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_kube_virt(self, namespace, **kwargs): + """ + 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_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: 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_kube_virt_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_kube_virt_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_kube_virt_with_http_info(self, namespace, **kwargs): + """ + 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_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) + :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. + """ + + 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" % 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 = {} + + 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}/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_namespaced_virtual_machine_backup(self, namespace, **kwargs): + """ + 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_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: 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_backup_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_backup_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_backup_with_http_info(self, namespace, **kwargs): + """ + 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_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: V1alpha1VirtualMachineBackupList + 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_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_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', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + 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='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_namespaced_virtual_machine_export(self, namespace, **kwargs): + """ + 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_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: V1beta1VirtualMachineExportList + 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_export_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_export_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_export_with_http_info(self, namespace, **kwargs): + """ + 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_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: V1beta1VirtualMachineExportList + 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_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_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', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + 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='V1beta1VirtualMachineExportList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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(self, namespace, **kwargs): + """ + 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(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: 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_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): + """ + 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_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: 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.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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" % 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 = {} + + 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}/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_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`") + + + 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}/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. + This method makes a synchronous HTTP request by default. To make 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) + + :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/v1/namespaces/{namespace}/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/v1/namespaces/{namespace}/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_instancetype(self, namespace, **kwargs): + """ + 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_instancetype(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: V1beta1VirtualMachineInstancetypeList + 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_instancetype_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_instancetype_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_instancetype_with_http_info(self, namespace, **kwargs): + """ + 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_instancetype_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: V1beta1VirtualMachineInstancetypeList + 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_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_instancetype`") + + + 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/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineInstancetypeList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_pool(self, namespace, **kwargs): + """ + 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_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: V1beta1VirtualMachinePoolList + 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_pool_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_pool_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwargs): + """ + 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_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: V1beta1VirtualMachinePoolList + 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_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_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', 'application/yaml', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + 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='V1beta1VirtualMachinePoolList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_preference(self, namespace, **kwargs): + """ + 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_preference(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: V1beta1VirtualMachinePreferenceList + 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_preference_with_http_info(namespace, **kwargs) + else: + (data) = self.list_namespaced_virtual_machine_preference_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_preference_with_http_info(self, namespace, **kwargs): + """ + 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_preference_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: V1beta1VirtualMachinePreferenceList + 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_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_preference`") + + + 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/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachinePreferenceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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: V1beta1VirtualMachineRestoreList + 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: V1beta1VirtualMachineRestoreList + 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/v1beta1/namespaces/{namespace}/virtualmachinerestores', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineRestoreList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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) + :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: V1beta1VirtualMachineSnapshotList + 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: V1beta1VirtualMachineSnapshotList + 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/v1beta1/namespaces/{namespace}/virtualmachinesnapshots', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineSnapshotList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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: V1beta1VirtualMachineSnapshotContentList + 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) + else: + (data) = self.list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) + return data + + def list_namespaced_virtual_machine_snapshot_content_with_http_info(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_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: V1beta1VirtualMachineSnapshotContentList + 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/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineSnapshotContentList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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. + This method makes a synchronous HTTP request by default. To make 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_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: V1beta1VirtualMachineCloneList + 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_clone_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_clone_with_http_info(**kwargs) + return data + + def list_virtual_machine_clone_with_http_info(self, **kwargs): + """ + 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_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: V1beta1VirtualMachineCloneList + 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_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', 'application/json;stream=watch']) + + # Authentication setting + auth_settings = [] + + 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='V1beta1VirtualMachineCloneList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_instancetype(self, **kwargs): + """ + 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_instancetype(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: V1beta1VirtualMachineClusterInstancetypeList + 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_instancetype_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_cluster_instancetype_with_http_info(**kwargs) + return data + + def list_virtual_machine_cluster_instancetype_with_http_info(self, **kwargs): + """ + 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_instancetype_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: V1beta1VirtualMachineClusterInstancetypeList + 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_instancetype" % 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/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='V1beta1VirtualMachineClusterInstancetypeList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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: V1beta1VirtualMachineClusterPreferenceList + 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: V1beta1VirtualMachineClusterPreferenceList + 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/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='V1beta1VirtualMachineClusterPreferenceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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: V1beta1VirtualMachineExportList + 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: V1beta1VirtualMachineExportList + 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/v1beta1/virtualmachineexports', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineExportList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_instancetype_for_all_namespaces(self, **kwargs): + """ + 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_instancetype_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: V1beta1VirtualMachineInstancetypeList + 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_instancetype_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_instancetype_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_instancetype_for_all_namespaces_with_http_info(self, **kwargs): + """ + 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_instancetype_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: V1beta1VirtualMachineInstancetypeList + 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_instancetype_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/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='V1beta1VirtualMachineInstancetypeList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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: V1beta1VirtualMachinePoolList + 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: V1beta1VirtualMachinePoolList + 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/v1beta1/virtualmachinepools', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachinePoolList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_preference_for_all_namespaces(self, **kwargs): + """ + 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_preference_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: V1beta1VirtualMachinePreferenceList + 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_preference_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.list_virtual_machine_preference_for_all_namespaces_with_http_info(**kwargs) + return data + + def list_virtual_machine_preference_for_all_namespaces_with_http_info(self, **kwargs): + """ + 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_preference_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: V1beta1VirtualMachinePreferenceList + 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_preference_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/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='V1beta1VirtualMachinePreferenceList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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: V1beta1VirtualMachineRestoreList + 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: V1beta1VirtualMachineRestoreList + 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/v1beta1/virtualmachinerestores', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineRestoreList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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: V1beta1VirtualMachineSnapshotContentList + 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: V1beta1VirtualMachineSnapshotContentList + 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/v1beta1/virtualmachinesnapshotcontents', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineSnapshotContentList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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: V1beta1VirtualMachineSnapshotList + 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: V1beta1VirtualMachineSnapshotList + 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/v1beta1/virtualmachinesnapshots', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineSnapshotList', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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}', '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. + This method makes a synchronous HTTP request by default. To make 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}/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_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}/virtualmachines/{name}', '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_backup(self, name, namespace, body, **kwargs): + """ + 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_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: 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_backup_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_backup_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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: V1alpha1VirtualMachineBackup + 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_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_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_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_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 `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/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='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 patch_namespaced_virtual_machine_export(self, name, namespace, body, **kwargs): + """ + 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_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: V1beta1VirtualMachineExport + 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_export_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_export_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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: V1beta1VirtualMachineExport + 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_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_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_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_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 = [] + + 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/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='V1beta1VirtualMachineExport', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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}/virtualmachineinstances/{name}', '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}/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, 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}/virtualmachineinstancepresets/{name}', '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}/virtualmachineinstancereplicasets/{name}', '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_instancetype(self, name, namespace, body, **kwargs): + """ + 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_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: V1beta1VirtualMachineInstancetype + 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_instancetype_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_instancetype_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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: V1beta1VirtualMachineInstancetype + 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_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_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_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_instancetype`") + + + 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/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineInstancetype', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_pool(self, name, namespace, body, **kwargs): + """ + 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_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: V1beta1VirtualMachinePool + 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_pool_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.patch_namespaced_virtual_machine_pool_with_http_info(name, namespace, body, **kwargs) + return data + + def patch_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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: V1beta1VirtualMachinePool + 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_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_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_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_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 = [] + + 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/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='V1beta1VirtualMachinePool', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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: V1beta1VirtualMachinePreference + 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: V1beta1VirtualMachinePreference + 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/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachinePreference', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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: V1beta1VirtualMachineRestore + 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: V1beta1VirtualMachineRestore + 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/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='V1beta1VirtualMachineRestore', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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: V1beta1VirtualMachineSnapshot + 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: V1beta1VirtualMachineSnapshot + 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/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='V1beta1VirtualMachineSnapshot', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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: V1beta1VirtualMachineSnapshotContent + 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: V1beta1VirtualMachineSnapshotContent + 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/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='V1beta1VirtualMachineSnapshotContent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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: V1beta1VirtualMachineClone + 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: V1beta1VirtualMachineClone + 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/v1beta1/virtualmachineclones/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineClone', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_instancetype(self, name, body, **kwargs): + """ + 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_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: V1beta1VirtualMachineClusterInstancetype + 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_instancetype_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_virtual_machine_cluster_instancetype_with_http_info(name, body, **kwargs) + return data + + def patch_virtual_machine_cluster_instancetype_with_http_info(self, name, body, **kwargs): + """ + 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_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: V1beta1VirtualMachineClusterInstancetype + 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_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_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_instancetype`") + + + 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/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineClusterInstancetype', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_preference(self, name, body, **kwargs): + """ + 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.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 K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1beta1VirtualMachineClusterPreference + 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_preference_with_http_info(name, body, **kwargs) + else: + (data) = self.patch_virtual_machine_cluster_preference_with_http_info(name, body, **kwargs) + return data + + def patch_virtual_machine_cluster_preference_with_http_info(self, name, body, **kwargs): + """ + 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.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 K8sIoApimachineryPkgApisMetaV1Patch body: (required) + :return: V1beta1VirtualMachineClusterPreference + 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_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_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 = {} + + 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/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name}', 'PATCH', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineClusterPreference', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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 = [] + + return self.api_client.call_api('/apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name}', 'GET', + 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 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}/kubevirt/{name}', '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}/virtualmachines/{name}', '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_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. + This method makes a synchronous HTTP request by default. To make 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: V1beta1VirtualMachineExport + 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: V1beta1VirtualMachineExport + 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/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='V1beta1VirtualMachineExport', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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}/virtualmachineinstances/{name}', '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}/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. + This method makes a synchronous HTTP request by default. To make 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}/virtualmachineinstancepresets/{name}', '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}/virtualmachineinstancereplicasets/{name}', '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_instancetype(self, name, namespace, **kwargs): + """ + 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_instancetype(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: V1beta1VirtualMachineInstancetype + 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_instancetype_with_http_info(name, namespace, **kwargs) + else: + (data) = self.read_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, **kwargs) + return data + + def read_namespaced_virtual_machine_instancetype_with_http_info(self, name, namespace, **kwargs): + """ + 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_instancetype_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: V1beta1VirtualMachineInstancetype + 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_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_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_instancetype`") + + + 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/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineInstancetype', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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: V1beta1VirtualMachinePool + 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: V1beta1VirtualMachinePool + 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/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='V1beta1VirtualMachinePool', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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: V1beta1VirtualMachinePreference + 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: V1beta1VirtualMachinePreference + 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/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachinePreference', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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: V1beta1VirtualMachineRestore + 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: V1beta1VirtualMachineRestore + 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/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='V1beta1VirtualMachineRestore', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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: V1beta1VirtualMachineSnapshot + 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: V1beta1VirtualMachineSnapshot + 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/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='V1beta1VirtualMachineSnapshot', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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: V1beta1VirtualMachineSnapshotContent + 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: V1beta1VirtualMachineSnapshotContent + 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/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='V1beta1VirtualMachineSnapshotContent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_virtual_machine_clone(self, name, **kwargs): + """ + 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_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 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: V1beta1VirtualMachineClone + 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_clone_with_http_info(name, **kwargs) + else: + (data) = self.read_virtual_machine_clone_with_http_info(name, **kwargs) + return data + + def read_virtual_machine_clone_with_http_info(self, name, **kwargs): + """ + 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_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 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: V1beta1VirtualMachineClone + 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_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_virtual_machine_clone`") + + + 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 = [] + + 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='V1beta1VirtualMachineClone', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_virtual_machine_cluster_instancetype(self, name, **kwargs): + """ + 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_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: V1beta1VirtualMachineClusterInstancetype + 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_instancetype_with_http_info(name, **kwargs) + else: + (data) = self.read_virtual_machine_cluster_instancetype_with_http_info(name, **kwargs) + return data + + def read_virtual_machine_cluster_instancetype_with_http_info(self, name, **kwargs): + """ + 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_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: V1beta1VirtualMachineClusterInstancetype + 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_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_instancetype`") + + + 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 = [] + + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineClusterInstancetype', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_virtual_machine_cluster_preference(self, name, **kwargs): + """ + 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.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 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: V1beta1VirtualMachineClusterPreference + 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_preference_with_http_info(name, **kwargs) + else: + (data) = self.read_virtual_machine_cluster_preference_with_http_info(name, **kwargs) + return data + + def read_virtual_machine_cluster_preference_with_http_info(self, name, **kwargs): + """ + 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.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 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: V1beta1VirtualMachineClusterPreference + 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_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_virtual_machine_cluster_preference`") + + + 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 = [] + + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name}', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineClusterPreference', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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}', '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. + """ + 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'), + _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}/virtualmachines/{name}', '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_backup(self, name, namespace, body, **kwargs): + """ + 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_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 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_backup_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_backup_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 V1alpha1VirtualMachineBackup body: (required) + :return: V1alpha1VirtualMachineBackup + 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_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_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_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_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 `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/{name}', 'PUT', + 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 replace_namespaced_virtual_machine_export(self, name, namespace, body, **kwargs): + """ + 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_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 V1beta1VirtualMachineExport body: (required) + :return: V1beta1VirtualMachineExport + 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_export_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_export_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 V1beta1VirtualMachineExport body: (required) + :return: V1beta1VirtualMachineExport + 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_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_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_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_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 = [] + + 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/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='V1beta1VirtualMachineExport', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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}/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, 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}/virtualmachineinstancemigrations/{name}', '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}/virtualmachineinstancepresets/{name}', '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 = [] + + 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}/virtualmachineinstancereplicasets/{name}', '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'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def replace_namespaced_virtual_machine_instancetype(self, name, namespace, body, **kwargs): + """ + 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_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 V1beta1VirtualMachineInstancetype body: (required) + :return: V1beta1VirtualMachineInstancetype + 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_instancetype_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_virtual_machine_instancetype_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_instancetype_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 V1beta1VirtualMachineInstancetype body: (required) + :return: V1beta1VirtualMachineInstancetype + 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_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_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_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_instancetype`") + + + 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/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineInstancetype', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_pool(self, name, namespace, body, **kwargs): + """ + 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_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 V1beta1VirtualMachinePool body: (required) + :return: V1beta1VirtualMachinePool + 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_pool_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.replace_namespaced_virtual_machine_pool_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 V1beta1VirtualMachinePool body: (required) + :return: V1beta1VirtualMachinePool + 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_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_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_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_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 = [] + + 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/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='V1beta1VirtualMachinePool', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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 V1beta1VirtualMachinePreference body: (required) + :return: V1beta1VirtualMachinePreference + 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 V1beta1VirtualMachinePreference body: (required) + :return: V1beta1VirtualMachinePreference + 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/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachinePreference', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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. + This method makes a synchronous HTTP request by default. To make 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1beta1VirtualMachineRestore body: (required) + :return: V1beta1VirtualMachineRestore + 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) + else: + (data) = self.replace_namespaced_virtual_machine_restore_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_restore_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 V1beta1VirtualMachineRestore body: (required) + :return: V1beta1VirtualMachineRestore + 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_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 = [] + + 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/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='V1beta1VirtualMachineRestore', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_snapshot(self, name, namespace, body, **kwargs): + """ + 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_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 V1beta1VirtualMachineSnapshot body: (required) + :return: V1beta1VirtualMachineSnapshot + 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) + else: + (data) = self.replace_namespaced_virtual_machine_snapshot_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_snapshot_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 V1beta1VirtualMachineSnapshot body: (required) + :return: V1beta1VirtualMachineSnapshot + 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_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 = [] + + 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/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='V1beta1VirtualMachineSnapshot', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_snapshot_content(self, name, namespace, body, **kwargs): + """ + 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_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 V1beta1VirtualMachineSnapshotContent body: (required) + :return: V1beta1VirtualMachineSnapshotContent + 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) + else: + (data) = self.replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, namespace, body, **kwargs) + return data + + def replace_namespaced_virtual_machine_snapshot_content_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 V1beta1VirtualMachineSnapshotContent body: (required) + :return: V1beta1VirtualMachineSnapshotContent + 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_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_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 = [] + + 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/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='V1beta1VirtualMachineSnapshotContent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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 V1beta1VirtualMachineClone body: (required) + :return: V1beta1VirtualMachineClone + 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 V1beta1VirtualMachineClone body: (required) + :return: V1beta1VirtualMachineClone + 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/v1beta1/virtualmachineclones/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineClone', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_instancetype(self, name, body, **kwargs): + """ + 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_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 V1beta1VirtualMachineClusterInstancetype body: (required) + :return: V1beta1VirtualMachineClusterInstancetype + 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_instancetype_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_virtual_machine_cluster_instancetype_with_http_info(name, body, **kwargs) + return data + + def replace_virtual_machine_cluster_instancetype_with_http_info(self, name, body, **kwargs): + """ + 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_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 V1beta1VirtualMachineClusterInstancetype body: (required) + :return: V1beta1VirtualMachineClusterInstancetype + 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_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_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_instancetype`") + + + 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/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineClusterInstancetype', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_preference(self, name, body, **kwargs): + """ + 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.replace_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 V1beta1VirtualMachineClusterPreference body: (required) + :return: V1beta1VirtualMachineClusterPreference + 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_preference_with_http_info(name, body, **kwargs) + else: + (data) = self.replace_virtual_machine_cluster_preference_with_http_info(name, body, **kwargs) + return data + + def replace_virtual_machine_cluster_preference_with_http_info(self, name, body, **kwargs): + """ + 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.replace_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 V1beta1VirtualMachineClusterPreference body: (required) + :return: V1beta1VirtualMachineClusterPreference + 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_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 = [] + + 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/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name}', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1beta1VirtualMachineClusterPreference', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_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 + This method makes a synchronous HTTP request by default. To make 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) + + :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_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 + + def v1_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_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 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 `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 = [] + + 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}/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 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 + 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(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(namespace, **kwargs) + else: + (data) = self.v1_expand_spec_with_http_info(namespace, **kwargs) + return data + + 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 + 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(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 = ['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_expand_spec" % 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 `v1_expand_spec`") + + + 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 + # 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}/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 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 + 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(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(name, namespace, **kwargs) + else: + (data) = self.v1_filesystemlist_with_http_info(name, namespace, **kwargs) + return data + + 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 + 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(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 = ['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_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_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 = [] + + 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/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 v1_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.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, body, **kwargs) + else: + (data) = self.v1_freeze_with_http_info(name, namespace, body, **kwargs) + return data + + 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 + 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, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :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 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`") + # verify the 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 = {} + + 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}/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_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 + 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 + This method makes a synchronous HTTP request by default. To make 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) + + :param callback function: The callback function + for asynchronous request. (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.v1_guestosinfo_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1_guestosinfo_with_http_info(name, namespace, **kwargs) + return data + + def v1_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.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) + :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 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 = [] + + 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/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 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'] + # 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}/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. + This method makes a synchronous HTTP request by default. To make 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, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :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, body, **kwargs) + else: + (data) = self.v1_migrate_with_http_info(name, namespace, body, **kwargs) + return data + + 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 + 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, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :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', '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_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_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_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 = {} + + 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}/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 v1_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.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, body, **kwargs) + else: + (data) = self.v1_pause_with_http_info(name, namespace, body, **kwargs) + return data + + 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 + 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, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :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', '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_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`") + # verify the 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 = {} + + 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}/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 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. + This method makes a synchronous HTTP request by default. To make 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}/virtualmachines/{name}/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_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. + This method makes a synchronous HTTP request by default. To make 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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.v1_restart_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1_restart_with_http_info(name, namespace, **kwargs) + return data + + def v1_restart_with_http_info(self, name, namespace, **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.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 V1RestartOptions body: + :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_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_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_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 = [] + + 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}/restart', '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_sev_fetch_cert_chain(self, name, namespace, **kwargs): + """ + 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_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: V1SEVPlatformInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_sev_fetch_cert_chain_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1_sev_fetch_cert_chain_with_http_info(name, namespace, **kwargs) + return data + + def v1_sev_fetch_cert_chain_with_http_info(self, name, namespace, **kwargs): + """ + 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_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: V1SEVPlatformInfo + 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_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_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_sev_fetch_cert_chain`") + + + 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/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SEVPlatformInfo', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_sev_inject_launch_secret(self, name, namespace, body, **kwargs): + """ + 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_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 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_sev_inject_launch_secret_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1_sev_inject_launch_secret_with_http_info(name, namespace, body, **kwargs) + return data + + def v1_sev_inject_launch_secret_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 V1SEVSecretOptions 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_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_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_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_sev_inject_launch_secret`") + + + 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}/sev/injectlaunchsecret', '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_sev_query_launch_measurement(self, name, namespace, **kwargs): + """ + 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_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: V1SEVMeasurementInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_sev_query_launch_measurement_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1_sev_query_launch_measurement_with_http_info(name, namespace, **kwargs) + return data + + def v1_sev_query_launch_measurement_with_http_info(self, name, namespace, **kwargs): + """ + 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_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: V1SEVMeasurementInfo + 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_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_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_sev_query_launch_measurement`") + + + 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/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/querylaunchmeasurement', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SEVMeasurementInfo', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_sev_setup_session(self, name, namespace, body, **kwargs): + """ + 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_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_sev_setup_session_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1_sev_setup_session_with_http_info(name, namespace, body, **kwargs) + return data + + def v1_sev_setup_session_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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', '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_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_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_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 = {} + + 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}/sev/setupsession', '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_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}/virtualmachineinstances/{name}/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. + This method makes a synchronous HTTP request by default. To make 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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, body, **kwargs) + else: + (data) = self.v1_start_with_http_info(name, namespace, body, **kwargs) + return data + + 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 + 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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', '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_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 = [] + + 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}/start', '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_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_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_stop_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1_stop_with_http_info(name, namespace, **kwargs) + return data + + 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_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', '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_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 = [] + + 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}/stop', '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_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}/virtualmachineinstances/{name}/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, body, **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.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, body, **kwargs) + else: + (data) = self.v1_unpause_with_http_info(name, namespace, body, **kwargs) + return data + + 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 + 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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 = {} + + 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}/unpause', '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_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 + 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(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(name, namespace, **kwargs) + else: + (data) = self.v1_userlist_with_http_info(name, namespace, **kwargs) + return data + + 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 + 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(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 = ['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_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_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 = [] + + 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/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 v1_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.v1_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.v1_version_with_http_info(**kwargs) + else: + (data) = self.v1_version_with_http_info(**kwargs) + return data + + def v1_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.v1_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 v1_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 = [] + + 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=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_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 + 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_vnc_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1_vnc_with_http_info(name, namespace, **kwargs) + return data + + def v1_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 + 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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', 'preserve_session'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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" % key + ) + params[key] = val + del params['kwargs'] + # verify the 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 = [] + if 'preserve_session' in params: + query_params.append(('preserveSession', params['preserve_session'])) + + 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}/vnc', '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_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}/virtualmachineinstances/{name}/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 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) + :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.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) + :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', 'tls'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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'])) + 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 `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 = {} + + 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}/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 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}/virtualmachineinstances/{name}/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, namespace, **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(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(namespace, **kwargs) + else: + (data) = self.v1alpha3_expand_spec_with_http_info(namespace, **kwargs) + return data + + 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 + 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(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 = ['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_expand_spec" % 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 `v1alpha3_expand_spec`") + + + 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 + # 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}/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, 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 + 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(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(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_filesystemlist_with_http_info(name, namespace, **kwargs) + return data + + 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 + 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(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 = ['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_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 `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 = [] + + 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}/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 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'] + # 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}/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}/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 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'] + # 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}/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. + This method makes a synchronous HTTP request by default. To make 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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, body, **kwargs) + else: + (data) = self.v1alpha3_migrate_with_http_info(name, namespace, body, **kwargs) + return data + + 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 + 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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', '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_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`") + # verify the 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 = {} + + 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}/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 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_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, body, **kwargs) + else: + (data) = self.v1alpha3_pause_with_http_info(name, namespace, body, **kwargs) + return data + + 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_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', '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_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 = [] + + 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}/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 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. + This method makes a synchronous HTTP request by default. To make 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}/virtualmachines/{name}/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_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. + This method makes a synchronous HTTP request by default. To make 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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.v1alpha3_restart_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_restart_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3_restart_with_http_info(self, name, namespace, **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.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 V1RestartOptions body: + :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_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_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_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 = [] + + 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}/restart', '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_sev_fetch_cert_chain(self, name, namespace, **kwargs): + """ + 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_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: V1SEVPlatformInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_sev_fetch_cert_chain_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_sev_fetch_cert_chain_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3_sev_fetch_cert_chain_with_http_info(self, name, namespace, **kwargs): + """ + 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_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: V1SEVPlatformInfo + 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_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_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_sev_fetch_cert_chain`") + + + 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}/virtualmachineinstances/{name}/sev/fetchcertchain', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SEVPlatformInfo', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_sev_inject_launch_secret(self, name, namespace, body, **kwargs): + """ + 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_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 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_sev_inject_launch_secret_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3_sev_inject_launch_secret_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3_sev_inject_launch_secret_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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 V1SEVSecretOptions 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_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_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_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_sev_inject_launch_secret`") + + + 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}/sev/injectlaunchsecret', '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_sev_query_launch_measurement(self, name, namespace, **kwargs): + """ + 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_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: V1SEVMeasurementInfo + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_sev_query_launch_measurement_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_sev_query_launch_measurement_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3_sev_query_launch_measurement_with_http_info(self, name, namespace, **kwargs): + """ + 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_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: V1SEVMeasurementInfo + 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_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_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_sev_query_launch_measurement`") + + + 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}/virtualmachineinstances/{name}/sev/querylaunchmeasurement', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1SEVMeasurementInfo', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=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_sev_setup_session(self, name, namespace, body, **kwargs): + """ + 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_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.v1alpha3_sev_setup_session_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3_sev_setup_session_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3_sev_setup_session_with_http_info(self, name, namespace, body, **kwargs): + """ + 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_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', '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_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_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_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 = {} + + 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}/sev/setupsession', '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_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}/virtualmachineinstances/{name}/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. + This method makes a synchronous HTTP request by default. To make 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, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :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, body, **kwargs) + else: + (data) = self.v1alpha3_start_with_http_info(name, namespace, body, **kwargs) + return data + + 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 + 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, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :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', '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_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_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_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 = {} + + 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}/start', '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_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.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_stop_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_stop_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3_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.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', '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_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_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_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 = [] + + 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}/stop', '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_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}/virtualmachineinstances/{name}/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, body, **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.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, body, **kwargs) + else: + (data) = self.v1alpha3_unpause_with_http_info(name, namespace, body, **kwargs) + return data + + 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 + 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, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :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.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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_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_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_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 = {} + + 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}/unpause', '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_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 + 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(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(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_userlist_with_http_info(name, namespace, **kwargs) + return data + + 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 + 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(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 = ['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_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_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 = [] + + 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}/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 v1alpha3_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.v1alpha3_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.v1alpha3_version_with_http_info(**kwargs) + else: + (data) = self.v1alpha3_version_with_http_info(**kwargs) + return data + + def v1alpha3_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.v1alpha3_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 v1alpha3_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 = [] + + 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=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_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 + 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_vnc_with_http_info(name, namespace, **kwargs) + else: + (data) = self.v1alpha3_vnc_with_http_info(name, namespace, **kwargs) + return data + + def v1alpha3_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 + 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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', 'preserve_session'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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" % key + ) + params[key] = val + del params['kwargs'] + # verify the 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 = [] + if 'preserve_session' in params: + query_params.append(('preserveSession', params['preserve_session'])) + + 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}/vnc', '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_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}/virtualmachineinstances/{name}/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_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) + :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_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) + :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', 'tls'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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'])) + 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/v1alpha3/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 v1alpha3dump_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.v1alpha3dump_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.v1alpha3dump_cluster_profiler_with_http_info(**kwargs) + else: + (data) = self.v1alpha3dump_cluster_profiler_with_http_info(**kwargs) + return data + + def v1alpha3dump_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.v1alpha3dump_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 v1alpha3dump_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/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 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.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) + :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}/virtualmachineinstances/{name}/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. + This method makes a synchronous HTTP request by default. To make 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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, body, **kwargs) + else: + (data) = self.v1alpha3vm_addvolume_with_http_info(name, namespace, body, **kwargs) + return data + + 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.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', '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_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 = [] + + 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}/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 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. + This method makes a synchronous HTTP request by default. To make 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}/virtualmachines/{name}/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_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. + This method makes a synchronous HTTP request by default. To make 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}/virtualmachines/{name}/portforward/{port}', '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}/virtualmachines/{name}/portforward/{port}/{protocol}', '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. + This method makes a synchronous HTTP request by default. To make 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'] + # 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}/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'] + # 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}/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_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 + This method makes a synchronous HTTP request by default. To make 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. + This method makes a synchronous HTTP request by default. To make 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}/virtualmachineinstances/{name}/portforward/{port}', '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}/virtualmachineinstances/{name}/portforward/{port}/{protocol}', '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'] + # 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}/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 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 + This method makes a synchronous HTTP request by default. To make 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 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. + This method makes a synchronous HTTP request by default. To make 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}/virtualmachineinstances/{name}/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. + This method makes a synchronous HTTP request by default. To make 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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, body, **kwargs) + else: + (data) = self.v1vm_addvolume_with_http_info(name, namespace, body, **kwargs) + return data + + 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.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', '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_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 = [] + + 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}/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 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. + This method makes a synchronous HTTP request by default. To make 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}/virtualmachines/{name}/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_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. + This method makes a synchronous HTTP request by default. To make 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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.v1vm_port_forward_with_http_info(name, namespace, port, **kwargs) + else: + (data) = self.v1vm_port_forward_with_http_info(name, namespace, port, **kwargs) + return data + + 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.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 = ['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 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 = [] + + 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}/virtualmachines/{name}/portforward/{port}', '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_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.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.v1vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + else: + (data) = self.v1vm_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + return data + + def v1vm_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.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', '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 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 `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 `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 = {} + + 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/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol}', '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_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 + 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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, body, **kwargs) + else: + (data) = self.v1vm_removevolume_with_http_info(name, namespace, body, **kwargs) + return data + + 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 + 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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 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 = [] + + 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}/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 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 + 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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, body, **kwargs) + else: + (data) = self.v1vmi_addvolume_with_http_info(name, namespace, body, **kwargs) + return data + + 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 + 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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 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 `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 `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 = {} + + 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}/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 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 + This method makes a synchronous HTTP request by default. To make 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. + This method makes a synchronous HTTP request by default. To make 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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.v1vmi_port_forward_with_http_info(name, namespace, port, **kwargs) + else: + (data) = self.v1vmi_port_forward_with_http_info(name, namespace, port, **kwargs) + return data + + def v1vmi_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.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) + :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 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 `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 = [] + + 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}/portforward/{port}', '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 v1vmi_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.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 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_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + else: + (data) = self.v1vmi_port_forward_with_protocol_with_http_info(name, namespace, port, protocol, **kwargs) + return data + + def v1vmi_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.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 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 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_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 = {} + + 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/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol}', '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 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 + 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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, body, **kwargs) + else: + (data) = self.v1vmi_removevolume_with_http_info(name, namespace, body, **kwargs) + return data + + 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 + 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) + + :param callback function: The callback function + for asynchronous request. (optional) + :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 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_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`") + + + 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}/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 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: K8sIoApimachineryPkgApisMetaV1WatchEvent + 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: 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_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/v1/watch/kubevirt', '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_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. + This method makes a synchronous HTTP request by default. To make 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: 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_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: 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_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/v1/watch/namespaces/{namespace}/kubevirt', '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(self, namespace, **kwargs): + """ + 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_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: 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_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return data + + def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + """ + 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_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. + :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" % 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`") + + + 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}/virtualmachines', '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_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. + This method makes a synchronous HTTP request by default. To make 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/v1beta1/watch/namespaces/{namespace}/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_instance(self, namespace, **kwargs): + """ + 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_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. + :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_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + return data + + def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): + """ + 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_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. + :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" % 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 = {} + + 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}/virtualmachineinstances', '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_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: 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_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: 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_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 = {} + + 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}/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 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 + :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}/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 = ['body', 'namespace', 'name'] + 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') @@ -3286,34 +30515,38 @@ def patch_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 patch_namespaced_virtual_machine" % key + " to method watch_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`") # verify the 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`") + 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 `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 = [] + 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 = {} @@ -3321,27 +30554,21 @@ def patch_namespaced_virtual_machine_with_http_info(self, body, namespace, 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 = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}', 'PATCH', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3349,55 +30576,67 @@ 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 watch_namespaced_virtual_machine_instancetype(self, namespace, **kwargs): """ - Patch a VirtualMachineInstance 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.patch_namespaced_virtual_machine_instance(body, namespace, name, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_instancetype(namespace, 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 + :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.patch_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + return self.watch_namespaced_virtual_machine_instancetype_with_http_info(namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + (data) = self.watch_namespaced_virtual_machine_instancetype_with_http_info(namespace, **kwargs) return data - def patch_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, name, **kwargs): + def watch_namespaced_virtual_machine_instancetype_with_http_info(self, namespace, **kwargs): """ - Patch a VirtualMachineInstance 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.patch_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, 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) - :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 + :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 = ['body', 'namespace', 'name'] + 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') @@ -3408,34 +30647,38 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, body, 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 watch_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 `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`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_instancetype`") - 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 = [] + 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 = {} @@ -3443,27 +30686,21 @@ def patch_namespaced_virtual_machine_instance_with_http_info(self, body, 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']) - # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3471,55 +30708,67 @@ 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_preset(self, body, namespace, name, **kwargs): + def watch_namespaced_virtual_machine_pool(self, namespace, **kwargs): """ - Patch 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.patch_namespaced_virtual_machine_instance_preset(body, namespace, name, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_pool(namespace, 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 + :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.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) + return self.watch_namespaced_virtual_machine_pool_with_http_info(namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) + (data) = self.watch_namespaced_virtual_machine_pool_with_http_info(namespace, **kwargs) return data - def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, name, **kwargs): + def watch_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwargs): """ - Patch 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.patch_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, 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) - :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 + :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 = ['body', 'namespace', 'name'] + 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') @@ -3530,34 +30779,38 @@ def patch_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 patch_namespaced_virtual_machine_instance_preset" % key + " to method watch_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 `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`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_pool`") - 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 = [] + 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 = {} @@ -3565,27 +30818,21 @@ def patch_namespaced_virtual_machine_instance_preset_with_http_info(self, 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 = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'PATCH', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepools', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3593,55 +30840,67 @@ 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 watch_namespaced_virtual_machine_preference(self, namespace, **kwargs): """ - Patch 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.patch_namespaced_virtual_machine_instance_replica_set(body, namespace, name, callback=callback_function) + >>> thread = api.watch_namespaced_virtual_machine_preference(namespace, 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 + :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.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + return self.watch_namespaced_virtual_machine_preference_with_http_info(namespace, **kwargs) else: - (data) = self.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + (data) = self.watch_namespaced_virtual_machine_preference_with_http_info(namespace, **kwargs) return data - def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, name, **kwargs): + def watch_namespaced_virtual_machine_preference_with_http_info(self, namespace, **kwargs): """ - Patch 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.patch_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, 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) - :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 + :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 = ['body', 'namespace', 'name'] + 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') @@ -3652,34 +30911,38 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, b 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 watch_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 `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`") + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_preference`") - 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 = [] + 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,27 +30950,21 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, b 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'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'PATCH', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepreferences', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3715,57 +30972,67 @@ def patch_namespaced_virtual_machine_instance_replica_set_with_http_info(self, b _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine(self, name, namespace, **kwargs): + def watch_namespaced_virtual_machine_restore(self, namespace, **kwargs): """ - Get a VirtualMachine 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.read_namespaced_virtual_machine(name, 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) - :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 + :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.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) + return self.watch_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_with_http_info(name, namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_restore_with_http_info(namespace, **kwargs) return data - def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwargs): + def watch_namespaced_virtual_machine_restore_with_http_info(self, namespace, **kwargs): """ - Get a VirtualMachine 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.read_namespaced_virtual_machine_with_http_info(name, 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) - :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 + :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', 'exact', 'export'] + 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,35 +31043,38 @@ 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 watch_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`") # verify the 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 `watch_namespaced_virtual_machine_restore`") - 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 = {} 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'])) + 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 = {} @@ -3814,19 +31084,19 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **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']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinerestores', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3834,57 +31104,67 @@ 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 watch_namespaced_virtual_machine_snapshot(self, namespace, **kwargs): """ - Get 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.read_namespaced_virtual_machine_instance(name, 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) - :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 + :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.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + return self.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_snapshot_with_http_info(namespace, **kwargs) return data - def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot_with_http_info(self, namespace, **kwargs): """ - Get 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.read_namespaced_virtual_machine_instance_with_http_info(name, 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) - :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 + :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', 'exact', 'export'] + 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') @@ -3895,35 +31175,38 @@ 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 watch_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_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 `watch_namespaced_virtual_machine_snapshot`") - 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 = {} 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'])) + 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 = {} @@ -3933,19 +31216,19 @@ 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']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -3953,57 +31236,67 @@ 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_preset(self, name, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot_content(self, namespace, **kwargs): """ - Get a VirtualMachineInstancePreset 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.read_namespaced_virtual_machine_instance_preset(name, 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) - :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 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.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) + return self.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_preset_with_http_info(name, namespace, **kwargs) + (data) = self.watch_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, **kwargs) return data - def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, namespace, **kwargs): + def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, namespace, **kwargs): """ - Get a VirtualMachineInstancePreset 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.read_namespaced_virtual_machine_instance_preset_with_http_info(name, 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) - :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 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', 'exact', 'export'] + 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') @@ -4014,35 +31307,38 @@ 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 watch_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_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 `watch_namespaced_virtual_machine_snapshot_content`") - 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 = {} 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'])) + 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 = {} @@ -4052,19 +31348,19 @@ def read_namespaced_virtual_machine_instance_preset_with_http_info(self, name, n 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 = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4072,57 +31368,65 @@ 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 watch_virtual_machine_backup_list_for_all_namespaces(self, **kwargs): """ - Get a VirtualMachineInstanceReplicaSet object. + 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.read_namespaced_virtual_machine_instance_replica_set(name, namespace, callback=callback_function) + >>> 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 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 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.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) + return self.watch_virtual_machine_backup_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, **kwargs) + (data) = self.watch_virtual_machine_backup_list_for_all_namespaces_with_http_info(**kwargs) return data - def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, name, namespace, **kwargs): + def watch_virtual_machine_backup_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a VirtualMachineInstanceReplicaSet object. + 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.read_namespaced_virtual_machine_instance_replica_set_with_http_info(name, namespace, callback=callback_function) + >>> 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 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 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', 'exact', 'export'] + 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') @@ -4133,35 +31437,33 @@ 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 watch_virtual_machine_backup_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 `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`") - 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 = {} 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'])) + 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 = {} @@ -4171,19 +31473,19 @@ 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']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'GET', + 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='V1VirtualMachineInstanceReplicaSet', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4191,55 +31493,65 @@ def read_namespaced_virtual_machine_instance_replica_set_with_http_info(self, na _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def replace_namespaced_virtual_machine(self, body, namespace, name, **kwargs): + def watch_virtual_machine_clone_list_for_all_namespaces(self, **kwargs): """ - Update a VirtualMachine object. + 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.replace_namespaced_virtual_machine(body, namespace, name, callback=callback_function) + >>> thread = api.watch_virtual_machine_clone_list_for_all_namespaces(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) - :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: K8sIoApimachineryPkgApisMetaV1WatchEvent 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.watch_virtual_machine_clone_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.replace_namespaced_virtual_machine_with_http_info(body, namespace, name, **kwargs) + (data) = self.watch_virtual_machine_clone_list_for_all_namespaces_with_http_info(**kwargs) return data - def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, name, **kwargs): + def watch_virtual_machine_clone_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Update a VirtualMachine object. + 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.replace_namespaced_virtual_machine_with_http_info(body, namespace, name, callback=callback_function) + >>> 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 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: 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: K8sIoApimachineryPkgApisMetaV1WatchEvent If the method is called asynchronously, returns the request thread. """ - all_params = ['body', 'namespace', 'name'] + 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') @@ -4250,34 +31562,33 @@ 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 watch_virtual_machine_clone_list_for_all_namespaces" % 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`") - # verify the 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`") - 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'] + 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 = {} @@ -4285,27 +31596,21 @@ def replace_namespaced_virtual_machine_with_http_info(self, body, namespace, 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']) - - # HTTP header `Content-Type` - header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json', 'application/yaml']) + select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachines/{name}', 'PUT', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1beta1/watch/virtualmachineclones', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachine', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4313,55 +31618,65 @@ 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 watch_virtual_machine_cluster_instancetype_list_for_all_namespaces(self, **kwargs): """ - Update a VirtualMachineInstance 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.replace_namespaced_virtual_machine_instance(body, namespace, name, 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) - :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 + :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.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + return self.watch_virtual_machine_cluster_instancetype_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, **kwargs) + (data) = self.watch_virtual_machine_cluster_instancetype_list_for_all_namespaces_with_http_info(**kwargs) return data - def replace_namespaced_virtual_machine_instance_with_http_info(self, body, namespace, name, **kwargs): + def watch_virtual_machine_cluster_instancetype_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Update a VirtualMachineInstance 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.replace_namespaced_virtual_machine_instance_with_http_info(body, namespace, name, 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) - :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 + :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 = ['body', 'namespace', 'name'] + 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') @@ -4372,34 +31687,33 @@ 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 watch_virtual_machine_cluster_instancetype_list_for_all_namespaces" % 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 = [] + 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 = {} @@ -4407,27 +31721,21 @@ def replace_namespaced_virtual_machine_instance_with_http_info(self, body, 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']) + select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstance', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4435,55 +31743,65 @@ 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_preset(self, body, namespace, name, **kwargs): + def watch_virtual_machine_cluster_preference_list_for_all_namespaces(self, **kwargs): """ - Update a VirtualMachineInstancePreset 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.replace_namespaced_virtual_machine_instance_preset(body, namespace, name, 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) - :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: V1VirtualMachineInstancePreset + :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.replace_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) + return self.watch_virtual_machine_cluster_preference_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, **kwargs) + (data) = self.watch_virtual_machine_cluster_preference_list_for_all_namespaces_with_http_info(**kwargs) return data - def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, body, namespace, name, **kwargs): + def watch_virtual_machine_cluster_preference_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Update a VirtualMachineInstancePreset 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.replace_namespaced_virtual_machine_instance_preset_with_http_info(body, namespace, name, 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) - :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: V1VirtualMachineInstancePreset + :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 = ['body', 'namespace', 'name'] + 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') @@ -4494,34 +31812,33 @@ def replace_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 replace_namespaced_virtual_machine_instance_preset" % key + " to method watch_virtual_machine_cluster_preference_list_for_all_namespaces" % 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_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`") - 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'] 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 = {} @@ -4529,27 +31846,21 @@ def replace_namespaced_virtual_machine_instance_preset_with_http_info(self, 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']) + select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancepresets/{name}', 'PUT', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstancePreset', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4557,55 +31868,65 @@ 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 watch_virtual_machine_export_list_for_all_namespaces(self, **kwargs): """ - Update a VirtualMachineInstanceReplicaSet object. + 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.replace_namespaced_virtual_machine_instance_replica_set(body, namespace, name, callback=callback_function) + >>> thread = api.watch_virtual_machine_export_list_for_all_namespaces(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) - :return: V1VirtualMachineInstanceReplicaSet + :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.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + return self.watch_virtual_machine_export_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, **kwargs) + (data) = self.watch_virtual_machine_export_list_for_all_namespaces_with_http_info(**kwargs) return data - def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, body, namespace, name, **kwargs): + def watch_virtual_machine_export_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Update a VirtualMachineInstanceReplicaSet object. + 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.replace_namespaced_virtual_machine_instance_replica_set_with_http_info(body, namespace, name, callback=callback_function) + >>> 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 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: V1VirtualMachineInstanceReplicaSet + :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 = ['body', 'namespace', 'name'] + 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') @@ -4616,34 +31937,33 @@ 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 watch_virtual_machine_export_list_for_all_namespaces" % 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_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`") - 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'] 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 = {} @@ -4651,27 +31971,21 @@ 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']) + select_header_accept(['application/json']) # Authentication setting - auth_settings = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstancereplicasets/{name}', 'PUT', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/watch/virtualmachineexports', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1VirtualMachineInstanceReplicaSet', + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -4679,53 +31993,65 @@ def replace_namespaced_virtual_machine_instance_replica_set_with_http_info(self, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def test(self, namespace, name, **kwargs): + def watch_virtual_machine_instance_list_for_all_namespaces(self, **kwargs): """ - Test endpoint verifying apiserver connectivity. + 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.test(namespace, name, 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 name: Name of the resource (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.test_with_http_info(namespace, name, **kwargs) + return self.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.test_with_http_info(namespace, name, **kwargs) + (data) = self.watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(**kwargs) return data - def test_with_http_info(self, namespace, name, **kwargs): + def watch_virtual_machine_instance_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Test endpoint verifying apiserver connectivity. + 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.test_with_http_info(namespace, name, 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 name: Name of the resource (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 = ['namespace', 'name'] + 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') @@ -4736,31 +32062,33 @@ def test_with_http_info(self, namespace, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method test" % 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 `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`") - 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'] 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 = {} @@ -4768,17 +32096,21 @@ def test_with_http_info(self, namespace, name, **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 = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/test', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstances', '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'), @@ -4786,47 +32118,65 @@ def test_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def version(self, **kwargs): + 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.version(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) - :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.version_with_http_info(**kwargs) + return self.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.version_with_http_info(**kwargs) + (data) = self.watch_virtual_machine_instance_migration_list_for_all_namespaces_with_http_info(**kwargs) return data - def version_with_http_info(self, **kwargs): + 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.version_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) - :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 = [] + 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') @@ -4837,16 +32187,33 @@ 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_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 = {} @@ -4859,16 +32226,16 @@ 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/v1alpha2/version', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstancemigrations', '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'), @@ -4876,53 +32243,65 @@ def version_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def vnc(self, namespace, name, **kwargs): + def watch_virtual_machine_instance_preset_list_for_all_namespaces(self, **kwargs): """ - Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + 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.vnc(namespace, name, 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) - :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 _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.vnc_with_http_info(namespace, name, **kwargs) + return self.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.vnc_with_http_info(namespace, name, **kwargs) + (data) = self.watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(**kwargs) return data - def vnc_with_http_info(self, namespace, name, **kwargs): + def watch_virtual_machine_instance_preset_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + 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.vnc_with_http_info(namespace, name, 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) - :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 _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', 'name'] + 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') @@ -4933,31 +32312,33 @@ def vnc_with_http_info(self, namespace, name, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method vnc" % key + " to method watch_virtual_machine_instance_preset_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 `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`") - 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'] 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 = {} @@ -4965,17 +32346,21 @@ def vnc_with_http_info(self, namespace, name, **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 = ['BearerToken'] + auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha2/namespaces/{namespace}/virtualmachineinstances/{name}/vnc', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstancepresets', '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'), @@ -4983,20 +32368,19 @@ def vnc_with_http_info(self, namespace, name, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def watch_namespaced_virtual_machine(self, namespace, **kwargs): + def watch_virtual_machine_instance_replica_set_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachine 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_namespaced_virtual_machine(namespace, 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) - :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. @@ -5005,31 +32389,30 @@ 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. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + return self.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_namespaced_virtual_machine_with_http_info(namespace, **kwargs) + (data) = self.watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): + def watch_virtual_machine_instance_replica_set_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachine 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_namespaced_virtual_machine_with_http_info(namespace, 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) - :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. @@ -5038,12 +32421,12 @@ 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. """ - 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') @@ -5054,22 +32437,15 @@ 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_virtual_machine_instance_replica_set_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`") - 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 = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -5100,16 +32476,16 @@ 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/v1alpha2/watch/namespaces/{namespace}/virtualmachines', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets', 'GET', path_params, query_params, header_params, 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'), @@ -5117,20 +32493,19 @@ 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_virtual_machine_instancetype_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstance 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_namespaced_virtual_machine_instance(namespace, 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) - :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. @@ -5139,31 +32514,30 @@ 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. """ 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_virtual_machine_instancetype_list_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.watch_namespaced_virtual_machine_instance_with_http_info(namespace, **kwargs) + (data) = self.watch_virtual_machine_instancetype_list_for_all_namespaces_with_http_info(**kwargs) return data - def watch_namespaced_virtual_machine_instance_with_http_info(self, namespace, **kwargs): + def watch_virtual_machine_instancetype_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstance 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_namespaced_virtual_machine_instance_with_http_info(namespace, 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) - :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. @@ -5172,12 +32546,12 @@ 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. """ - 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') @@ -5188,22 +32562,15 @@ 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_virtual_machine_instancetype_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`") - 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 = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -5234,16 +32601,16 @@ 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/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineinstancetypes', 'GET', path_params, query_params, header_params, 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'), @@ -5251,20 +32618,19 @@ 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_preset(self, namespace, **kwargs): + def watch_virtual_machine_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstancePreset 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_namespaced_virtual_machine_instance_preset(namespace, 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) - :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. @@ -5273,31 +32639,30 @@ 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. """ 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_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_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_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstancePreset 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_namespaced_virtual_machine_instance_preset_with_http_info(namespace, 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) - :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. @@ -5306,12 +32671,12 @@ 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. """ - 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') @@ -5322,22 +32687,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_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`") - 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 = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -5368,16 +32726,16 @@ 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/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/kubevirt.io/v1/watch/virtualmachines', 'GET', path_params, query_params, header_params, 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'), @@ -5385,20 +32743,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_pool_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstanceReplicaSet object. + 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_namespaced_virtual_machine_instance_replica_set(namespace, callback=callback_function) + >>> 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 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. @@ -5407,31 +32764,30 @@ 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. """ 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_pool_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_pool_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_pool_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstanceReplicaSet object. + 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_namespaced_virtual_machine_instance_replica_set_with_http_info(namespace, callback=callback_function) + >>> 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 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. @@ -5440,12 +32796,12 @@ 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. """ - 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') @@ -5456,22 +32812,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_pool_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`") - 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 = {} path_params = {} - if 'namespace' in params: - path_params['namespace'] = params['namespace'] query_params = [] if '_continue' in params: @@ -5502,16 +32851,16 @@ 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/v1alpha2/watch/namespaces/{namespace}/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/watch/virtualmachinepools', 'GET', path_params, query_params, header_params, 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'), @@ -5519,16 +32868,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_preference_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstanceList object. + 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_instance_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_preference_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5540,27 +32889,27 @@ 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. """ 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_preference_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_preference_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_preference_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstanceList object. + 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_instance_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> 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) @@ -5572,7 +32921,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. """ @@ -5588,7 +32937,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_preference_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -5627,16 +32976,16 @@ 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/v1alpha2/watch/virtualmachineinstances', 'GET', + return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachinepreferences', 'GET', path_params, query_params, header_params, 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'), @@ -5644,16 +32993,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_preset_list_for_all_namespaces(self, **kwargs): + def watch_virtual_machine_restore_list_for_all_namespaces(self, **kwargs): """ - Watch a VirtualMachineInstancePresetList object. + 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_instance_preset_list_for_all_namespaces(callback=callback_function) + >>> thread = api.watch_virtual_machine_restore_list_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -5665,27 +33014,27 @@ 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. """ 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_restore_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_restore_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_restore_list_for_all_namespaces_with_http_info(self, **kwargs): """ - Watch a VirtualMachineInstancePresetList object. + 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_instance_preset_list_for_all_namespaces_with_http_info(callback=callback_function) + >>> 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) @@ -5697,7 +33046,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. """ @@ -5713,7 +33062,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_restore_list_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -5752,16 +33101,16 @@ 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/v1alpha2/watch/virtualmachineinstancepresets', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinerestores', 'GET', path_params, query_params, header_params, 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'), @@ -5769,16 +33118,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) @@ -5790,27 +33139,27 @@ 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. """ 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) @@ -5822,7 +33171,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. """ @@ -5838,7 +33187,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'] @@ -5877,16 +33226,16 @@ 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/v1alpha2/watch/virtualmachineinstancereplicasets', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinesnapshotcontents', 'GET', path_params, query_params, header_params, 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'), @@ -5894,16 +33243,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) @@ -5915,27 +33264,27 @@ 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. """ 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) @@ -5947,7 +33296,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. """ @@ -5963,7 +33312,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'] @@ -6002,16 +33351,16 @@ 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/v1alpha2/watch/virtualmachines', 'GET', + return self.api_client.call_api('/apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinesnapshots', 'GET', path_params, query_params, header_params, 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 6c7e5c9b..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: v0.6.0-347-gfff9fda".\ + "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 f7132659..ef6ee858 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -14,86 +14,294 @@ 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 -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_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 +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_object_field_selector import K8sIoApiCoreV1ObjectFieldSelector +from .k8s_io_api_core_v1_persistent_volume_claim_spec import K8sIoApiCoreV1PersistentVolumeClaimSpec +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_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 +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_volume_resource_requirements import K8sIoApiCoreV1VolumeResourceRequirements +from .k8s_io_api_core_v1_weighted_pod_affinity_term import K8sIoApiCoreV1WeightedPodAffinityTerm +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_acpi import V1ACPI +from .v1_access_credential import V1AccessCredential +from .v1_access_credential_secret_source import V1AccessCredentialSecretSource +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 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_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 +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 -from .v1_delete_options import V1DeleteOptions +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 +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 +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 +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 +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 +from .v1_disk_io_threads import V1DiskIOThreads from .v1_disk_target import V1DiskTarget -from .v1_domain_preset_spec import V1DomainPresetSpec +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 import V1DownwardMetrics +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 +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 from .v1_feature_spinlocks import V1FeatureSpinlocks 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_group_version_for_discovery import V1GroupVersionForDiscovery +from .v1_flags import V1Flags +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 +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 +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_hypervisor_configuration import V1HypervisorConfiguration from .v1_i6300_esb_watchdog import V1I6300ESBWatchdog -from .v1_initializer import V1Initializer -from .v1_initializers import V1Initializers +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_instancetype_status_ref import V1InstancetypeStatusRef 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_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 -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_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 +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_kube_virt_workload_update_strategy import V1KubeVirtWorkloadUpdateStrategy +from .v1_launch_security import V1LaunchSecurity +from .v1_live_update_configuration import V1LiveUpdateConfiguration +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_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 +from .v1_numa import V1NUMA +from .v1_numa_guest_mapping_passthrough import V1NUMAGuestMappingPassthrough from .v1_network import V1Network -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_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_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 +from .v1_persistent_volume_claim_info import V1PersistentVolumeClaimInfo 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_plugin_binding import V1PluginBinding 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_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 +from .v1_rest_client_configuration import V1RESTClientConfiguration from .v1_rtc_timer import V1RTCTimer -from .v1_registry_disk_source import V1RegistryDiskSource +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_reserved_overhead import V1ReservedOverhead from .v1_resource_requirements import V1ResourceRequirements -from .v1_server_address_by_client_cidr import V1ServerAddressByClientCIDR -from .v1_status import V1Status -from .v1_status_cause import V1StatusCause -from .v1_status_details import V1StatusDetails +from .v1_resource_requirements_without_claims import V1ResourceRequirementsWithoutClaims +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_sevsnp import V1SEVSNP +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 +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 +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 +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 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 +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 +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 +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 +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 +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 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 @@ -103,9 +311,126 @@ 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_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 from .v1_virtual_machine_status import V1VirtualMachineStatus +from .v1_virtual_machine_volume_request import V1VirtualMachineVolumeRequest from .v1_volume import V1Volume -from .v1_watch_event import V1WatchEvent +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 .v1_weighted_pod_affinity_term import V1WeightedPodAffinityTerm +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 +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 +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 +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 +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 +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_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 +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 +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 +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 +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 +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_virtual_machine_template_spec import V1beta1VirtualMachineTemplateSpec +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/v1_affinity.py b/kubevirt/models/k8s_io_api_core_v1_affinity.py similarity index 64% rename from kubevirt/models/v1_affinity.py rename to kubevirt/models/k8s_io_api_core_v1_affinity.py index d3e1e738..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. - Node affinity support + 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. - Node affinity support + 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. - Pod affinity support + 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. - Pod affinity support + 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. - Pod anti-affinity support + 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. - Pod anti-affinity support + 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/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..340436df --- /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='', 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, namespace and uid 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, namespace and uid 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 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 + """ + return self._mode + + @mode.setter + def mode(self, mode): + """ + Sets the mode of this K8sIoApiCoreV1DownwardAPIVolumeFile. + 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 + """ + + 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_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/k8s_io_api_core_v1_http_get_action.py b/kubevirt/models/k8s_io_api_core_v1_http_get_action.py new file mode 100644 index 00000000..b9dbc474 --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_http_get_action.py @@ -0,0 +1,215 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApiCoreV1HTTPGetAction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[K8sIoApiCoreV1HTTPHeader]', + '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): + """ + K8sIoApiCoreV1HTTPGetAction - 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 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 K8sIoApiCoreV1HTTPGetAction. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """ + 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 K8sIoApiCoreV1HTTPGetAction. + :type: str + """ + + self._host = host + + @property + def http_headers(self): + """ + Gets the http_headers of this K8sIoApiCoreV1HTTPGetAction. + Custom headers to set in the request. HTTP allows repeated headers. + + :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 K8sIoApiCoreV1HTTPGetAction. + Custom headers to set in the request. HTTP allows repeated headers. + + :param http_headers: The http_headers of this K8sIoApiCoreV1HTTPGetAction. + :type: list[K8sIoApiCoreV1HTTPHeader] + """ + + self._http_headers = http_headers + + @property + def path(self): + """ + Gets the path of this K8sIoApiCoreV1HTTPGetAction. + Path to access on the HTTP server. + + :return: The path of this K8sIoApiCoreV1HTTPGetAction. + :rtype: str + """ + return self._path + + @path.setter + def path(self, path): + """ + Sets the path of this K8sIoApiCoreV1HTTPGetAction. + Path to access on the HTTP server. + + :param path: The path of this K8sIoApiCoreV1HTTPGetAction. + :type: str + """ + + self._path = path + + @property + def scheme(self): + """ + Gets the scheme of this K8sIoApiCoreV1HTTPGetAction. + 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 + """ + return self._scheme + + @scheme.setter + def scheme(self, scheme): + """ + Sets the scheme of this K8sIoApiCoreV1HTTPGetAction. + 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 + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, K8sIoApiCoreV1HTTPGetAction): + return False + + return self.__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_http_header.py b/kubevirt/models/k8s_io_api_core_v1_http_header.py new file mode 100644 index 00000000..a2baf1fc --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_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 K8sIoApiCoreV1HTTPHeader(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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='', value=''): + """ + K8sIoApiCoreV1HTTPHeader - 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 K8sIoApiCoreV1HTTPHeader. + 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 + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this K8sIoApiCoreV1HTTPHeader. + 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 + """ + 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 K8sIoApiCoreV1HTTPHeader. + The header field value + + :return: The value of this K8sIoApiCoreV1HTTPHeader. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + Sets the value of this K8sIoApiCoreV1HTTPHeader. + The header field value + + :param value: The value of this K8sIoApiCoreV1HTTPHeader. + :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, K8sIoApiCoreV1HTTPHeader): + return False + + return self.__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_local_object_reference.py b/kubevirt/models/k8s_io_api_core_v1_local_object_reference.py new file mode 100644 index 00000000..34ebb706 --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_local_object_reference.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 K8sIoApiCoreV1LocalObjectReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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=''): + """ + K8sIoApiCoreV1LocalObjectReference - 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 K8sIoApiCoreV1LocalObjectReference. + 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 + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this K8sIoApiCoreV1LocalObjectReference. + 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 + """ + + 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, K8sIoApiCoreV1LocalObjectReference): + return False + + return self.__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_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 71% rename from kubevirt/models/v1_node_selector_requirement.py rename to kubevirt/models/k8s_io_api_core_v1_node_selector_requirement.py index 72747f2b..ef8e837d 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. @@ -42,9 +42,9 @@ class V1NodeSelectorRequirement(object): 'values': 'values' } - def __init__(self, key=None, operator=None, values=None): + def __init__(self, key='', operator='', 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. - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + 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. Possible enum values: - `\"DoesNotExist\"` - `\"Exists\"` - `\"Gt\"` - `\"In\"` - `\"Lt\"` - `\"NotIn\"` - :return: The operator of this V1NodeSelectorRequirement. + :return: The operator of this K8sIoApiCoreV1NodeSelectorRequirement. :rtype: str """ return self._operator @@ -95,24 +95,30 @@ def operator(self): @operator.setter def operator(self, operator): """ - Sets the operator of this V1NodeSelectorRequirement. - Represents a key's relationship to a set of values. Valid operators are In, NotIn, Exists, DoesNotExist. Gt, and Lt. + 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. Possible enum values: - `\"DoesNotExist\"` - `\"Exists\"` - `\"Gt\"` - `\"In\"` - `\"Lt\"` - `\"NotIn\"` - :param operator: The operator of this V1NodeSelectorRequirement. + :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 @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 +126,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 +177,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 56% rename from kubevirt/models/v1_node_selector_term.py rename to kubevirt/models/k8s_io_api_core_v1_node_selector_term.py index 6e34f8c6..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,47 +31,74 @@ class V1NodeSelectorTerm(object): and the value is json key in definition. """ swagger_types = { - 'match_expressions': 'list[V1NodeSelectorRequirement]' + 'match_expressions': 'list[K8sIoApiCoreV1NodeSelectorRequirement]', + 'match_fields': 'list[K8sIoApiCoreV1NodeSelectorRequirement]' } 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 + K8sIoApiCoreV1NodeSelectorTerm - 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. + 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. - Required. A list of node selector requirements. The requirements are ANDed. + 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] """ - 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 K8sIoApiCoreV1NodeSelectorTerm. + A list of node selector requirements by node's fields. + + :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 K8sIoApiCoreV1NodeSelectorTerm. + A list of node selector requirements by node's fields. + + :param match_fields: The match_fields of this K8sIoApiCoreV1NodeSelectorTerm. + :type: list[K8sIoApiCoreV1NodeSelectorRequirement] + """ + + self._match_fields = match_fields + def to_dict(self): """ Returns the model properties as a dict @@ -114,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/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..bfd2e60d --- /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=''): + """ + 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_persistent_volume_claim_spec.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py new file mode 100644 index 00000000..9653d39c --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py @@ -0,0 +1,362 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApiCoreV1PersistentVolumeClaimSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + 'data_source_ref': 'K8sIoApiCoreV1TypedObjectReference', + 'resources': 'K8sIoApiCoreV1VolumeResourceRequirements', + 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'storage_class_name': 'str', + 'volume_attributes_class_name': 'str', + 'volume_mode': 'str', + 'volume_name': 'str' + } + + attribute_map = { + 'access_modes': 'accessModes', + 'data_source': 'dataSource', + 'data_source_ref': 'dataSourceRef', + '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_attributes_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 + self._volume_attributes_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 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: + 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: + self.volume_name = volume_name + + @property + 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 + + :return: The access_modes of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :rtype: list[str] + """ + return self._access_modes + + @access_modes.setter + 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 + + :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 + + @property + def data_source(self): + """ + Gets the data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + 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 + """ + return self._data_source + + @data_source.setter + def data_source(self, data_source): + """ + Sets the data_source of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + 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 + """ + + self._data_source = data_source + + @property + def data_source_ref(self): + """ + Gets the data_source_ref of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + 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: K8sIoApiCoreV1TypedObjectReference + """ + 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. + 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: K8sIoApiCoreV1TypedObjectReference + """ + + 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. 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: K8sIoApiCoreV1VolumeResourceRequirements + """ + return self._resources + + @resources.setter + 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 + + :param resources: The resources of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :type: K8sIoApiCoreV1VolumeResourceRequirements + """ + + self._resources = resources + + @property + def selector(self): + """ + Gets the selector of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + selector is a label query over volumes to consider for binding. + + :return: The selector of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + selector is a label query over volumes to consider for binding. + + :param selector: The selector of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._selector = selector + + @property + def storage_class_name(self): + """ + Gets the storage_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + 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 + """ + return self._storage_class_name + + @storage_class_name.setter + def storage_class_name(self, storage_class_name): + """ + Sets the storage_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + 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 + """ + + 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 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 + """ + 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 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 + """ + + self._volume_attributes_class_name = volume_attributes_class_name + + @property + 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. - `\"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 + """ + return self._volume_mode + + @volume_mode.setter + 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. - `\"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", "FromStorageProfile"] + 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 + + @property + def volume_name(self): + """ + Gets the volume_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + volumeName is the binding reference to the PersistentVolume backing this claim. + + :return: The volume_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """ + 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 K8sIoApiCoreV1PersistentVolumeClaimSpec. + :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, K8sIoApiCoreV1PersistentVolumeClaimSpec): + return False + + return self.__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_volume_source.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source.py new file mode 100644 index 00000000..207444a6 --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_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 K8sIoApiCoreV1PersistentVolumeClaimVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + 'read_only': 'bool' + } + + attribute_map = { + 'claim_name': 'claimName', + 'read_only': 'readOnly' + } + + def __init__(self, claim_name='', read_only=None): + """ + K8sIoApiCoreV1PersistentVolumeClaimVolumeSource - a model defined in Swagger + """ + + self._claim_name = None + self._read_only = None + + self.claim_name = claim_name + if read_only is not None: + self.read_only = read_only + + @property + 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 + + :return: The claim_name of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. + :rtype: str + """ + return self._claim_name + + @claim_name.setter + 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 + + :param claim_name: The claim_name of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. + :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 read_only(self): + """ + Gets the read_only of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. + + :return: The read_only of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. + :rtype: bool + """ + return self._read_only + + @read_only.setter + def read_only(self, read_only): + """ + Sets the read_only of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. + + :param read_only: The read_only of this K8sIoApiCoreV1PersistentVolumeClaimVolumeSource. + :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, K8sIoApiCoreV1PersistentVolumeClaimVolumeSource): + return False + + return self.__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.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/k8s_io_api_core_v1_pod_affinity_term.py b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py new file mode 100644 index 00000000..b9488e41 --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.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 K8sIoApiCoreV1PodAffinityTerm(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + 'match_label_keys': 'list[str]', + 'mismatch_label_keys': 'list[str]', + 'namespace_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'namespaces': 'list[str]', + 'topology_key': 'str' + } + + 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, 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: + self.namespaces = namespaces + self.topology_key = topology_key + + @property + def label_selector(self): + """ + Gets the label_selector of this K8sIoApiCoreV1PodAffinityTerm. + 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 + """ + return self._label_selector + + @label_selector.setter + 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. If it's null, this PodAffinityTerm matches with no Pods. + + :param label_selector: The label_selector of this K8sIoApiCoreV1PodAffinityTerm. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + 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. + + :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. + + :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. + + :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. + + :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): + """ + 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. + + :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. + + :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 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] + """ + return self._namespaces + + @namespaces.setter + 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\". + + :param namespaces: The namespaces of this K8sIoApiCoreV1PodAffinityTerm. + :type: list[str] + """ + + self._namespaces = namespaces + + @property + def topology_key(self): + """ + 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 K8sIoApiCoreV1PodAffinityTerm. + :rtype: str + """ + return self._topology_key + + @topology_key.setter + def topology_key(self, topology_key): + """ + 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 K8sIoApiCoreV1PodAffinityTerm. + :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, K8sIoApiCoreV1PodAffinityTerm): + return False + + return self.__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/k8s_io_api_core_v1_pod_anti_affinity.py similarity index 84% rename from kubevirt/models/v1_pod_anti_affinity.py rename to kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.py index 783e0867..9f5b05a1 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. - 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. + 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 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 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. - 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. + 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 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 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/k8s_io_api_core_v1_pod_dns_config.py b/kubevirt/models/k8s_io_api_core_v1_pod_dns_config.py new file mode 100644 index 00000000..ee5e15e2 --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_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 K8sIoApiCoreV1PodDNSConfig(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[K8sIoApiCoreV1PodDNSConfigOption]', + 'searches': 'list[str]' + } + + attribute_map = { + 'nameservers': 'nameservers', + 'options': 'options', + 'searches': 'searches' + } + + def __init__(self, nameservers=None, options=None, searches=None): + """ + K8sIoApiCoreV1PodDNSConfig - 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 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 K8sIoApiCoreV1PodDNSConfig. + :rtype: list[str] + """ + return self._nameservers + + @nameservers.setter + def nameservers(self, nameservers): + """ + 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 K8sIoApiCoreV1PodDNSConfig. + :type: list[str] + """ + + self._nameservers = nameservers + + @property + def options(self): + """ + 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 K8sIoApiCoreV1PodDNSConfig. + :rtype: list[K8sIoApiCoreV1PodDNSConfigOption] + """ + return self._options + + @options.setter + def options(self, options): + """ + 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 K8sIoApiCoreV1PodDNSConfig. + :type: list[K8sIoApiCoreV1PodDNSConfigOption] + """ + + self._options = options + + @property + def searches(self): + """ + 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 K8sIoApiCoreV1PodDNSConfig. + :rtype: list[str] + """ + return self._searches + + @searches.setter + def searches(self, searches): + """ + 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 K8sIoApiCoreV1PodDNSConfig. + :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, K8sIoApiCoreV1PodDNSConfig): + return False + + return self.__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_pod_dns_config_option.py b/kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.py new file mode 100644 index 00000000..c2d968e6 --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.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 K8sIoApiCoreV1PodDNSConfigOption(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + K8sIoApiCoreV1PodDNSConfigOption - 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 K8sIoApiCoreV1PodDNSConfigOption. + Name is this DNS resolver option's name. Required. + + :return: The name of this K8sIoApiCoreV1PodDNSConfigOption. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this K8sIoApiCoreV1PodDNSConfigOption. + Name is this DNS resolver option's name. Required. + + :param name: The name of this K8sIoApiCoreV1PodDNSConfigOption. + :type: str + """ + + self._name = name + + @property + 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 + """ + return self._value + + @value.setter + 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 + """ + + 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, K8sIoApiCoreV1PodDNSConfigOption): + return False + + return self.__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_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_preferred_scheduling_term.py b/kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.py similarity index 77% rename from kubevirt/models/v1_preferred_scheduling_term.py rename to kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.py index 2ada8730..ce6bb6e0 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' } @@ -40,9 +40,9 @@ class V1PreferredSchedulingTerm(object): 'weight': 'weight' } - def __init__(self, preference=None, weight=None): + def __init__(self, preference=None, weight=0): """ - 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_field_selector.py b/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.py new file mode 100644 index 00000000..fe1a9a21 --- /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=''): + """ + 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/k8s_io_api_core_v1_tcp_socket_action.py b/kubevirt/models/k8s_io_api_core_v1_tcp_socket_action.py new file mode 100644 index 00000000..1166d8d5 --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_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 K8sIoApiCoreV1TCPSocketAction(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + K8sIoApiCoreV1TCPSocketAction - 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 K8sIoApiCoreV1TCPSocketAction. + Optional: Host name to connect to, defaults to the pod IP. + + :return: The host of this K8sIoApiCoreV1TCPSocketAction. + :rtype: str + """ + return self._host + + @host.setter + def host(self, host): + """ + Sets the host of this K8sIoApiCoreV1TCPSocketAction. + Optional: Host name to connect to, defaults to the pod IP. + + :param host: The host of this K8sIoApiCoreV1TCPSocketAction. + :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, K8sIoApiCoreV1TCPSocketAction): + return False + + return self.__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_toleration.py b/kubevirt/models/k8s_io_api_core_v1_toleration.py new file mode 100644 index 00000000..d33c0f5f --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_toleration.py @@ -0,0 +1,249 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class K8sIoApiCoreV1Toleration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + K8sIoApiCoreV1Toleration - 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 K8sIoApiCoreV1Toleration. + 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 + """ + return self._effect + + @effect.setter + 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. 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 + + @property + def key(self): + """ + 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 K8sIoApiCoreV1Toleration. + :rtype: str + """ + return self._key + + @key.setter + def key(self, key): + """ + 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 K8sIoApiCoreV1Toleration. + :type: str + """ + + self._key = key + + @property + 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. Possible enum values: - `\"Equal\"` - `\"Exists\"` + + :return: The operator of this K8sIoApiCoreV1Toleration. + :rtype: str + """ + return self._operator + + @operator.setter + 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. 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 + + @property + def toleration_seconds(self): + """ + 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 K8sIoApiCoreV1Toleration. + :rtype: int + """ + return self._toleration_seconds + + @toleration_seconds.setter + def toleration_seconds(self, toleration_seconds): + """ + 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 K8sIoApiCoreV1Toleration. + :type: int + """ + + self._toleration_seconds = toleration_seconds + + @property + def value(self): + """ + 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 K8sIoApiCoreV1Toleration. + :rtype: str + """ + return self._value + + @value.setter + def value(self, value): + """ + 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 K8sIoApiCoreV1Toleration. + :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, K8sIoApiCoreV1Toleration): + return False + + return self.__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_topology_spread_constraint.py b/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py new file mode 100644 index 00000000..a4d723f9 --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py @@ -0,0 +1,342 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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', + '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, 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 + + @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 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. 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] + """ + 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. 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] + """ + + 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. 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 + """ + 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. 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 + """ + if max_skew is None: + raise ValueError("Invalid value for `max_skew`, must not be `None`") + + 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. + + :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. + + :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. 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. 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. 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. 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. 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 + """ + 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. 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 + """ + 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. 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 + """ + 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. 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 + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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/k8s_io_api_core_v1_typed_local_object_reference.py b/kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.py new file mode 100644 index 00000000..d9156728 --- /dev/null +++ b/kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.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 K8sIoApiCoreV1TypedLocalObjectReference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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='', name=''): + """ + K8sIoApiCoreV1TypedLocalObjectReference - a model defined in Swagger + """ + + self._api_group = None + self._kind = None + self._name = None + + if api_group is not None: + self.api_group = api_group + self.kind = kind + self.name = name + + @property + def api_group(self): + """ + 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 K8sIoApiCoreV1TypedLocalObjectReference. + :rtype: str + """ + return self._api_group + + @api_group.setter + def api_group(self, api_group): + """ + 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 K8sIoApiCoreV1TypedLocalObjectReference. + :type: str + """ + + self._api_group = api_group + + @property + def kind(self): + """ + Gets the kind of this K8sIoApiCoreV1TypedLocalObjectReference. + Kind is the type of resource being referenced + + :return: The kind of this K8sIoApiCoreV1TypedLocalObjectReference. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + Sets the kind of this K8sIoApiCoreV1TypedLocalObjectReference. + Kind is the type of resource being referenced + + :param kind: The kind of this K8sIoApiCoreV1TypedLocalObjectReference. + :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 K8sIoApiCoreV1TypedLocalObjectReference. + Name is the name of resource being referenced + + :return: The name of this K8sIoApiCoreV1TypedLocalObjectReference. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this K8sIoApiCoreV1TypedLocalObjectReference. + Name is the name of resource being referenced + + :param name: The name of this K8sIoApiCoreV1TypedLocalObjectReference. + :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, K8sIoApiCoreV1TypedLocalObjectReference): + return False + + return self.__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_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_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/v1_weighted_pod_affinity_term.py b/kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.py similarity index 78% 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..0d939ad1 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' } @@ -40,9 +40,9 @@ class V1WeightedPodAffinityTerm(object): 'weight': 'weight' } - def __init__(self, pod_affinity_term=None, weight=None): + def __init__(self, pod_affinity_term=None, weight=0): """ - 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/v1_api_group.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py similarity index 67% rename from kubevirt/models/v1_api_group.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.py index 528f5381..9d7d0c50 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 = { @@ -48,9 +48,9 @@ class V1APIGroup(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): """ - V1APIGroup - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1APIGroup - a model defined in Swagger """ self._api_version = None @@ -67,16 +67,17 @@ 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 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 + 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 @@ -84,10 +85,10 @@ def api_version(self): @api_version.setter 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 + 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 """ @@ -96,10 +97,10 @@ def api_version(self, api_version): @property 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 + 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 @@ -107,10 +108,10 @@ def kind(self): @kind.setter 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 + 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 """ @@ -119,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 @@ -130,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: @@ -144,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 @@ -167,47 +168,45 @@ 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] """ - 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 @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`") @@ -256,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 70% 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 bf29f716..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. - APIVersion defines the versioned schema of this representation of an object. 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 + 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. - APIVersion defines the versioned schema of this representation of an object. 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 + 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. - Kind is a string value representing the REST resource this object represents. Servers may 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 + 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. - Kind is a string value representing the REST resource this object represents. Servers may 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 + 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 62% rename from kubevirt/models/v1_api_resource.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.py index 64fe7df4..cd551c6f 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. @@ -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,13 +51,14 @@ 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='', name='', namespaced=False, short_names=None, singular_name='', storage_version_hash=None, verbs=None, version=None): """ - V1APIResource - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1APIResource - a model defined in Swagger """ self._categories = None @@ -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 @@ -86,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 @@ -97,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] """ @@ -109,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 @@ -120,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 """ @@ -132,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 @@ -143,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: @@ -157,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 @@ -168,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: @@ -182,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 @@ -193,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: @@ -207,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 @@ -218,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] """ @@ -230,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 @@ -241,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: @@ -252,13 +257,36 @@ def singular_name(self, singular_name): self._singular_name = singular_name + @property + def storage_version_hash(self): + """ + 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 K8sIoApimachineryPkgApisMetaV1APIResource. + :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 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 K8sIoApimachineryPkgApisMetaV1APIResource. + :type: str + """ + + self._storage_version_hash = 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 @@ -266,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: @@ -280,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 @@ -291,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 """ @@ -342,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 68% 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 346d153f..422a66b0 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 = { @@ -44,9 +44,9 @@ class V1APIResourceList(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): """ - 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. - APIVersion defines the versioned schema of this representation of an object. 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 + 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. - APIVersion defines the versioned schema of this representation of an object. 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 + 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. - Kind is a string value representing the REST resource this object represents. Servers may 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 + 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. - Kind is a string value representing the REST resource this object represents. Servers may 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 + 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 52% rename from kubevirt/models/v1_delete_options.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py index fba0c334..b920ead8 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. @@ -32,29 +32,35 @@ class V1DeleteOptions(object): """ swagger_types = { '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': 'V1Preconditions', - 'propagation_policy': 'V1DeletionPropagation' + 'preconditions': 'K8sIoApimachineryPkgApisMetaV1Preconditions', + 'propagation_policy': 'str' } attribute_map = { '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, 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): """ - V1DeleteOptions - a model defined in Swagger + K8sIoApimachineryPkgApisMetaV1DeleteOptions - a model defined in Swagger """ 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 @@ -62,8 +68,12 @@ 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 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: @@ -76,10 +86,10 @@ def __init__(self, api_version=None, grace_period_seconds=None, kind=None, orpha @property 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 + 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 @@ -87,22 +97,45 @@ def api_version(self): @api_version.setter 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 + 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 """ self._api_version = api_version + @property + def dry_run(self): + """ + 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 K8sIoApimachineryPkgApisMetaV1DeleteOptions. + :rtype: list[str] + """ + return self._dry_run + + @dry_run.setter + def dry_run(self, dry_run): + """ + 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 K8sIoApimachineryPkgApisMetaV1DeleteOptions. + :type: list[str] + """ + + self._dry_run = 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 @@ -110,22 +143,45 @@ 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 """ 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): """ - 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 + 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 @@ -133,10 +189,10 @@ def kind(self): @kind.setter 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 + 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 """ @@ -145,10 +201,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 @@ -156,10 +212,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 """ @@ -168,22 +224,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 @@ -191,22 +247,22 @@ 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. - :rtype: V1DeletionPropagation + :return: The propagation_policy of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. + :rtype: str """ return self._propagation_policy @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. - :type: V1DeletionPropagation + :param propagation_policy: The propagation_policy of this K8sIoApimachineryPkgApisMetaV1DeleteOptions. + :type: str """ self._propagation_policy = propagation_policy @@ -253,7 +309,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/k8s_io_apimachinery_pkg_apis_meta_v1_duration.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_duration.py new file mode 100644 index 00000000..87b06a2d --- /dev/null +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_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 K8sIoApimachineryPkgApisMetaV1Duration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + K8sIoApimachineryPkgApisMetaV1Duration - 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, K8sIoApimachineryPkgApisMetaV1Duration): + return False + + return self.__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_fields_v1.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_fields_v1.py new file mode 100644 index 00000000..1f0593a2 --- /dev/null +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_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 K8sIoApimachineryPkgApisMetaV1FieldsV1(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + K8sIoApimachineryPkgApisMetaV1FieldsV1 - 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, K8sIoApimachineryPkgApisMetaV1FieldsV1): + return False + + return self.__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_group_version_for_discovery.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.py similarity index 77% 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..e63f5288 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. @@ -40,9 +40,9 @@ class V1GroupVersionForDiscovery(object): 'version': 'version' } - def __init__(self, group_version=None, version=None): + def __init__(self, group_version='', version=''): """ - 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 75% 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..97b3465e 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. @@ -42,9 +42,9 @@ class V1LabelSelectorRequirement(object): 'values': 'values' } - def __init__(self, key=None, operator=None, values=None): + def __init__(self, key='', operator='', 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 50% rename from kubevirt/models/v1_list_meta.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.py index 071e0a13..492cd094 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. @@ -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 + K8sIoApimachineryPkgApisMetaV1ListMeta - 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: @@ -61,10 +66,10 @@ def __init__(self, _continue=None, resource_version=None, self_link=None): @property 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. + 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 @@ -72,22 +77,45 @@ def _continue(self): @_continue.setter 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. + 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 """ self.__continue = _continue + @property + def remaining_item_count(self): + """ + 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 K8sIoApimachineryPkgApisMetaV1ListMeta. + :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 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 K8sIoApimachineryPkgApisMetaV1ListMeta. + :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 + 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 @@ -95,10 +123,10 @@ def resource_version(self): @resource_version.setter 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 + 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 """ @@ -107,10 +135,10 @@ def resource_version(self, resource_version): @property def self_link(self): """ - Gets the self_link of this V1ListMeta. - selfLink is a URL representing this object. Populated by the system. Read-only. + Gets the self_link of this K8sIoApimachineryPkgApisMetaV1ListMeta. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. - :return: The self_link of this V1ListMeta. + :return: The self_link of this K8sIoApimachineryPkgApisMetaV1ListMeta. :rtype: str """ return self._self_link @@ -118,10 +146,10 @@ def self_link(self): @self_link.setter 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. + Sets the self_link of this K8sIoApimachineryPkgApisMetaV1ListMeta. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. - :param self_link: The self_link of this V1ListMeta. + :param self_link: The self_link of this K8sIoApimachineryPkgApisMetaV1ListMeta. :type: str """ @@ -169,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/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 new file mode 100644 index 00000000..935b3f85 --- /dev/null +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.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 K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'K8sIoApimachineryPkgApisMetaV1FieldsV1', + 'manager': 'str', + 'operation': 'str', + 'subresource': 'str', + 'time': 'K8sIoApimachineryPkgApisMetaV1Time' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'fields_type': 'fieldsType', + '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, subresource=None, time=None): + """ + K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry - a model defined in Swagger + """ + + self._api_version = None + self._fields_type = None + self._fields_v1 = None + self._manager = None + self._operation = None + self._subresource = 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 subresource is not None: + self.subresource = subresource + if time is not None: + self.time = time + + @property + def api_version(self): + """ + 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 K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :type: str + """ + + self._api_version = api_version + + @property + def fields_type(self): + """ + 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 K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :rtype: str + """ + return self._fields_type + + @fields_type.setter + def fields_type(self, fields_type): + """ + 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 K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :type: str + """ + + self._fields_type = fields_type + + @property + def fields_v1(self): + """ + 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 K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :rtype: K8sIoApimachineryPkgApisMetaV1FieldsV1 + """ + return self._fields_v1 + + @fields_v1.setter + def fields_v1(self, fields_v1): + """ + 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 K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :type: K8sIoApimachineryPkgApisMetaV1FieldsV1 + """ + + self._fields_v1 = fields_v1 + + @property + def manager(self): + """ + Gets the manager of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + Manager is an identifier of the workflow managing these fields. + + :return: The manager of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :rtype: str + """ + return self._manager + + @manager.setter + def manager(self, manager): + """ + Sets the manager of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + Manager is an identifier of the workflow managing these fields. + + :param manager: The manager of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :type: str + """ + + self._manager = manager + + @property + def operation(self): + """ + 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 K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :rtype: str + """ + return self._operation + + @operation.setter + def operation(self, operation): + """ + 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 K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + :type: str + """ + + 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): + """ + Gets the time of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + 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 + """ + return self._time + + @time.setter + def time(self, time): + """ + Sets the time of this K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry. + 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 + """ + + 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, K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry): + return False + + return self.__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/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py similarity index 59% rename from kubevirt/models/v1_object_meta.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py index f305461e..ffe6bc23 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. @@ -32,18 +32,16 @@ class V1ObjectMeta(object): """ swagger_types = { 'annotations': 'dict(str, str)', - 'cluster_name': 'str', - 'creation_timestamp': 'str', 'deletion_grace_period_seconds': 'int', - 'deletion_timestamp': 'str', + 'deletion_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', 'finalizers': 'list[str]', 'generate_name': 'str', 'generation': 'int', - 'initializers': 'V1Initializers', 'labels': 'dict(str, str)', + 'managed_fields': 'list[K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry]', 'name': 'str', 'namespace': 'str', - 'owner_references': 'list[V1OwnerReference]', + 'owner_references': 'list[K8sIoApimachineryPkgApisMetaV1OwnerReference]', 'resource_version': 'str', 'self_link': 'str', 'uid': 'str' @@ -51,15 +49,13 @@ class V1ObjectMeta(object): attribute_map = { 'annotations': 'annotations', - 'cluster_name': 'clusterName', - 'creation_timestamp': 'creationTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', 'finalizers': 'finalizers', 'generate_name': 'generateName', 'generation': 'generation', - 'initializers': 'initializers', 'labels': 'labels', + 'managed_fields': 'managedFields', 'name': 'name', 'namespace': 'namespace', 'owner_references': 'ownerReferences', @@ -68,21 +64,19 @@ 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, 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 - self._cluster_name = None - self._creation_timestamp = None self._deletion_grace_period_seconds = None self._deletion_timestamp = None 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 @@ -92,10 +86,6 @@ def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, if annotations is not 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: @@ -106,10 +96,10 @@ def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, 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: @@ -126,10 +116,10 @@ def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, @property def annotations(self): """ - Gets the annotations of this V1ObjectMeta. - 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 + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations - :return: The annotations of this V1ObjectMeta. + :return: The annotations of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: dict(str, str) """ return self._annotations @@ -137,68 +127,22 @@ def annotations(self): @annotations.setter def annotations(self, annotations): """ - Sets the annotations of this V1ObjectMeta. - 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 + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations - :param annotations: The annotations of this V1ObjectMeta. + :param annotations: The annotations of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: dict(str, str) """ self._annotations = annotations - @property - def cluster_name(self): - """ - Gets the cluster_name of this V1ObjectMeta. - 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. - :rtype: str - """ - return self._cluster_name - - @cluster_name.setter - def cluster_name(self, cluster_name): - """ - Sets the cluster_name of this V1ObjectMeta. - 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. - :type: str - """ - - 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): """ - 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 @@ -206,10 +150,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 """ @@ -218,22 +162,22 @@ def deletion_grace_period_seconds(self, deletion_grace_period_seconds): @property 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 + 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: str + :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. - 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 + 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: str + :param deletion_timestamp: The deletion_timestamp of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. + :type: K8sIoApimachineryPkgApisMetaV1Time """ self._deletion_timestamp = deletion_timestamp @@ -241,10 +185,10 @@ def deletion_timestamp(self, deletion_timestamp): @property def finalizers(self): """ - Gets the finalizers of this V1ObjectMeta. - 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. + 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. 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 V1ObjectMeta. + :return: The finalizers of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: list[str] """ return self._finalizers @@ -252,10 +196,10 @@ def finalizers(self): @finalizers.setter def finalizers(self, finalizers): """ - Sets the finalizers of this V1ObjectMeta. - 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. + 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. 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 V1ObjectMeta. + :param finalizers: The finalizers of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: list[str] """ @@ -264,10 +208,10 @@ def finalizers(self, finalizers): @property 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 + 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 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 V1ObjectMeta. + :return: The generate_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str """ return self._generate_name @@ -275,10 +219,10 @@ def generate_name(self): @generate_name.setter 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 + 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 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 V1ObjectMeta. + :param generate_name: The generate_name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str """ @@ -287,10 +231,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 @@ -298,68 +242,68 @@ 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 """ self._generation = generation @property - def initializers(self): + def labels(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. + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - :return: The initializers of this V1ObjectMeta. - :rtype: V1Initializers + :return: The labels of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. + :rtype: dict(str, str) """ - return self._initializers + return self._labels - @initializers.setter - def initializers(self, initializers): + @labels.setter + def labels(self, labels): """ - 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. + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels - :param initializers: The initializers of this V1ObjectMeta. - :type: V1Initializers + :param labels: The labels of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. + :type: dict(str, str) """ - self._initializers = initializers + self._labels = labels @property - def labels(self): + def managed_fields(self): """ - Gets the labels of this V1ObjectMeta. - 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 + 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 labels of this V1ObjectMeta. - :rtype: dict(str, str) + :return: The managed_fields of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. + :rtype: list[K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry] """ - return self._labels + return self._managed_fields - @labels.setter - def labels(self, labels): + @managed_fields.setter + def managed_fields(self, managed_fields): """ - Sets the labels of this V1ObjectMeta. - 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 + 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 labels: The labels of this V1ObjectMeta. - :type: dict(str, str) + :param managed_fields: The managed_fields of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. + :type: list[K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry] """ - self._labels = labels + self._managed_fields = managed_fields @property def name(self): """ - Gets the name of this V1ObjectMeta. - 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 + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names - :return: The name of this V1ObjectMeta. + :return: The name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str """ return self._name @@ -367,10 +311,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1ObjectMeta. - 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 + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names - :param name: The name of this V1ObjectMeta. + :param name: The name of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str """ @@ -379,10 +323,10 @@ def name(self, name): @property def namespace(self): """ - Gets the namespace of this V1ObjectMeta. - 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 + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces - :return: The namespace of this V1ObjectMeta. + :return: The namespace of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str """ return self._namespace @@ -390,10 +334,10 @@ def namespace(self): @namespace.setter def namespace(self, namespace): """ - Sets the namespace of this V1ObjectMeta. - 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 + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces - :param namespace: The namespace of this V1ObjectMeta. + :param namespace: The namespace of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str """ @@ -402,22 +346,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 @@ -425,10 +369,10 @@ def owner_references(self, owner_references): @property 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 + 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 @@ -436,10 +380,10 @@ def resource_version(self): @resource_version.setter 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 + 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 """ @@ -448,10 +392,10 @@ def resource_version(self, resource_version): @property def self_link(self): """ - Gets the self_link of this V1ObjectMeta. - SelfLink is a URL representing this object. Populated by the system. Read-only. + Gets the self_link of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. - :return: The self_link of this V1ObjectMeta. + :return: The self_link of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str """ return self._self_link @@ -459,10 +403,10 @@ def self_link(self): @self_link.setter 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. + Sets the self_link of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. - :param self_link: The self_link of this V1ObjectMeta. + :param self_link: The self_link of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str """ @@ -471,10 +415,10 @@ def self_link(self, self_link): @property def uid(self): """ - Gets the uid of this V1ObjectMeta. - 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 + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids - :return: The uid of this V1ObjectMeta. + :return: The uid of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :rtype: str """ return self._uid @@ -482,10 +426,10 @@ def uid(self): @uid.setter def uid(self, uid): """ - Sets the uid of this V1ObjectMeta. - 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 + 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: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#uids - :param uid: The uid of this V1ObjectMeta. + :param uid: The uid of this K8sIoApimachineryPkgApisMetaV1ObjectMeta. :type: str """ @@ -533,7 +477,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 60% rename from kubevirt/models/v1_owner_reference.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.py index 71fd2103..5438b95a 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. @@ -48,9 +48,9 @@ class V1OwnerReference(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=''): """ - 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. - 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. + 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. 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 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. - 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. + 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. 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 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. - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + 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. - Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + 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. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + Gets the name of this K8sIoApimachineryPkgApisMetaV1OwnerReference. + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#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. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names + Sets the name of this K8sIoApimachineryPkgApisMetaV1OwnerReference. + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#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. - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + Gets the uid of this K8sIoApimachineryPkgApisMetaV1OwnerReference. + UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#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. - UID of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#uids + Sets the uid of this K8sIoApimachineryPkgApisMetaV1OwnerReference. + UID of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#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/k8s_io_apimachinery_pkg_apis_meta_v1_patch.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_patch.py new file mode 100644 index 00000000..3e9e0106 --- /dev/null +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_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 K8sIoApimachineryPkgApisMetaV1Patch(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + K8sIoApimachineryPkgApisMetaV1Patch - 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, K8sIoApimachineryPkgApisMetaV1Patch): + return False + + return self.__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_preconditions.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.py new file mode 100644 index 00000000..250c2a28 --- /dev/null +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.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 K8sIoApimachineryPkgApisMetaV1Preconditions(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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_version': 'str', + 'uid': 'str' + } + + attribute_map = { + 'resource_version': 'resourceVersion', + 'uid': 'uid' + } + + def __init__(self, resource_version=None, uid=None): + """ + K8sIoApimachineryPkgApisMetaV1Preconditions - 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 K8sIoApimachineryPkgApisMetaV1Preconditions. + Specifies the target ResourceVersion + + :return: The resource_version of this K8sIoApimachineryPkgApisMetaV1Preconditions. + :rtype: str + """ + return self._resource_version + + @resource_version.setter + def resource_version(self, resource_version): + """ + Sets the resource_version of this K8sIoApimachineryPkgApisMetaV1Preconditions. + Specifies the target ResourceVersion + + :param resource_version: The resource_version of this K8sIoApimachineryPkgApisMetaV1Preconditions. + :type: str + """ + + self._resource_version = resource_version + + @property + def uid(self): + """ + Gets the uid of this K8sIoApimachineryPkgApisMetaV1Preconditions. + Specifies the target UID. + + :return: The uid of this K8sIoApimachineryPkgApisMetaV1Preconditions. + :rtype: str + """ + return self._uid + + @uid.setter + def uid(self, uid): + """ + Sets the uid of this K8sIoApimachineryPkgApisMetaV1Preconditions. + Specifies the target UID. + + :param uid: The uid of this K8sIoApimachineryPkgApisMetaV1Preconditions. + :type: str + """ + + 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, K8sIoApimachineryPkgApisMetaV1Preconditions): + return False + + return self.__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_root_paths.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.py new file mode 100644 index 00000000..08f26743 --- /dev/null +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_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 K8sIoApimachineryPkgApisMetaV1RootPaths(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + K8sIoApimachineryPkgApisMetaV1RootPaths - a model defined in Swagger + """ + + self._paths = None + + self.paths = paths + + @property + def paths(self): + """ + Gets the paths of this K8sIoApimachineryPkgApisMetaV1RootPaths. + paths are the paths available at root. + + :return: The paths of this K8sIoApimachineryPkgApisMetaV1RootPaths. + :rtype: list[str] + """ + return self._paths + + @paths.setter + def paths(self, paths): + """ + Sets the paths of this K8sIoApimachineryPkgApisMetaV1RootPaths. + paths are the paths available at root. + + :param paths: The paths of this K8sIoApimachineryPkgApisMetaV1RootPaths. + :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, K8sIoApimachineryPkgApisMetaV1RootPaths): + return False + + return self.__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_server_address_by_client_cidr.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.py similarity index 78% 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..d7093aef 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. @@ -40,9 +40,9 @@ class V1ServerAddressByClientCIDR(object): 'server_address': 'serverAddress' } - def __init__(self, client_cidr=None, server_address=None): + def __init__(self, client_cidr='', server_address=''): """ - 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 67% rename from kubevirt/models/v1_status.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status.py index dfdba16a..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. - APIVersion defines the versioned schema of this representation of an object. 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 + 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. - APIVersion defines the versioned schema of this representation of an object. 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 + 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. - Kind is a string value representing the REST resource this object represents. Servers may 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 + 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. - Kind is a string value representing the REST resource this object represents. Servers may 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 + 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. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + 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. - Standard list metadata. More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#types-kinds + 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. - Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + 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. - Status of the operation. One of: \"Success\" or \"Failure\". More info: https://git.k8s.io/community/contributors/devel/api-conventions.md#spec-and-status + 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 70% rename from kubevirt/models/v1_status_details.py rename to kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details.py index ced93a53..61dafadb 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. - 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 + 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. - 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 + 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. - UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids + Gets the uid of this K8sIoApimachineryPkgApisMetaV1StatusDetails. + 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 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. - UID of the resource. (when there is a single resource which can be described). More info: http://kubernetes.io/docs/user-guide/identifiers#uids + Sets the uid of this K8sIoApimachineryPkgApisMetaV1StatusDetails. + 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 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/k8s_io_apimachinery_pkg_apis_meta_v1_time.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_time.py new file mode 100644 index 00000000..8723999b --- /dev/null +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_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 K8sIoApimachineryPkgApisMetaV1Time(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + K8sIoApimachineryPkgApisMetaV1Time - 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, K8sIoApimachineryPkgApisMetaV1Time): + return False + + return self.__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_watch_event.py b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.py new file mode 100644 index 00000000..745fbdee --- /dev/null +++ b/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.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 K8sIoApimachineryPkgApisMetaV1WatchEvent(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'object': 'K8sIoApimachineryPkgRuntimeRawExtension', + 'type': 'str' + } + + attribute_map = { + 'object': 'object', + 'type': 'type' + } + + def __init__(self, object=None, type=''): + """ + K8sIoApimachineryPkgApisMetaV1WatchEvent - a model defined in Swagger + """ + + self._object = None + self._type = None + + self.object = object + self.type = type + + @property + def object(self): + """ + 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 K8sIoApimachineryPkgApisMetaV1WatchEvent. + :rtype: K8sIoApimachineryPkgRuntimeRawExtension + """ + return self._object + + @object.setter + def object(self, object): + """ + 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 K8sIoApimachineryPkgApisMetaV1WatchEvent. + :type: K8sIoApimachineryPkgRuntimeRawExtension + """ + if object is None: + raise ValueError("Invalid value for `object`, must not be `None`") + + self._object = object + + @property + def type(self): + """ + Gets the type of this K8sIoApimachineryPkgApisMetaV1WatchEvent. + + :return: The type of this K8sIoApimachineryPkgApisMetaV1WatchEvent. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this K8sIoApimachineryPkgApisMetaV1WatchEvent. + + :param type: The type of this K8sIoApimachineryPkgApisMetaV1WatchEvent. + :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, K8sIoApimachineryPkgApisMetaV1WatchEvent): + return False + + return self.__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_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_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..2df07899 --- /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=''): + """ + 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_acpi.py b/kubevirt/models/v1_acpi.py new file mode 100644 index 00000000..9db7f1fc --- /dev/null +++ b/kubevirt/models/v1_acpi.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 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 = { + 'msdm_name_ref': 'str', + 'slic_name_ref': 'str' + } + + attribute_map = { + 'msdm_name_ref': 'msdmNameRef', + 'slic_name_ref': 'slicNameRef' + } + + 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): + """ + 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_add_volume_options.py b/kubevirt/models/v1_add_volume_options.py new file mode 100644 index 00000000..20dfb0c7 --- /dev/null +++ b/kubevirt/models/v1_add_volume_options.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 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', + '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, dry_run=None, name='', 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 + + @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 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): + """ + 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_arch_configuration.py b/kubevirt/models/v1_arch_configuration.py new file mode 100644 index 00000000..4d2274af --- /dev/null +++ b/kubevirt/models/v1_arch_configuration.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 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', + 's390x': 'V1ArchSpecificConfiguration' + } + + attribute_map = { + 'amd64': 'amd64', + 'arm64': 'arm64', + 'default_architecture': 'defaultArchitecture', + 'ppc64le': 'ppc64le', + 's390x': 's390x' + } + + def __init__(self, amd64=None, arm64=None, default_architecture=None, ppc64le=None, s390x=None): + """ + V1ArchConfiguration - a model defined in Swagger + """ + + self._amd64 = None + self._arm64 = None + self._default_architecture = None + self._ppc64le = None + self._s390x = 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 + if s390x is not None: + self.s390x = s390x + + @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. + Deprecated: ppc64le architecture is no longer supported. + + :return: The ppc64le of this V1ArchConfiguration. + :rtype: V1ArchSpecificConfiguration + """ + return self._ppc64le + + @ppc64le.setter + 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 + """ + + 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_bios.py b/kubevirt/models/v1_bios.py new file mode 100644 index 00000000..3c502293 --- /dev/null +++ b/kubevirt/models/v1_bios.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 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 = { + 'use_serial': 'bool' + } + + attribute_map = { + 'use_serial': 'useSerial' + } + + 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): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_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/inf_dec.py b/kubevirt/models/v1_bootloader.py similarity index 63% rename from kubevirt/models/inf_dec.py rename to kubevirt/models/v1_bootloader.py index 02213f18..12b548e1 100644 --- a/kubevirt/models/inf_dec.py +++ b/kubevirt/models/v1_bootloader.py @@ -16,7 +16,7 @@ import re -class InfDec(object): +class V1Bootloader(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,71 +31,73 @@ class InfDec(object): and the value is json key in definition. """ swagger_types = { - 'scale': 'InfScale', - 'unscaled': 'BigInt' + 'bios': 'V1BIOS', + 'efi': 'V1EFI' } attribute_map = { - 'scale': 'scale', - 'unscaled': 'unscaled' + 'bios': 'bios', + 'efi': 'efi' } - def __init__(self, scale=None, unscaled=None): + def __init__(self, bios=None, efi=None): """ - InfDec - a model defined in Swagger + V1Bootloader - a model defined in Swagger """ - self._scale = None - self._unscaled = None + self._bios = None + self._efi = None - self.scale = scale - self.unscaled = unscaled + if bios is not None: + self.bios = bios + if efi is not None: + self.efi = efi @property - def scale(self): + def bios(self): """ - Gets the scale of this InfDec. + Gets the bios of this V1Bootloader. + If set (default), BIOS will be used. - :return: The scale of this InfDec. - :rtype: InfScale + :return: The bios of this V1Bootloader. + :rtype: V1BIOS """ - return self._scale + return self._bios - @scale.setter - def scale(self, scale): + @bios.setter + def bios(self, bios): """ - Sets the scale of this InfDec. + Sets the bios of this V1Bootloader. + If set (default), BIOS will be used. - :param scale: The scale of this InfDec. - :type: InfScale + :param bios: The bios of this V1Bootloader. + :type: V1BIOS """ - if scale is None: - raise ValueError("Invalid value for `scale`, must not be `None`") - self._scale = scale + self._bios = bios @property - def unscaled(self): + def efi(self): """ - Gets the unscaled of this InfDec. + Gets the efi of this V1Bootloader. + If set, EFI will be used instead of BIOS. - :return: The unscaled of this InfDec. - :rtype: BigInt + :return: The efi of this V1Bootloader. + :rtype: V1EFI """ - return self._unscaled + return self._efi - @unscaled.setter - def unscaled(self, unscaled): + @efi.setter + def efi(self, efi): """ - Sets the unscaled of this InfDec. + Sets the efi of this V1Bootloader. + If set, EFI will be used instead of BIOS. - :param unscaled: The unscaled of this InfDec. - :type: BigInt + :param efi: The efi of this V1Bootloader. + :type: V1EFI """ - if unscaled is None: - raise ValueError("Invalid value for `unscaled`, must not be `None`") - self._unscaled = unscaled + self._efi = efi def to_dict(self): """ @@ -139,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, InfDec): + if not isinstance(other, V1Bootloader): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_cd_rom_target.py b/kubevirt/models/v1_cd_rom_target.py index 7168a4b2..6914285c 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 @@ -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_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_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..8c30130a --- /dev/null +++ b/kubevirt/models/v1_changed_block_tracking_status.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 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 = { + 'backup_status': 'V1VirtualMachineInstanceBackupStatus', + 'state': 'str' + } + + attribute_map = { + 'backup_status': 'backupStatus', + 'state': '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): + """ + 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_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_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_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_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_cloud_init_config_drive_source.py b/kubevirt/models/v1_cloud_init_config_drive_source.py new file mode 100644 index 00000000..6894afd4 --- /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': 'K8sIoApiCoreV1LocalObjectReference', + 'secret_ref': 'K8sIoApiCoreV1LocalObjectReference', + '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. + + :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. + + :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. + + :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. + + :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. + + :return: The network_data_secret_ref of this V1CloudInitConfigDriveSource. + :rtype: K8sIoApiCoreV1LocalObjectReference + """ + 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. + + :param network_data_secret_ref: The network_data_secret_ref of this V1CloudInitConfigDriveSource. + :type: K8sIoApiCoreV1LocalObjectReference + """ + + 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. + + :return: The secret_ref of this V1CloudInitConfigDriveSource. + :rtype: K8sIoApiCoreV1LocalObjectReference + """ + 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. + + :param secret_ref: The secret_ref of this V1CloudInitConfigDriveSource. + :type: K8sIoApiCoreV1LocalObjectReference + """ + + 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. + + :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. + + :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. + + :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. + + :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_cloud_init_no_cloud_source.py b/kubevirt/models/v1_cloud_init_no_cloud_source.py index 60d5e83c..89a65f97 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 = { - 'secret_ref': 'V1LocalObjectReference', + 'network_data': 'str', + 'network_data_base64': 'str', + 'network_data_secret_ref': 'K8sIoApiCoreV1LocalObjectReference', + 'secret_ref': 'K8sIoApiCoreV1LocalObjectReference', '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,14 +73,83 @@ 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. + + :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. + + :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. + + :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. + + :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. + + :return: The network_data_secret_ref of this V1CloudInitNoCloudSource. + :rtype: K8sIoApiCoreV1LocalObjectReference + """ + 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. + + :param network_data_secret_ref: The network_data_secret_ref of this V1CloudInitNoCloudSource. + :type: K8sIoApiCoreV1LocalObjectReference + """ + + self._network_data_secret_ref = network_data_secret_ref + @property 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 + :rtype: K8sIoApiCoreV1LocalObjectReference """ return self._secret_ref @@ -73,10 +157,10 @@ 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 + :type: K8sIoApiCoreV1LocalObjectReference """ self._secret_ref = secret_ref @@ -85,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 @@ -96,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 @@ -108,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 @@ -119,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_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_component_config.py b/kubevirt/models/v1_component_config.py new file mode 100644 index 00000000..0cc37092 --- /dev/null +++ b/kubevirt/models/v1_component_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 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', + 'replicas': 'int' + } + + attribute_map = { + 'node_placement': 'nodePlacement', + 'replicas': 'replicas' + } + + 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 describes scheduling configuration 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 describes scheduling configuration for specific KubeVirt components + + :param node_placement: The node_placement of this V1ComponentConfig. + :type: V1NodePlacement + """ + + 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. 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 + """ + 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. 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 + """ + + 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, 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_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_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_config_map_volume_source.py b/kubevirt/models/v1_config_map_volume_source.py new file mode 100644 index 00000000..6bfbc5ad --- /dev/null +++ b/kubevirt/models/v1_config_map_volume_source.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 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', + 'volume_label': 'str' + } + + attribute_map = { + 'name': 'name', + 'optional': 'optional', + 'volume_label': 'volumeLabel' + } + + def __init__(self, name='', 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): + """ + Gets the name of this V1ConfigMapVolumeSource. + 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 + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1ConfigMapVolumeSource. + 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 + """ + + self._name = name + + @property + def optional(self): + """ + Gets the optional of this V1ConfigMapVolumeSource. + Specify whether the ConfigMap or it's keys must be defined + + :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 + + :param optional: The optional of this V1ConfigMapVolumeSource. + :type: bool + """ + + 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). + + :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). + + :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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_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_container_disk_source.py b/kubevirt/models/v1_container_disk_source.py new file mode 100644 index 00000000..86d1c12d --- /dev/null +++ b/kubevirt/models/v1_container_disk_source.py @@ -0,0 +1,216 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1ContainerDiskSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + 'path': 'str' + } + + attribute_map = { + 'image': 'image', + 'image_pull_policy': 'imagePullPolicy', + 'image_pull_secret': 'imagePullSecret', + 'path': 'path' + } + + def __init__(self, image='', 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: + self.path = path + + @property + def image(self): + """ + Gets the image of this V1ContainerDiskSource. + Image is the name of the image with the embedded disk. + + :return: The image of this V1ContainerDiskSource. + :rtype: str + """ + return self._image + + @image.setter + def image(self, image): + """ + Sets the image of this V1ContainerDiskSource. + Image is the name of the image with the embedded disk. + + :param image: The image of this V1ContainerDiskSource. + :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 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 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 + """ + 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 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 + + @property + def image_pull_secret(self): + """ + 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 V1ContainerDiskSource. + :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 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 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1ContainerDiskSource): + return False + + return self.__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_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_local_object_reference.py b/kubevirt/models/v1_controller_revision_ref.py similarity index 80% rename from kubevirt/models/v1_local_object_reference.py rename to kubevirt/models/v1_controller_revision_ref.py index 2e9cad07..700ca02e 100644 --- a/kubevirt/models/v1_local_object_reference.py +++ b/kubevirt/models/v1_controller_revision_ref.py @@ -16,7 +16,7 @@ import re -class V1LocalObjectReference(object): +class V1ControllerRevisionRef(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 + V1ControllerRevisionRef - 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. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Gets the name of this V1ControllerRevisionRef. + Name of the ControllerRevision - :return: The name of this V1LocalObjectReference. + :return: The name of this V1ControllerRevisionRef. :rtype: str """ return self._name @@ -62,10 +62,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1LocalObjectReference. - Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names + Sets the name of this V1ControllerRevisionRef. + Name of the ControllerRevision - :param name: The name of this V1LocalObjectReference. + :param name: The name of this V1ControllerRevisionRef. :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, V1ControllerRevisionRef): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_cpu.py b/kubevirt/models/v1_cpu.py index 049d0e56..589846b7 100644 --- a/kubevirt/models/v1_cpu.py +++ b/kubevirt/models/v1_cpu.py @@ -32,26 +32,66 @@ class V1CPU(object): """ swagger_types = { 'cores': 'int', - 'model': 'str' + 'dedicated_cpu_placement': 'bool', + 'features': 'list[V1CPUFeature]', + 'isolate_emulator_thread': 'bool', + 'max_sockets': 'int', + 'model': 'str', + 'numa': 'V1NUMA', + 'realtime': 'V1Realtime', + 'sockets': 'int', + 'threads': 'int' } attribute_map = { 'cores': 'cores', - 'model': 'model' + 'dedicated_cpu_placement': 'dedicatedCpuPlacement', + 'features': 'features', + 'isolate_emulator_thread': 'isolateEmulatorThread', + 'max_sockets': 'maxSockets', + 'model': 'model', + 'numa': 'numa', + 'realtime': 'realtime', + 'sockets': 'sockets', + 'threads': 'threads' } - def __init__(self, cores=None, model=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 """ self._cores = None + 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 + self._sockets = None + self._threads = None if cores is not None: 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 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: + self.numa = numa + if realtime is not None: + self.realtime = realtime + if sockets is not None: + self.sockets = sockets + if threads is not None: + self.threads = threads @property def cores(self): @@ -76,11 +116,103 @@ 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. + + :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. + + :param dedicated_cpu_placement: The dedicated_cpu_placement of this V1CPU. + :type: bool + """ + + 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. + + :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. + + :param features: The features of this V1CPU. + :type: list[V1CPUFeature] + """ + + 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. + + :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. + + :param isolate_emulator_thread: The isolate_emulator_thread of this V1CPU. + :type: bool + """ + + 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): """ 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/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 @@ -91,7 +223,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/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 @@ -99,6 +231,98 @@ 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 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): + """ + 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/kubevirt/models/v1_cpu_feature.py b/kubevirt/models/v1_cpu_feature.py new file mode 100644 index 00000000..7446987a --- /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='', 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 + + :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 + + :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/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_custom_block_size.py b/kubevirt/models/v1_custom_block_size.py new file mode 100644 index 00000000..e1fb6f58 --- /dev/null +++ b/kubevirt/models/v1_custom_block_size.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 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 = { + 'discard_granularity': 'int', + 'logical': 'int', + 'physical': 'int' + } + + attribute_map = { + 'discard_granularity': 'discardGranularity', + 'logical': 'logical', + 'physical': 'physical' + } + + 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 + + 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): + """ + 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 + """ + + 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 + """ + + 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_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_customize_components.py b/kubevirt/models/v1_customize_components.py new file mode 100644 index 00000000..d0845f65 --- /dev/null +++ b/kubevirt/models/v1_customize_components.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 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 = { + 'flags': 'V1Flags', + 'patches': 'list[V1CustomizeComponentsPatch]' + } + + attribute_map = { + 'flags': 'flags', + 'patches': 'patches' + } + + 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): + """ + Gets the patches of this V1CustomizeComponents. + + :return: The patches of this V1CustomizeComponents. + :rtype: list[V1CustomizeComponentsPatch] + """ + return self._patches + + @patches.setter + def patches(self, patches): + """ + Sets the patches of this V1CustomizeComponents. + + :param patches: The patches of this V1CustomizeComponents. + :type: list[V1CustomizeComponentsPatch] + """ + + 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_customize_components_patch.py b/kubevirt/models/v1_customize_components_patch.py new file mode 100644 index 00000000..d9fecee7 --- /dev/null +++ b/kubevirt/models/v1_customize_components_patch.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 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='', resource_name='', resource_type='', type=''): + """ + V1CustomizeComponentsPatch - a model defined in Swagger + """ + + self._patch = None + self._resource_name = None + self._resource_type = None + self._type = None + + self.patch = patch + self.resource_name = resource_name + self.resource_type = resource_type + 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 + """ + if patch is None: + raise ValueError("Invalid value for `patch`, must not be `None`") + + 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 + """ + if resource_name is None: + raise ValueError("Invalid value for `resource_name`, must not be `None`") + + 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 + """ + if resource_type is None: + raise ValueError("Invalid value for `resource_type`, must not be `None`") + + 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 + """ + 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, 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_data_volume_source.py b/kubevirt/models/v1_data_volume_source.py new file mode 100644 index 00000000..c1563cc4 --- /dev/null +++ b/kubevirt/models/v1_data_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 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 = { + 'hotpluggable': 'bool', + 'name': 'str' + } + + attribute_map = { + 'hotpluggable': 'hotpluggable', + 'name': 'name' + } + + def __init__(self, hotpluggable=None, name=''): + """ + 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): + """ + Gets the name of this V1DataVolumeSource. + Name of both the DataVolume and the PVC 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 of both the DataVolume and the PVC 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_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 new file mode 100644 index 00000000..3fe10b79 --- /dev/null +++ b/kubevirt/models/v1_data_volume_template_spec.py @@ -0,0 +1,236 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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 = { + 'api_version': 'str', + 'kind': 'str', + 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + 'spec': 'V1beta1DataVolumeSpec', + 'status': 'V1DataVolumeTemplateDummyStatus' + } + + 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): + """ + 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): + """ + 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: V1beta1DataVolumeSpec + """ + 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: V1beta1DataVolumeSpec + """ + 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 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_deprecated_interface_macvtap.py b/kubevirt/models/v1_deprecated_interface_macvtap.py new file mode 100644 index 00000000..75e8bb31 --- /dev/null +++ b/kubevirt/models/v1_deprecated_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 V1DeprecatedInterfaceMacvtap(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1DeprecatedInterfaceMacvtap - 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, V1DeprecatedInterfaceMacvtap): + return False + + return self.__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_deprecated_interface_passt.py b/kubevirt/models/v1_deprecated_interface_passt.py new file mode 100644 index 00000000..c22e2eee --- /dev/null +++ b/kubevirt/models/v1_deprecated_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 V1DeprecatedInterfacePasst(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1DeprecatedInterfacePasst - 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, V1DeprecatedInterfacePasst): + return False + + return self.__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_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_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py new file mode 100644 index 00000000..838d23eb --- /dev/null +++ b/kubevirt/models/v1_developer_configuration.py @@ -0,0 +1,429 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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 = { + 'cluster_profiler': 'bool', + 'cpu_allocation_ratio': 'int', + 'disabled_feature_gates': 'list[str]', + 'disk_verification': 'V1DiskVerification', + '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', + 'use_emulation': 'bool' + } + + attribute_map = { + 'cluster_profiler': 'clusterProfiler', + 'cpu_allocation_ratio': 'cpuAllocationRatio', + 'disabled_feature_gates': 'disabledFeatureGates', + 'disk_verification': 'diskVerification', + '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, 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 + 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 + 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 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: + 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 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: + 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 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): + """ + 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 + """ + 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. + 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 + """ + + 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): + """ + 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): + """ + Gets the feature_gates of this V1DeveloperConfiguration. + 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] + """ + return self._feature_gates + + @feature_gates.setter + def feature_gates(self, feature_gates): + """ + Sets the feature_gates of this V1DeveloperConfiguration. + 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] + """ + + 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): + """ + 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 + """ + return self._memory_overcommit + + @memory_overcommit.setter + 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 + """ + + 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): + """ + 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 + """ + 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. + 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 + """ + + self._minimum_reserve_pvc_bytes = minimum_reserve_pvc_bytes + + @property + 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) + """ + return self._node_selectors + + @node_selectors.setter + 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) + """ + + 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. + 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 + """ + 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. + 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 + """ + + 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. + 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 + """ + return self._use_emulation + + @use_emulation.setter + 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. Defaults to false + + :param use_emulation: The use_emulation of this V1DeveloperConfiguration. + :type: bool + """ + + 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_devices.py b/kubevirt/models/v1_devices.py index 685b5726..dff3b794 100644 --- a/kubevirt/models/v1_devices.py +++ b/kubevirt/models/v1_devices.py @@ -31,38 +31,355 @@ class V1Devices(object): and the value is json key in definition. """ swagger_types = { + 'autoattach_graphics_device': 'bool', + 'autoattach_input_device': 'bool', + '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', 'disks': 'list[V1Disk]', + 'downward_metrics': 'V1DownwardMetrics', + 'filesystems': 'list[V1Filesystem]', + 'gpus': 'list[V1GPU]', + 'host_devices': 'list[V1HostDevice]', + 'inputs': 'list[V1Input]', 'interfaces': 'list[V1Interface]', + 'log_serial_console': 'bool', + 'network_interface_multiqueue': 'bool', + 'panic_devices': 'list[V1PanicDevice]', + 'rng': 'V1Rng', + 'sound': 'V1SoundDevice', + 'tpm': 'V1TPMDevice', + 'use_virtio_transitional': 'bool', + 'video': 'V1VideoDevice', 'watchdog': 'V1Watchdog' } attribute_map = { + 'autoattach_graphics_device': 'autoattachGraphicsDevice', + 'autoattach_input_device': 'autoattachInputDevice', + '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', 'disks': 'disks', + 'downward_metrics': 'downwardMetrics', + 'filesystems': 'filesystems', + 'gpus': 'gpus', + 'host_devices': 'hostDevices', + 'inputs': 'inputs', 'interfaces': 'interfaces', + 'log_serial_console': 'logSerialConsole', + 'network_interface_multiqueue': 'networkInterfaceMultiqueue', + 'panic_devices': 'panicDevices', + 'rng': 'rng', + 'sound': 'sound', + 'tpm': 'tpm', + 'use_virtio_transitional': 'useVirtioTransitional', + 'video': 'video', 'watchdog': 'watchdog' } - def __init__(self, disks=None, interfaces=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 """ + 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 + self._autoattach_vsock = None + self._block_multi_queue = 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 + self._inputs = 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 + self._use_virtio_transitional = None + self._video = None self._watchdog = 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: + 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: + self.client_passthrough = client_passthrough + if disable_hotplug is not 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: + 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: 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 panic_devices is not None: + self.panic_devices = panic_devices + if rng is not 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 video is not None: + self.video = video if watchdog is not None: self.watchdog = watchdog + @property + def autoattach_graphics_device(self): + """ + Gets the autoattach_graphics_device of this V1Devices. + 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 + """ + 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. + 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 + """ + + 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): + """ + 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): + """ + 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 autoattach_serial_console(self): + """ + Gets the autoattach_serial_console of this V1Devices. + 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 + """ + 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 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 + """ + + 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): + """ + Gets the block_multi_queue of this V1Devices. + Whether or not to enable virtio multi-queue for block devices. Defaults to false. + + :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. Defaults to false. + + :param block_multi_queue: The block_multi_queue of this V1Devices. + :type: bool + """ + + 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): + """ + 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): """ 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] @@ -73,7 +390,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] @@ -81,11 +398,126 @@ 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): + """ + 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): + """ + Gets the gpus of this V1Devices. + Whether to attach a GPU device to the vmi. + + :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. + + :param gpus: The gpus of this V1Devices. + :type: list[V1GPU] + """ + + 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): + """ + 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): """ 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] @@ -96,7 +528,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] @@ -104,6 +536,190 @@ 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): + """ + 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 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 + """ + 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 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 + """ + + 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): + """ + Gets the rng of this V1Devices. + Whether to have random number generator from host + + :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 + + :param rng: The rng of this V1Devices. + :type: V1Rng + """ + + 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 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): + """ + 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 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_dhcp_options.py b/kubevirt/models/v1_dhcp_options.py new file mode 100644 index 00000000..86e247ca --- /dev/null +++ b/kubevirt/models/v1_dhcp_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 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', + '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, 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 + + @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 + + :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 + + :param boot_file_name: The boot_file_name of this V1DHCPOptions. + :type: str + """ + + 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. + + :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. + + :param ntp_servers: The ntp_servers of this V1DHCPOptions. + :type: list[str] + """ + + 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 + + :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 + + :param private_options: The private_options of this V1DHCPOptions. + :type: list[V1DHCPPrivateOptions] + """ + + self._private_options = private_options + + @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 + + :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 + + :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/resource_int64_amount.py b/kubevirt/models/v1_dhcp_private_options.py similarity index 67% rename from kubevirt/models/resource_int64_amount.py rename to kubevirt/models/v1_dhcp_private_options.py index da24cc38..47aff9d6 100644 --- a/kubevirt/models/resource_int64_amount.py +++ b/kubevirt/models/v1_dhcp_private_options.py @@ -16,7 +16,7 @@ import re -class ResourceInt64Amount(object): +class V1DHCPPrivateOptions(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,66 +31,70 @@ class ResourceInt64Amount(object): and the value is json key in definition. """ swagger_types = { - 'scale': 'ResourceScale', - 'value': 'int' + 'option': 'int', + 'value': 'str' } attribute_map = { - 'scale': 'scale', + 'option': 'option', 'value': 'value' } - def __init__(self, scale=None, value=None): + def __init__(self, option=0, value=''): """ - ResourceInt64Amount - a model defined in Swagger + V1DHCPPrivateOptions - a model defined in Swagger """ - self._scale = None + self._option = None self._value = None - self.scale = scale + self.option = option self.value = value @property - def scale(self): + def option(self): """ - Gets the scale of this ResourceInt64Amount. + Gets the option of this V1DHCPPrivateOptions. + Option is an Integer value from 224-254 Required. - :return: The scale of this ResourceInt64Amount. - :rtype: ResourceScale + :return: The option of this V1DHCPPrivateOptions. + :rtype: int """ - return self._scale + return self._option - @scale.setter - def scale(self, scale): + @option.setter + def option(self, option): """ - Sets the scale of this ResourceInt64Amount. + Sets the option of this V1DHCPPrivateOptions. + Option is an Integer value from 224-254 Required. - :param scale: The scale of this ResourceInt64Amount. - :type: ResourceScale + :param option: The option of this V1DHCPPrivateOptions. + :type: int """ - if scale is None: - raise ValueError("Invalid value for `scale`, must not be `None`") + if option is None: + raise ValueError("Invalid value for `option`, must not be `None`") - self._scale = scale + self._option = option @property def value(self): """ - Gets the value of this ResourceInt64Amount. + Gets the value of this V1DHCPPrivateOptions. + Value is a String value for the Option provided Required. - :return: The value of this ResourceInt64Amount. - :rtype: int + :return: The value of this V1DHCPPrivateOptions. + :rtype: str """ return self._value @value.setter def value(self, value): """ - Sets the value of this ResourceInt64Amount. + Sets the value of this V1DHCPPrivateOptions. + Value is a String value for the Option provided Required. - :param value: The value of this ResourceInt64Amount. - :type: int + :param value: The value of this V1DHCPPrivateOptions. + :type: str """ if value is None: raise ValueError("Invalid value for `value`, must not be `None`") @@ -139,7 +143,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, ResourceInt64Amount): + if not isinstance(other, V1DHCPPrivateOptions): return False return self.__dict__ == other.__dict__ 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_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_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_disk.py b/kubevirt/models/v1_disk.py index a1ee2ea3..e6a0ee2f 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -31,61 +31,115 @@ class V1Disk(object): and the value is json key in definition. """ swagger_types = { + 'block_size': 'V1BlockSize', 'boot_order': 'int', + 'cache': 'str', 'cdrom': 'V1CDRomTarget', + 'changed_block_tracking': 'bool', + 'dedicated_io_thread': 'bool', 'disk': 'V1DiskTarget', - 'floppy': 'V1FloppyTarget', + 'error_policy': 'str', + 'io': 'str', 'lun': 'V1LunTarget', 'name': 'str', 'serial': 'str', - 'volume_name': 'str' + 'shareable': 'bool', + 'tag': 'str' } attribute_map = { + 'block_size': 'blockSize', 'boot_order': 'bootOrder', + 'cache': 'cache', 'cdrom': 'cdrom', + 'changed_block_tracking': 'changedBlockTracking', + 'dedicated_io_thread': 'dedicatedIOThread', 'disk': 'disk', - 'floppy': 'floppy', + 'error_policy': 'errorPolicy', + 'io': 'io', 'lun': 'lun', 'name': 'name', 'serial': 'serial', - 'volume_name': 'volumeName' + 'shareable': 'shareable', + 'tag': 'tag' } - def __init__(self, boot_order=None, cdrom=None, disk=None, floppy=None, lun=None, name=None, serial=None, volume_name=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 """ + self._block_size = None self._boot_order = None + self._cache = None self._cdrom = None + self._changed_block_tracking = None + self._dedicated_io_thread = None self._disk = None - self._floppy = None + self._error_policy = None + self._io = None self._lun = None self._name = None self._serial = None - self._volume_name = None + self._shareable = 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: + 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: self.disk = disk - if floppy is not None: - self.floppy = floppy + if error_policy is not None: + self.error_policy = error_policy + if io is not None: + self.io = io if lun is not None: self.lun = lun self.name = name if serial is not None: self.serial = serial - self.volume_name = volume_name + if shareable is not None: + self.shareable = shareable + 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): """ 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. :return: The boot_order of this V1Disk. :rtype: int @@ -96,7 +150,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. :param boot_order: The boot_order of this V1Disk. :type: int @@ -104,6 +158,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. 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 + """ + 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. 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 + """ + + self._cache = cache + @property def cdrom(self): """ @@ -127,6 +204,52 @@ 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): + """ + 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. + + :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. + + :param dedicated_io_thread: The dedicated_io_thread of this V1Disk. + :type: bool + """ + + self._dedicated_io_thread = dedicated_io_thread + @property def disk(self): """ @@ -151,27 +274,50 @@ def disk(self, disk): self._disk = disk @property - def floppy(self): + def error_policy(self): """ - Gets the floppy of this V1Disk. - Attach a volume as a floppy to the vmi. + Gets the error_policy of this V1Disk. + If specified, it can change the default error policy (stop) for the disk - :return: The floppy of this V1Disk. - :rtype: V1FloppyTarget + :return: The error_policy of this V1Disk. + :rtype: str """ - return self._floppy + return self._error_policy - @floppy.setter - def floppy(self, floppy): + @error_policy.setter + def error_policy(self, error_policy): """ - Sets the floppy of this V1Disk. - Attach a volume as a floppy to the vmi. + Sets the error_policy of this V1Disk. + If specified, it can change the default error policy (stop) for the disk - :param floppy: The floppy of this V1Disk. - :type: V1FloppyTarget + :param error_policy: The error_policy of this V1Disk. + :type: str """ - self._floppy = floppy + self._error_policy = error_policy + + @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): @@ -225,7 +371,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 @@ -236,7 +382,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 @@ -245,29 +391,50 @@ def serial(self, serial): self._serial = serial @property - def volume_name(self): + 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): """ - Gets the volume_name of this V1Disk. - Name of the volume which is referenced. Must match the Name of a Volume. + Gets the tag of this V1Disk. + If specified, disk address and its tag will be provided to the guest via config drive metadata - :return: The volume_name of this V1Disk. + :return: The tag of this V1Disk. :rtype: str """ - return self._volume_name + return self._tag - @volume_name.setter - def volume_name(self, volume_name): + @tag.setter + def tag(self, tag): """ - Sets the volume_name of this V1Disk. - Name of the volume which is referenced. Must match the Name of a Volume. + Sets the tag of this V1Disk. + If specified, disk address and its tag will be provided to the guest via config drive metadata - :param volume_name: The volume_name of this V1Disk. + :param tag: The tag 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 + self._tag = tag def to_dict(self): """ 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_disk_target.py b/kubevirt/models/v1_disk_target.py index 2aa8c986..ac6473d6 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 @@ -57,7 +62,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, usb. :return: The bus of this V1DiskTarget. :rtype: str @@ -68,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, usb. :param bus: The bus of this V1DiskTarget. :type: str @@ -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 specified PCI address. For example: 0000:81:01.10 + + :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 specified PCI address. For example: 0000:81:01.10 + + :param pci_address: The pci_address of this V1DiskTarget. + :type: str + """ + + self._pci_address = pci_address + @property def readonly(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/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_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_domain_spec.py b/kubevirt/models/v1_domain_spec.py index 2e879939..e2e1523c 100644 --- a/kubevirt/models/v1_domain_spec.py +++ b/kubevirt/models/v1_domain_spec.py @@ -31,41 +31,58 @@ class V1DomainSpec(object): and the value is json key in definition. """ swagger_types = { + 'chassis': 'V1Chassis', 'clock': 'V1Clock', 'cpu': 'V1CPU', 'devices': 'V1Devices', 'features': 'V1Features', 'firmware': 'V1Firmware', + 'io_threads': 'V1DiskIOThreads', + 'io_threads_policy': 'str', + 'launch_security': 'V1LaunchSecurity', 'machine': 'V1Machine', 'memory': 'V1Memory', + 'reboot_policy': 'str', 'resources': 'V1ResourceRequirements' } attribute_map = { + 'chassis': 'chassis', 'clock': 'clock', 'cpu': 'cpu', 'devices': 'devices', 'features': 'features', 'firmware': 'firmware', + 'io_threads': 'ioThreads', + 'io_threads_policy': 'ioThreadsPolicy', + 'launch_security': 'launchSecurity', 'machine': 'machine', 'memory': 'memory', + 'reboot_policy': 'rebootPolicy', 'resources': 'resources' } - def __init__(self, clock=None, cpu=None, devices=None, features=None, firmware=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 """ + self._chassis = None self._clock = None self._cpu = None 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 self._memory = None + self._reboot_policy = 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: @@ -75,18 +92,49 @@ 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 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: + self.launch_security = launch_security if machine is not None: 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 + @property + def chassis(self): + """ + Gets the chassis of this V1DomainSpec. + Chassis specifies the chassis info passed to the domain. + + :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. + + :param chassis: The chassis of this V1DomainSpec. + :type: V1Chassis + """ + + self._chassis = chassis + @property 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 @@ -97,7 +145,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 @@ -109,7 +157,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 @@ -120,7 +168,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 @@ -132,7 +180,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 @@ -143,7 +191,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 @@ -157,7 +205,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. :return: The features of this V1DomainSpec. :rtype: V1Features @@ -168,7 +216,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. :param features: The features of this V1DomainSpec. :type: V1Features @@ -180,7 +228,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 @@ -191,7 +239,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 @@ -199,11 +247,80 @@ 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): + """ + 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, supplementalPool + + :return: The io_threads_policy of this V1DomainSpec. + :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 V1DomainSpec. + 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 + """ + + 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): """ Gets the machine of this V1DomainSpec. - Machine type. +optional + Machine type. :return: The machine of this V1DomainSpec. :rtype: V1Machine @@ -214,7 +331,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 @@ -226,7 +343,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 @@ -237,7 +354,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 @@ -245,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/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_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/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_efi.py b/kubevirt/models/v1_efi.py new file mode 100644 index 00000000..bcd58155 --- /dev/null +++ b/kubevirt/models/v1_efi.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 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 = { + 'persistent': 'bool', + 'secure_boot': 'bool' + } + + attribute_map = { + 'persistent': 'persistent', + 'secure_boot': 'secureBoot' + } + + 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): + """ + 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 true + + :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 true + + :param secure_boot: The secure_boot of this V1EFI. + :type: bool + """ + + self._secure_boot = 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, 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..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': 'str' + 'capacity': 'K8sIoApimachineryPkgApiResourceQuantity' } attribute_map = { @@ -54,7 +54,7 @@ def capacity(self): Capacity of the sparse disk. :return: The capacity of this V1EmptyDiskSource. - :rtype: str + :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: str + :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 8bf06fa9..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 = { @@ -52,10 +52,10 @@ 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 + :rtype: K8sIoApiCoreV1PersistentVolumeClaimVolumeSource """ return self._persistent_volume_claim @@ -63,10 +63,10 @@ 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 + :type: K8sIoApiCoreV1PersistentVolumeClaimVolumeSource """ self._persistent_volume_claim = persistent_volume_claim 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/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 9f345887..07cedcf9 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', + 'synictimer': 'V1SyNICTimer', + 'tlbflush': 'V1TLBFlush', '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,11 +113,103 @@ 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. + + :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. + + :param evmcs: The evmcs of this V1FeatureHyperv. + :type: V1FeatureState + """ + + self._evmcs = evmcs + + @property + 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. + + :return: The frequencies of this V1FeatureHyperv. + :rtype: V1FeatureState + """ + return self._frequencies + + @frequencies.setter + 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. + + :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. + + :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. + + :param ipi: The ipi of this V1FeatureHyperv. + :type: V1FeatureState + """ + + self._ipi = ipi + + @property + def reenlightenment(self): + """ + Gets the reenlightenment of this V1FeatureHyperv. + Reenlightenment enables the notifications on TSC frequency changes. Defaults to the machine type setting. + + :return: The reenlightenment of this V1FeatureHyperv. + :rtype: V1FeatureState + """ + return self._reenlightenment + + @reenlightenment.setter + def reenlightenment(self, reenlightenment): + """ + Sets the reenlightenment of this V1FeatureHyperv. + Reenlightenment enables the notifications on TSC frequency changes. Defaults to the machine type setting. + + :param reenlightenment: The reenlightenment of this V1FeatureHyperv. + :type: V1FeatureState + """ + + self._reenlightenment = reenlightenment + @property 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. :return: The relaxed of this V1FeatureHyperv. :rtype: V1FeatureState @@ -103,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. :param relaxed: The relaxed of this V1FeatureHyperv. :type: V1FeatureState @@ -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. :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. :param reset: The reset of this V1FeatureHyperv. :type: V1FeatureState @@ -138,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. :return: The runtime of this V1FeatureHyperv. :rtype: V1FeatureState @@ -149,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. :param runtime: The runtime of this V1FeatureHyperv. :type: V1FeatureState @@ -161,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. :return: The spinlocks of this V1FeatureHyperv. :rtype: V1FeatureSpinlocks @@ -172,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. :param spinlocks: The spinlocks of this V1FeatureHyperv. :type: V1FeatureSpinlocks @@ -184,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. :return: The synic of this V1FeatureHyperv. :rtype: V1FeatureState @@ -195,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. :param synic: The synic of this V1FeatureHyperv. :type: V1FeatureState @@ -207,10 +324,10 @@ 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. :return: The synictimer of this V1FeatureHyperv. - :rtype: V1FeatureState + :rtype: V1SyNICTimer """ return self._synictimer @@ -218,19 +335,42 @@ 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. :param synictimer: The synictimer of this V1FeatureHyperv. - :type: V1FeatureState + :type: V1SyNICTimer """ 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. + + :return: The tlbflush of this V1FeatureHyperv. + :rtype: V1TLBFlush + """ + 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. + + :param tlbflush: The tlbflush of this V1FeatureHyperv. + :type: V1TLBFlush + """ + + self._tlbflush = tlbflush + @property 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. :return: The vapic of this V1FeatureHyperv. :rtype: V1FeatureState @@ -241,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. :param vapic: The vapic of this V1FeatureHyperv. :type: V1FeatureState @@ -253,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 @@ -264,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 @@ -276,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 @@ -287,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_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_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 73c5f2fa..1ab614cf 100644 --- a/kubevirt/models/v1_features.py +++ b/kubevirt/models/v1_features.py @@ -33,16 +33,24 @@ class V1Features(object): swagger_types = { 'acpi': 'V1FeatureState', 'apic': 'V1FeatureAPIC', - 'hyperv': 'V1FeatureHyperv' + 'hyperv': 'V1FeatureHyperv', + 'hyperv_passthrough': 'V1HyperVPassthrough', + 'kvm': 'V1FeatureKVM', + 'pvspinlock': 'V1FeatureState', + 'smm': 'V1FeatureState' } attribute_map = { 'acpi': 'acpi', 'apic': 'apic', - 'hyperv': 'hyperv' + 'hyperv': 'hyperv', + 'hyperv_passthrough': 'hypervPassthrough', + 'kvm': 'kvm', + 'pvspinlock': 'pvspinlock', + 'smm': 'smm' } - def __init__(self, acpi=None, apic=None, hyperv=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 """ @@ -50,6 +58,10 @@ def __init__(self, acpi=None, apic=None, hyperv=None): self._acpi = None self._apic = None self._hyperv = None + self._hyperv_passthrough = None + self._kvm = None + self._pvspinlock = None + self._smm = None if acpi is not None: self.acpi = acpi @@ -57,12 +69,20 @@ def __init__(self, acpi=None, apic=None, hyperv=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: + self.pvspinlock = pvspinlock + if smm is not None: + self.smm = smm @property def acpi(self): """ Gets the acpi of this V1Features. - ACPI enables/disables ACPI insidejsondata guest. Defaults to enabled. +optional + ACPI enables/disables ACPI inside the guest. Defaults to enabled. :return: The acpi of this V1Features. :rtype: V1FeatureState @@ -73,7 +93,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 inside the guest. Defaults to enabled. :param acpi: The acpi of this V1Features. :type: V1FeatureState @@ -85,7 +105,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 @@ -96,7 +116,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 @@ -108,7 +128,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 @@ -119,7 +139,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 @@ -127,6 +147,98 @@ 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): + """ + 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 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): + """ + Gets the smm of this V1Features. + SMM enables/disables System Management Mode. TSEG not yet implemented. + + :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. + + :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_filesystem.py b/kubevirt/models/v1_filesystem.py new file mode 100644 index 00000000..6ee1886a --- /dev/null +++ b/kubevirt/models/v1_filesystem.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 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='', 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. + Virtiofs is supported + + :return: The virtiofs of this V1Filesystem. + :rtype: V1FilesystemVirtiofs + """ + return self._virtiofs + + @virtiofs.setter + def virtiofs(self, virtiofs): + """ + Sets the virtiofs of this V1Filesystem. + Virtiofs is supported + + :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/kubevirt/models/v1_firmware.py b/kubevirt/models/v1_firmware.py index e3eba2f3..aa79b591 100644 --- a/kubevirt/models/v1_firmware.py +++ b/kubevirt/models/v1_firmware.py @@ -31,23 +31,135 @@ class V1Firmware(object): and the value is json key in definition. """ swagger_types = { + 'acpi': 'V1ACPI', + 'bootloader': 'V1Bootloader', + 'kernel_boot': 'V1KernelBoot', + 'serial': 'str', 'uuid': 'str' } attribute_map = { + 'acpi': 'acpi', + 'bootloader': 'bootloader', + 'kernel_boot': 'kernelBoot', + 'serial': 'serial', 'uuid': 'uuid' } - def __init__(self, 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: + self.kernel_boot = kernel_boot + if serial is not None: + self.serial = serial 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): + """ + Gets the bootloader of this V1Firmware. + Settings to control the bootloader that is used. + + :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. + + :param bootloader: The bootloader of this V1Firmware. + :type: V1Bootloader + """ + + 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): + """ + 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/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/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/kubevirt/models/v1_generation_status.py b/kubevirt/models/v1_generation_status.py new file mode 100644 index 00000000..03430c3a --- /dev/null +++ b/kubevirt/models/v1_generation_status.py @@ -0,0 +1,269 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1GenerationStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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='', hash=None, last_generation=0, name='', namespace=None, resource=''): + """ + V1GenerationStatus - 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 + if hash is not None: + self.hash = hash + self.last_generation = last_generation + self.name = name + if namespace is not None: + self.namespace = namespace + self.resource = resource + + @property + def group(self): + """ + Gets the group of this V1GenerationStatus. + group is the group of the thing you're tracking + + :return: The group of this V1GenerationStatus. + :rtype: str + """ + return self._group + + @group.setter + def group(self, group): + """ + Sets the group of this V1GenerationStatus. + group is the group of the thing you're tracking + + :param group: The group of this V1GenerationStatus. + :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 V1GenerationStatus. + hash is an optional field set for resources without generation that are content sensitive like secrets and configmaps + + :return: The hash of this V1GenerationStatus. + :rtype: str + """ + return self._hash + + @hash.setter + def hash(self, hash): + """ + 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 V1GenerationStatus. + :type: str + """ + + self._hash = hash + + @property + def last_generation(self): + """ + Gets the last_generation of this V1GenerationStatus. + lastGeneration is the last generation of the workload controller involved + + :return: The last_generation of this V1GenerationStatus. + :rtype: int + """ + return self._last_generation + + @last_generation.setter + def last_generation(self, last_generation): + """ + 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 V1GenerationStatus. + :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 V1GenerationStatus. + name is the name of the thing you're tracking + + :return: The name of this V1GenerationStatus. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1GenerationStatus. + name is the name of the thing you're tracking + + :param name: The name of this V1GenerationStatus. + :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 V1GenerationStatus. + namespace is where the thing you're tracking is + + :return: The namespace of this V1GenerationStatus. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1GenerationStatus. + namespace is where the thing you're tracking is + + :param namespace: The namespace of this V1GenerationStatus. + :type: str + """ + + self._namespace = namespace + + @property + def resource(self): + """ + Gets the resource of this V1GenerationStatus. + resource is the resource type of the thing you're tracking + + :return: The resource of this V1GenerationStatus. + :rtype: str + """ + return self._resource + + @resource.setter + def resource(self, resource): + """ + Sets the resource of this V1GenerationStatus. + resource is the resource type of the thing you're tracking + + :param resource: The resource of this V1GenerationStatus. + :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, V1GenerationStatus): + return False + + return self.__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 new file mode 100644 index 00000000..94df61f8 --- /dev/null +++ b/kubevirt/models/v1_gpu.py @@ -0,0 +1,264 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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 = { + '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, 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 + + 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 + """ + return self._device_name + + @device_name.setter + 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 + """ + + 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 + + @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): + """ + 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): + """ + 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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/kubevirt/models/v1_guest_agent_command_info.py b/kubevirt/models/v1_guest_agent_command_info.py new file mode 100644 index 00000000..5f5772a7 --- /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=''): + """ + 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_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_host_device.py b/kubevirt/models/v1_host_device.py new file mode 100644 index 00000000..dc30c915 --- /dev/null +++ b/kubevirt/models/v1_host_device.py @@ -0,0 +1,236 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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 = { + '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, 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 + + 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 name of the device provisioned by device-plugins + + :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 name of the device provisioned by device-plugins + + :param device_name: The device_name of this V1HostDevice. + :type: str + """ + + 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 + + @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): + """ + 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_host_disk.py b/kubevirt/models/v1_host_disk.py new file mode 100644 index 00000000..a41a2a34 --- /dev/null +++ b/kubevirt/models/v1_host_disk.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 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': 'K8sIoApimachineryPkgApiResourceQuantity', + 'path': 'str', + 'shared': 'bool', + 'type': 'str' + } + + attribute_map = { + 'capacity': 'capacity', + 'path': 'path', + 'shared': 'shared', + 'type': 'type' + } + + def __init__(self, capacity=None, path='', shared=None, type=''): + """ + 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 + def capacity(self): + """ + Gets the capacity of this V1HostDisk. + Capacity of the sparse disk + + :return: The capacity of this V1HostDisk. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._capacity + + @capacity.setter + def capacity(self, capacity): + """ + Sets the capacity of this V1HostDisk. + Capacity of the sparse disk + + :param capacity: The capacity of this V1HostDisk. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + 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 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): + """ + 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_hotplug_volume_source.py b/kubevirt/models/v1_hotplug_volume_source.py new file mode 100644 index 00000000..935fa639 --- /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': 'V1PersistentVolumeClaimVolumeSource' + } + + 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: V1PersistentVolumeClaimVolumeSource + """ + 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: V1PersistentVolumeClaimVolumeSource + """ + + 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_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_preconditions.py b/kubevirt/models/v1_hyper_v_passthrough.py similarity index 75% rename from kubevirt/models/v1_preconditions.py rename to kubevirt/models/v1_hyper_v_passthrough.py index a6df3db5..a8c2b50d 100644 --- a/kubevirt/models/v1_preconditions.py +++ b/kubevirt/models/v1_hyper_v_passthrough.py @@ -16,7 +16,7 @@ import re -class V1Preconditions(object): +class V1HyperVPassthrough(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,45 +31,43 @@ class V1Preconditions(object): and the value is json key in definition. """ swagger_types = { - 'uid': 'TypesUID' + 'enabled': 'bool' } attribute_map = { - 'uid': 'uid' + 'enabled': 'enabled' } - def __init__(self, uid=None): + def __init__(self, enabled=None): """ - V1Preconditions - a model defined in Swagger + V1HyperVPassthrough - a model defined in Swagger """ - self._uid = None + self._enabled = None - if uid is not None: - self.uid = uid + if enabled is not None: + self.enabled = enabled @property - def uid(self): + def enabled(self): """ - Gets the uid of this V1Preconditions. - Specifies the target UID. + Gets the enabled of this V1HyperVPassthrough. - :return: The uid of this V1Preconditions. - :rtype: TypesUID + :return: The enabled of this V1HyperVPassthrough. + :rtype: bool """ - return self._uid + return self._enabled - @uid.setter - def uid(self, uid): + @enabled.setter + def enabled(self, enabled): """ - Sets the uid of this V1Preconditions. - Specifies the target UID. + Sets the enabled of this V1HyperVPassthrough. - :param uid: The uid of this V1Preconditions. - :type: TypesUID + :param enabled: The enabled of this V1HyperVPassthrough. + :type: bool """ - self._uid = uid + self._enabled = enabled def to_dict(self): """ @@ -113,7 +111,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1Preconditions): + if not isinstance(other, V1HyperVPassthrough): return False return self.__dict__ == other.__dict__ 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_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_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_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_input.py b/kubevirt/models/v1_input.py new file mode 100644 index 00000000..6c3fe498 --- /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='', type=''): + """ + 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/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_instancetype_matcher.py b/kubevirt/models/v1_instancetype_matcher.py new file mode 100644 index 00000000..beecbd42 --- /dev/null +++ b/kubevirt/models/v1_instancetype_matcher.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 V1InstancetypeMatcher(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'infer_from_volume': 'str', + 'infer_from_volume_failure_policy': 'str', + 'kind': 'str', + 'name': 'str', + 'revision_name': 'str' + } + + 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, 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: + 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 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): + """ + 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 V1InstancetypeMatcher. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1InstancetypeMatcher. + :type: str + """ + + self._kind = kind + + @property + def name(self): + """ + Gets the name of this V1InstancetypeMatcher. + Name is the name of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype + + :return: The name of this V1InstancetypeMatcher. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1InstancetypeMatcher. + Name is the name of the VirtualMachineInstancetype or VirtualMachineClusterInstancetype + + :param name: The name of this V1InstancetypeMatcher. + :type: str + """ + + self._name = name + + @property + def revision_name(self): + """ + 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 V1InstancetypeMatcher. + :rtype: str + """ + return self._revision_name + + @revision_name.setter + def revision_name(self, revision_name): + """ + 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 V1InstancetypeMatcher. + :type: str + """ + + self._revision_name = revision_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, V1InstancetypeMatcher): + return False + + return self.__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_interface.py b/kubevirt/models/v1_interface.py index 5fbb423d..db901f76 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -31,46 +31,175 @@ class V1Interface(object): and the value is json key in definition. """ swagger_types = { + 'acpi_index': 'int', + 'binding': 'V1PluginBinding', + 'boot_order': 'int', 'bridge': 'V1InterfaceBridge', + 'dhcp_options': 'V1DHCPOptions', 'mac_address': 'str', + 'macvtap': 'V1DeprecatedInterfaceMacvtap', + 'masquerade': 'V1InterfaceMasquerade', 'model': 'str', 'name': 'str', + 'passt': 'V1DeprecatedInterfacePasst', + 'passt_binding': 'V1InterfacePasstBinding', + 'pci_address': 'str', 'ports': 'list[V1Port]', - 'slirp': 'V1InterfaceSlirp' + 'slirp': 'V1DeprecatedInterfaceSlirp', + 'sriov': 'V1InterfaceSRIOV', + 'state': 'str', + 'tag': 'str' } attribute_map = { + 'acpi_index': 'acpiIndex', + 'binding': 'binding', + 'boot_order': 'bootOrder', 'bridge': 'bridge', + 'dhcp_options': 'dhcpOptions', 'mac_address': 'macAddress', + 'macvtap': 'macvtap', + 'masquerade': 'masquerade', 'model': 'model', 'name': 'name', + 'passt': 'passt', + 'passt_binding': 'passtBinding', + 'pci_address': 'pciAddress', 'ports': 'ports', - 'slirp': 'slirp' + 'slirp': 'slirp', + 'sriov': 'sriov', + 'state': 'state', + 'tag': 'tag' } - def __init__(self, bridge=None, mac_address=None, model=None, name=None, ports=None, slirp=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 """ + self._acpi_index = None + self._binding = None + self._boot_order = None self._bridge = None + self._dhcp_options = None self._mac_address = None + self._macvtap = None + self._masquerade = None self._model = None self._name = None + self._passt = None + self._passt_binding = None + self._pci_address = None self._ports = None self._slirp = None - + self._sriov = None + self._state = None + self._tag = None + + 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: 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 macvtap is not None: + self.macvtap = macvtap + if masquerade is not None: + self.masquerade = masquerade if model is not None: self.model = model 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: self.ports = ports if slirp is not None: 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 + + @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 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): + """ + 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. + + :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. + + :param boot_order: The boot_order of this V1Interface. + :type: int + """ + + self._boot_order = boot_order @property def bridge(self): @@ -93,6 +222,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 + + :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 + + :param dhcp_options: The dhcp_options of this V1Interface. + :type: V1DHCPOptions + """ + + self._dhcp_options = dhcp_options + @property def mac_address(self): """ @@ -116,11 +268,55 @@ def mac_address(self, mac_address): self._mac_address = mac_address + @property + def macvtap(self): + """ + Gets the macvtap of this V1Interface. + 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: V1DeprecatedInterfaceMacvtap + """ + return self._macvtap + + @macvtap.setter + def macvtap(self, macvtap): + """ + Sets the macvtap of this V1Interface. + 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: V1DeprecatedInterfaceMacvtap + """ + + self._macvtap = macvtap + + @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): """ 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 @@ -131,7 +327,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 @@ -164,6 +360,73 @@ def name(self, name): self._name = name + @property + def passt(self): + """ + Gets the passt of this V1Interface. + 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: V1DeprecatedInterfacePasst + """ + return self._passt + + @passt.setter + def passt(self, passt): + """ + Sets the passt of this V1Interface. + 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: V1DeprecatedInterfacePasst + """ + + 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): + """ + Gets the pci_address of this V1Interface. + 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 + """ + 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 specified PCI address. For example: 0000:81:01.10 + + :param pci_address: The pci_address of this V1Interface. + :type: str + """ + + self._pci_address = pci_address + @property def ports(self): """ @@ -191,9 +454,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 @@ -201,13 +465,81 @@ 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 + @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 + + @property + def state(self): + """ + Gets the state of this V1Interface. + 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 + """ + 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 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 + """ + + self._state = state + + @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 + + :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 + + :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/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 new file mode 100644 index 00000000..b24fc271 --- /dev/null +++ b/kubevirt/models/v1_interface_binding_plugin.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 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 = { + 'compute_resource_overhead': 'V1ResourceRequirementsWithoutClaims', + 'domain_attachment_type': 'str', + 'downward_api': 'str', + 'migration': 'V1InterfaceBindingMigration', + 'network_attachment_definition': 'str', + 'sidecar_image': 'str' + } + + attribute_map = { + 'compute_resource_overhead': 'computeResourceOverhead', + 'domain_attachment_type': 'domainAttachmentType', + 'downward_api': 'downwardAPI', + 'migration': 'migration', + 'network_attachment_definition': 'networkAttachmentDefinition', + 'sidecar_image': 'sidecarImage' + } + + 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: + self.downward_api = downward_api + 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: + 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: V1ResourceRequirementsWithoutClaims + """ + 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: V1ResourceRequirementsWithoutClaims + """ + + self._compute_resource_overhead = compute_resource_overhead + + @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\", \"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 + """ + 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\", \"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 + """ + + 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): + """ + 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): + """ + 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): + """ + 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_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_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_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/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/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_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..78a24dde --- /dev/null +++ b/kubevirt/models/v1_kernel_boot_container.py @@ -0,0 +1,244 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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='', 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 contains 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 contains 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 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 + """ + 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 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 + + @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/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_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.py b/kubevirt/models/v1_kube_virt.py new file mode 100644 index 00000000..dcf0d333 --- /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': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + '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: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1KubeVirt. + + :param metadata: The metadata of this V1KubeVirt. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + 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..f993cd26 --- /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='', type=''): + """ + 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..57f6adb8 --- /dev/null +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -0,0 +1,1237 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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 = { + 'additional_guest_memory_overhead_ratio': 'str', + 'api_configuration': 'V1ReloadableComponentConfiguration', + 'architecture_configuration': 'V1ArchConfiguration', + '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', + 'default_runtime_class': 'str', + 'developer_configuration': 'V1DeveloperConfiguration', + 'emulated_machines': 'list[str]', + 'eviction_strategy': 'str', + 'handler_configuration': 'V1ReloadableComponentConfiguration', + 'hypervisors': 'list[V1HypervisorConfiguration]', + 'image_pull_policy': 'str', + 'instancetype': 'V1InstancetypeConfiguration', + 'ksm_configuration': 'V1KSMConfiguration', + 'live_update_configuration': 'V1LiveUpdateConfiguration', + 'machine_type': 'str', + 'mediated_devices_configuration': 'V1MediatedDevicesConfiguration', + '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', + 'role_aggregation_strategy': 'str', + 'seccomp_configuration': 'V1SeccompConfiguration', + 'selinux_launcher_type': 'str', + 'smbios': 'V1SMBiosConfiguration', + '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', + 'vm_state_storage_class': 'str', + 'webhook_configuration': 'V1ReloadableComponentConfiguration' + } + + attribute_map = { + 'additional_guest_memory_overhead_ratio': 'additionalGuestMemoryOverheadRatio', + 'api_configuration': 'apiConfiguration', + 'architecture_configuration': 'architectureConfiguration', + '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', + 'default_runtime_class': 'defaultRuntimeClass', + 'developer_configuration': 'developerConfiguration', + 'emulated_machines': 'emulatedMachines', + 'eviction_strategy': 'evictionStrategy', + 'handler_configuration': 'handlerConfiguration', + 'hypervisors': 'hypervisors', + 'image_pull_policy': 'imagePullPolicy', + 'instancetype': 'instancetype', + 'ksm_configuration': 'ksmConfiguration', + 'live_update_configuration': 'liveUpdateConfiguration', + 'machine_type': 'machineType', + 'mediated_devices_configuration': 'mediatedDevicesConfiguration', + 'mem_balloon_stats_period': 'memBalloonStatsPeriod', + 'migrations': 'migrations', + 'min_cpu_model': 'minCPUModel', + 'network': 'network', + 'obsolete_cpu_models': 'obsoleteCPUModels', + 'ovmf_path': 'ovmfPath', + 'permitted_host_devices': 'permittedHostDevices', + 'role_aggregation_strategy': 'roleAggregationStrategy', + 'seccomp_configuration': 'seccompConfiguration', + 'selinux_launcher_type': 'selinuxLauncherType', + 'smbios': 'smbios', + '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', + '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, 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 + """ + + self._additional_guest_memory_overhead_ratio = None + 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._confidential_compute = 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._eviction_strategy = None + self._handler_configuration = None + self._hypervisors = None + self._image_pull_policy = None + self._instancetype = 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 + 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._role_aggregation_strategy = None + 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._virt_template_deployment = 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 + + 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 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 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 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: + 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: + 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 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: + self.instancetype = instancetype + 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: + 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: + 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: + 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: + 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: + 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: + 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: + 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): + """ + 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 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 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 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): + """ + 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 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): + """ + 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): + """ + 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: K8sIoApimachineryPkgApiResourceQuantity + """ + 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: K8sIoApimachineryPkgApiResourceQuantity + """ + + 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): + """ + 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. + Deprecated. Use architectureConfiguration instead. + + :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. + Deprecated. Use architectureConfiguration instead. + + :param emulated_machines: The emulated_machines of this V1KubeVirtConfiguration. + :type: list[str] + """ + + 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): + """ + 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 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): + """ + 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 + """ + 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. + 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 + + @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): + """ + 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 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): + """ + Gets the machine_type of this V1KubeVirtConfiguration. + Deprecated. Use architectureConfiguration instead. + + :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. + Deprecated. Use architectureConfiguration instead. + + :param machine_type: The machine_type of this V1KubeVirtConfiguration. + :type: str + """ + + 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): + """ + 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): + """ + 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 min_cpu_model(self): + """ + Gets the min_cpu_model of this V1KubeVirtConfiguration. + deprecated + + :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. + deprecated + + :param min_cpu_model: The min_cpu_model of this V1KubeVirtConfiguration. + :type: str + """ + + self._min_cpu_model = min_cpu_model + + @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 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): + """ + Gets the ovmf_path of this V1KubeVirtConfiguration. + Deprecated. Use architectureConfiguration instead. + + :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. + Deprecated. Use architectureConfiguration instead. + + :param ovmf_path: The ovmf_path of this V1KubeVirtConfiguration. + :type: str + """ + + 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 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): + """ + 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): + """ + 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 smbios(self): + """ + Gets the smbios of this V1KubeVirtConfiguration. + + :return: The smbios of this V1KubeVirtConfiguration. + :rtype: V1SMBiosConfiguration + """ + return self._smbios + + @smbios.setter + def smbios(self, smbios): + """ + Sets the smbios of this V1KubeVirtConfiguration. + + :param smbios: The smbios of this V1KubeVirtConfiguration. + :type: V1SMBiosConfiguration + """ + + 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): + """ + Gets the supported_guest_agent_versions of this V1KubeVirtConfiguration. + deprecated + + :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. + deprecated + + :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 + + @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 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): + """ + 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 + + @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_rollout_strategy(self): + """ + Gets the vm_rollout_strategy of this V1KubeVirtConfiguration. + 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 + """ + 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 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 + """ + + self._vm_rollout_strategy = vm_rollout_strategy + + @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. + + :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. + + :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): + """ + 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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..130ab74b --- /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': 'K8sIoApimachineryPkgApisMetaV1ListMeta' + } + + 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: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1KubeVirtList. + + :param metadata: The metadata of this V1KubeVirtList. + :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, 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..5c35939c --- /dev/null +++ b/kubevirt/models/v1_kube_virt_self_sign_configuration.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 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': 'V1CertConfig', + 'ca_overlap_interval': 'K8sIoApimachineryPkgApisMetaV1Duration', + 'ca_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', + 'server': 'server' + } + + 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 + """ + 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. + Deprecated. Use CA.Duration and CA.RenewBefore instead + + :param ca_overlap_interval: The ca_overlap_interval of this V1KubeVirtSelfSignConfiguration. + :type: K8sIoApimachineryPkgApisMetaV1Duration + """ + + self._ca_overlap_interval = ca_overlap_interval + + @property + 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 + """ + 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. + Deprecated. Use CA.Duration instead + + :param ca_rotate_interval: The ca_rotate_interval of this V1KubeVirtSelfSignConfiguration. + :type: K8sIoApimachineryPkgApisMetaV1Duration + """ + + self._ca_rotate_interval = ca_rotate_interval + + @property + 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 + """ + 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. + Deprecated. Use Server.Duration instead + + :param cert_rotate_interval: The cert_rotate_interval of this V1KubeVirtSelfSignConfiguration. + :type: K8sIoApimachineryPkgApisMetaV1Duration + """ + + 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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..a8882c69 --- /dev/null +++ b/kubevirt/models/v1_kube_virt_spec.py @@ -0,0 +1,603 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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', + 'customize_components': 'V1CustomizeComponents', + 'image_pull_policy': 'str', + 'image_pull_secrets': 'list[K8sIoApiCoreV1LocalObjectReference]', + 'image_registry': 'str', + 'image_tag': 'str', + 'infra': 'V1ComponentConfig', + 'monitor_account': 'str', + 'monitor_namespace': 'str', + 'product_component': 'str', + 'product_name': 'str', + 'product_version': 'str', + 'service_monitor_namespace': 'str', + 'synchronization_port': 'str', + 'uninstall_strategy': 'str', + 'workload_update_strategy': 'V1KubeVirtWorkloadUpdateStrategy', + 'workloads': 'V1ComponentConfig' + } + + attribute_map = { + 'certificate_rotate_strategy': 'certificateRotateStrategy', + 'configuration': 'configuration', + 'customize_components': 'customizeComponents', + 'image_pull_policy': 'imagePullPolicy', + 'image_pull_secrets': 'imagePullSecrets', + 'image_registry': 'imageRegistry', + 'image_tag': 'imageTag', + 'infra': 'infra', + 'monitor_account': 'monitorAccount', + 'monitor_namespace': 'monitorNamespace', + 'product_component': 'productComponent', + '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, synchronization_port=None, uninstall_strategy=None, workload_update_strategy=None, workloads=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_pull_secrets = None + self._image_registry = None + self._image_tag = None + self._infra = None + self._monitor_account = None + self._monitor_namespace = None + self._product_component = None + 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 + + if certificate_rotate_strategy is not None: + 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_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: + 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: + 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: + 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: + self.workload_update_strategy = workload_update_strategy + if workloads is not None: + self.workloads = workloads + + @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 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): + """ + Gets the image_pull_policy of this V1KubeVirtSpec. + 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 + """ + 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. 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 + + @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): + """ + 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 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): + """ + 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 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): + """ + 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 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 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): + """ + 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 + + @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): + """ + 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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..6763966a --- /dev/null +++ b/kubevirt/models/v1_kube_virt_status.py @@ -0,0 +1,513 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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]', + 'default_architecture': 'str', + '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', + 'outdated_virtual_machine_instance_workloads': 'int', + 'phase': 'str', + 'synchronization_addresses': 'list[str]', + 'target_deployment_config': 'str', + 'target_deployment_id': 'str', + 'target_kube_virt_registry': 'str', + 'target_kube_virt_version': 'str' + } + + attribute_map = { + 'conditions': 'conditions', + 'default_architecture': 'defaultArchitecture', + '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', + 'outdated_virtual_machine_instance_workloads': 'outdatedVirtualMachineInstanceWorkloads', + 'phase': 'phase', + '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_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 + """ + + self._conditions = None + self._default_architecture = None + 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 + self._outdated_virtual_machine_instance_workloads = None + self._phase = None + self._synchronization_addresses = 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 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: + 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: + 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 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: + 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 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): + """ + Gets the generations of this V1KubeVirtStatus. + + :return: The generations of this V1KubeVirtStatus. + :rtype: list[V1GenerationStatus] + """ + return self._generations + + @generations.setter + def generations(self, generations): + """ + Sets the generations of this V1KubeVirtStatus. + + :param generations: The generations of this V1KubeVirtStatus. + :type: list[V1GenerationStatus] + """ + + self._generations = generations + + @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_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): + """ + 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 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): + """ + 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 synchronization_addresses(self): + """ + Gets the synchronization_addresses of this V1KubeVirtStatus. + + :return: The synchronization_addresses of this V1KubeVirtStatus. + :rtype: list[str] + """ + return self._synchronization_addresses + + @synchronization_addresses.setter + def synchronization_addresses(self, synchronization_addresses): + """ + Sets the synchronization_addresses of this V1KubeVirtStatus. + + :param synchronization_addresses: The synchronization_addresses of this V1KubeVirtStatus. + :type: list[str] + """ + + self._synchronization_addresses = synchronization_addresses + + @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_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_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_launch_security.py b/kubevirt/models/v1_launch_security.py new file mode 100644 index 00000000..bb5743d4 --- /dev/null +++ b/kubevirt/models/v1_launch_security.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 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', + 'snp': 'V1SEVSNP', + 'tdx': 'V1TDX' + } + + attribute_map = { + 'sev': 'sev', + 'snp': 'snp', + 'tdx': 'tdx' + } + + 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): + """ + 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 + + @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 + + @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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_live_update_configuration.py b/kubevirt/models/v1_live_update_configuration.py new file mode 100644 index 00000000..fd56bb4c --- /dev/null +++ b/kubevirt/models/v1_live_update_configuration.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 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', + 'max_guest': 'K8sIoApimachineryPkgApiResourceQuantity', + 'max_hotplug_ratio': 'int' + } + + attribute_map = { + 'max_cpu_sockets': 'maxCpuSockets', + 'max_guest': 'maxGuest', + 'max_hotplug_ratio': 'maxHotplugRatio' + } + + 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): + """ + Gets the max_cpu_sockets of this V1LiveUpdateConfiguration. + 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 + """ + 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 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 + """ + + 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_log_verbosity.py b/kubevirt/models/v1_log_verbosity.py new file mode 100644 index 00000000..d9ccf5cb --- /dev/null +++ b/kubevirt/models/v1_log_verbosity.py @@ -0,0 +1,281 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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', + 'virt_synchronization_controller': 'int' + } + + attribute_map = { + 'node_verbosity': 'nodeVerbosity', + 'virt_api': 'virtAPI', + 'virt_controller': 'virtController', + 'virt_handler': 'virtHandler', + 'virt_launcher': 'virtLauncher', + '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, virt_synchronization_controller=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 + self._virt_synchronization_controller = 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 + if virt_synchronization_controller is not None: + self.virt_synchronization_controller = virt_synchronization_controller + + @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 + + @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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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/kubevirt/models/v1_lun_target.py b/kubevirt/models/v1_lun_target.py index 192b7011..730b75ab 100644 --- a/kubevirt/models/v1_lun_target.py +++ b/kubevirt/models/v1_lun_target.py @@ -32,32 +32,37 @@ 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): """ 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 +73,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 @@ -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/kubevirt/models/v1_machine.py b/kubevirt/models/v1_machine.py index 8c00b4ac..cd8329d5 100644 --- a/kubevirt/models/v1_machine.py +++ b/kubevirt/models/v1_machine.py @@ -38,14 +38,15 @@ class V1Machine(object): 'type': 'type' } - def __init__(self, type=None): + def __init__(self, type=''): """ V1Machine - a model defined in Swagger """ 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/kubevirt/models/v1_mediated_devices_configuration.py b/kubevirt/models/v1_mediated_devices_configuration.py new file mode 100644 index 00000000..a482032c --- /dev/null +++ b/kubevirt/models/v1_mediated_devices_configuration.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 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 = { + '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, 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: + 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 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): + """ + 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] + """ + 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. + Deprecated. Use mediatedDeviceTypes instead. + + :param mediated_devices_types: The mediated_devices_types of this V1MediatedDevicesConfiguration. + :type: list[str] + """ + + 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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/kubevirt/models/v1_mediated_host_device.py b/kubevirt/models/v1_mediated_host_device.py new file mode 100644 index 00000000..b5312336 --- /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='', resource_name=''): + """ + 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_memory.py b/kubevirt/models/v1_memory.py index b42c3601..6a08fbf9 100644 --- a/kubevirt/models/v1_memory.py +++ b/kubevirt/models/v1_memory.py @@ -31,28 +31,66 @@ class V1Memory(object): and the value is json key in definition. """ swagger_types = { - 'hugepages': 'V1Hugepages' + 'guest': 'K8sIoApimachineryPkgApiResourceQuantity', + 'hugepages': 'V1Hugepages', + 'max_guest': 'K8sIoApimachineryPkgApiResourceQuantity', + 'reserved_overhead': 'V1ReservedOverhead' } attribute_map = { - 'hugepages': 'hugepages' + 'guest': 'guest', + 'hugepages': 'hugepages', + 'max_guest': 'maxGuest', + 'reserved_overhead': 'reservedOverhead' } - def __init__(self, hugepages=None): + def __init__(self, guest=None, hugepages=None, max_guest=None, reserved_overhead=None): """ V1Memory - a model defined in Swagger """ + self._guest = None self._hugepages = None + self._max_guest = None + self._reserved_overhead = 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 + if reserved_overhead is not None: + self.reserved_overhead = reserved_overhead + + @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. + + :return: The guest of this V1Memory. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + 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. + + :param guest: The guest of this V1Memory. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._guest = guest @property 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 @@ -63,7 +101,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 @@ -71,6 +109,52 @@ 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 + + @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_memory_dump_volume_source.py b/kubevirt/models/v1_memory_dump_volume_source.py new file mode 100644 index 00000000..99a5306c --- /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='', 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. + readOnly 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. + readOnly 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_memory_status.py b/kubevirt/models/v1_memory_status.py new file mode 100644 index 00000000..da36c34f --- /dev/null +++ b/kubevirt/models/v1_memory_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 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', + 'memory_overhead': 'K8sIoApimachineryPkgApiResourceQuantity' + } + + attribute_map = { + 'guest_at_boot': 'guestAtBoot', + 'guest_current': 'guestCurrent', + 'guest_requested': 'guestRequested', + 'memory_overhead': 'memoryOverhead' + } + + def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None, memory_overhead=None): + """ + V1MemoryStatus - a model defined in Swagger + """ + + 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 + if guest_current is not 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): + """ + 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 + + @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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_migrate_options.py b/kubevirt/models/v1_migrate_options.py new file mode 100644 index 00000000..a4f59be7 --- /dev/null +++ b/kubevirt/models/v1_migrate_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 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 = { + '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, 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: + self.dry_run = dry_run + 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): + """ + 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/kubevirt/models/v1_migration_configuration.py b/kubevirt/models/v1_migration_configuration.py new file mode 100644 index 00000000..e7dd2d59 --- /dev/null +++ b/kubevirt/models/v1_migration_configuration.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 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': 'bool', + 'allow_post_copy': 'bool', + 'allow_workload_disruption': 'bool', + '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', + 'parallel_outbound_migrations_per_node': 'int', + 'progress_timeout': 'int', + 'unsafe_migration_override': 'bool', + 'utility_volumes_timeout': 'int' + } + + 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', + 'match_se_linux_level_on_migration': 'matchSELinuxLevelOnMigration', + 'network': 'network', + 'node_drain_taint_key': 'nodeDrainTaintKey', + 'parallel_migrations_per_cluster': 'parallelMigrationsPerCluster', + 'parallel_outbound_migrations_per_node': 'parallelOutboundMigrationsPerNode', + 'progress_timeout': 'progressTimeout', + '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, utility_volumes_timeout=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 + self._match_se_linux_level_on_migration = None + self._network = 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._utility_volumes_timeout = 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 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: + 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: + 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 + 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): + """ + 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 + """ + 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. + 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 + """ + + self._allow_auto_converge = allow_auto_converge + + @property + 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 + """ + 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. + 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 + """ + + 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): + """ + Gets the bandwidth_per_migration of this V1MigrationConfiguration. + 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 + """ + 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. + 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 + """ + + 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. + 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 + """ + 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. + 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 + """ + + self._completion_timeout_per_gi_b = completion_timeout_per_gi_b + + @property + 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 + """ + return self._disable_tls + + @disable_tls.setter + 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 + """ + + 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): + """ + 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 + """ + return self._network + + @network.setter + 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 + """ + + self._network = network + + @property + 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 + """ + 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. + 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 + """ + + 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. + 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 + """ + 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. + 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 + """ + + 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. + 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 + """ + 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. + 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 + """ + + self._parallel_outbound_migrations_per_node = parallel_outbound_migrations_per_node + + @property + 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 + """ + return self._progress_timeout + + @progress_timeout.setter + 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 + """ + + self._progress_timeout = progress_timeout + + @property + 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 + """ + 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. + 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 + """ + + 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_multus_network.py b/kubevirt/models/v1_multus_network.py new file mode 100644 index 00000000..7f4652e6 --- /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=''): + """ + 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 7f920f2c..70521364 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='', 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/kubevirt/models/v1_network_configuration.py b/kubevirt/models/v1_network_configuration.py new file mode 100644 index 00000000..bd3b5b6b --- /dev/null +++ b/kubevirt/models/v1_network_configuration.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 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 = { + '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, 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: + 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 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): + """ + 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: bool + """ + 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: bool + """ + + 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. + DeprecatedPermitSlirpInterface is an alias for the deprecated PermitSlirpInterface. Deprecated: Removed in v1.3. + + :return: The permit_slirp_interface of this V1NetworkConfiguration. + :rtype: bool + """ + 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. + 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 + """ + + 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_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_node_mediated_device_types_config.py b/kubevirt/models/v1_node_mediated_device_types_config.py new file mode 100644 index 00000000..9f9df571 --- /dev/null +++ b/kubevirt/models/v1_node_mediated_device_types_config.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 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_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_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 + + 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] + """ + 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. + Deprecated. Use mediatedDeviceTypes instead. + + :param mediated_devices_types: The mediated_devices_types of this V1NodeMediatedDeviceTypesConfig. + :type: list[str] + """ + + 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/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/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/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/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/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_pci_host_device.py b/kubevirt/models/v1_pci_host_device.py new file mode 100644 index 00000000..3c1b8cd4 --- /dev/null +++ b/kubevirt/models/v1_pci_host_device.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 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='', resource_name=''): + """ + 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. + If true, KubeVirt will leave the allocation and monitoring to an external device plugin + + :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. + 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 + """ + + self._external_resource_provider = external_resource_provider + + @property + def pci_vendor_selector(self): + """ + Gets the pci_vendor_selector of this V1PciHostDevice. + The vendor_id:product_id tuple of the PCI device + + :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. + The vendor_id:product_id tuple of the PCI device + + :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. + 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 + """ + return self._resource_name + + @resource_name.setter + 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_name + + :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..6074af03 --- /dev/null +++ b/kubevirt/models/v1_permitted_host_devices.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 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]', + 'usb': 'list[V1USBHostDevice]' + } + + attribute_map = { + 'mediated_devices': 'mediatedDevices', + 'pci_host_devices': 'pciHostDevices', + 'usb': 'usb' + } + + 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): + """ + 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 + + @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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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/kubevirt/models/v1_persistent_volume_claim_info.py b/kubevirt/models/v1_persistent_volume_claim_info.py new file mode 100644 index 00000000..2c61b8fe --- /dev/null +++ b/kubevirt/models/v1_persistent_volume_claim_info.py @@ -0,0 +1,306 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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)', + 'claim_name': 'str', + 'filesystem_overhead': 'str', + 'preallocated': 'bool', + 'requests': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', + 'volume_mode': 'str' + } + + 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, 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 + self._volume_mode = None + + if access_modes is not None: + 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: + self.preallocated = preallocated + if requests is not None: + self.requests = requests + 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] + """ + 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 + + @property + def capacity(self): + """ + Gets the capacity of this V1PersistentVolumeClaimInfo. + Capacity represents the capacity set on the corresponding PVC status + + :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 status + + :param capacity: The capacity of this V1PersistentVolumeClaimInfo. + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) + """ + + 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): + """ + 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): + """ + 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 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): + """ + 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. - `\"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 + """ + 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. 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", "FromStorageProfile"] + 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 + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_persistent_volume_claim_volume_source.py b/kubevirt/models/v1_persistent_volume_claim_volume_source.py index d961b1a0..792caeca 100644 --- a/kubevirt/models/v1_persistent_volume_claim_volume_source.py +++ b/kubevirt/models/v1_persistent_volume_claim_volume_source.py @@ -32,23 +32,28 @@ class V1PersistentVolumeClaimVolumeSource(object): """ 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, read_only=None): + def __init__(self, claim_name='', 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 @@ -56,7 +61,7 @@ def __init__(self, claim_name=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 @@ -67,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 @@ -77,11 +82,34 @@ def claim_name(self, claim_name): 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. + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. :return: The read_only of this V1PersistentVolumeClaimVolumeSource. :rtype: bool @@ -92,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_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_initializer.py b/kubevirt/models/v1_plugin_binding.py similarity index 82% rename from kubevirt/models/v1_initializer.py rename to kubevirt/models/v1_plugin_binding.py index a474a8e9..9b5ac396 100644 --- a/kubevirt/models/v1_initializer.py +++ b/kubevirt/models/v1_plugin_binding.py @@ -16,7 +16,7 @@ import re -class V1Initializer(object): +class V1PluginBinding(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -38,9 +38,9 @@ class V1Initializer(object): 'name': 'name' } - def __init__(self, name=None): + def __init__(self, name=''): """ - V1Initializer - a model defined in Swagger + V1PluginBinding - a model defined in Swagger """ self._name = None @@ -50,10 +50,10 @@ def __init__(self, name=None): @property def name(self): """ - Gets the name of this V1Initializer. - name of the process that is responsible for initializing this object. + 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 V1Initializer. + :return: The name of this V1PluginBinding. :rtype: str """ return self._name @@ -61,10 +61,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1Initializer. - name of the process that is responsible for initializing this object. + 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 V1Initializer. + :param name: The name of this V1PluginBinding. :type: str """ if name is None: @@ -114,7 +114,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1Initializer): + if not isinstance(other, V1PluginBinding): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_pod_affinity_term.py b/kubevirt/models/v1_pod_affinity_term.py deleted file mode 100644 index c17fb58d..00000000 --- a/kubevirt/models/v1_pod_affinity_term.py +++ /dev/null @@ -1,182 +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 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_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/kubevirt/models/v1_port.py b/kubevirt/models/v1_port.py index 92e196b4..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 """ @@ -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_preference_matcher.py b/kubevirt/models/v1_preference_matcher.py new file mode 100644 index 00000000..ba275947 --- /dev/null +++ b/kubevirt/models/v1_preference_matcher.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 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 = { + 'infer_from_volume': 'str', + 'infer_from_volume_failure_policy': 'str', + 'kind': 'str', + 'name': 'str', + 'revision_name': 'str' + } + + 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, 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: + 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 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): + """ + 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 + """ + + 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 instancetype 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 instancetype 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_probe.py b/kubevirt/models/v1_probe.py new file mode 100644 index 00000000..c91d0714 --- /dev/null +++ b/kubevirt/models/v1_probe.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 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 = { + '_exec': 'K8sIoApiCoreV1ExecAction', + 'failure_threshold': 'int', + 'guest_agent_ping': 'V1GuestAgentPing', + 'http_get': 'K8sIoApiCoreV1HTTPGetAction', + 'initial_delay_seconds': 'int', + 'period_seconds': 'int', + 'success_threshold': 'int', + 'tcp_socket': 'K8sIoApiCoreV1TCPSocketAction', + 'timeout_seconds': 'int' + } + + attribute_map = { + '_exec': 'exec', + 'failure_threshold': 'failureThreshold', + 'guest_agent_ping': 'guestAgentPing', + 'http_get': 'httpGet', + 'initial_delay_seconds': 'initialDelaySeconds', + 'period_seconds': 'periodSeconds', + 'success_threshold': 'successThreshold', + 'tcp_socket': 'tcpSocket', + 'timeout_seconds': 'timeoutSeconds' + } + + 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 + self._success_threshold = None + 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 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: + 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 _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): + """ + 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. + + :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. + + :param failure_threshold: The failure_threshold of this V1Probe. + :type: int + """ + + 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): + """ + Gets the http_get of this V1Probe. + HTTPGet specifies the http request to perform. + + :return: The http_get of this V1Probe. + :rtype: K8sIoApiCoreV1HTTPGetAction + """ + 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. + + :param http_get: The http_get of this V1Probe. + :type: K8sIoApiCoreV1HTTPGetAction + """ + + 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 + + :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 + + :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. + + :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. + + :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. + + :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. + + :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 + + :return: The tcp_socket of this V1Probe. + :rtype: K8sIoApiCoreV1TCPSocketAction + """ + 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 + + :param tcp_socket: The tcp_socket of this V1Probe. + :type: K8sIoApiCoreV1TCPSocketAction + """ + + 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. 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 + """ + 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. 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 + """ + + 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_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_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_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/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_remove_volume_options.py b/kubevirt/models/v1_remove_volume_options.py new file mode 100644 index 00000000..6416e30e --- /dev/null +++ b/kubevirt/models/v1_remove_volume_options.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 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 = { + 'dry_run': 'list[str]', + 'name': 'str' + } + + attribute_map = { + 'dry_run': 'dryRun', + 'name': 'name' + } + + def __init__(self, dry_run=None, name=''): + """ + 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): + """ + 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_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/kubevirt/models/v1_resource_requirements.py b/kubevirt/models/v1_resource_requirements.py index ece4b49c..36757600 100644 --- a/kubevirt/models/v1_resource_requirements.py +++ b/kubevirt/models/v1_resource_requirements.py @@ -31,25 +31,30 @@ class V1ResourceRequirements(object): and the value is json key in definition. """ swagger_types = { - 'limits': 'dict(str, ResourceQuantity)', - 'requests': 'dict(str, ResourceQuantity)' + 'limits': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)', + 'overcommit_guest_overhead': 'bool', + 'requests': 'dict(str, K8sIoApimachineryPkgApiResourceQuantity)' } 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 @@ -57,10 +62,10 @@ def __init__(self, limits=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: dict(str, ResourceQuantity) + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) """ return self._limits @@ -68,22 +73,45 @@ 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: dict(str, ResourceQuantity) + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) """ 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 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 + """ + 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 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 + """ + + self._overcommit_guest_overhead = overcommit_guest_overhead + @property 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: dict(str, ResourceQuantity) + :rtype: dict(str, K8sIoApimachineryPkgApiResourceQuantity) """ return self._requests @@ -91,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: dict(str, ResourceQuantity) + :type: dict(str, K8sIoApimachineryPkgApiResourceQuantity) """ self._requests = requests 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_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_restart_options.py b/kubevirt/models/v1_restart_options.py new file mode 100644 index 00000000..36a86295 --- /dev/null +++ b/kubevirt/models/v1_restart_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 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', + '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, 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: + 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/sig-architecture/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/sig-architecture/api-conventions.md#resources + + :param api_version: The api_version of this V1RestartOptions. + :type: str + """ + + 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-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 + """ + 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-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 + """ + + 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/sig-architecture/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/sig-architecture/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/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_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_secret_volume_source.py b/kubevirt/models/v1_secret_volume_source.py new file mode 100644 index 00000000..a4149f17 --- /dev/null +++ b/kubevirt/models/v1_secret_volume_source.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 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', + 'volume_label': 'str' + } + + attribute_map = { + 'optional': 'optional', + 'secret_name': 'secretName', + 'volume_label': 'volumeLabel' + } + + 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): + """ + Gets the optional of this V1SecretVolumeSource. + Specify whether the Secret or it's keys must be defined + + :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 + + :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 + + :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 + + :param secret_name: The secret_name of this V1SecretVolumeSource. + :type: str + """ + + 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). + + :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). + + :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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_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_sev.py b/kubevirt/models/v1_sev.py new file mode 100644 index 00000000..b25f22c0 --- /dev/null +++ b/kubevirt/models/v1_sev.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 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 = { + 'attestation': 'V1SEVAttestation', + 'dh_cert': 'str', + 'policy': 'V1SEVPolicy', + 'session': 'str' + } + + attribute_map = { + 'attestation': 'attestation', + 'dh_cert': 'dhCert', + 'policy': 'policy', + 'session': 'session' + } + + 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): + """ + 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 + + @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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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/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_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/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/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/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/kubevirt/models/v1_floppy_target.py b/kubevirt/models/v1_sound_device.py similarity index 60% rename from kubevirt/models/v1_floppy_target.py rename to kubevirt/models/v1_sound_device.py index a32a22f8..a00cf498 100644 --- a/kubevirt/models/v1_floppy_target.py +++ b/kubevirt/models/v1_sound_device.py @@ -16,7 +16,7 @@ import re -class V1FloppyTarget(object): +class V1SoundDevice(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,73 +31,74 @@ class V1FloppyTarget(object): and the value is json key in definition. """ swagger_types = { - 'readonly': 'bool', - 'tray': 'str' + 'model': 'str', + 'name': 'str' } attribute_map = { - 'readonly': 'readonly', - 'tray': 'tray' + 'model': 'model', + 'name': 'name' } - def __init__(self, readonly=None, tray=None): + def __init__(self, model=None, name=''): """ - V1FloppyTarget - a model defined in Swagger + V1SoundDevice - a model defined in Swagger """ - self._readonly = None - self._tray = None + self._model = None + self._name = None - if readonly is not None: - self.readonly = readonly - if tray is not None: - self.tray = tray + if model is not None: + self.model = model + self.name = name @property - def readonly(self): + def model(self): """ - Gets the readonly of this V1FloppyTarget. - ReadOnly. Defaults to false. + 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 readonly of this V1FloppyTarget. - :rtype: bool + :return: The model of this V1SoundDevice. + :rtype: str """ - return self._readonly + return self._model - @readonly.setter - def readonly(self, readonly): + @model.setter + def model(self, model): """ - Sets the readonly of this V1FloppyTarget. - ReadOnly. Defaults to false. + 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 readonly: The readonly of this V1FloppyTarget. - :type: bool + :param model: The model of this V1SoundDevice. + :type: str """ - self._readonly = readonly + self._model = model @property - def tray(self): + def name(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 + Gets the name of this V1SoundDevice. + User's defined name for this sound device - :return: The tray of this V1FloppyTarget. + :return: The name of this V1SoundDevice. :rtype: str """ - return self._tray + return self._name - @tray.setter - def tray(self, tray): + @name.setter + def name(self, name): """ - 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 + Sets the name of this V1SoundDevice. + User's defined name for this sound device - :param tray: The tray of this V1FloppyTarget. + :param name: The name of this V1SoundDevice. :type: str """ + if name is None: + raise ValueError("Invalid value for `name`, must not be `None`") - self._tray = tray + self._name = name def to_dict(self): """ @@ -141,7 +142,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1FloppyTarget): + if not isinstance(other, V1SoundDevice): return False return self.__dict__ == other.__dict__ 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..774f2538 --- /dev/null +++ b/kubevirt/models/v1_ssh_public_key_access_credential_propagation_method.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 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', + '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, 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 + + @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 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): + """ + 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_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 new file mode 100644 index 00000000..6828da75 --- /dev/null +++ b/kubevirt/models/v1_stop_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 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', + '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, 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: + 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 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): + """ + 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/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_support_container_resources.py b/kubevirt/models/v1_support_container_resources.py new file mode 100644 index 00000000..3e5c322b --- /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': 'V1ResourceRequirementsWithoutClaims', + 'type': 'str' + } + + attribute_map = { + 'resources': 'resources', + 'type': 'type' + } + + def __init__(self, resources=None, type=''): + """ + 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: V1ResourceRequirementsWithoutClaims + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + Sets the resources of this V1SupportContainerResources. + + :param resources: The resources of this V1SupportContainerResources. + :type: V1ResourceRequirementsWithoutClaims + """ + 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/kubevirt/models/v1_sy_nic_timer.py b/kubevirt/models/v1_sy_nic_timer.py new file mode 100644 index 00000000..1af73ff8 --- /dev/null +++ b/kubevirt/models/v1_sy_nic_timer.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 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. + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. + + :return: The enabled of this V1SyNICTimer. + :rtype: bool + """ + return self._enabled + + @enabled.setter + 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 + """ + + 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/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_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/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/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/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/kubevirt/models/v1_token_bucket_rate_limiter.py b/kubevirt/models/v1_token_bucket_rate_limiter.py new file mode 100644 index 00000000..a9dd6166 --- /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=0, qps=0.0): + """ + 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/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_tpm_device.py b/kubevirt/models/v1_tpm_device.py new file mode 100644 index 00000000..71cb03ab --- /dev/null +++ b/kubevirt/models/v1_tpm_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 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 = { + 'enabled': 'bool', + 'persistent': 'bool' + } + + attribute_map = { + 'enabled': 'enabled', + 'persistent': 'persistent' + } + + 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 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 + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this V1TPMDevice. + 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 + """ + + self._enabled = enabled + + @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): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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/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/kubevirt/models/v1_usb_host_device.py b/kubevirt/models/v1_usb_host_device.py new file mode 100644 index 00000000..0082af90 --- /dev/null +++ b/kubevirt/models/v1_usb_host_device.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 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 = { + 'external_resource_provider': 'bool', + 'resource_name': 'str', + 'selectors': 'list[V1USBSelector]' + } + + attribute_map = { + 'external_resource_provider': 'externalResourceProvider', + 'resource_name': 'resourceName', + 'selectors': 'selectors' + } + + 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): + """ + 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/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_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_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/resource_inf_dec_amount.py b/kubevirt/models/v1_vgpu_options.py similarity index 75% rename from kubevirt/models/resource_inf_dec_amount.py rename to kubevirt/models/v1_vgpu_options.py index 9119f85e..f3dd0a71 100644 --- a/kubevirt/models/resource_inf_dec_amount.py +++ b/kubevirt/models/v1_vgpu_options.py @@ -16,7 +16,7 @@ import re -class ResourceInfDecAmount(object): +class V1VGPUOptions(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,44 +31,43 @@ class ResourceInfDecAmount(object): and the value is json key in definition. """ swagger_types = { - 'dec': 'InfDec' + 'display': 'V1VGPUDisplayOptions' } attribute_map = { - 'dec': 'Dec' + 'display': 'display' } - def __init__(self, dec=None): + def __init__(self, display=None): """ - ResourceInfDecAmount - a model defined in Swagger + V1VGPUOptions - a model defined in Swagger """ - self._dec = None + self._display = None - self.dec = dec + if display is not None: + self.display = display @property - def dec(self): + def display(self): """ - Gets the dec of this ResourceInfDecAmount. + Gets the display of this V1VGPUOptions. - :return: The dec of this ResourceInfDecAmount. - :rtype: InfDec + :return: The display of this V1VGPUOptions. + :rtype: V1VGPUDisplayOptions """ - return self._dec + return self._display - @dec.setter - def dec(self, dec): + @display.setter + def display(self, display): """ - Sets the dec of this ResourceInfDecAmount. + Sets the display of this V1VGPUOptions. - :param dec: The dec of this ResourceInfDecAmount. - :type: InfDec + :param display: The display of this V1VGPUOptions. + :type: V1VGPUDisplayOptions """ - if dec is None: - raise ValueError("Invalid value for `dec`, must not be `None`") - self._dec = dec + self._display = display def to_dict(self): """ @@ -112,7 +111,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, ResourceInfDecAmount): + if not isinstance(other, V1VGPUOptions): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_watch_event.py b/kubevirt/models/v1_video_device.py similarity index 68% rename from kubevirt/models/v1_watch_event.py rename to kubevirt/models/v1_video_device.py index 7d863047..02b572f5 100644 --- a/kubevirt/models/v1_watch_event.py +++ b/kubevirt/models/v1_video_device.py @@ -16,7 +16,7 @@ import re -class V1WatchEvent(object): +class V1VideoDevice(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,55 +31,30 @@ class V1WatchEvent(object): and the value is json key in definition. """ swagger_types = { - 'object': 'str', 'type': 'str' } attribute_map = { - 'object': 'object', 'type': 'type' } - def __init__(self, object=None, type=None): + def __init__(self, type=None): """ - V1WatchEvent - a model defined in Swagger + V1VideoDevice - a model defined in Swagger """ - self._object = None self._type = None - self.object = object - self.type = type - - @property - def object(self): - """ - Gets the object of this V1WatchEvent. - - :return: The object of this V1WatchEvent. - :rtype: str - """ - return self._object - - @object.setter - def object(self, object): - """ - Sets the object of this V1WatchEvent. - - :param object: The object of this V1WatchEvent. - :type: str - """ - if object is None: - raise ValueError("Invalid value for `object`, must not be `None`") - - self._object = object + if type is not None: + self.type = type @property def type(self): """ - Gets the type of this V1WatchEvent. + 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 V1WatchEvent. + :return: The type of this V1VideoDevice. :rtype: str """ return self._type @@ -87,13 +62,12 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this V1WatchEvent. + 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 V1WatchEvent. + :param type: The type of this V1VideoDevice. :type: str """ - if type is None: - raise ValueError("Invalid value for `type`, must not be `None`") self._type = type @@ -139,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1WatchEvent): + if not isinstance(other, V1VideoDevice): return False return self.__dict__ == other.__dict__ 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/kubevirt/models/v1_virtual_machine.py b/kubevirt/models/v1_virtual_machine.py index 60905189..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' } @@ -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 @@ -72,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 @@ -83,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 @@ -95,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 @@ -106,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 @@ -120,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 @@ -130,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 @@ -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_condition.py b/kubevirt/models/v1_virtual_machine_condition.py index 987dc634..8dfa2afd 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='', type=''): """ 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.py b/kubevirt/models/v1_virtual_machine_instance.py index 8981dd44..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' } @@ -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 @@ -72,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 @@ -83,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 @@ -95,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 @@ -106,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 @@ -120,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 @@ -130,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 @@ -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_backup_status.py b/kubevirt/models/v1_virtual_machine_instance_backup_status.py new file mode 100644 index 00000000..3293cfc3 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_backup_status.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 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', + 'checkpoint_name': 'str', + 'completed': 'bool', + 'end_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', + 'failed': 'bool', + 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', + 'volumes': 'list[V1alpha1BackupVolumeInfo]' + } + + attribute_map = { + 'backup_msg': 'backupMsg', + 'backup_name': 'backupName', + '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, failed=None, start_timestamp=None, volumes=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._failed = None + self._start_timestamp = None + self._volumes = None + + if backup_msg is not None: + 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: + 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: + self.volumes = volumes + + @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 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): + """ + 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 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): + """ + 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 + + @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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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/v1_virtual_machine_instance_condition.py b/kubevirt/models/v1_virtual_machine_instance_condition.py index b367d0e9..ad181eab 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='', type=''): """ 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_file_system.py b/kubevirt/models/v1_virtual_machine_instance_file_system.py new file mode 100644 index 00000000..cde5336e --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_file_system.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 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': 'list[V1VirtualMachineInstanceFileSystemDisk]', + 'disk_name': 'str', + 'file_system_type': 'str', + 'mount_point': 'str', + 'total_bytes': 'int', + 'used_bytes': 'int' + } + + attribute_map = { + 'disk': 'disk', + 'disk_name': 'diskName', + 'file_system_type': 'fileSystemType', + 'mount_point': 'mountPoint', + 'total_bytes': 'totalBytes', + 'used_bytes': 'usedBytes' + } + + 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): + """ + 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_disk.py b/kubevirt/models/v1_virtual_machine_instance_file_system_disk.py new file mode 100644 index 00000000..773dfd9c --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_file_system_disk.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 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': 'busType', + 'serial': 'serial' + } + + def __init__(self, bus_type='', serial=None): + """ + V1VirtualMachineInstanceFileSystemDisk - a model defined in Swagger + """ + + self._bus_type = None + self._serial = None + + self.bus_type = bus_type + if serial is not None: + 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 + """ + + 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/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_file_system_list.py b/kubevirt/models/v1_virtual_machine_instance_file_system_list.py new file mode 100644 index 00000000..66c37a5f --- /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': 'K8sIoApimachineryPkgApisMetaV1ListMeta' + } + + 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: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1VirtualMachineInstanceFileSystemList. + + :param metadata: The metadata of this V1VirtualMachineInstanceFileSystemList. + :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, 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_agent_info.py b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py new file mode 100644 index 00000000..2ffc69d0 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py @@ -0,0 +1,377 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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_freeze_status': 'str', + 'fs_info': 'V1VirtualMachineInstanceFileSystemInfo', + 'guest_agent_version': 'str', + 'hostname': 'str', + 'kind': 'str', + 'os': 'V1VirtualMachineInstanceGuestOSInfo', + 'supported_commands': 'list[V1GuestAgentCommandInfo]', + 'timezone': 'str', + 'user_list': 'list[V1VirtualMachineInstanceGuestOSUser]' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'fs_freeze_status': 'fsFreezeStatus', + 'fs_info': 'fsInfo', + 'guest_agent_version': 'guestAgentVersion', + 'hostname': 'hostname', + 'kind': 'kind', + '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): + """ + 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 + self._kind = None + self._os = None + self._supported_commands = None + self._timezone = None + self._user_list = None + + 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: + 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 supported_commands is not None: + self.supported_commands = supported_commands + 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_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. + + :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 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 + """ + + self._fs_freeze_status = fs_freeze_status + + @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 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): + """ + 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_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_guest_os_user.py b/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py new file mode 100644 index 00000000..a20af9c1 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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': 'float', + 'user_name': 'str' + } + + attribute_map = { + 'domain': 'domain', + 'login_time': 'loginTime', + 'user_name': 'userName' + } + + def __init__(self, domain=None, login_time=None, user_name=''): + """ + 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. + 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 + """ + return self._login_time + + @login_time.setter + 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 + """ + + 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/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..a950687c --- /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': 'K8sIoApimachineryPkgApisMetaV1ListMeta' + } + + 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: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1VirtualMachineInstanceGuestOSUserList. + + :param metadata: The metadata of this V1VirtualMachineInstanceGuestOSUserList. + :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, 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/kubevirt/models/v1_virtual_machine_instance_list.py b/kubevirt/models/v1_virtual_machine_instance_list.py index 48cc2ffd..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 = { @@ -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 @@ -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 new file mode 100644 index 00000000..17bac7d9 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration.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 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': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', + '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 + 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/sig-architecture/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/sig-architecture/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/sig-architecture/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/sig-architecture/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: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1VirtualMachineInstanceMigration. + + :param metadata: The metadata of this V1VirtualMachineInstanceMigration. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + 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 + """ + 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 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_condition.py b/kubevirt/models/v1_virtual_machine_instance_migration_condition.py new file mode 100644 index 00000000..ce78c00d --- /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='', type=''): + """ + 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_list.py b/kubevirt/models/v1_virtual_machine_instance_migration_list.py new file mode 100644 index 00000000..0148d51f --- /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': 'K8sIoApimachineryPkgApisMetaV1ListMeta' + } + + 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/sig-architecture/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/sig-architecture/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/sig-architecture/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/sig-architecture/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: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1VirtualMachineInstanceMigrationList. + + :param metadata: The metadata of this V1VirtualMachineInstanceMigrationList. + :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, 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_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_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..5862d303 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_source_state.py @@ -0,0 +1,377 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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', + 'selinux_context': 'str', + 'sync_address': 'str', + 'virtual_machine_instance_uid': 'str' + } + + attribute_map = { + 'domain_name': 'domainName', + 'domain_namespace': 'domainNamespace', + 'migration_uid': 'migrationUID', + 'node': 'node', + 'node_selectors': 'nodeSelectors', + 'persistent_state_pvc_name': 'persistentStatePVCName', + 'pod': 'pod', + '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, selinux_context=None, sync_address=None, virtual_machine_instance_uid=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._selinux_context = None + self._sync_address = None + self._virtual_machine_instance_uid = 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 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): + """ + 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 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): + """ + 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 + + @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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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 new file mode 100644 index 00000000..a059c3d5 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_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 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 = { + 'added_node_selector': 'dict(str, str)', + 'priority': 'str', + 'receive': 'V1VirtualMachineInstanceMigrationTarget', + 'send_to': 'V1VirtualMachineInstanceMigrationSource', + 'vmi_name': 'str' + } + + attribute_map = { + 'added_node_selector': 'addedNodeSelector', + 'priority': 'priority', + 'receive': 'receive', + 'send_to': 'sendTo', + 'vmi_name': 'vmiName' + } + + 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: + self.send_to = send_to + 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 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): + """ + 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): + """ + 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_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py new file mode 100644 index 00000000..49cce1c1 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -0,0 +1,879 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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 = { + 'abort_requested': 'bool', + 'abort_status': 'str', + 'completed': 'bool', + 'end_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', + '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]', + 'target_direct_migration_node_ports': 'dict(str, int)', + 'target_memory_overhead': 'K8sIoApimachineryPkgApiResourceQuantity', + 'target_node': 'str', + 'target_node_address': 'str', + 'target_node_domain_detected': 'bool', + 'target_node_domain_ready_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time', + 'target_node_topology': 'str', + 'target_persistent_state_pvc_name': 'str', + 'target_pod': 'str', + 'target_state': 'V1VirtualMachineInstanceMigrationTargetState' + } + + attribute_map = { + 'abort_requested': 'abortRequested', + 'abort_status': 'abortStatus', + 'completed': 'completed', + 'end_timestamp': 'endTimestamp', + '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', + 'target_direct_migration_node_ports': 'targetDirectMigrationNodePorts', + 'target_memory_overhead': 'targetMemoryOverhead', + 'target_node': 'targetNode', + 'target_node_address': 'targetNodeAddress', + 'target_node_domain_detected': 'targetNodeDomainDetected', + 'target_node_domain_ready_timestamp': 'targetNodeDomainReadyTimestamp', + 'target_node_topology': 'targetNodeTopology', + 'target_persistent_state_pvc_name': 'targetPersistentStatePVCName', + '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_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 + """ + + self._abort_requested = None + self._abort_status = None + self._completed = None + self._end_timestamp = None + 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 + 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 + self._target_node_domain_ready_timestamp = None + 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 + 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: + 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_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: + 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 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 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: + 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_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: + 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_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 + if target_state is not None: + self.target_state = target_state + + @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): + """ + 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: K8sIoApimachineryPkgApisMetaV1Time + """ + 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: K8sIoApimachineryPkgApisMetaV1Time + """ + + 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 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): + """ + 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_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): + """ + 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): + """ + 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 mode(self): + """ + Gets the mode of this V1VirtualMachineInstanceMigrationState. + Lets us know if the vmi is currently 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 currently running pre or post copy migration + + :param mode: The mode of this V1VirtualMachineInstanceMigrationState. + :type: str + """ + + self._mode = mode + + @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 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): + """ + 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 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): + """ + Gets the start_timestamp of this V1VirtualMachineInstanceMigrationState. + The time the migration action began + + :return: The start_timestamp of this V1VirtualMachineInstanceMigrationState. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + 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: K8sIoApimachineryPkgApisMetaV1Time + """ + + 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_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): + """ + 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: dict(str, int) + """ + 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: dict(str, int) + """ + + 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): + """ + 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 + + @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): + """ + 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_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): + """ + 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 + + @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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_migration_status.py b/kubevirt/models/v1_virtual_machine_instance_migration_status.py new file mode 100644 index 00000000..3bb3cb50 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_status.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 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 = { + 'conditions': 'list[V1VirtualMachineInstanceMigrationCondition]', + 'migration_state': 'V1VirtualMachineInstanceMigrationState', + 'phase': 'str', + 'phase_transition_timestamps': 'list[V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp]', + 'synchronization_addresses': 'list[str]' + } + + attribute_map = { + 'conditions': 'conditions', + 'migration_state': 'migrationState', + 'phase': 'phase', + 'phase_transition_timestamps': 'phaseTransitionTimestamps', + 'synchronization_addresses': 'synchronizationAddresses' + } + + def __init__(self, conditions=None, migration_state=None, phase=None, phase_transition_timestamps=None, synchronization_addresses=None): + """ + V1VirtualMachineInstanceMigrationStatus - a model defined in Swagger + """ + + self._conditions = None + self._migration_state = None + self._phase = None + self._phase_transition_timestamps = None + self._synchronization_addresses = 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: + self.phase_transition_timestamps = phase_transition_timestamps + if synchronization_addresses is not None: + self.synchronization_addresses = synchronization_addresses + + @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 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): + """ + 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 + + @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 + + @property + def synchronization_addresses(self): + """ + 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_addresses of this V1VirtualMachineInstanceMigrationStatus. + :rtype: list[str] + """ + return self._synchronization_addresses + + @synchronization_addresses.setter + def synchronization_addresses(self, synchronization_addresses): + """ + 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_addresses: The synchronization_addresses of this V1VirtualMachineInstanceMigrationStatus. + :type: list[str] + """ + + self._synchronization_addresses = synchronization_addresses + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_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..00fcc563 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_instance_migration_target_state.py @@ -0,0 +1,545 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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', + 'selinux_context': 'str', + 'sync_address': 'str', + 'virtual_machine_instance_uid': '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', + '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, selinux_context=None, sync_address=None, virtual_machine_instance_uid=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._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 + 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 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): + """ + 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 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): + """ + 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 + + @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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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/kubevirt/models/v1_virtual_machine_instance_network_interface.py b/kubevirt/models/v1_virtual_machine_instance_network_interface.py index 49843f7a..7eefe2f9 100644 --- a/kubevirt/models/v1_virtual_machine_instance_network_interface.py +++ b/kubevirt/models/v1_virtual_machine_instance_network_interface.py @@ -31,33 +31,114 @@ class V1VirtualMachineInstanceNetworkInterface(object): and the value is json key in definition. """ swagger_types = { + 'info_source': 'str', + 'interface_name': 'str', 'ip_address': 'str', - 'mac': 'str' + 'ip_addresses': 'list[str]', + 'link_state': 'str', + 'mac': 'str', + 'name': 'str', + 'pod_interface_name': 'str', + 'queue_count': 'int' } attribute_map = { + 'info_source': 'infoSource', + 'interface_name': 'interfaceName', 'ip_address': 'ipAddress', - 'mac': 'mac' + 'ip_addresses': 'ipAddresses', + 'link_state': 'linkState', + 'mac': 'mac', + 'name': 'name', + 'pod_interface_name': 'podInterfaceName', + 'queue_count': 'queueCount' } - def __init__(self, ip_address=None, mac=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 """ + self._info_source = None + 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 + self._queue_count = 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: 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: + 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 + + @property + def info_source(self): + """ + Gets the info_source of this V1VirtualMachineInstanceNetworkInterface. + Specifies the origin of the interface data collected. values: domain, guest-agent, multus-status. + + :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, multus-status. + + :param info_source: The info_source of this V1VirtualMachineInstanceNetworkInterface. + :type: str + """ + + self._info_source = info_source + + @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): """ 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 @@ -68,7 +149,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 @@ -76,6 +157,52 @@ 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 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): """ @@ -99,6 +226,75 @@ 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 + + @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): + """ + 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/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_preset.py b/kubevirt/models/v1_virtual_machine_instance_preset.py index 32f9a896..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' } @@ -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 @@ -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 2f0fce82..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 = { @@ -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 @@ -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 0dfce62e..ca6ef06b 100644 --- a/kubevirt/models/v1_virtual_machine_instance_preset_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_preset_spec.py @@ -31,8 +31,8 @@ class V1VirtualMachineInstancePresetSpec(object): and the value is json key in definition. """ swagger_types = { - 'domain': 'V1DomainPresetSpec', - 'selector': 'V1LabelSelector' + 'domain': 'V1DomainSpec', + 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector' } attribute_map = { @@ -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 @@ -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_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/kubevirt/models/v1_virtual_machine_instance_replica_set.py b/kubevirt/models/v1_virtual_machine_instance_replica_set.py index d3ec8c2b..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' } @@ -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 @@ -72,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 @@ -83,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 @@ -95,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 @@ -106,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 @@ -120,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 @@ -130,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 @@ -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_instance_replica_set_condition.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.py index 767f736e..98e57672 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='', type=''): """ 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/kubevirt/models/v1_virtual_machine_instance_replica_set_list.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_list.py index 427dc6cf..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 = { @@ -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 @@ -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 4acea009..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' } @@ -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 @@ -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_replica_set_status.py b/kubevirt/models/v1_virtual_machine_instance_replica_set_status.py index 540accb4..dd7fd587 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,11 +84,34 @@ 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): """ 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 @@ -94,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 @@ -106,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 @@ -117,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 ce960ace..c7f47878 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -31,57 +31,150 @@ class V1VirtualMachineInstanceSpec(object): and the value is json key in definition. """ swagger_types = { - 'affinity': 'V1Affinity', + 'access_credentials': 'list[V1AccessCredential]', + 'affinity': 'K8sIoApiCoreV1Affinity', + 'architecture': 'str', + 'dns_config': 'K8sIoApiCoreV1PodDNSConfig', + 'dns_policy': 'str', 'domain': 'V1DomainSpec', + 'eviction_strategy': 'str', 'hostname': 'str', + 'liveness_probe': 'V1Probe', 'networks': 'list[V1Network]', 'node_selector': 'dict(str, str)', + 'priority_class_name': 'str', + 'readiness_probe': 'V1Probe', + 'resource_claims': 'list[K8sIoApiCoreV1PodResourceClaim]', + 'scheduler_name': 'str', + 'start_strategy': 'str', 'subdomain': 'str', 'termination_grace_period_seconds': 'int', + 'tolerations': 'list[K8sIoApiCoreV1Toleration]', + 'topology_spread_constraints': 'list[K8sIoApiCoreV1TopologySpreadConstraint]', + 'utility_volumes': 'list[V1UtilityVolume]', 'volumes': 'list[V1Volume]' } attribute_map = { + 'access_credentials': 'accessCredentials', 'affinity': 'affinity', + 'architecture': 'architecture', + 'dns_config': 'dnsConfig', + 'dns_policy': 'dnsPolicy', 'domain': 'domain', + 'eviction_strategy': 'evictionStrategy', 'hostname': 'hostname', + 'liveness_probe': 'livenessProbe', 'networks': 'networks', 'node_selector': 'nodeSelector', + 'priority_class_name': 'priorityClassName', + 'readiness_probe': 'readinessProbe', + 'resource_claims': 'resourceClaims', + 'scheduler_name': 'schedulerName', + 'start_strategy': 'startStrategy', 'subdomain': 'subdomain', 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', + 'tolerations': 'tolerations', + 'topology_spread_constraints': 'topologySpreadConstraints', + 'utility_volumes': 'utilityVolumes', '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, 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 """ + self._access_credentials = None self._affinity = None + self._architecture = 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 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 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: + 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: + 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: + 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 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 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: + self.start_strategy = start_strategy 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 tolerations is not None: + 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 + @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): """ @@ -89,7 +182,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 @@ -100,11 +193,86 @@ 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 + @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): + """ + 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. + + :return: The dns_config of this V1VirtualMachineInstanceSpec. + :rtype: K8sIoApiCoreV1PodDNSConfig + """ + 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. + + :param dns_config: The dns_config of this V1VirtualMachineInstanceSpec. + :type: K8sIoApiCoreV1PodDNSConfig + """ + + 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'. 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 + """ + 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'. 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 + @property def domain(self): """ @@ -130,11 +298,34 @@ def domain(self, domain): self._domain = domain + @property + 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 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 + """ + return self._eviction_strategy + + @eviction_strategy.setter + 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 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 + """ + + self._eviction_strategy = eviction_strategy + @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 + 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 @@ -145,7 +336,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 @@ -153,6 +344,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 + + :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 + + :param liveness_probe: The liveness_probe of this V1VirtualMachineInstanceSpec. + :type: V1Probe + """ + + self._liveness_probe = liveness_probe + @property def networks(self): """ @@ -180,7 +394,7 @@ 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: dict(str, str) @@ -191,7 +405,7 @@ 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: dict(str, str) @@ -199,11 +413,126 @@ 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. + + :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. + + :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): + """ + 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 + + :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 + + :param readiness_probe: The readiness_probe of this V1VirtualMachineInstanceSpec. + :type: V1Probe + """ + + 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): + """ + 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. + + :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. + + :param scheduler_name: The scheduler_name of this V1VirtualMachineInstanceSpec. + :type: str + """ + + 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): """ 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 @@ -214,7 +543,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 @@ -245,6 +574,75 @@ 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[K8sIoApiCoreV1Toleration] + """ + 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[K8sIoApiCoreV1Toleration] + """ + + 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 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/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index bc1b5a28..b6bd83cb 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -31,37 +31,221 @@ class V1VirtualMachineInstanceStatus(object): and the value is json key in definition. """ swagger_types = { + 'vsockcid': 'int', + 'active_pods': 'dict(str, str)', + 'changed_block_tracking': 'V1ChangedBlockTrackingStatus', 'conditions': 'list[V1VirtualMachineInstanceCondition]', + 'current_cpu_topology': 'V1CPUTopology', + 'evacuation_node_name': 'str', + 'fs_freeze_status': 'str', + 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', 'interfaces': 'list[V1VirtualMachineInstanceNetworkInterface]', + 'kernel_boot_status': 'V1KernelBootStatus', + 'launcher_container_image_version': 'str', + 'machine': 'V1Machine', + 'memory': 'V1MemoryStatus', + 'migrated_volumes': 'list[V1StorageMigratedVolumeInfo]', + 'migration_method': 'str', + 'migration_state': 'V1VirtualMachineInstanceMigrationState', + 'migration_transport': 'str', 'node_name': 'str', - 'phase': 'str' + 'phase': 'str', + 'phase_transition_timestamps': 'list[V1VirtualMachineInstancePhaseTransitionTimestamp]', + 'qos_class': 'str', + 'reason': 'str', + 'runtime_user': 'int', + 'selinux_context': 'str', + 'topology_hints': 'V1TopologyHints', + 'virtual_machine_revision_name': 'str', + 'volume_status': 'list[V1VolumeStatus]' } attribute_map = { + 'vsockcid': 'VSOCKCID', + 'active_pods': 'activePods', + 'changed_block_tracking': 'changedBlockTracking', 'conditions': 'conditions', + 'current_cpu_topology': 'currentCPUTopology', + 'evacuation_node_name': 'evacuationNodeName', + 'fs_freeze_status': 'fsFreezeStatus', + 'guest_os_info': 'guestOSInfo', 'interfaces': 'interfaces', + 'kernel_boot_status': 'kernelBootStatus', + 'launcher_container_image_version': 'launcherContainerImageVersion', + 'machine': 'machine', + 'memory': 'memory', + 'migrated_volumes': 'migratedVolumes', + 'migration_method': 'migrationMethod', + 'migration_state': 'migrationState', + 'migration_transport': 'migrationTransport', 'node_name': 'nodeName', - 'phase': 'phase' + 'phase': 'phase', + 'phase_transition_timestamps': 'phaseTransitionTimestamps', + '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, conditions=None, interfaces=None, node_name=None, phase=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 """ + self._vsockcid = None + self._active_pods = None + self._changed_block_tracking = None self._conditions = None + self._current_cpu_topology = None + self._evacuation_node_name = None + 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 + self._migrated_volumes = 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 + 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 + + if vsockcid is not None: + 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: + 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: + 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: 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: + 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: + 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: 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: + 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: + self.virtual_machine_revision_name = virtual_machine_revision_name + 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): + """ + 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: dict(str, str) + """ + 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: dict(str, str) + """ + + 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): @@ -86,6 +270,98 @@ 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): + """ + 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 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. + + :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 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 + """ + + self._fs_freeze_status = fs_freeze_status + + @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): """ @@ -109,6 +385,190 @@ 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): + """ + 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 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 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 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): + """ + 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): + """ + 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 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): """ @@ -155,6 +615,194 @@ 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): + """ + 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 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 + """ + 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 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 + + @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' + + :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' + + :param reason: The reason of this V1VirtualMachineInstanceStatus. + :type: str + """ + + 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 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): + """ + 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 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): + """ + 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_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 0c56841d..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 = { @@ -59,13 +59,14 @@ 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 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 @@ -76,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 @@ -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] @@ -113,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 @@ -124,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 @@ -138,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 @@ -148,10 +147,8 @@ def metadata(self, metadata): Sets the metadata of this V1VirtualMachineList. :param metadata: The metadata of this V1VirtualMachineList. - :type: V1ListMeta + :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ - 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_memory_dump_request.py b/kubevirt/models/v1_virtual_machine_memory_dump_request.py new file mode 100644 index 00000000..bfc9363e --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_memory_dump_request.py @@ -0,0 +1,295 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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', + 'remove': 'bool', + 'start_timestamp': 'K8sIoApimachineryPkgApisMetaV1Time' + } + + attribute_map = { + 'claim_name': 'claimName', + 'end_timestamp': 'endTimestamp', + 'file_name': 'fileName', + 'message': 'message', + 'phase': 'phase', + 'remove': 'remove', + 'start_timestamp': 'startTimestamp' + } + + 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 + """ + + self._claim_name = None + self._end_timestamp = None + self._file_name = None + self._message = None + self._phase = None + self._remove = 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 remove is not None: + self.remove = remove + 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 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): + """ + 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_options.py b/kubevirt/models/v1_virtual_machine_options.py new file mode 100644 index 00000000..2bf8a2e5 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_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 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', + 'disable_serial_console_log': 'V1DisableSerialConsoleLog' + } + + attribute_map = { + 'disable_free_page_reporting': 'disableFreePageReporting', + 'disable_serial_console_log': 'disableSerialConsoleLog' + } + + 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): + """ + 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 + + @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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index 32d4052f..f1c0665d 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -31,31 +31,149 @@ class V1VirtualMachineSpec(object): and the value is json key in definition. """ swagger_types = { + 'data_volume_templates': 'list[V1DataVolumeTemplateSpec]', + 'instancetype': 'V1InstancetypeMatcher', + 'preference': 'V1PreferenceMatcher', + 'run_strategy': 'str', 'running': 'bool', - 'template': 'V1VirtualMachineInstanceTemplateSpec' + 'template': 'V1VirtualMachineInstanceTemplateSpec', + 'update_volumes_strategy': 'str' } attribute_map = { + 'data_volume_templates': 'dataVolumeTemplates', + 'instancetype': 'instancetype', + 'preference': 'preference', + 'run_strategy': 'runStrategy', 'running': 'running', - 'template': 'template' + 'template': 'template', + 'update_volumes_strategy': 'updateVolumesStrategy' } - def __init__(self, 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 """ + self._data_volume_templates = None + self._instancetype = None + self._preference = None + self._run_strategy = None self._running = None self._template = None + self._update_volumes_strategy = None - self.running = running + if data_volume_templates is not None: + self.data_volume_templates = data_volume_templates + if instancetype is not None: + self.instancetype = instancetype + if preference is not None: + self.preference = preference + if run_strategy is not None: + self.run_strategy = run_strategy + 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): + """ + 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[V1DataVolumeTemplateSpec] + """ + 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[V1DataVolumeTemplateSpec] + """ + + self._data_volume_templates = data_volume_templates + + @property + def instancetype(self): + """ + Gets the instancetype of this V1VirtualMachineSpec. + InstancetypeMatcher references a instancetype that is used to fill fields in Template + + :return: The instancetype of this V1VirtualMachineSpec. + :rtype: V1InstancetypeMatcher + """ + return self._instancetype + + @instancetype.setter + def instancetype(self, instancetype): + """ + Sets the instancetype of this V1VirtualMachineSpec. + InstancetypeMatcher references a instancetype that is used to fill fields in Template + + :param instancetype: The instancetype of this V1VirtualMachineSpec. + :type: V1InstancetypeMatcher + """ + + self._instancetype = instancetype + + @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): + """ + Gets the run_strategy of this V1VirtualMachineSpec. + 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 + """ + 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 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 + """ + + 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 Deprecated: VirtualMachineInstance field \"Running\" is now deprecated, please use RunStrategy instead. :return: The running of this V1VirtualMachineSpec. :rtype: bool @@ -66,13 +184,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 Deprecated: VirtualMachineInstance field \"Running\" is now deprecated, please use RunStrategy instead. :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 @@ -101,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/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_state_change_request.py b/kubevirt/models/v1_virtual_machine_state_change_request.py new file mode 100644 index 00000000..3a8e88d1 --- /dev/null +++ b/kubevirt/models/v1_virtual_machine_state_change_request.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 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', + 'data': 'dict(str, str)', + 'uid': 'str' + } + + attribute_map = { + 'action': 'action', + 'data': 'data', + 'uid': 'uid' + } + + def __init__(self, action='', 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 + + @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 data(self): + """ + Gets the data of this V1VirtualMachineStateChangeRequest. + Provides additional data in order to perform the Action + + :return: The data of this V1VirtualMachineStateChangeRequest. + :rtype: dict(str, str) + """ + 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: dict(str, str) + """ + + self._data = data + + @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: str + """ + 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: str + """ + + 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..294d13fb 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -31,32 +31,130 @@ class V1VirtualMachineStatus(object): and the value is json key in definition. """ swagger_types = { + 'changed_block_tracking': 'V1ChangedBlockTrackingStatus', 'conditions': 'list[V1VirtualMachineCondition]', 'created': 'bool', - 'ready': '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', + 'run_strategy': 'str', + 'snapshot_in_progress': 'str', + 'start_failure': 'V1VirtualMachineStartFailure', + 'state_change_requests': 'list[V1VirtualMachineStateChangeRequest]', + 'volume_requests': 'list[V1VirtualMachineVolumeRequest]', + 'volume_snapshot_statuses': 'list[V1VolumeSnapshotStatus]', + 'volume_update_state': 'V1VolumeUpdateState' } attribute_map = { + 'changed_block_tracking': 'changedBlockTracking', 'conditions': 'conditions', 'created': 'created', - 'ready': 'ready' + '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', + 'run_strategy': 'runStrategy', + 'snapshot_in_progress': 'snapshotInProgress', + 'start_failure': 'startFailure', + 'state_change_requests': 'stateChangeRequests', + 'volume_requests': 'volumeRequests', + 'volume_snapshot_statuses': 'volumeSnapshotStatuses', + 'volume_update_state': 'volumeUpdateState' } - def __init__(self, conditions=None, created=None, ready=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 + 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 + self._run_strategy = None + self._snapshot_in_progress = None + self._start_failure = None + self._state_change_requests = None + self._volume_requests = None + 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: 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: 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: + 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: + 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 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): @@ -104,6 +202,144 @@ 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 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): + """ + 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 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 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): + """ + 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): """ @@ -127,6 +363,190 @@ 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 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): + """ + 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 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): + """ + 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 + + @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): + """ + 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 + + @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_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.py b/kubevirt/models/v1_volume.py index e9ad2bdc..9a0ce12f 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -31,52 +31,130 @@ 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', + 'container_path': 'V1ContainerPathVolumeSource', + 'data_volume': 'V1DataVolumeSource', + 'downward_api': 'V1DownwardAPIVolumeSource', + 'downward_metrics': 'V1DownwardMetricsVolumeSource', 'empty_disk': 'V1EmptyDiskSource', 'ephemeral': 'V1EphemeralVolumeSource', + 'host_disk': 'V1HostDisk', + 'memory_dump': 'V1MemoryDumpVolumeSource', 'name': 'str', 'persistent_volume_claim': 'V1PersistentVolumeClaimVolumeSource', - 'registry_disk': 'V1RegistryDiskSource' + 'secret': 'V1SecretVolumeSource', + 'service_account': 'V1ServiceAccountVolumeSource', + 'sysprep': 'V1SysprepSource' } attribute_map = { + 'cloud_init_config_drive': 'cloudInitConfigDrive', 'cloud_init_no_cloud': 'cloudInitNoCloud', + 'config_map': 'configMap', + 'container_disk': 'containerDisk', + 'container_path': 'containerPath', + 'data_volume': 'dataVolume', + 'downward_api': 'downwardAPI', + 'downward_metrics': 'downwardMetrics', 'empty_disk': 'emptyDisk', 'ephemeral': 'ephemeral', + 'host_disk': 'hostDisk', + 'memory_dump': 'memoryDump', 'name': 'name', 'persistent_volume_claim': 'persistentVolumeClaim', - 'registry_disk': 'registryDisk' + 'secret': 'secret', + 'service_account': 'serviceAccount', + 'sysprep': 'sysprep' } - 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_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 """ + self._cloud_init_config_drive = None 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 self._empty_disk = None self._ephemeral = None + self._host_disk = None + self._memory_dump = None self._name = None self._persistent_volume_claim = None - self._registry_disk = 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 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 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: + 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: 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 - 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: + self.service_account = service_account + if sysprep is not None: + self.sysprep = sysprep + + @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 + + :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 + + :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): """ 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 @@ -87,7 +165,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 @@ -95,11 +173,149 @@ 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/ + + :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/ + + :param config_map: The config_map of this V1Volume. + :type: V1ConfigMapVolumeSource + """ + + 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 + + :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 + + :param container_disk: The container_disk of this V1Volume. + :type: V1ContainerDiskSource + """ + + 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): + """ + 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. + + :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. + + :param data_volume: The data_volume of this V1Volume. + :type: V1DataVolumeSource + """ + + 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 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): """ 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 @@ -110,7 +326,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 @@ -122,7 +338,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 @@ -133,7 +349,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 @@ -141,6 +357,52 @@ 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 + + :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 + + :param host_disk: The host_disk of this V1Volume. + :type: V1HostDisk + """ + + 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): """ @@ -170,7 +432,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 @@ -181,7 +443,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 @@ -190,27 +452,73 @@ def persistent_volume_claim(self, persistent_volume_claim): self._persistent_volume_claim = persistent_volume_claim @property - def registry_disk(self): + 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/ + + :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/ + + :param secret: The secret of this V1Volume. + :type: V1SecretVolumeSource + """ + + 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/ + + :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/ + + :param service_account: The service_account of this V1Volume. + :type: V1ServiceAccountVolumeSource + """ + + self._service_account = service_account + + @property + def sysprep(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 + Gets the sysprep of this V1Volume. + Represents a Sysprep volume source. - :return: The registry_disk of this V1Volume. - :rtype: V1RegistryDiskSource + :return: The sysprep of this V1Volume. + :rtype: V1SysprepSource """ - return self._registry_disk + return self._sysprep - @registry_disk.setter - def registry_disk(self, registry_disk): + @sysprep.setter + def sysprep(self, sysprep): """ - 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 + Sets the sysprep of this V1Volume. + Represents a Sysprep volume source. - :param registry_disk: The registry_disk of this V1Volume. - :type: V1RegistryDiskSource + :param sysprep: The sysprep of this V1Volume. + :type: V1SysprepSource """ - self._registry_disk = registry_disk + self._sysprep = sysprep def to_dict(self): """ diff --git a/kubevirt/models/v1_volume_migration_state.py b/kubevirt/models/v1_volume_migration_state.py new file mode 100644 index 00000000..a321a8e2 --- /dev/null +++ b/kubevirt/models/v1_volume_migration_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 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 = { + 'migrated_volumes': 'list[V1StorageMigratedVolumeInfo]' + } + + attribute_map = { + 'migrated_volumes': 'migratedVolumes' + } + + def __init__(self, migrated_volumes=None): + """ + V1VolumeMigrationState - a model defined in Swagger + """ + + self._migrated_volumes = None + + if migrated_volumes is not None: + self.migrated_volumes = migrated_volumes + + @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_snapshot_status.py b/kubevirt/models/v1_volume_snapshot_status.py new file mode 100644 index 00000000..778d355b --- /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=False, name='', 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/kubevirt/models/v1_volume_status.py b/kubevirt/models/v1_volume_status.py new file mode 100644 index 00000000..a4d36b1e --- /dev/null +++ b/kubevirt/models/v1_volume_status.py @@ -0,0 +1,379 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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 = { + 'container_disk_volume': 'V1ContainerDiskInfo', + 'hotplug_volume': 'V1HotplugVolumeStatus', + 'memory_dump_volume': 'V1DomainMemoryDumpInfo', + 'message': 'str', + 'name': 'str', + 'persistent_volume_claim_info': 'V1PersistentVolumeClaimInfo', + 'phase': 'str', + 'reason': 'str', + 'size': 'int', + 'target': 'str' + } + + attribute_map = { + 'container_disk_volume': 'containerDiskVolume', + 'hotplug_volume': 'hotplugVolume', + 'memory_dump_volume': 'memoryDumpVolume', + 'message': 'message', + 'name': 'name', + 'persistent_volume_claim_info': 'persistentVolumeClaimInfo', + 'phase': 'phase', + 'reason': 'reason', + 'size': 'size', + 'target': '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 + self._name = None + self._persistent_volume_claim_info = None + self._phase = None + self._reason = None + 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: + self.memory_dump_volume = memory_dump_volume + 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: + self.reason = reason + if size is not None: + 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): + """ + 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 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): + """ + 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 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): + """ + 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 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): + """ + 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/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/kubevirt/models/v1_watchdog.py b/kubevirt/models/v1_watchdog.py index 9362bb08..6dec05d4 100644 --- a/kubevirt/models/v1_watchdog.py +++ b/kubevirt/models/v1_watchdog.py @@ -31,32 +31,60 @@ 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=None): + 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): """ Gets the i6300esb of this V1Watchdog. - i6300esb watchdog device. +optional + i6300esb watchdog device. :return: The i6300esb of this V1Watchdog. :rtype: V1I6300ESBWatchdog @@ -67,7 +95,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_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_options.py b/kubevirt/models/v1alpha1_backup_options.py new file mode 100644 index 00000000..d5f3f264 --- /dev/null +++ b/kubevirt/models/v1alpha1_backup_options.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 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_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', + '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', + 'skip_quiesce': 'skipQuiesce', + 'target_path': 'targetPath' + } + + 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._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 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): + """ + 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 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): + """ + 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 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): + """ + 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): + """ + 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 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 + + @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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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_backup_volume_info.py b/kubevirt/models/v1alpha1_backup_volume_info.py new file mode 100644 index 00000000..196f238e --- /dev/null +++ b/kubevirt/models/v1alpha1_backup_volume_info.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 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 = { + '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, 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): + """ + 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 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): + """ + 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_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_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..d211be4c --- /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', + 'allow_workload_disruption': 'bool', + 'bandwidth_per_migration': 'K8sIoApimachineryPkgApiResourceQuantity', + 'completion_timeout_per_gi_b': 'int', + 'selectors': 'V1alpha1Selectors' + } + + 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, 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 + + 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 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: + self.completion_timeout_per_gi_b = completion_timeout_per_gi_b + 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 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): + """ + 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 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..19479b95 --- /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': 'dict(str, str)', + 'virtual_machine_instance_selector': 'dict(str, str)' + } + + 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: dict(str, str) + """ + 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: dict(str, str) + """ + + 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: dict(str, str) + """ + 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: dict(str, str) + """ + + 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/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..2c0d8d9e --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_backup_spec.py @@ -0,0 +1,294 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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', + 'token_secret_ref': 'str', + 'ttl_duration': 'K8sIoApimachineryPkgApisMetaV1Duration' + } + + attribute_map = { + 'force_full_backup': 'forceFullBackup', + 'mode': 'mode', + 'pvc_name': 'pvcName', + 'skip_quiesce': 'skipQuiesce', + '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, token_secret_ref=None, ttl_duration=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 + self._token_secret_ref = None + self._ttl_duration = 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 + 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): + """ + 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 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 + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1alpha1VirtualMachineBackupSpec. + 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 + + @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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(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..741874b5 --- /dev/null +++ b/kubevirt/models/v1alpha1_virtual_machine_backup_status.py @@ -0,0 +1,235 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-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 = { + 'checkpoint_name': 'str', + 'conditions': 'list[V1alpha1Condition]', + 'endpoint_cert': 'str', + 'included_volumes': 'list[V1alpha1BackupVolumeInfo]', + 'type': 'str' + } + + attribute_map = { + 'checkpoint_name': 'checkpointName', + 'conditions': 'conditions', + 'endpoint_cert': 'endpointCert', + 'included_volumes': 'includedVolumes', + 'type': 'type' + } + + 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 + + if checkpoint_name is not 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: + 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): + """ + 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 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): + """ + 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): + """ + 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/kubevirt/models/v1beta1_clock_preferences.py b/kubevirt/models/v1beta1_clock_preferences.py new file mode 100644 index 00000000..5090fee0 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1ClockPreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1ClockPreferences - 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 V1beta1ClockPreferences. + ClockOffset allows specifying the UTC offset or the timezone of the guest clock. + + :return: The preferred_clock_offset of this V1beta1ClockPreferences. + :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 V1beta1ClockPreferences. + ClockOffset allows specifying the UTC offset or the timezone of the guest clock. + + :param preferred_clock_offset: The preferred_clock_offset of this V1beta1ClockPreferences. + :type: V1ClockOffset + """ + + self._preferred_clock_offset = preferred_clock_offset + + @property + def preferred_timer(self): + """ + Gets the preferred_timer of this V1beta1ClockPreferences. + Timer specifies whih timers are attached to the vmi. + + :return: The preferred_timer of this V1beta1ClockPreferences. + :rtype: V1Timer + """ + return self._preferred_timer + + @preferred_timer.setter + def preferred_timer(self, preferred_timer): + """ + Sets the preferred_timer of this V1beta1ClockPreferences. + Timer specifies whih timers are attached to the vmi. + + :param preferred_timer: The preferred_timer of this V1beta1ClockPreferences. + :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, V1beta1ClockPreferences): + return False + + return self.__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/v1beta1_condition.py similarity index 52% rename from kubevirt/models/resource_quantity.py rename to kubevirt/models/v1beta1_condition.py index 549bb51a..98e8e748 100644 --- a/kubevirt/models/resource_quantity.py +++ b/kubevirt/models/v1beta1_condition.py @@ -16,7 +16,7 @@ import re -class ResourceQuantity(object): +class V1beta1Condition(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,125 +31,123 @@ class ResourceQuantity(object): and the value is json key in definition. """ swagger_types = { - 'format': 'str', - 'd': 'ResourceInfDecAmount', - 'i': 'ResourceInt64Amount', - 's': 'str' + 'message': 'str', + 'reason': 'str', + 'status': 'str', + 'type': 'str' } attribute_map = { - 'format': 'Format', - 'd': 'd', - 'i': 'i', - 's': 's' + 'message': 'message', + 'reason': 'reason', + 'status': 'status', + 'type': 'type' } - def __init__(self, format=None, d=None, i=None, s=None): + def __init__(self, message=None, reason=None, status='', type=''): """ - ResourceQuantity - a model defined in Swagger + V1beta1Condition - a model defined in Swagger """ - self._format = None - self._d = None - self._i = None - self._s = None + self._message = None + self._reason = None + self._status = None + self._type = None - self.format = format - self.d = d - self.i = i - self.s = s + if message is not None: + self.message = message + if reason is not None: + self.reason = reason + self.status = status + self.type = type @property - def format(self): + def message(self): """ - Gets the format of this ResourceQuantity. + Gets the message of this V1beta1Condition. - :return: The format of this ResourceQuantity. + :return: The message of this V1beta1Condition. :rtype: str """ - return self._format + return self._message - @format.setter - def format(self, format): + @message.setter + def message(self, message): """ - Sets the format of this ResourceQuantity. + Sets the message of this V1beta1Condition. - :param format: The format of this ResourceQuantity. + :param message: The message of this V1beta1Condition. :type: str """ - if format is None: - raise ValueError("Invalid value for `format`, must not be `None`") - self._format = format + self._message = message @property - def d(self): + def reason(self): """ - Gets the d of this ResourceQuantity. + Gets the reason of this V1beta1Condition. - :return: The d of this ResourceQuantity. - :rtype: ResourceInfDecAmount + :return: The reason of this V1beta1Condition. + :rtype: str """ - return self._d + return self._reason - @d.setter - def d(self, d): + @reason.setter + def reason(self, reason): """ - Sets the d of this ResourceQuantity. + Sets the reason of this V1beta1Condition. - :param d: The d of this ResourceQuantity. - :type: ResourceInfDecAmount + :param reason: The reason of this V1beta1Condition. + :type: str """ - if d is None: - raise ValueError("Invalid value for `d`, must not be `None`") - self._d = d + self._reason = reason @property - def i(self): + def status(self): """ - Gets the i of this ResourceQuantity. + Gets the status of this V1beta1Condition. - :return: The i of this ResourceQuantity. - :rtype: ResourceInt64Amount + :return: The status of this V1beta1Condition. + :rtype: str """ - return self._i + return self._status - @i.setter - def i(self, i): + @status.setter + def status(self, status): """ - Sets the i of this ResourceQuantity. + Sets the status of this V1beta1Condition. - :param i: The i of this ResourceQuantity. - :type: ResourceInt64Amount + :param status: The status of this V1beta1Condition. + :type: str """ - if i is None: - raise ValueError("Invalid value for `i`, must not be `None`") + if status is None: + raise ValueError("Invalid value for `status`, must not be `None`") - self._i = i + self._status = status @property - def s(self): + def type(self): """ - Gets the s of this ResourceQuantity. + Gets the type of this V1beta1Condition. - :return: The s of this ResourceQuantity. + :return: The type of this V1beta1Condition. :rtype: str """ - return self._s + return self._type - @s.setter - def s(self, s): + @type.setter + def type(self, type): """ - Sets the s of this ResourceQuantity. + Sets the type of this V1beta1Condition. - :param s: The s of this ResourceQuantity. + :param type: The type of this V1beta1Condition. :type: str """ - if s is None: - raise ValueError("Invalid value for `s`, must not be `None`") + if type is None: + raise ValueError("Invalid value for `type`, must not be `None`") - self._s = s + self._type = type def to_dict(self): """ @@ -193,7 +191,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, ResourceQuantity): + if not isinstance(other, V1beta1Condition): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1beta1_cpu_instancetype.py b/kubevirt/models/v1beta1_cpu_instancetype.py new file mode 100644 index 00000000..20e3f9f8 --- /dev/null +++ b/kubevirt/models/v1beta1_cpu_instancetype.py @@ -0,0 +1,294 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1CPUInstancetype(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + 'max_sockets': 'int', + 'model': 'str', + 'numa': 'V1NUMA', + 'realtime': 'V1Realtime' + } + + attribute_map = { + '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, max_sockets=None, model=None, numa=None, realtime=None): + """ + V1beta1CPUInstancetype - a model defined in Swagger + """ + + 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 + + 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 max_sockets is not None: + self.max_sockets = max_sockets + 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 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 V1beta1CPUInstancetype. + :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 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 V1beta1CPUInstancetype. + :type: bool + """ + + self._dedicated_cpu_placement = dedicated_cpu_placement + + @property + 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 PreferSockets. + + :return: The guest of this V1beta1CPUInstancetype. + :rtype: int + """ + return self._guest + + @guest.setter + 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 PreferSockets. + + :param guest: The guest of this V1beta1CPUInstancetype. + :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 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 V1beta1CPUInstancetype. + :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 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 V1beta1CPUInstancetype. + :type: bool + """ + + 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): + """ + 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 V1beta1CPUInstancetype. + :rtype: str + """ + return self._model + + @model.setter + def model(self, model): + """ + 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 V1beta1CPUInstancetype. + :type: str + """ + + self._model = model + + @property + def numa(self): + """ + Gets the numa of this V1beta1CPUInstancetype. + NUMA allows specifying settings for the guest NUMA topology + + :return: The numa of this V1beta1CPUInstancetype. + :rtype: V1NUMA + """ + return self._numa + + @numa.setter + def numa(self, numa): + """ + Sets the numa of this V1beta1CPUInstancetype. + NUMA allows specifying settings for the guest NUMA topology + + :param numa: The numa of this V1beta1CPUInstancetype. + :type: V1NUMA + """ + + self._numa = numa + + @property + def realtime(self): + """ + 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 V1beta1CPUInstancetype. + :rtype: V1Realtime + """ + return self._realtime + + @realtime.setter + def realtime(self, realtime): + """ + 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 V1beta1CPUInstancetype. + :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, V1beta1CPUInstancetype): + return False + + return self.__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_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_cpu_preferences.py b/kubevirt/models/v1beta1_cpu_preferences.py new file mode 100644 index 00000000..e3dd7ca6 --- /dev/null +++ b/kubevirt/models/v1beta1_cpu_preferences.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 V1beta1CPUPreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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_features': 'list[V1CPUFeature]', + 'preferred_cpu_topology': 'str', + 'spread_options': 'V1beta1SpreadOptions' + } + + attribute_map = { + 'preferred_cpu_features': 'preferredCPUFeatures', + 'preferred_cpu_topology': 'preferredCPUTopology', + 'spread_options': 'spreadOptions' + } + + 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): + """ + 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): + """ + 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 V1beta1CPUPreferences. + :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 V1beta1CPUPreferences. + PreferredCPUTopology optionally defines the preferred guest visible CPU topology, defaults to PreferSockets. + + :param preferred_cpu_topology: The preferred_cpu_topology of this V1beta1CPUPreferences. + :type: str + """ + + 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1CPUPreferences): + return False + + return self.__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_blank_image.py b/kubevirt/models/v1beta1_data_volume_blank_image.py new file mode 100644 index 00000000..7761dd92 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1DataVolumeBlankImage(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1DataVolumeBlankImage - 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, V1beta1DataVolumeBlankImage): + return False + + return self.__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_registry_disk_source.py b/kubevirt/models/v1beta1_data_volume_checkpoint.py similarity index 56% rename from kubevirt/models/v1_registry_disk_source.py rename to kubevirt/models/v1beta1_data_volume_checkpoint.py index 7d29e184..6c3aea5f 100644 --- a/kubevirt/models/v1_registry_disk_source.py +++ b/kubevirt/models/v1beta1_data_volume_checkpoint.py @@ -16,7 +16,7 @@ import re -class V1RegistryDiskSource(object): +class V1beta1DataVolumeCheckpoint(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,74 +31,75 @@ class V1RegistryDiskSource(object): and the value is json key in definition. """ swagger_types = { - 'image': 'str', - 'image_pull_secret': 'str' + 'current': 'str', + 'previous': 'str' } attribute_map = { - 'image': 'image', - 'image_pull_secret': 'imagePullSecret' + 'current': 'current', + 'previous': 'previous' } - def __init__(self, image=None, image_pull_secret=None): + def __init__(self, current='', previous=''): """ - V1RegistryDiskSource - a model defined in Swagger + V1beta1DataVolumeCheckpoint - a model defined in Swagger """ - self._image = None - self._image_pull_secret = None + self._current = None + self._previous = None - self.image = image - if image_pull_secret is not None: - self.image_pull_secret = image_pull_secret + self.current = current + self.previous = previous @property - def image(self): + def current(self): """ - Gets the image of this V1RegistryDiskSource. - Image is the name of the image with the embedded disk. + Gets the current of this V1beta1DataVolumeCheckpoint. + Current is the identifier of the snapshot created for this checkpoint. - :return: The image of this V1RegistryDiskSource. + :return: The current of this V1beta1DataVolumeCheckpoint. :rtype: str """ - return self._image + return self._current - @image.setter - def image(self, image): + @current.setter + def current(self, current): """ - Sets the image of this V1RegistryDiskSource. - Image is the name of the image with the embedded disk. + Sets the current of this V1beta1DataVolumeCheckpoint. + Current is the identifier of the snapshot created for this checkpoint. - :param image: The image of this V1RegistryDiskSource. + :param current: The current of this V1beta1DataVolumeCheckpoint. :type: str """ - if image is None: - raise ValueError("Invalid value for `image`, must not be `None`") + if current is None: + raise ValueError("Invalid value for `current`, must not be `None`") - self._image = image + self._current = current @property - def image_pull_secret(self): + def previous(self): """ - Gets the image_pull_secret of this V1RegistryDiskSource. - ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. + Gets the previous of this V1beta1DataVolumeCheckpoint. + Previous is the identifier of the snapshot from the previous checkpoint. - :return: The image_pull_secret of this V1RegistryDiskSource. + :return: The previous of this V1beta1DataVolumeCheckpoint. :rtype: str """ - return self._image_pull_secret + return self._previous - @image_pull_secret.setter - def image_pull_secret(self, image_pull_secret): + @previous.setter + def previous(self, previous): """ - Sets the image_pull_secret of this V1RegistryDiskSource. - ImagePullSecret is the name of the Docker registry secret required to pull the image. The secret must already exist. + Sets the previous of this V1beta1DataVolumeCheckpoint. + Previous is the identifier of the snapshot from the previous checkpoint. - :param image_pull_secret: The image_pull_secret of this V1RegistryDiskSource. + :param previous: The previous of this V1beta1DataVolumeCheckpoint. :type: str """ + if previous is None: + raise ValueError("Invalid value for `previous`, must not be `None`") - self._image_pull_secret = image_pull_secret + self._previous = previous def to_dict(self): """ @@ -142,7 +143,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1RegistryDiskSource): + if not isinstance(other, V1beta1DataVolumeCheckpoint): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1beta1_data_volume_source.py b/kubevirt/models/v1beta1_data_volume_source.py new file mode 100644 index 00000000..70f18d4f --- /dev/null +++ b/kubevirt/models/v1beta1_data_volume_source.py @@ -0,0 +1,357 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DataVolumeSource(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'blank': 'V1beta1DataVolumeBlankImage', + 'gcs': 'V1beta1DataVolumeSourceGCS', + 'http': 'V1beta1DataVolumeSourceHTTP', + 'imageio': 'V1beta1DataVolumeSourceImageIO', + 'pvc': 'V1beta1DataVolumeSourcePVC', + 'registry': 'V1beta1DataVolumeSourceRegistry', + 's3': 'V1beta1DataVolumeSourceS3', + 'snapshot': 'V1beta1DataVolumeSourceSnapshot', + 'upload': 'V1beta1DataVolumeSourceUpload', + 'vddk': 'V1beta1DataVolumeSourceVDDK' + } + + attribute_map = { + 'blank': 'blank', + 'gcs': 'gcs', + 'http': 'http', + 'imageio': 'imageio', + 'pvc': 'pvc', + 'registry': 'registry', + 's3': 's3', + 'snapshot': 'snapshot', + 'upload': 'upload', + '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): + """ + V1beta1DataVolumeSource - a model defined in Swagger + """ + + self._blank = None + self._gcs = None + self._http = None + self._imageio = None + self._pvc = None + self._registry = None + self._s3 = None + self._snapshot = None + self._upload = None + self._vddk = 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: + self.imageio = imageio + 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 snapshot is not None: + self.snapshot = snapshot + if upload is not None: + self.upload = upload + if vddk is not None: + self.vddk = vddk + + @property + def blank(self): + """ + Gets the blank of this V1beta1DataVolumeSource. + + :return: The blank of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeBlankImage + """ + return self._blank + + @blank.setter + def blank(self, blank): + """ + Sets the blank of this V1beta1DataVolumeSource. + + :param blank: The blank of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeBlankImage + """ + + 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): + """ + Gets the http of this V1beta1DataVolumeSource. + + :return: The http of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceHTTP + """ + return self._http + + @http.setter + def http(self, http): + """ + Sets the http of this V1beta1DataVolumeSource. + + :param http: The http of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceHTTP + """ + + self._http = http + + @property + def imageio(self): + """ + Gets the imageio of this V1beta1DataVolumeSource. + + :return: The imageio of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceImageIO + """ + return self._imageio + + @imageio.setter + def imageio(self, imageio): + """ + Sets the imageio of this V1beta1DataVolumeSource. + + :param imageio: The imageio of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceImageIO + """ + + self._imageio = imageio + + @property + def pvc(self): + """ + Gets the pvc of this V1beta1DataVolumeSource. + + :return: The pvc of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourcePVC + """ + return self._pvc + + @pvc.setter + def pvc(self, pvc): + """ + Sets the pvc of this V1beta1DataVolumeSource. + + :param pvc: The pvc of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourcePVC + """ + + self._pvc = pvc + + @property + def registry(self): + """ + Gets the registry of this V1beta1DataVolumeSource. + + :return: The registry of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceRegistry + """ + return self._registry + + @registry.setter + def registry(self, registry): + """ + Sets the registry of this V1beta1DataVolumeSource. + + :param registry: The registry of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceRegistry + """ + + self._registry = registry + + @property + def s3(self): + """ + Gets the s3 of this V1beta1DataVolumeSource. + + :return: The s3 of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceS3 + """ + return self._s3 + + @s3.setter + def s3(self, s3): + """ + Sets the s3 of this V1beta1DataVolumeSource. + + :param s3: The s3 of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceS3 + """ + + 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): + """ + Gets the upload of this V1beta1DataVolumeSource. + + :return: The upload of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceUpload + """ + return self._upload + + @upload.setter + def upload(self, upload): + """ + Sets the upload of this V1beta1DataVolumeSource. + + :param upload: The upload of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceUpload + """ + + self._upload = upload + + @property + def vddk(self): + """ + Gets the vddk of this V1beta1DataVolumeSource. + + :return: The vddk of this V1beta1DataVolumeSource. + :rtype: V1beta1DataVolumeSourceVDDK + """ + return self._vddk + + @vddk.setter + def vddk(self, vddk): + """ + Sets the vddk of this V1beta1DataVolumeSource. + + :param vddk: The vddk of this V1beta1DataVolumeSource. + :type: V1beta1DataVolumeSourceVDDK + """ + + self._vddk = vddk + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1DataVolumeSource): + return False + + return self.__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_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_data_volume_source_http.py b/kubevirt/models/v1beta1_data_volume_source_http.py new file mode 100644 index 00000000..44fe1947 --- /dev/null +++ b/kubevirt/models/v1beta1_data_volume_source_http.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 V1beta1DataVolumeSourceHTTP(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + '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, extra_headers=None, secret_extra_headers=None, secret_ref=None, url=''): + """ + 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 + + @property + def cert_config_map(self): + """ + 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 V1beta1DataVolumeSourceHTTP. + :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 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 V1beta1DataVolumeSourceHTTP. + :type: str + """ + + 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): + """ + 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 V1beta1DataVolumeSourceHTTP. + :rtype: str + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + 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 V1beta1DataVolumeSourceHTTP. + :type: str + """ + + self._secret_ref = secret_ref + + @property + def url(self): + """ + Gets the url of this V1beta1DataVolumeSourceHTTP. + URL is the URL of the http(s) endpoint + + :return: The url of this V1beta1DataVolumeSourceHTTP. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1beta1DataVolumeSourceHTTP. + URL is the URL of the http(s) endpoint + + :param url: The url of this V1beta1DataVolumeSourceHTTP. + :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, V1beta1DataVolumeSourceHTTP): + return False + + return self.__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_image_io.py b/kubevirt/models/v1beta1_data_volume_source_image_io.py new file mode 100644 index 00000000..6a70661a --- /dev/null +++ b/kubevirt/models/v1beta1_data_volume_source_image_io.py @@ -0,0 +1,239 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DataVolumeSourceImageIO(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + 'insecure_skip_verify': 'bool', + 'secret_ref': 'str', + 'url': 'str' + } + + 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='', 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 + + @property + def cert_config_map(self): + """ + Gets the cert_config_map of this V1beta1DataVolumeSourceImageIO. + CertConfigMap provides a reference to the CA cert + + :return: The cert_config_map of this V1beta1DataVolumeSourceImageIO. + :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 V1beta1DataVolumeSourceImageIO. + CertConfigMap provides a reference to the CA cert + + :param cert_config_map: The cert_config_map of this V1beta1DataVolumeSourceImageIO. + :type: str + """ + + self._cert_config_map = cert_config_map + + @property + def disk_id(self): + """ + Gets the disk_id of this V1beta1DataVolumeSourceImageIO. + DiskID provides id of a disk to be imported + + :return: The disk_id of this V1beta1DataVolumeSourceImageIO. + :rtype: str + """ + return self._disk_id + + @disk_id.setter + def disk_id(self, disk_id): + """ + Sets the disk_id of this V1beta1DataVolumeSourceImageIO. + DiskID provides id of a disk to be imported + + :param disk_id: The disk_id of this V1beta1DataVolumeSourceImageIO. + :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 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): + """ + Gets the secret_ref of this V1beta1DataVolumeSourceImageIO. + SecretRef provides the secret reference needed to access the ovirt-engine + + :return: The secret_ref of this V1beta1DataVolumeSourceImageIO. + :rtype: str + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + 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 V1beta1DataVolumeSourceImageIO. + :type: str + """ + + self._secret_ref = secret_ref + + @property + def url(self): + """ + Gets the url of this V1beta1DataVolumeSourceImageIO. + URL is the URL of the ovirt-engine + + :return: The url of this V1beta1DataVolumeSourceImageIO. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1beta1DataVolumeSourceImageIO. + URL is the URL of the ovirt-engine + + :param url: The url of this V1beta1DataVolumeSourceImageIO. + :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, V1beta1DataVolumeSourceImageIO): + return False + + return self.__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_pvc.py b/kubevirt/models/v1beta1_data_volume_source_pvc.py new file mode 100644 index 00000000..49a8bf5a --- /dev/null +++ b/kubevirt/models/v1beta1_data_volume_source_pvc.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 V1beta1DataVolumeSourcePVC(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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=''): + """ + V1beta1DataVolumeSourcePVC - 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 V1beta1DataVolumeSourcePVC. + The name of the source PVC + + :return: The name of this V1beta1DataVolumeSourcePVC. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1beta1DataVolumeSourcePVC. + The name of the source PVC + + :param name: The name of this V1beta1DataVolumeSourcePVC. + :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 V1beta1DataVolumeSourcePVC. + The namespace of the source PVC + + :return: The namespace of this V1beta1DataVolumeSourcePVC. + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """ + Sets the namespace of this V1beta1DataVolumeSourcePVC. + The namespace of the source PVC + + :param namespace: The namespace of this V1beta1DataVolumeSourcePVC. + :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, V1beta1DataVolumeSourcePVC): + return False + + return self.__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_ref.py b/kubevirt/models/v1beta1_data_volume_source_ref.py new file mode 100644 index 00000000..3cd6b85c --- /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='', name='', 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_source_registry.py b/kubevirt/models/v1beta1_data_volume_source_registry.py new file mode 100644 index 00000000..c8707a20 --- /dev/null +++ b/kubevirt/models/v1beta1_data_volume_source_registry.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 V1beta1DataVolumeSourceRegistry(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + 'image_stream': 'str', + 'platform': 'V1beta1PlatformOptions', + 'pull_method': 'str', + 'secret_ref': 'str', + 'url': 'str' + } + + 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, 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 + + 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 platform is not None: + self.platform = platform + 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 + + @property + def cert_config_map(self): + """ + Gets the cert_config_map of this V1beta1DataVolumeSourceRegistry. + CertConfigMap provides a reference to the Registry certs + + :return: The cert_config_map of this V1beta1DataVolumeSourceRegistry. + :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 V1beta1DataVolumeSourceRegistry. + CertConfigMap provides a reference to the Registry certs + + :param cert_config_map: The cert_config_map of this V1beta1DataVolumeSourceRegistry. + :type: str + """ + + 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 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): + """ + 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): + """ + Gets the secret_ref of this V1beta1DataVolumeSourceRegistry. + SecretRef provides the secret reference needed to access the Registry source + + :return: The secret_ref of this V1beta1DataVolumeSourceRegistry. + :rtype: str + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + 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 V1beta1DataVolumeSourceRegistry. + :type: str + """ + + self._secret_ref = secret_ref + + @property + def url(self): + """ + Gets the url of this V1beta1DataVolumeSourceRegistry. + URL is the url of the registry source (starting with the scheme: docker, oci-archive) + + :return: The url of this V1beta1DataVolumeSourceRegistry. + :rtype: str + """ + return self._url + + @url.setter + 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) + + :param url: The url of this V1beta1DataVolumeSourceRegistry. + :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, V1beta1DataVolumeSourceRegistry): + return False + + return self.__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_s3.py b/kubevirt/models/v1beta1_data_volume_source_s3.py new file mode 100644 index 00000000..1f0a08b6 --- /dev/null +++ b/kubevirt/models/v1beta1_data_volume_source_s3.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 V1beta1DataVolumeSourceS3(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + 'secret_ref': 'str', + 'url': 'str' + } + + attribute_map = { + 'cert_config_map': 'certConfigMap', + 'secret_ref': 'secretRef', + 'url': 'url' + } + + def __init__(self, cert_config_map=None, secret_ref=None, url=''): + """ + V1beta1DataVolumeSourceS3 - 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 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 V1beta1DataVolumeSourceS3. + :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 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 V1beta1DataVolumeSourceS3. + :type: str + """ + + self._cert_config_map = cert_config_map + + @property + def secret_ref(self): + """ + Gets the secret_ref of this V1beta1DataVolumeSourceS3. + SecretRef provides the secret reference needed to access the S3 source + + :return: The secret_ref of this V1beta1DataVolumeSourceS3. + :rtype: str + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + 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 V1beta1DataVolumeSourceS3. + :type: str + """ + + self._secret_ref = secret_ref + + @property + def url(self): + """ + Gets the url of this V1beta1DataVolumeSourceS3. + URL is the url of the S3 source + + :return: The url of this V1beta1DataVolumeSourceS3. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1beta1DataVolumeSourceS3. + URL is the url of the S3 source + + :param url: The url of this V1beta1DataVolumeSourceS3. + :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, V1beta1DataVolumeSourceS3): + return False + + return self.__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_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_data_volume_source_upload.py b/kubevirt/models/v1beta1_data_volume_source_upload.py new file mode 100644 index 00000000..462055a6 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1DataVolumeSourceUpload(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1DataVolumeSourceUpload - 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, V1beta1DataVolumeSourceUpload): + return False + + return self.__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_vddk.py b/kubevirt/models/v1beta1_data_volume_source_vddk.py new file mode 100644 index 00000000..00770890 --- /dev/null +++ b/kubevirt/models/v1beta1_data_volume_source_vddk.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 V1beta1DataVolumeSourceVDDK(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + 'extra_args': 'str', + 'init_image_url': 'str', + 'secret_ref': 'str', + 'thumbprint': 'str', + 'url': 'str', + 'uuid': 'str' + } + + attribute_map = { + 'backing_file': 'backingFile', + 'extra_args': 'extraArgs', + 'init_image_url': 'initImageURL', + 'secret_ref': 'secretRef', + 'thumbprint': 'thumbprint', + 'url': 'url', + 'uuid': 'uuid' + } + + 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 + self._url = None + self._uuid = None + + 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: + 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 V1beta1DataVolumeSourceVDDK. + BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi + + :return: The backing_file of this V1beta1DataVolumeSourceVDDK. + :rtype: str + """ + return self._backing_file + + @backing_file.setter + def backing_file(self, backing_file): + """ + 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 V1beta1DataVolumeSourceVDDK. + :type: str + """ + + 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): + """ + 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): + """ + 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 V1beta1DataVolumeSourceVDDK. + :rtype: str + """ + return self._secret_ref + + @secret_ref.setter + def secret_ref(self, secret_ref): + """ + 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 V1beta1DataVolumeSourceVDDK. + :type: str + """ + + self._secret_ref = secret_ref + + @property + def thumbprint(self): + """ + Gets the thumbprint of this V1beta1DataVolumeSourceVDDK. + Thumbprint is the certificate thumbprint of the vCenter or ESXi host + + :return: The thumbprint of this V1beta1DataVolumeSourceVDDK. + :rtype: str + """ + return self._thumbprint + + @thumbprint.setter + def thumbprint(self, thumbprint): + """ + Sets the thumbprint of this V1beta1DataVolumeSourceVDDK. + Thumbprint is the certificate thumbprint of the vCenter or ESXi host + + :param thumbprint: The thumbprint of this V1beta1DataVolumeSourceVDDK. + :type: str + """ + + self._thumbprint = thumbprint + + @property + def url(self): + """ + 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 V1beta1DataVolumeSourceVDDK. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + 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 V1beta1DataVolumeSourceVDDK. + :type: str + """ + + self._url = url + + @property + def uuid(self): + """ + 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 V1beta1DataVolumeSourceVDDK. + :rtype: str + """ + return self._uuid + + @uuid.setter + def uuid(self, uuid): + """ + 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 V1beta1DataVolumeSourceVDDK. + :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, V1beta1DataVolumeSourceVDDK): + return False + + return self.__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 new file mode 100644 index 00000000..ded30071 --- /dev/null +++ b/kubevirt/models/v1beta1_data_volume_spec.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 V1beta1DataVolumeSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'checkpoints': 'list[V1beta1DataVolumeCheckpoint]', + 'content_type': 'str', + 'final_checkpoint': 'bool', + 'preallocation': 'bool', + 'priority_class_name': 'str', + 'pvc': 'K8sIoApiCoreV1PersistentVolumeClaimSpec', + 'source': 'V1beta1DataVolumeSource', + 'source_ref': 'V1beta1DataVolumeSourceRef', + 'storage': 'V1beta1StorageSpec' + } + + attribute_map = { + 'checkpoints': 'checkpoints', + 'content_type': 'contentType', + 'final_checkpoint': 'finalCheckpoint', + 'preallocation': 'preallocation', + '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, source_ref=None, storage=None): + """ + V1beta1DataVolumeSpec - a model defined in Swagger + """ + + self._checkpoints = None + self._content_type = None + self._final_checkpoint = None + self._preallocation = None + self._priority_class_name = None + self._pvc = None + self._source = None + self._source_ref = None + self._storage = 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 + if priority_class_name is not None: + self.priority_class_name = priority_class_name + if pvc is not None: + self.pvc = pvc + 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 + + @property + def checkpoints(self): + """ + Gets the checkpoints of this V1beta1DataVolumeSpec. + Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import. + + :return: The checkpoints of this V1beta1DataVolumeSpec. + :rtype: list[V1beta1DataVolumeCheckpoint] + """ + return self._checkpoints + + @checkpoints.setter + def checkpoints(self, checkpoints): + """ + Sets the checkpoints of this V1beta1DataVolumeSpec. + Checkpoints is a list of DataVolumeCheckpoints, representing stages in a multistage import. + + :param checkpoints: The checkpoints of this V1beta1DataVolumeSpec. + :type: list[V1beta1DataVolumeCheckpoint] + """ + + self._checkpoints = checkpoints + + @property + def content_type(self): + """ + Gets the content_type of this V1beta1DataVolumeSpec. + DataVolumeContentType options: \"kubevirt\", \"archive\" + + :return: The content_type of this V1beta1DataVolumeSpec. + :rtype: str + """ + return self._content_type + + @content_type.setter + def content_type(self, content_type): + """ + Sets the content_type of this V1beta1DataVolumeSpec. + DataVolumeContentType options: \"kubevirt\", \"archive\" + + :param content_type: The content_type of this V1beta1DataVolumeSpec. + :type: str + """ + + self._content_type = content_type + + @property + def final_checkpoint(self): + """ + Gets the final_checkpoint of this V1beta1DataVolumeSpec. + FinalCheckpoint indicates whether the current DataVolumeCheckpoint is the final checkpoint. + + :return: The final_checkpoint of this V1beta1DataVolumeSpec. + :rtype: bool + """ + return self._final_checkpoint + + @final_checkpoint.setter + def final_checkpoint(self, final_checkpoint): + """ + 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 V1beta1DataVolumeSpec. + :type: bool + """ + + self._final_checkpoint = final_checkpoint + + @property + def preallocation(self): + """ + Gets the preallocation of this V1beta1DataVolumeSpec. + Preallocation controls whether storage for DataVolumes should be allocated in advance. + + :return: The preallocation of this V1beta1DataVolumeSpec. + :rtype: bool + """ + return self._preallocation + + @preallocation.setter + def preallocation(self, preallocation): + """ + Sets the preallocation of this V1beta1DataVolumeSpec. + Preallocation controls whether storage for DataVolumes should be allocated in advance. + + :param preallocation: The preallocation of this V1beta1DataVolumeSpec. + :type: bool + """ + + self._preallocation = preallocation + + @property + def priority_class_name(self): + """ + Gets the priority_class_name of this V1beta1DataVolumeSpec. + PriorityClassName for Importer, Cloner and Uploader pod + + :return: The priority_class_name of this V1beta1DataVolumeSpec. + :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 V1beta1DataVolumeSpec. + PriorityClassName for Importer, Cloner and Uploader pod + + :param priority_class_name: The priority_class_name of this V1beta1DataVolumeSpec. + :type: str + """ + + self._priority_class_name = priority_class_name + + @property + def pvc(self): + """ + Gets the pvc of this V1beta1DataVolumeSpec. + PVC is the PVC specification + + :return: The pvc of this V1beta1DataVolumeSpec. + :rtype: K8sIoApiCoreV1PersistentVolumeClaimSpec + """ + return self._pvc + + @pvc.setter + def pvc(self, pvc): + """ + Sets the pvc of this V1beta1DataVolumeSpec. + PVC is the PVC specification + + :param pvc: The pvc of this V1beta1DataVolumeSpec. + :type: K8sIoApiCoreV1PersistentVolumeClaimSpec + """ + + self._pvc = pvc + + @property + def source(self): + """ + Gets the source of this V1beta1DataVolumeSpec. + Source is the src of the data for the requested DataVolume + + :return: The source of this V1beta1DataVolumeSpec. + :rtype: V1beta1DataVolumeSource + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1beta1DataVolumeSpec. + Source is the src of the data for the requested DataVolume + + :param source: The source of this V1beta1DataVolumeSpec. + :type: V1beta1DataVolumeSource + """ + + 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): + """ + Gets the storage of this V1beta1DataVolumeSpec. + Storage is the requested storage specification + + :return: The storage of this V1beta1DataVolumeSpec. + :rtype: V1beta1StorageSpec + """ + return self._storage + + @storage.setter + def storage(self, storage): + """ + Sets the storage of this V1beta1DataVolumeSpec. + Storage is the requested storage specification + + :param storage: The storage of this V1beta1DataVolumeSpec. + :type: V1beta1StorageSpec + """ + + self._storage = storage + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1DataVolumeSpec): + return False + + return self.__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 new file mode 100644 index 00000000..50375ed6 --- /dev/null +++ b/kubevirt/models/v1beta1_device_preferences.py @@ -0,0 +1,825 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1DevicePreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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_input_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_masquerade': 'V1InterfaceMasquerade', + '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', + 'preferred_use_virtio_transitional': 'bool', + 'preferred_video_type': 'str', + 'preferred_virtual_gpu_options': 'V1VGPUOptions' + } + + 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', + '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_masquerade': 'preferredInterfaceMasquerade', + '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', + '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): + """ + V1beta1DevicePreferences - 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 + 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_masquerade = None + 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 + 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: + 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: + 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_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: + 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: + 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_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 + + @property + def preferred_autoattach_graphics_device(self): + """ + 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 V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredAutoattachGraphicsDevice optionally defines the preferred value of AutoattachGraphicsDevice + + :param preferred_autoattach_graphics_device: The preferred_autoattach_graphics_device of this V1beta1DevicePreferences. + :type: bool + """ + + self._preferred_autoattach_graphics_device = preferred_autoattach_graphics_device + + @property + def preferred_autoattach_input_device(self): + """ + 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 V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredAutoattachInputDevice optionally defines the preferred value of AutoattachInputDevice + + :param preferred_autoattach_input_device: The preferred_autoattach_input_device of this V1beta1DevicePreferences. + :type: bool + """ + + self._preferred_autoattach_input_device = preferred_autoattach_input_device + + @property + def preferred_autoattach_mem_balloon(self): + """ + 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 V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredAutoattachMemBalloon optionally defines the preferred value of AutoattachMemBalloon + + :param preferred_autoattach_mem_balloon: The preferred_autoattach_mem_balloon of this V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredAutoattachPodInterface optionally defines the preferred value of AutoattachPodInterface + + :return: The preferred_autoattach_pod_interface of this V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredAutoattachPodInterface optionally defines the preferred value of AutoattachPodInterface + + :param preferred_autoattach_pod_interface: The preferred_autoattach_pod_interface of this V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredAutoattachSerialConsole optionally defines the preferred value of AutoattachSerialConsole + + :return: The preferred_autoattach_serial_console of this V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredAutoattachSerialConsole optionally defines the preferred value of AutoattachSerialConsole + + :param preferred_autoattach_serial_console: The preferred_autoattach_serial_console of this V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredBlockMultiQueue optionally enables the vhost multiqueue feature for virtio disks. + + :return: The preferred_block_multi_queue of this V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredBlockMultiQueue optionally enables the vhost multiqueue feature for virtio disks. + + :param preferred_block_multi_queue: The preferred_block_multi_queue of this V1beta1DevicePreferences. + :type: bool + """ + + self._preferred_block_multi_queue = preferred_block_multi_queue + + @property + def preferred_cdrom_bus(self): + """ + 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 V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredCdromBus optionally defines the preferred bus for Cdrom Disk devices. + + :param preferred_cdrom_bus: The preferred_cdrom_bus of this V1beta1DevicePreferences. + :type: str + """ + + self._preferred_cdrom_bus = preferred_cdrom_bus + + @property + def preferred_disable_hotplug(self): + """ + Gets the preferred_disable_hotplug of this V1beta1DevicePreferences. + PreferredDisableHotplug optionally defines the preferred value of DisableHotplug + + :return: The preferred_disable_hotplug of this V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredDisableHotplug optionally defines the preferred value of DisableHotplug + + :param preferred_disable_hotplug: The preferred_disable_hotplug of this V1beta1DevicePreferences. + :type: bool + """ + + self._preferred_disable_hotplug = preferred_disable_hotplug + + @property + def preferred_disk_block_size(self): + """ + 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 V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredBlockSize optionally defines the block size of Disk devices. + + :param preferred_disk_block_size: The preferred_disk_block_size of this V1beta1DevicePreferences. + :type: V1BlockSize + """ + + self._preferred_disk_block_size = preferred_disk_block_size + + @property + def preferred_disk_bus(self): + """ + 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 V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredDiskBus optionally defines the preferred bus for Disk Disk devices. + + :param preferred_disk_bus: The preferred_disk_bus of this V1beta1DevicePreferences. + :type: str + """ + + self._preferred_disk_bus = preferred_disk_bus + + @property + def preferred_disk_cache(self): + """ + 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 V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredCache optionally defines the DriverCache to be used by Disk devices. + + :param preferred_disk_cache: The preferred_disk_cache of this V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + 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 + """ + 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 V1beta1DevicePreferences. + 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 + """ + + self._preferred_disk_dedicated_io_thread = preferred_disk_dedicated_io_thread + + @property + def preferred_disk_io(self): + """ + 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 V1beta1DevicePreferences. + :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 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 V1beta1DevicePreferences. + :type: str + """ + + self._preferred_disk_io = preferred_disk_io + + @property + def preferred_input_bus(self): + """ + Gets the preferred_input_bus of this V1beta1DevicePreferences. + PreferredInputBus optionally defines the preferred bus for Input devices. + + :return: The preferred_input_bus of this V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredInputBus optionally defines the preferred bus for Input devices. + + :param preferred_input_bus: The preferred_input_bus of this V1beta1DevicePreferences. + :type: str + """ + + self._preferred_input_bus = preferred_input_bus + + @property + def preferred_input_type(self): + """ + Gets the preferred_input_type of this V1beta1DevicePreferences. + PreferredInputType optionally defines the preferred type for Input devices. + + :return: The preferred_input_type of this V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredInputType optionally defines the preferred type for Input devices. + + :param preferred_input_type: The preferred_input_type of this V1beta1DevicePreferences. + :type: str + """ + + 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): + """ + 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 V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredInterfaceModel optionally defines the preferred model to be used by Interface devices. + + :param preferred_interface_model: The preferred_interface_model of this V1beta1DevicePreferences. + :type: str + """ + + self._preferred_interface_model = preferred_interface_model + + @property + def preferred_lun_bus(self): + """ + 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 V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredLunBus optionally defines the preferred bus for Lun Disk devices. + + :param preferred_lun_bus: The preferred_lun_bus of this V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredNetworkInterfaceMultiQueue optionally enables the vhost multiqueue feature for virtio interfaces. + + :return: The preferred_network_interface_multi_queue of this V1beta1DevicePreferences. + :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 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 V1beta1DevicePreferences. + :type: bool + """ + + 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): + """ + Gets the preferred_rng of this V1beta1DevicePreferences. + PreferredRng optionally defines the preferred rng device to be used. + + :return: The preferred_rng of this V1beta1DevicePreferences. + :rtype: V1Rng + """ + return self._preferred_rng + + @preferred_rng.setter + def preferred_rng(self, preferred_rng): + """ + 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 V1beta1DevicePreferences. + :type: V1Rng + """ + + self._preferred_rng = preferred_rng + + @property + def preferred_sound_model(self): + """ + Gets the preferred_sound_model of this V1beta1DevicePreferences. + PreferredSoundModel optionally defines the preferred model for Sound devices. + + :return: The preferred_sound_model of this V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredSoundModel optionally defines the preferred model for Sound devices. + + :param preferred_sound_model: The preferred_sound_model of this V1beta1DevicePreferences. + :type: str + """ + + self._preferred_sound_model = preferred_sound_model + + @property + def preferred_tpm(self): + """ + Gets the preferred_tpm of this V1beta1DevicePreferences. + PreferredTPM optionally defines the preferred TPM device to be used. + + :return: The preferred_tpm of this V1beta1DevicePreferences. + :rtype: V1TPMDevice + """ + return self._preferred_tpm + + @preferred_tpm.setter + def preferred_tpm(self, preferred_tpm): + """ + 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 V1beta1DevicePreferences. + :type: V1TPMDevice + """ + + self._preferred_tpm = preferred_tpm + + @property + def preferred_use_virtio_transitional(self): + """ + 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 V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredUseVirtioTransitional optionally defines the preferred value of UseVirtioTransitional + + :param preferred_use_virtio_transitional: The preferred_use_virtio_transitional of this V1beta1DevicePreferences. + :type: bool + """ + + 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): + """ + 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 V1beta1DevicePreferences. + :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 V1beta1DevicePreferences. + PreferredVirtualGPUOptions optionally defines the preferred value of VirtualGPUOptions + + :param preferred_virtual_gpu_options: The preferred_virtual_gpu_options of this V1beta1DevicePreferences. + :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, V1beta1DevicePreferences): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/big_int.py b/kubevirt/models/v1beta1_error.py similarity index 64% rename from kubevirt/models/big_int.py rename to kubevirt/models/v1beta1_error.py index 0043ceaa..8eba9a10 100644 --- a/kubevirt/models/big_int.py +++ b/kubevirt/models/v1beta1_error.py @@ -16,7 +16,7 @@ import re -class BigInt(object): +class V1beta1Error(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,71 +31,69 @@ class BigInt(object): and the value is json key in definition. """ swagger_types = { - 'abs': 'list[BigWord]', - 'neg': 'bool' + 'message': 'str', + 'time': 'K8sIoApimachineryPkgApisMetaV1Time' } attribute_map = { - 'abs': 'abs', - 'neg': 'neg' + 'message': 'message', + 'time': 'time' } - def __init__(self, abs=None, neg=None): + def __init__(self, message=None, time=None): """ - BigInt - a model defined in Swagger + V1beta1Error - a model defined in Swagger """ - self._abs = None - self._neg = None + self._message = None + self._time = None - self.abs = abs - self.neg = neg + if message is not None: + self.message = message + if time is not None: + self.time = time @property - def abs(self): + def message(self): """ - Gets the abs of this BigInt. + Gets the message of this V1beta1Error. - :return: The abs of this BigInt. - :rtype: list[BigWord] + :return: The message of this V1beta1Error. + :rtype: str """ - return self._abs + return self._message - @abs.setter - def abs(self, abs): + @message.setter + def message(self, message): """ - Sets the abs of this BigInt. + Sets the message of this V1beta1Error. - :param abs: The abs of this BigInt. - :type: list[BigWord] + :param message: The message of this V1beta1Error. + :type: str """ - if abs is None: - raise ValueError("Invalid value for `abs`, must not be `None`") - self._abs = abs + self._message = message @property - def neg(self): + def time(self): """ - Gets the neg of this BigInt. + Gets the time of this V1beta1Error. - :return: The neg of this BigInt. - :rtype: bool + :return: The time of this V1beta1Error. + :rtype: K8sIoApimachineryPkgApisMetaV1Time """ - return self._neg + return self._time - @neg.setter - def neg(self, neg): + @time.setter + def time(self, time): """ - Sets the neg of this BigInt. + Sets the time of this V1beta1Error. - :param neg: The neg of this BigInt. - :type: bool + :param time: The time of this V1beta1Error. + :type: K8sIoApimachineryPkgApisMetaV1Time """ - if neg is None: - raise ValueError("Invalid value for `neg`, must not be `None`") - self._neg = neg + self._time = time def to_dict(self): """ @@ -139,7 +137,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, BigInt): + if not isinstance(other, V1beta1Error): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1beta1_feature_preferences.py b/kubevirt/models/v1beta1_feature_preferences.py new file mode 100644 index 00000000..3b11114d --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1FeaturePreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1FeaturePreferences - 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 V1beta1FeaturePreferences. + PreferredAcpi optionally enables the ACPI feature + + :return: The preferred_acpi of this V1beta1FeaturePreferences. + :rtype: V1FeatureState + """ + return self._preferred_acpi + + @preferred_acpi.setter + def preferred_acpi(self, preferred_acpi): + """ + Sets the preferred_acpi of this V1beta1FeaturePreferences. + PreferredAcpi optionally enables the ACPI feature + + :param preferred_acpi: The preferred_acpi of this V1beta1FeaturePreferences. + :type: V1FeatureState + """ + + self._preferred_acpi = preferred_acpi + + @property + def preferred_apic(self): + """ + Gets the preferred_apic of this V1beta1FeaturePreferences. + PreferredApic optionally enables and configures the APIC feature + + :return: The preferred_apic of this V1beta1FeaturePreferences. + :rtype: V1FeatureAPIC + """ + return self._preferred_apic + + @preferred_apic.setter + def preferred_apic(self, preferred_apic): + """ + Sets the preferred_apic of this V1beta1FeaturePreferences. + PreferredApic optionally enables and configures the APIC feature + + :param preferred_apic: The preferred_apic of this V1beta1FeaturePreferences. + :type: V1FeatureAPIC + """ + + self._preferred_apic = preferred_apic + + @property + def preferred_hyperv(self): + """ + Gets the preferred_hyperv of this V1beta1FeaturePreferences. + PreferredHyperv optionally enables and configures HyperV features + + :return: The preferred_hyperv of this V1beta1FeaturePreferences. + :rtype: V1FeatureHyperv + """ + return self._preferred_hyperv + + @preferred_hyperv.setter + def preferred_hyperv(self, preferred_hyperv): + """ + Sets the preferred_hyperv of this V1beta1FeaturePreferences. + PreferredHyperv optionally enables and configures HyperV features + + :param preferred_hyperv: The preferred_hyperv of this V1beta1FeaturePreferences. + :type: V1FeatureHyperv + """ + + self._preferred_hyperv = preferred_hyperv + + @property + def preferred_kvm(self): + """ + Gets the preferred_kvm of this V1beta1FeaturePreferences. + PreferredKvm optionally enables and configures KVM features + + :return: The preferred_kvm of this V1beta1FeaturePreferences. + :rtype: V1FeatureKVM + """ + return self._preferred_kvm + + @preferred_kvm.setter + def preferred_kvm(self, preferred_kvm): + """ + Sets the preferred_kvm of this V1beta1FeaturePreferences. + PreferredKvm optionally enables and configures KVM features + + :param preferred_kvm: The preferred_kvm of this V1beta1FeaturePreferences. + :type: V1FeatureKVM + """ + + self._preferred_kvm = preferred_kvm + + @property + def preferred_pvspinlock(self): + """ + Gets the preferred_pvspinlock of this V1beta1FeaturePreferences. + PreferredPvspinlock optionally enables the Pvspinlock feature + + :return: The preferred_pvspinlock of this V1beta1FeaturePreferences. + :rtype: V1FeatureState + """ + return self._preferred_pvspinlock + + @preferred_pvspinlock.setter + def preferred_pvspinlock(self, preferred_pvspinlock): + """ + Sets the preferred_pvspinlock of this V1beta1FeaturePreferences. + PreferredPvspinlock optionally enables the Pvspinlock feature + + :param preferred_pvspinlock: The preferred_pvspinlock of this V1beta1FeaturePreferences. + :type: V1FeatureState + """ + + self._preferred_pvspinlock = preferred_pvspinlock + + @property + def preferred_smm(self): + """ + Gets the preferred_smm of this V1beta1FeaturePreferences. + PreferredSmm optionally enables the SMM feature + + :return: The preferred_smm of this V1beta1FeaturePreferences. + :rtype: V1FeatureState + """ + return self._preferred_smm + + @preferred_smm.setter + def preferred_smm(self, preferred_smm): + """ + Sets the preferred_smm of this V1beta1FeaturePreferences. + PreferredSmm optionally enables the SMM feature + + :param preferred_smm: The preferred_smm of this V1beta1FeaturePreferences. + :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, V1beta1FeaturePreferences): + return False + + return self.__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_firmware_preferences.py b/kubevirt/models/v1beta1_firmware_preferences.py new file mode 100644 index 00000000..4c1826fa --- /dev/null +++ b/kubevirt/models/v1beta1_firmware_preferences.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 V1beta1FirmwarePreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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_efi': 'V1EFI', + 'preferred_use_bios': 'bool', + 'preferred_use_bios_serial': 'bool', + 'preferred_use_efi': 'bool', + 'preferred_use_secure_boot': 'bool' + } + + 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_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: + 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_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): + """ + Gets the preferred_use_bios of this V1beta1FirmwarePreferences. + PreferredUseBios optionally enables BIOS + + :return: The preferred_use_bios of this V1beta1FirmwarePreferences. + :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 V1beta1FirmwarePreferences. + PreferredUseBios optionally enables BIOS + + :param preferred_use_bios: The preferred_use_bios of this V1beta1FirmwarePreferences. + :type: bool + """ + + self._preferred_use_bios = preferred_use_bios + + @property + def preferred_use_bios_serial(self): + """ + 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 V1beta1FirmwarePreferences. + :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 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 V1beta1FirmwarePreferences. + :type: bool + """ + + self._preferred_use_bios_serial = preferred_use_bios_serial + + @property + def preferred_use_efi(self): + """ + Gets the preferred_use_efi of this V1beta1FirmwarePreferences. + PreferredUseEfi optionally enables EFI Deprecated: Will be removed with v1beta2 or v1 + + :return: The preferred_use_efi of this V1beta1FirmwarePreferences. + :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 V1beta1FirmwarePreferences. + 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 + """ + + self._preferred_use_efi = preferred_use_efi + + @property + 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. Deprecated: Will be removed with v1beta2 or v1 + + :return: The preferred_use_secure_boot of this V1beta1FirmwarePreferences. + :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 V1beta1FirmwarePreferences. + 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 + """ + + 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, V1beta1FirmwarePreferences): + return False + + return self.__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_machine_preferences.py b/kubevirt/models/v1beta1_machine_preferences.py new file mode 100644 index 00000000..a3a6777b --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1MachinePreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1MachinePreferences - 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 V1beta1MachinePreferences. + PreferredMachineType optionally defines the preferred machine type to use. + + :return: The preferred_machine_type of this V1beta1MachinePreferences. + :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 V1beta1MachinePreferences. + PreferredMachineType optionally defines the preferred machine type to use. + + :param preferred_machine_type: The preferred_machine_type of this V1beta1MachinePreferences. + :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, V1beta1MachinePreferences): + return False + + return self.__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 new file mode 100644 index 00000000..622c0f5b --- /dev/null +++ b/kubevirt/models/v1beta1_memory_instancetype.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 V1beta1MemoryInstancetype(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + '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, 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 + + @property + def guest(self): + """ + Gets the guest of this V1beta1MemoryInstancetype. + Required amount of memory which is visible inside the guest OS. + + :return: The guest of this V1beta1MemoryInstancetype. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._guest + + @guest.setter + def guest(self, guest): + """ + Sets the guest of this V1beta1MemoryInstancetype. + Required amount of memory which is visible inside the guest OS. + + :param guest: The guest of this V1beta1MemoryInstancetype. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + if guest is None: + raise ValueError("Invalid value for `guest`, must not be `None`") + + self._guest = guest + + @property + def hugepages(self): + """ + Gets the hugepages of this V1beta1MemoryInstancetype. + Optionally enables the use of hugepages for the VirtualMachineInstance instead of regular memory. + + :return: The hugepages of this V1beta1MemoryInstancetype. + :rtype: V1Hugepages + """ + return self._hugepages + + @hugepages.setter + def hugepages(self, hugepages): + """ + 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 V1beta1MemoryInstancetype. + :type: V1Hugepages + """ + + 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): + """ + 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1MemoryInstancetype): + return False + + return self.__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_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_persistent_volume_claim.py b/kubevirt/models/v1beta1_persistent_volume_claim.py new file mode 100644 index 00000000..0b47a74a --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1PersistentVolumeClaim(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1PersistentVolumeClaim - 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 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 V1beta1PersistentVolumeClaim. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + 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 V1beta1PersistentVolumeClaim. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + 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 V1beta1PersistentVolumeClaim. + :rtype: K8sIoApiCoreV1PersistentVolumeClaimSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + 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 V1beta1PersistentVolumeClaim. + :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, V1beta1PersistentVolumeClaim): + return False + + return self.__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_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/kubevirt/models/v1beta1_preference_requirements.py b/kubevirt/models/v1beta1_preference_requirements.py new file mode 100644 index 00000000..f8367996 --- /dev/null +++ b/kubevirt/models/v1beta1_preference_requirements.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 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 = { + 'architecture': 'str', + 'cpu': 'V1beta1CPUPreferenceRequirement', + 'memory': 'V1beta1MemoryPreferenceRequirement' + } + + attribute_map = { + 'architecture': 'architecture', + 'cpu': 'cpu', + 'memory': 'memory' + } + + 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): + """ + 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_snapshot_volumes_lists.py b/kubevirt/models/v1beta1_snapshot_volumes_lists.py new file mode 100644 index 00000000..590ea408 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1SnapshotVolumesLists(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1SnapshotVolumesLists - 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 V1beta1SnapshotVolumesLists. + + :return: The excluded_volumes of this V1beta1SnapshotVolumesLists. + :rtype: list[str] + """ + return self._excluded_volumes + + @excluded_volumes.setter + def excluded_volumes(self, excluded_volumes): + """ + Sets the excluded_volumes of this V1beta1SnapshotVolumesLists. + + :param excluded_volumes: The excluded_volumes of this V1beta1SnapshotVolumesLists. + :type: list[str] + """ + + self._excluded_volumes = excluded_volumes + + @property + def included_volumes(self): + """ + Gets the included_volumes of this V1beta1SnapshotVolumesLists. + + :return: The included_volumes of this V1beta1SnapshotVolumesLists. + :rtype: list[str] + """ + return self._included_volumes + + @included_volumes.setter + def included_volumes(self, included_volumes): + """ + Sets the included_volumes of this V1beta1SnapshotVolumesLists. + + :param included_volumes: The included_volumes of this V1beta1SnapshotVolumesLists. + :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, V1beta1SnapshotVolumesLists): + return False + + return self.__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_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_source_spec.py b/kubevirt/models/v1beta1_source_spec.py new file mode 100644 index 00000000..ab26d23b --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1SourceSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachine' + } + + attribute_map = { + 'virtual_machine': 'virtualMachine' + } + + def __init__(self, virtual_machine=None): + """ + V1beta1SourceSpec - 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 V1beta1SourceSpec. + + :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 V1beta1SourceSpec. + + :param virtual_machine: The virtual_machine of this V1beta1SourceSpec. + :type: V1beta1VirtualMachine + """ + + 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, V1beta1SourceSpec): + return False + + return self.__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_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/kubevirt/models/v1beta1_storage_spec.py b/kubevirt/models/v1beta1_storage_spec.py new file mode 100644 index 00000000..2684e04e --- /dev/null +++ b/kubevirt/models/v1beta1_storage_spec.py @@ -0,0 +1,334 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1StorageSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + 'data_source_ref': 'K8sIoApiCoreV1TypedObjectReference', + 'resources': 'K8sIoApiCoreV1VolumeResourceRequirements', + 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'storage_class_name': 'str', + 'volume_mode': 'str', + 'volume_name': 'str' + } + + attribute_map = { + 'access_modes': 'accessModes', + 'data_source': 'dataSource', + 'data_source_ref': 'dataSourceRef', + 'resources': 'resources', + 'selector': 'selector', + 'storage_class_name': 'storageClassName', + '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): + """ + 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 + 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 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: + 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 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 V1beta1StorageSpec. + :rtype: list[str] + """ + return self._access_modes + + @access_modes.setter + def access_modes(self, access_modes): + """ + 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 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 + + @property + 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. 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 + """ + return self._data_source + + @data_source.setter + 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. 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 + """ + + 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: K8sIoApiCoreV1TypedObjectReference + """ + 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: K8sIoApiCoreV1TypedObjectReference + """ + + self._data_source_ref = data_source_ref + + @property + def resources(self): + """ + 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 V1beta1StorageSpec. + :rtype: K8sIoApiCoreV1VolumeResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """ + 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 V1beta1StorageSpec. + :type: K8sIoApiCoreV1VolumeResourceRequirements + """ + + self._resources = resources + + @property + def selector(self): + """ + Gets the selector of this V1beta1StorageSpec. + A label query over volumes to consider for binding. + + :return: The selector of this V1beta1StorageSpec. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + Sets the selector of this V1beta1StorageSpec. + A label query over volumes to consider for binding. + + :param selector: The selector of this V1beta1StorageSpec. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._selector = selector + + @property + def storage_class_name(self): + """ + 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 V1beta1StorageSpec. + :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 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 V1beta1StorageSpec. + :type: str + """ + + self._storage_class_name = storage_class_name + + @property + 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. - `\"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 + """ + return self._volume_mode + + @volume_mode.setter + 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. - `\"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", "FromStorageProfile"] + 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 + + @property + def volume_name(self): + """ + Gets the volume_name of this V1beta1StorageSpec. + VolumeName is the binding reference to the PersistentVolume backing this claim. + + :return: The volume_name of this V1beta1StorageSpec. + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """ + 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 V1beta1StorageSpec. + :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, V1beta1StorageSpec): + return False + + return self.__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.py b/kubevirt/models/v1beta1_virtual_machine.py new file mode 100644 index 00000000..700103e7 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachine(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1VirtualMachine - 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 V1beta1VirtualMachine. + + :return: The metadata of this V1beta1VirtualMachine. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachine. + + :param metadata: The metadata of this V1beta1VirtualMachine. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1VirtualMachine. + VirtualMachineSpec contains the VirtualMachine specification. + + :return: The spec of this V1beta1VirtualMachine. + :rtype: V1VirtualMachineSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1VirtualMachine. + VirtualMachineSpec contains the VirtualMachine specification. + + :param spec: The spec of this V1beta1VirtualMachine. + :type: V1VirtualMachineSpec + """ + + self._spec = spec + + @property + def status(self): + """ + 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 V1beta1VirtualMachine. + :rtype: V1VirtualMachineStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + 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 V1beta1VirtualMachine. + :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, V1beta1VirtualMachine): + return False + + return self.__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_clone.py b/kubevirt/models/v1beta1_virtual_machine_clone.py new file mode 100644 index 00000000..81e85cc1 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineClone(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachineCloneSpec', + 'status': 'V1beta1VirtualMachineCloneStatus' + } + + 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): + """ + V1beta1VirtualMachineClone - 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 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 V1beta1VirtualMachineClone. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineClone. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + 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 V1beta1VirtualMachineClone. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineClone. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineClone. + + :return: The metadata of this V1beta1VirtualMachineClone. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineClone. + + :param metadata: The metadata of this V1beta1VirtualMachineClone. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1VirtualMachineClone. + + :return: The spec of this V1beta1VirtualMachineClone. + :rtype: V1beta1VirtualMachineCloneSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1VirtualMachineClone. + + :param spec: The spec of this V1beta1VirtualMachineClone. + :type: V1beta1VirtualMachineCloneSpec + """ + 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 V1beta1VirtualMachineClone. + + :return: The status of this V1beta1VirtualMachineClone. + :rtype: V1beta1VirtualMachineCloneStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1VirtualMachineClone. + + :param status: The status of this V1beta1VirtualMachineClone. + :type: V1beta1VirtualMachineCloneStatus + """ + + 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, V1beta1VirtualMachineClone): + return False + + return self.__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_clone_list.py b/kubevirt/models/v1beta1_virtual_machine_clone_list.py new file mode 100644 index 00000000..a526309f --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineCloneList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1VirtualMachineClone]', + '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): + """ + V1beta1VirtualMachineCloneList - 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 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 V1beta1VirtualMachineCloneList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineCloneList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1VirtualMachineCloneList. + + :return: The items of this V1beta1VirtualMachineCloneList. + :rtype: list[V1beta1VirtualMachineClone] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1VirtualMachineCloneList. + + :param items: The items of this V1beta1VirtualMachineCloneList. + :type: list[V1beta1VirtualMachineClone] + """ + 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 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 V1beta1VirtualMachineCloneList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineCloneList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineCloneList. + + :return: The metadata of this V1beta1VirtualMachineCloneList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineCloneList. + + :param metadata: The metadata of this V1beta1VirtualMachineCloneList. + :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, V1beta1VirtualMachineCloneList): + return False + + return self.__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_clone_spec.py b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py new file mode 100644 index 00000000..f04dad6b --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py @@ -0,0 +1,350 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1VirtualMachineCloneSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + 'patches': 'list[str]', + 'source': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'template': 'V1beta1VirtualMachineCloneTemplateFilters', + 'volume_name_policy': 'str' + } + + attribute_map = { + 'annotation_filters': 'annotationFilters', + 'label_filters': 'labelFilters', + 'new_mac_addresses': 'newMacAddresses', + 'new_sm_bios_serial': 'newSMBiosSerial', + 'patches': 'patches', + 'source': 'source', + 'target': 'target', + '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, volume_name_policy=None): + """ + V1beta1VirtualMachineCloneSpec - 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._patches = None + 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 + 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 + if patches is not None: + self.patches = patches + self.source = source + if target is not None: + 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): + """ + 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 V1beta1VirtualMachineCloneSpec. + :rtype: list[str] + """ + return self._annotation_filters + + @annotation_filters.setter + def annotation_filters(self, annotation_filters): + """ + 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 V1beta1VirtualMachineCloneSpec. + :type: list[str] + """ + + self._annotation_filters = annotation_filters + + @property + def label_filters(self): + """ + 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 V1beta1VirtualMachineCloneSpec. + :rtype: list[str] + """ + return self._label_filters + + @label_filters.setter + def label_filters(self, label_filters): + """ + 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 V1beta1VirtualMachineCloneSpec. + :type: list[str] + """ + + self._label_filters = label_filters + + @property + def new_mac_addresses(self): + """ + 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 V1beta1VirtualMachineCloneSpec. + :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 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 V1beta1VirtualMachineCloneSpec. + :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 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 V1beta1VirtualMachineCloneSpec. + :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 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 V1beta1VirtualMachineCloneSpec. + :type: str + """ + + 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): + """ + 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 V1beta1VirtualMachineCloneSpec. + :rtype: K8sIoApiCoreV1TypedLocalObjectReference + """ + return self._source + + @source.setter + def source(self, source): + """ + 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 V1beta1VirtualMachineCloneSpec. + :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 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 V1beta1VirtualMachineCloneSpec. + :rtype: K8sIoApiCoreV1TypedLocalObjectReference + """ + return self._target + + @target.setter + def target(self, target): + """ + 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 V1beta1VirtualMachineCloneSpec. + :type: K8sIoApiCoreV1TypedLocalObjectReference + """ + + self._target = target + + @property + def template(self): + """ + 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 V1beta1VirtualMachineCloneSpec. + :rtype: V1beta1VirtualMachineCloneTemplateFilters + """ + return self._template + + @template.setter + def template(self, template): + """ + 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 V1beta1VirtualMachineCloneSpec. + :type: V1beta1VirtualMachineCloneTemplateFilters + """ + + 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1VirtualMachineCloneSpec): + return False + + return self.__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_clone_status.py b/kubevirt/models/v1beta1_virtual_machine_clone_status.py new file mode 100644 index 00000000..bbc4a7c4 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineCloneStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1Condition]', + '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): + """ + V1beta1VirtualMachineCloneStatus - 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 V1beta1VirtualMachineCloneStatus. + + :return: The conditions of this V1beta1VirtualMachineCloneStatus. + :rtype: list[V1beta1Condition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1beta1VirtualMachineCloneStatus. + + :param conditions: The conditions of this V1beta1VirtualMachineCloneStatus. + :type: list[V1beta1Condition] + """ + + self._conditions = conditions + + @property + def creation_time(self): + """ + Gets the creation_time of this V1beta1VirtualMachineCloneStatus. + + :return: The creation_time of this V1beta1VirtualMachineCloneStatus. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._creation_time + + @creation_time.setter + def creation_time(self, creation_time): + """ + Sets the creation_time of this V1beta1VirtualMachineCloneStatus. + + :param creation_time: The creation_time of this V1beta1VirtualMachineCloneStatus. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._creation_time = creation_time + + @property + def phase(self): + """ + Gets the phase of this V1beta1VirtualMachineCloneStatus. + + :return: The phase of this V1beta1VirtualMachineCloneStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1beta1VirtualMachineCloneStatus. + + :param phase: The phase of this V1beta1VirtualMachineCloneStatus. + :type: str + """ + + self._phase = phase + + @property + def restore_name(self): + """ + Gets the restore_name of this V1beta1VirtualMachineCloneStatus. + + :return: The restore_name of this V1beta1VirtualMachineCloneStatus. + :rtype: str + """ + return self._restore_name + + @restore_name.setter + def restore_name(self, restore_name): + """ + Sets the restore_name of this V1beta1VirtualMachineCloneStatus. + + :param restore_name: The restore_name of this V1beta1VirtualMachineCloneStatus. + :type: str + """ + + self._restore_name = restore_name + + @property + def snapshot_name(self): + """ + Gets the snapshot_name of this V1beta1VirtualMachineCloneStatus. + + :return: The snapshot_name of this V1beta1VirtualMachineCloneStatus. + :rtype: str + """ + return self._snapshot_name + + @snapshot_name.setter + def snapshot_name(self, snapshot_name): + """ + Sets the snapshot_name of this V1beta1VirtualMachineCloneStatus. + + :param snapshot_name: The snapshot_name of this V1beta1VirtualMachineCloneStatus. + :type: str + """ + + self._snapshot_name = snapshot_name + + @property + def target_name(self): + """ + Gets the target_name of this V1beta1VirtualMachineCloneStatus. + + :return: The target_name of this V1beta1VirtualMachineCloneStatus. + :rtype: str + """ + return self._target_name + + @target_name.setter + def target_name(self, target_name): + """ + Sets the target_name of this V1beta1VirtualMachineCloneStatus. + + :param target_name: The target_name of this V1beta1VirtualMachineCloneStatus. + :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, V1beta1VirtualMachineCloneStatus): + return False + + return self.__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_clone_template_filters.py b/kubevirt/models/v1beta1_virtual_machine_clone_template_filters.py new file mode 100644 index 00000000..3bdf2900 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineCloneTemplateFilters(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1VirtualMachineCloneTemplateFilters - 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 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 V1beta1VirtualMachineCloneTemplateFilters. + :rtype: list[str] + """ + return self._annotation_filters + + @annotation_filters.setter + def annotation_filters(self, annotation_filters): + """ + 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 V1beta1VirtualMachineCloneTemplateFilters. + :type: list[str] + """ + + self._annotation_filters = annotation_filters + + @property + def label_filters(self): + """ + 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 V1beta1VirtualMachineCloneTemplateFilters. + :rtype: list[str] + """ + return self._label_filters + + @label_filters.setter + def label_filters(self, label_filters): + """ + 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 V1beta1VirtualMachineCloneTemplateFilters. + :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, V1beta1VirtualMachineCloneTemplateFilters): + return False + + return self.__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_cluster_instancetype.py b/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype.py new file mode 100644 index 00000000..c200a610 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype.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 V1beta1VirtualMachineClusterInstancetype(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachineInstancetypeSpec' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): + """ + V1beta1VirtualMachineClusterInstancetype - 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 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 V1beta1VirtualMachineClusterInstancetype. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineClusterInstancetype. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + 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 V1beta1VirtualMachineClusterInstancetype. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineClusterInstancetype. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineClusterInstancetype. + + :return: The metadata of this V1beta1VirtualMachineClusterInstancetype. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineClusterInstancetype. + + :param metadata: The metadata of this V1beta1VirtualMachineClusterInstancetype. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1VirtualMachineClusterInstancetype. + Required spec describing the instancetype + + :return: The spec of this V1beta1VirtualMachineClusterInstancetype. + :rtype: V1beta1VirtualMachineInstancetypeSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1VirtualMachineClusterInstancetype. + Required spec describing the instancetype + + :param spec: The spec of this V1beta1VirtualMachineClusterInstancetype. + :type: V1beta1VirtualMachineInstancetypeSpec + """ + 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, V1beta1VirtualMachineClusterInstancetype): + return False + + return self.__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_cluster_instancetype_list.py b/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype_list.py new file mode 100644 index 00000000..7d2e61dd --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype_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 V1beta1VirtualMachineClusterInstancetypeList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1VirtualMachineClusterInstancetype]', + '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): + """ + V1beta1VirtualMachineClusterInstancetypeList - 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 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 V1beta1VirtualMachineClusterInstancetypeList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineClusterInstancetypeList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1VirtualMachineClusterInstancetypeList. + + :return: The items of this V1beta1VirtualMachineClusterInstancetypeList. + :rtype: list[V1beta1VirtualMachineClusterInstancetype] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1VirtualMachineClusterInstancetypeList. + + :param items: The items of this V1beta1VirtualMachineClusterInstancetypeList. + :type: list[V1beta1VirtualMachineClusterInstancetype] + """ + 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 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 V1beta1VirtualMachineClusterInstancetypeList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineClusterInstancetypeList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineClusterInstancetypeList. + + :return: The metadata of this V1beta1VirtualMachineClusterInstancetypeList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineClusterInstancetypeList. + + :param metadata: The metadata of this V1beta1VirtualMachineClusterInstancetypeList. + :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, V1beta1VirtualMachineClusterInstancetypeList): + return False + + return self.__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_cluster_preference.py b/kubevirt/models/v1beta1_virtual_machine_cluster_preference.py new file mode 100644 index 00000000..a890d658 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineClusterPreference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachinePreferenceSpec' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): + """ + V1beta1VirtualMachineClusterPreference - 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 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 V1beta1VirtualMachineClusterPreference. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineClusterPreference. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + 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 V1beta1VirtualMachineClusterPreference. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineClusterPreference. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineClusterPreference. + + :return: The metadata of this V1beta1VirtualMachineClusterPreference. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineClusterPreference. + + :param metadata: The metadata of this V1beta1VirtualMachineClusterPreference. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1VirtualMachineClusterPreference. + Required spec describing the preferences + + :return: The spec of this V1beta1VirtualMachineClusterPreference. + :rtype: V1beta1VirtualMachinePreferenceSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1VirtualMachineClusterPreference. + Required spec describing the preferences + + :param spec: The spec of this V1beta1VirtualMachineClusterPreference. + :type: V1beta1VirtualMachinePreferenceSpec + """ + 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, V1beta1VirtualMachineClusterPreference): + return False + + return self.__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_cluster_preference_list.py b/kubevirt/models/v1beta1_virtual_machine_cluster_preference_list.py new file mode 100644 index 00000000..63135d46 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineClusterPreferenceList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1VirtualMachineClusterPreference]', + '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): + """ + V1beta1VirtualMachineClusterPreferenceList - 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 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 V1beta1VirtualMachineClusterPreferenceList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineClusterPreferenceList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1VirtualMachineClusterPreferenceList. + + :return: The items of this V1beta1VirtualMachineClusterPreferenceList. + :rtype: list[V1beta1VirtualMachineClusterPreference] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1VirtualMachineClusterPreferenceList. + + :param items: The items of this V1beta1VirtualMachineClusterPreferenceList. + :type: list[V1beta1VirtualMachineClusterPreference] + """ + 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 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 V1beta1VirtualMachineClusterPreferenceList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineClusterPreferenceList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineClusterPreferenceList. + + :return: The metadata of this V1beta1VirtualMachineClusterPreferenceList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineClusterPreferenceList. + + :param metadata: The metadata of this V1beta1VirtualMachineClusterPreferenceList. + :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, V1beta1VirtualMachineClusterPreferenceList): + return False + + return self.__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.py b/kubevirt/models/v1beta1_virtual_machine_export.py new file mode 100644 index 00000000..f7add628 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineExport(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachineExportSpec', + 'status': 'V1beta1VirtualMachineExportStatus' + } + + 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): + """ + V1beta1VirtualMachineExport - 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 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 V1beta1VirtualMachineExport. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineExport. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + 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 V1beta1VirtualMachineExport. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineExport. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineExport. + + :return: The metadata of this V1beta1VirtualMachineExport. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineExport. + + :param metadata: The metadata of this V1beta1VirtualMachineExport. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1VirtualMachineExport. + + :return: The spec of this V1beta1VirtualMachineExport. + :rtype: V1beta1VirtualMachineExportSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1VirtualMachineExport. + + :param spec: The spec of this V1beta1VirtualMachineExport. + :type: V1beta1VirtualMachineExportSpec + """ + 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 V1beta1VirtualMachineExport. + + :return: The status of this V1beta1VirtualMachineExport. + :rtype: V1beta1VirtualMachineExportStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1VirtualMachineExport. + + :param status: The status of this V1beta1VirtualMachineExport. + :type: V1beta1VirtualMachineExportStatus + """ + + 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, V1beta1VirtualMachineExport): + return False + + return self.__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.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 new file mode 100644 index 00000000..a86f7937 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_export_link.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 V1beta1VirtualMachineExportLink(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + 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, 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): + """ + Gets the cert of this V1beta1VirtualMachineExportLink. + Cert is the public CA certificate base64 encoded + + :return: The cert of this V1beta1VirtualMachineExportLink. + :rtype: str + """ + return self._cert + + @cert.setter + def cert(self, cert): + """ + Sets the cert of this V1beta1VirtualMachineExportLink. + Cert is the public CA certificate base64 encoded + + :param cert: The cert of this V1beta1VirtualMachineExportLink. + :type: str + """ + if cert is None: + raise ValueError("Invalid value for `cert`, must not be `None`") + + self._cert = cert + + @property + def manifests(self): + """ + Gets the manifests of this V1beta1VirtualMachineExportLink. + Manifests is a list of available manifests for the export + + :return: The manifests of this V1beta1VirtualMachineExportLink. + :rtype: list[V1beta1VirtualMachineExportManifest] + """ + return self._manifests + + @manifests.setter + def manifests(self, manifests): + """ + Sets the manifests of this V1beta1VirtualMachineExportLink. + Manifests is a list of available manifests for the export + + :param manifests: The manifests of this V1beta1VirtualMachineExportLink. + :type: list[V1beta1VirtualMachineExportManifest] + """ + + self._manifests = manifests + + @property + def volumes(self): + """ + Gets the volumes of this V1beta1VirtualMachineExportLink. + Volumes is a list of available volumes to export + + :return: The volumes of this V1beta1VirtualMachineExportLink. + :rtype: list[V1beta1VirtualMachineExportVolume] + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """ + Sets the volumes of this V1beta1VirtualMachineExportLink. + Volumes is a list of available volumes to export + + :param volumes: The volumes of this V1beta1VirtualMachineExportLink. + :type: list[V1beta1VirtualMachineExportVolume] + """ + + 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, V1beta1VirtualMachineExportLink): + return False + + return self.__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_links.py b/kubevirt/models/v1beta1_virtual_machine_export_links.py new file mode 100644 index 00000000..d41811bb --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineExportLinks(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachineExportLink', + 'internal': 'V1beta1VirtualMachineExportLink' + } + + attribute_map = { + 'external': 'external', + 'internal': 'internal' + } + + def __init__(self, external=None, internal=None): + """ + V1beta1VirtualMachineExportLinks - 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 V1beta1VirtualMachineExportLinks. + + :return: The external of this V1beta1VirtualMachineExportLinks. + :rtype: V1beta1VirtualMachineExportLink + """ + return self._external + + @external.setter + def external(self, external): + """ + Sets the external of this V1beta1VirtualMachineExportLinks. + + :param external: The external of this V1beta1VirtualMachineExportLinks. + :type: V1beta1VirtualMachineExportLink + """ + + self._external = external + + @property + def internal(self): + """ + Gets the internal of this V1beta1VirtualMachineExportLinks. + + :return: The internal of this V1beta1VirtualMachineExportLinks. + :rtype: V1beta1VirtualMachineExportLink + """ + return self._internal + + @internal.setter + def internal(self, internal): + """ + Sets the internal of this V1beta1VirtualMachineExportLinks. + + :param internal: The internal of this V1beta1VirtualMachineExportLinks. + :type: V1beta1VirtualMachineExportLink + """ + + 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, V1beta1VirtualMachineExportLinks): + return False + + return self.__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_list.py b/kubevirt/models/v1beta1_virtual_machine_export_list.py new file mode 100644 index 00000000..bf1aa66d --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineExportList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1VirtualMachineExport]', + '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): + """ + V1beta1VirtualMachineExportList - 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 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 V1beta1VirtualMachineExportList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineExportList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1VirtualMachineExportList. + + :return: The items of this V1beta1VirtualMachineExportList. + :rtype: list[V1beta1VirtualMachineExport] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1VirtualMachineExportList. + + :param items: The items of this V1beta1VirtualMachineExportList. + :type: list[V1beta1VirtualMachineExport] + """ + 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 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 V1beta1VirtualMachineExportList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineExportList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineExportList. + + :return: The metadata of this V1beta1VirtualMachineExportList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineExportList. + + :param metadata: The metadata of this V1beta1VirtualMachineExportList. + :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, V1beta1VirtualMachineExportList): + return False + + return self.__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_manifest.py b/kubevirt/models/v1beta1_virtual_machine_export_manifest.py new file mode 100644 index 00000000..7528df94 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineExportManifest(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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='', url=''): + """ + V1beta1VirtualMachineExportManifest - 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 V1beta1VirtualMachineExportManifest. + Type is the type of manifest returned + + :return: The type of this V1beta1VirtualMachineExportManifest. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1beta1VirtualMachineExportManifest. + Type is the type of manifest returned + + :param type: The type of this V1beta1VirtualMachineExportManifest. + :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 V1beta1VirtualMachineExportManifest. + Url is the url of the endpoint that returns the manifest + + :return: The url of this V1beta1VirtualMachineExportManifest. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1beta1VirtualMachineExportManifest. + Url is the url of the endpoint that returns the manifest + + :param url: The url of this V1beta1VirtualMachineExportManifest. + :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, V1beta1VirtualMachineExportManifest): + return False + + return self.__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_spec.py b/kubevirt/models/v1beta1_virtual_machine_export_spec.py new file mode 100644 index 00000000..4beaf587 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_export_spec.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 V1beta1VirtualMachineExportSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + 'ttl_duration': 'K8sIoApimachineryPkgApisMetaV1Duration' + } + + attribute_map = { + 'source': 'source', + 'token_secret_ref': 'tokenSecretRef', + 'ttl_duration': 'ttlDuration' + } + + def __init__(self, source=None, token_secret_ref=None, ttl_duration=None): + """ + V1beta1VirtualMachineExportSpec - 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): + """ + Gets the source of this V1beta1VirtualMachineExportSpec. + + :return: The source of this V1beta1VirtualMachineExportSpec. + :rtype: K8sIoApiCoreV1TypedLocalObjectReference + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1beta1VirtualMachineExportSpec. + + :param source: The source of this V1beta1VirtualMachineExportSpec. + :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 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 V1beta1VirtualMachineExportSpec. + :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 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 V1beta1VirtualMachineExportSpec. + :type: str + """ + + self._token_secret_ref = token_secret_ref + + @property + def ttl_duration(self): + """ + 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 V1beta1VirtualMachineExportSpec. + :rtype: K8sIoApimachineryPkgApisMetaV1Duration + """ + return self._ttl_duration + + @ttl_duration.setter + def ttl_duration(self, ttl_duration): + """ + 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 V1beta1VirtualMachineExportSpec. + :type: K8sIoApimachineryPkgApisMetaV1Duration + """ + + self._ttl_duration = ttl_duration + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1VirtualMachineExportSpec): + return False + + return self.__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_status.py b/kubevirt/models/v1beta1_virtual_machine_export_status.py new file mode 100644 index 00000000..0b5446a1 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_export_status.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1VirtualMachineExportStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1Condition]', + 'links': 'V1beta1VirtualMachineExportLinks', + 'phase': 'str', + 'service_name': 'str', + 'token_secret_ref': 'str', + 'ttl_expiration_time': 'K8sIoApimachineryPkgApisMetaV1Time', + 'virtual_machine_name': 'str' + } + + attribute_map = { + 'conditions': 'conditions', + 'links': 'links', + 'phase': 'phase', + 'service_name': 'serviceName', + 'token_secret_ref': 'tokenSecretRef', + '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, virtual_machine_name=None): + """ + V1beta1VirtualMachineExportStatus - a model defined in Swagger + """ + + self._conditions = None + self._links = None + self._phase = None + 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 + 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 + 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 + if virtual_machine_name is not None: + self.virtual_machine_name = virtual_machine_name + + @property + def conditions(self): + """ + Gets the conditions of this V1beta1VirtualMachineExportStatus. + + :return: The conditions of this V1beta1VirtualMachineExportStatus. + :rtype: list[V1beta1Condition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1beta1VirtualMachineExportStatus. + + :param conditions: The conditions of this V1beta1VirtualMachineExportStatus. + :type: list[V1beta1Condition] + """ + + self._conditions = conditions + + @property + def links(self): + """ + Gets the links of this V1beta1VirtualMachineExportStatus. + + :return: The links of this V1beta1VirtualMachineExportStatus. + :rtype: V1beta1VirtualMachineExportLinks + """ + return self._links + + @links.setter + def links(self, links): + """ + Sets the links of this V1beta1VirtualMachineExportStatus. + + :param links: The links of this V1beta1VirtualMachineExportStatus. + :type: V1beta1VirtualMachineExportLinks + """ + + self._links = links + + @property + def phase(self): + """ + Gets the phase of this V1beta1VirtualMachineExportStatus. + + :return: The phase of this V1beta1VirtualMachineExportStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1beta1VirtualMachineExportStatus. + + :param phase: The phase of this V1beta1VirtualMachineExportStatus. + :type: str + """ + + self._phase = phase + + @property + def service_name(self): + """ + 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 V1beta1VirtualMachineExportStatus. + :rtype: str + """ + return self._service_name + + @service_name.setter + def service_name(self, service_name): + """ + 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 V1beta1VirtualMachineExportStatus. + :type: str + """ + + self._service_name = service_name + + @property + def token_secret_ref(self): + """ + 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 V1beta1VirtualMachineExportStatus. + :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 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 V1beta1VirtualMachineExportStatus. + :type: str + """ + + self._token_secret_ref = token_secret_ref + + @property + def ttl_expiration_time(self): + """ + 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 V1beta1VirtualMachineExportStatus. + :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 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 V1beta1VirtualMachineExportStatus. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._ttl_expiration_time = ttl_expiration_time + + @property + def virtual_machine_name(self): + """ + 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 V1beta1VirtualMachineExportStatus. + :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 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 V1beta1VirtualMachineExportStatus. + :type: str + """ + + self._virtual_machine_name = virtual_machine_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, V1beta1VirtualMachineExportStatus): + return False + + return self.__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_volume.py b/kubevirt/models/v1beta1_virtual_machine_export_volume.py new file mode 100644 index 00000000..3fec0a9f --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineExportVolume(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1VirtualMachineExportVolumeFormat]', + 'name': 'str' + } + + attribute_map = { + 'formats': 'formats', + 'name': 'name' + } + + def __init__(self, formats=None, name=''): + """ + V1beta1VirtualMachineExportVolume - 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 V1beta1VirtualMachineExportVolume. + + :return: The formats of this V1beta1VirtualMachineExportVolume. + :rtype: list[V1beta1VirtualMachineExportVolumeFormat] + """ + return self._formats + + @formats.setter + def formats(self, formats): + """ + Sets the formats of this V1beta1VirtualMachineExportVolume. + + :param formats: The formats of this V1beta1VirtualMachineExportVolume. + :type: list[V1beta1VirtualMachineExportVolumeFormat] + """ + + self._formats = formats + + @property + def name(self): + """ + Gets the name of this V1beta1VirtualMachineExportVolume. + Name is the name of the exported volume + + :return: The name of this V1beta1VirtualMachineExportVolume. + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """ + Sets the name of this V1beta1VirtualMachineExportVolume. + Name is the name of the exported volume + + :param name: The name of this V1beta1VirtualMachineExportVolume. + :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, V1beta1VirtualMachineExportVolume): + return False + + return self.__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_volume_format.py b/kubevirt/models/v1beta1_virtual_machine_export_volume_format.py new file mode 100644 index 00000000..6aa9d01b --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineExportVolumeFormat(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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='', url=''): + """ + V1beta1VirtualMachineExportVolumeFormat - 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 V1beta1VirtualMachineExportVolumeFormat. + Format is the format of the image at the specified URL + + :return: The format of this V1beta1VirtualMachineExportVolumeFormat. + :rtype: str + """ + return self._format + + @format.setter + def format(self, format): + """ + Sets the format of this V1beta1VirtualMachineExportVolumeFormat. + Format is the format of the image at the specified URL + + :param format: The format of this V1beta1VirtualMachineExportVolumeFormat. + :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 V1beta1VirtualMachineExportVolumeFormat. + Url is the url that contains the volume in the format specified + + :return: The url of this V1beta1VirtualMachineExportVolumeFormat. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1beta1VirtualMachineExportVolumeFormat. + Url is the url that contains the volume in the format specified + + :param url: The url of this V1beta1VirtualMachineExportVolumeFormat. + :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, V1beta1VirtualMachineExportVolumeFormat): + return False + + return self.__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_instancetype.py b/kubevirt/models/v1beta1_virtual_machine_instancetype.py new file mode 100644 index 00000000..843dc0de --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_instancetype.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 V1beta1VirtualMachineInstancetype(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachineInstancetypeSpec' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): + """ + V1beta1VirtualMachineInstancetype - 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 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 V1beta1VirtualMachineInstancetype. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineInstancetype. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + 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 V1beta1VirtualMachineInstancetype. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineInstancetype. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineInstancetype. + + :return: The metadata of this V1beta1VirtualMachineInstancetype. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineInstancetype. + + :param metadata: The metadata of this V1beta1VirtualMachineInstancetype. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1VirtualMachineInstancetype. + Required spec describing the instancetype + + :return: The spec of this V1beta1VirtualMachineInstancetype. + :rtype: V1beta1VirtualMachineInstancetypeSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1VirtualMachineInstancetype. + Required spec describing the instancetype + + :param spec: The spec of this V1beta1VirtualMachineInstancetype. + :type: V1beta1VirtualMachineInstancetypeSpec + """ + 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, V1beta1VirtualMachineInstancetype): + return False + + return self.__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_instancetype_list.py b/kubevirt/models/v1beta1_virtual_machine_instancetype_list.py new file mode 100644 index 00000000..823cb5c1 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_instancetype_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 V1beta1VirtualMachineInstancetypeList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1VirtualMachineInstancetype]', + '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): + """ + V1beta1VirtualMachineInstancetypeList - 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 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 V1beta1VirtualMachineInstancetypeList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineInstancetypeList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1VirtualMachineInstancetypeList. + + :return: The items of this V1beta1VirtualMachineInstancetypeList. + :rtype: list[V1beta1VirtualMachineInstancetype] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1VirtualMachineInstancetypeList. + + :param items: The items of this V1beta1VirtualMachineInstancetypeList. + :type: list[V1beta1VirtualMachineInstancetype] + """ + 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 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 V1beta1VirtualMachineInstancetypeList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineInstancetypeList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineInstancetypeList. + + :return: The metadata of this V1beta1VirtualMachineInstancetypeList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineInstancetypeList. + + :param metadata: The metadata of this V1beta1VirtualMachineInstancetypeList. + :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, V1beta1VirtualMachineInstancetypeList): + return False + + return self.__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_instancetype_spec.py b/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py new file mode 100644 index 00000000..798f0713 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py @@ -0,0 +1,379 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1VirtualMachineInstancetypeSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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)', + 'cpu': 'V1beta1CPUInstancetype', + 'gpus': 'list[V1GPU]', + 'host_devices': 'list[V1HostDevice]', + 'io_threads': 'V1DiskIOThreads', + 'io_threads_policy': 'str', + 'launch_security': 'V1LaunchSecurity', + 'memory': 'V1beta1MemoryInstancetype', + 'node_selector': 'dict(str, str)', + 'scheduler_name': 'str' + } + + attribute_map = { + 'annotations': 'annotations', + 'cpu': 'cpu', + 'gpus': 'gpus', + 'host_devices': 'hostDevices', + 'io_threads': 'ioThreads', + 'io_threads_policy': 'ioThreadsPolicy', + 'launch_security': 'launchSecurity', + 'memory': 'memory', + 'node_selector': 'nodeSelector', + 'scheduler_name': 'schedulerName' + } + + 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 + """ + + self._annotations = None + 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 + 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 + 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: + 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 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): + """ + Gets the cpu of this V1beta1VirtualMachineInstancetypeSpec. + Required CPU related attributes of the instancetype. + + :return: The cpu of this V1beta1VirtualMachineInstancetypeSpec. + :rtype: V1beta1CPUInstancetype + """ + return self._cpu + + @cpu.setter + def cpu(self, cpu): + """ + Sets the cpu of this V1beta1VirtualMachineInstancetypeSpec. + Required CPU related attributes of the instancetype. + + :param cpu: The cpu of this V1beta1VirtualMachineInstancetypeSpec. + :type: V1beta1CPUInstancetype + """ + 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 V1beta1VirtualMachineInstancetypeSpec. + Optionally defines any GPU devices associated with the instancetype. + + :return: The gpus of this V1beta1VirtualMachineInstancetypeSpec. + :rtype: list[V1GPU] + """ + return self._gpus + + @gpus.setter + def gpus(self, gpus): + """ + Sets the gpus of this V1beta1VirtualMachineInstancetypeSpec. + Optionally defines any GPU devices associated with the instancetype. + + :param gpus: The gpus of this V1beta1VirtualMachineInstancetypeSpec. + :type: list[V1GPU] + """ + + self._gpus = gpus + + @property + def host_devices(self): + """ + Gets the host_devices of this V1beta1VirtualMachineInstancetypeSpec. + Optionally defines any HostDevices associated with the instancetype. + + :return: The host_devices of this V1beta1VirtualMachineInstancetypeSpec. + :rtype: list[V1HostDevice] + """ + return self._host_devices + + @host_devices.setter + def host_devices(self, host_devices): + """ + Sets the host_devices of this V1beta1VirtualMachineInstancetypeSpec. + Optionally defines any HostDevices associated with the instancetype. + + :param host_devices: The host_devices of this V1beta1VirtualMachineInstancetypeSpec. + :type: list[V1HostDevice] + """ + + 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): + """ + 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 V1beta1VirtualMachineInstancetypeSpec. + :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 V1beta1VirtualMachineInstancetypeSpec. + Optionally defines the IOThreadsPolicy to be used by the instancetype. + + :param io_threads_policy: The io_threads_policy of this V1beta1VirtualMachineInstancetypeSpec. + :type: str + """ + + self._io_threads_policy = io_threads_policy + + @property + def launch_security(self): + """ + Gets the launch_security of this V1beta1VirtualMachineInstancetypeSpec. + Optionally defines the LaunchSecurity to be used by the instancetype. + + :return: The launch_security of this V1beta1VirtualMachineInstancetypeSpec. + :rtype: V1LaunchSecurity + """ + return self._launch_security + + @launch_security.setter + def launch_security(self, launch_security): + """ + 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 V1beta1VirtualMachineInstancetypeSpec. + :type: V1LaunchSecurity + """ + + self._launch_security = launch_security + + @property + def memory(self): + """ + Gets the memory of this V1beta1VirtualMachineInstancetypeSpec. + Required Memory related attributes of the instancetype. + + :return: The memory of this V1beta1VirtualMachineInstancetypeSpec. + :rtype: V1beta1MemoryInstancetype + """ + return self._memory + + @memory.setter + def memory(self, memory): + """ + Sets the memory of this V1beta1VirtualMachineInstancetypeSpec. + Required Memory related attributes of the instancetype. + + :param memory: The memory of this V1beta1VirtualMachineInstancetypeSpec. + :type: V1beta1MemoryInstancetype + """ + if memory is None: + raise ValueError("Invalid value for `memory`, must not be `None`") + + 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1VirtualMachineInstancetypeSpec): + return False + + return self.__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_opportunistic_update_strategy.py b/kubevirt/models/v1beta1_virtual_machine_opportunistic_update_strategy.py new file mode 100644 index 00000000..3fcf1565 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineOpportunisticUpdateStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1VirtualMachineOpportunisticUpdateStrategy - 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, V1beta1VirtualMachineOpportunisticUpdateStrategy): + return False + + return self.__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_pool.py b/kubevirt/models/v1beta1_virtual_machine_pool.py new file mode 100644 index 00000000..00322dc8 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachinePool(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachinePoolSpec', + 'status': 'V1beta1VirtualMachinePoolStatus' + } + + 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): + """ + V1beta1VirtualMachinePool - 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 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 V1beta1VirtualMachinePool. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachinePool. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + 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 V1beta1VirtualMachinePool. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachinePool. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachinePool. + + :return: The metadata of this V1beta1VirtualMachinePool. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachinePool. + + :param metadata: The metadata of this V1beta1VirtualMachinePool. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1VirtualMachinePool. + + :return: The spec of this V1beta1VirtualMachinePool. + :rtype: V1beta1VirtualMachinePoolSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1VirtualMachinePool. + + :param spec: The spec of this V1beta1VirtualMachinePool. + :type: V1beta1VirtualMachinePoolSpec + """ + 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 V1beta1VirtualMachinePool. + + :return: The status of this V1beta1VirtualMachinePool. + :rtype: V1beta1VirtualMachinePoolStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1VirtualMachinePool. + + :param status: The status of this V1beta1VirtualMachinePool. + :type: V1beta1VirtualMachinePoolStatus + """ + + 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, V1beta1VirtualMachinePool): + return False + + return self.__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_pool_autohealing_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_autohealing_strategy.py new file mode 100644 index 00000000..b5b12496 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachinePoolAutohealingStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1VirtualMachinePoolAutohealingStrategy - 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 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 V1beta1VirtualMachinePoolAutohealingStrategy. + :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 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 V1beta1VirtualMachinePoolAutohealingStrategy. + :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 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 V1beta1VirtualMachinePoolAutohealingStrategy. + :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 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 V1beta1VirtualMachinePoolAutohealingStrategy. + :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, V1beta1VirtualMachinePoolAutohealingStrategy): + return False + + return self.__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_pool_condition.py b/kubevirt/models/v1beta1_virtual_machine_pool_condition.py new file mode 100644 index 00000000..ba0e106c --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachinePoolCondition(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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=''): + """ + V1beta1VirtualMachinePoolCondition - 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 V1beta1VirtualMachinePoolCondition. + + :return: The message of this V1beta1VirtualMachinePoolCondition. + :rtype: str + """ + return self._message + + @message.setter + def message(self, message): + """ + Sets the message of this V1beta1VirtualMachinePoolCondition. + + :param message: The message of this V1beta1VirtualMachinePoolCondition. + :type: str + """ + + self._message = message + + @property + def reason(self): + """ + Gets the reason of this V1beta1VirtualMachinePoolCondition. + + :return: The reason of this V1beta1VirtualMachinePoolCondition. + :rtype: str + """ + return self._reason + + @reason.setter + def reason(self, reason): + """ + Sets the reason of this V1beta1VirtualMachinePoolCondition. + + :param reason: The reason of this V1beta1VirtualMachinePoolCondition. + :type: str + """ + + self._reason = reason + + @property + def status(self): + """ + Gets the status of this V1beta1VirtualMachinePoolCondition. + + :return: The status of this V1beta1VirtualMachinePoolCondition. + :rtype: str + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1VirtualMachinePoolCondition. + + :param status: The status of this V1beta1VirtualMachinePoolCondition. + :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 V1beta1VirtualMachinePoolCondition. + + :return: The type of this V1beta1VirtualMachinePoolCondition. + :rtype: str + """ + return self._type + + @type.setter + def type(self, type): + """ + Sets the type of this V1beta1VirtualMachinePoolCondition. + + :param type: The type of this V1beta1VirtualMachinePoolCondition. + :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, V1beta1VirtualMachinePoolCondition): + return False + + return self.__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_pool_list.py b/kubevirt/models/v1beta1_virtual_machine_pool_list.py new file mode 100644 index 00000000..40ad453e --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachinePoolList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1VirtualMachinePool]', + '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): + """ + V1beta1VirtualMachinePoolList - 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 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 V1beta1VirtualMachinePoolList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachinePoolList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1VirtualMachinePoolList. + + :return: The items of this V1beta1VirtualMachinePoolList. + :rtype: list[V1beta1VirtualMachinePool] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1VirtualMachinePoolList. + + :param items: The items of this V1beta1VirtualMachinePoolList. + :type: list[V1beta1VirtualMachinePool] + """ + 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 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 V1beta1VirtualMachinePoolList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachinePoolList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachinePoolList. + + :return: The metadata of this V1beta1VirtualMachinePoolList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachinePoolList. + + :param metadata: The metadata of this V1beta1VirtualMachinePoolList. + :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, V1beta1VirtualMachinePoolList): + return False + + return self.__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_pool_name_generation.py b/kubevirt/models/v1beta1_virtual_machine_pool_name_generation.py new file mode 100644 index 00000000..2a28ae87 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachinePoolNameGeneration(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1VirtualMachinePoolNameGeneration - 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 V1beta1VirtualMachinePoolNameGeneration. + + :return: The append_index_to_config_map_refs of this V1beta1VirtualMachinePoolNameGeneration. + :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 V1beta1VirtualMachinePoolNameGeneration. + + :param append_index_to_config_map_refs: The append_index_to_config_map_refs of this V1beta1VirtualMachinePoolNameGeneration. + :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 V1beta1VirtualMachinePoolNameGeneration. + + :return: The append_index_to_secret_refs of this V1beta1VirtualMachinePoolNameGeneration. + :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 V1beta1VirtualMachinePoolNameGeneration. + + :param append_index_to_secret_refs: The append_index_to_secret_refs of this V1beta1VirtualMachinePoolNameGeneration. + :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, V1beta1VirtualMachinePoolNameGeneration): + return False + + return self.__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_pool_opportunistic_scale_in_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py new file mode 100644 index 00000000..1027c395 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachinePoolOpportunisticScaleInStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1VirtualMachinePoolOpportunisticScaleInStrategy - 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 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 V1beta1VirtualMachinePoolOpportunisticScaleInStrategy. + :rtype: str + """ + return self._state_preservation + + @state_preservation.setter + def state_preservation(self, state_preservation): + """ + 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 V1beta1VirtualMachinePoolOpportunisticScaleInStrategy. + :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, V1beta1VirtualMachinePoolOpportunisticScaleInStrategy): + return False + + return self.__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_pool_proactive_scale_in_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py new file mode 100644 index 00000000..d5e58cce --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_pool_proactive_scale_in_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 V1beta1VirtualMachinePoolProactiveScaleInStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachinePoolSelectionPolicy', + 'state_preservation': 'str' + } + + attribute_map = { + 'selection_policy': 'selectionPolicy', + 'state_preservation': 'statePreservation' + } + + def __init__(self, selection_policy=None, state_preservation=None): + """ + V1beta1VirtualMachinePoolProactiveScaleInStrategy - 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): + """ + 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 V1beta1VirtualMachinePoolProactiveScaleInStrategy. + :rtype: V1beta1VirtualMachinePoolSelectionPolicy + """ + return self._selection_policy + + @selection_policy.setter + def selection_policy(self, selection_policy): + """ + 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 V1beta1VirtualMachinePoolProactiveScaleInStrategy. + :type: V1beta1VirtualMachinePoolSelectionPolicy + """ + + self._selection_policy = selection_policy + + @property + def state_preservation(self): + """ + 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 V1beta1VirtualMachinePoolProactiveScaleInStrategy. + :rtype: str + """ + return self._state_preservation + + @state_preservation.setter + def state_preservation(self, state_preservation): + """ + 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 V1beta1VirtualMachinePoolProactiveScaleInStrategy. + :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, V1beta1VirtualMachinePoolProactiveScaleInStrategy): + return False + + return self.__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_pool_proactive_update_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_proactive_update_strategy.py new file mode 100644 index 00000000..8e0b8883 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachinePoolProactiveUpdateStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachinePoolSelectionPolicy' + } + + attribute_map = { + 'selection_policy': 'selectionPolicy' + } + + def __init__(self, selection_policy=None): + """ + V1beta1VirtualMachinePoolProactiveUpdateStrategy - 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 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 V1beta1VirtualMachinePoolProactiveUpdateStrategy. + :rtype: V1beta1VirtualMachinePoolSelectionPolicy + """ + return self._selection_policy + + @selection_policy.setter + def selection_policy(self, selection_policy): + """ + 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 V1beta1VirtualMachinePoolProactiveUpdateStrategy. + :type: V1beta1VirtualMachinePoolSelectionPolicy + """ + + 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, V1beta1VirtualMachinePoolProactiveUpdateStrategy): + return False + + return self.__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_pool_scale_in_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_scale_in_strategy.py new file mode 100644 index 00000000..46521f62 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_pool_scale_in_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 V1beta1VirtualMachinePoolScaleInStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachinePoolOpportunisticScaleInStrategy', + 'proactive': 'V1beta1VirtualMachinePoolProactiveScaleInStrategy', + 'unmanaged': 'V1beta1VirtualMachinePoolUnmanagedStrategy' + } + + attribute_map = { + 'opportunistic': 'opportunistic', + 'proactive': 'proactive', + 'unmanaged': 'unmanaged' + } + + def __init__(self, opportunistic=None, proactive=None, unmanaged=None): + """ + V1beta1VirtualMachinePoolScaleInStrategy - 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 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 V1beta1VirtualMachinePoolScaleInStrategy. + :rtype: V1beta1VirtualMachinePoolOpportunisticScaleInStrategy + """ + return self._opportunistic + + @opportunistic.setter + def opportunistic(self, opportunistic): + """ + 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 V1beta1VirtualMachinePoolScaleInStrategy. + :type: V1beta1VirtualMachinePoolOpportunisticScaleInStrategy + """ + + self._opportunistic = opportunistic + + @property + def proactive(self): + """ + Gets the proactive of this V1beta1VirtualMachinePoolScaleInStrategy. + Proactive scale-in by forcing VMs to shutdown during scale-in (Default) + + :return: The proactive of this V1beta1VirtualMachinePoolScaleInStrategy. + :rtype: V1beta1VirtualMachinePoolProactiveScaleInStrategy + """ + return self._proactive + + @proactive.setter + def proactive(self, proactive): + """ + Sets the proactive of this V1beta1VirtualMachinePoolScaleInStrategy. + Proactive scale-in by forcing VMs to shutdown during scale-in (Default) + + :param proactive: The proactive of this V1beta1VirtualMachinePoolScaleInStrategy. + :type: V1beta1VirtualMachinePoolProactiveScaleInStrategy + """ + + self._proactive = proactive + + @property + def unmanaged(self): + """ + 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 V1beta1VirtualMachinePoolScaleInStrategy. + :rtype: V1beta1VirtualMachinePoolUnmanagedStrategy + """ + return self._unmanaged + + @unmanaged.setter + def unmanaged(self, unmanaged): + """ + 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 V1beta1VirtualMachinePoolScaleInStrategy. + :type: V1beta1VirtualMachinePoolUnmanagedStrategy + """ + + 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, V1beta1VirtualMachinePoolScaleInStrategy): + return False + + return self.__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_pool_selection_policy.py b/kubevirt/models/v1beta1_virtual_machine_pool_selection_policy.py new file mode 100644 index 00000000..055fce8d --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_pool_selection_policy.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 V1beta1VirtualMachinePoolSelectionPolicy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'selectors': 'V1beta1VirtualMachinePoolSelectors', + 'sort_policy': 'str' + } + + attribute_map = { + 'selectors': 'selectors', + 'sort_policy': 'sortPolicy' + } + + def __init__(self, selectors=None, sort_policy=None): + """ + V1beta1VirtualMachinePoolSelectionPolicy - a model defined in Swagger + """ + + self._selectors = None + self._sort_policy = None + + if selectors is not None: + self.selectors = selectors + if sort_policy is not None: + self.sort_policy = sort_policy + + @property + def selectors(self): + """ + Gets the selectors of this V1beta1VirtualMachinePoolSelectionPolicy. + Selectors is a list of selection policies. + + :return: The selectors of this V1beta1VirtualMachinePoolSelectionPolicy. + :rtype: V1beta1VirtualMachinePoolSelectors + """ + return self._selectors + + @selectors.setter + def selectors(self, selectors): + """ + Sets the selectors of this V1beta1VirtualMachinePoolSelectionPolicy. + Selectors is a list of selection policies. + + :param selectors: The selectors of this V1beta1VirtualMachinePoolSelectionPolicy. + :type: V1beta1VirtualMachinePoolSelectors + """ + + self._selectors = selectors + + @property + def sort_policy(self): + """ + Gets the sort_policy of this V1beta1VirtualMachinePoolSelectionPolicy. + SortPolicy is a catch-all policy [AscendingOrder|DescendingOrder|Newest|Oldest|Random] + + :return: The sort_policy of this V1beta1VirtualMachinePoolSelectionPolicy. + :rtype: str + """ + return self._sort_policy + + @sort_policy.setter + def sort_policy(self, sort_policy): + """ + 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 V1beta1VirtualMachinePoolSelectionPolicy. + :type: str + """ + + self._sort_policy = sort_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, V1beta1VirtualMachinePoolSelectionPolicy): + return False + + return self.__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_pool_selectors.py b/kubevirt/models/v1beta1_virtual_machine_pool_selectors.py new file mode 100644 index 00000000..3208b0d9 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachinePoolSelectors(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1VirtualMachinePoolSelectors - 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 V1beta1VirtualMachinePoolSelectors. + LabelSelector is a list of label selector for VMs. + + :return: The label_selector of this V1beta1VirtualMachinePoolSelectors. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._label_selector + + @label_selector.setter + def label_selector(self, label_selector): + """ + Sets the label_selector of this V1beta1VirtualMachinePoolSelectors. + LabelSelector is a list of label selector for VMs. + + :param label_selector: The label_selector of this V1beta1VirtualMachinePoolSelectors. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + + self._label_selector = label_selector + + @property + def node_selector_requirement_matcher(self): + """ + 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 V1beta1VirtualMachinePoolSelectors. + :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 V1beta1VirtualMachinePoolSelectors. + NodeSelectorRequirementMatcher is a list of node selector requirement for VMs. + + :param node_selector_requirement_matcher: The node_selector_requirement_matcher of this V1beta1VirtualMachinePoolSelectors. + :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, V1beta1VirtualMachinePoolSelectors): + return False + + return self.__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_pool_spec.py b/kubevirt/models/v1beta1_virtual_machine_pool_spec.py new file mode 100644 index 00000000..e1e019f4 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_pool_spec.py @@ -0,0 +1,351 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1VirtualMachinePoolSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'autohealing': 'V1beta1VirtualMachinePoolAutohealingStrategy', + 'max_unavailable': 'K8sIoApimachineryPkgUtilIntstrIntOrString', + 'name_generation': 'V1beta1VirtualMachinePoolNameGeneration', + 'paused': 'bool', + 'replicas': 'int', + 'scale_in_strategy': 'V1beta1VirtualMachinePoolScaleInStrategy', + 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'update_strategy': 'V1beta1VirtualMachinePoolUpdateStrategy', + 'virtual_machine_template': 'V1beta1VirtualMachineTemplateSpec' + } + + attribute_map = { + 'autohealing': 'autohealing', + 'max_unavailable': 'maxUnavailable', + 'name_generation': 'nameGeneration', + 'paused': 'paused', + 'replicas': 'replicas', + 'scale_in_strategy': 'scaleInStrategy', + 'selector': 'selector', + 'update_strategy': 'updateStrategy', + 'virtual_machine_template': 'virtualMachineTemplate' + } + + 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): + """ + V1beta1VirtualMachinePoolSpec - a model defined in Swagger + """ + + self._autohealing = None + self._max_unavailable = None + self._name_generation = None + self._paused = None + self._replicas = None + self._scale_in_strategy = None + self._selector = None + 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: + self.name_generation = name_generation + if paused is not None: + 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 + if update_strategy is not None: + self.update_strategy = update_strategy + self.virtual_machine_template = virtual_machine_template + + @property + def autohealing(self): + """ + 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 V1beta1VirtualMachinePoolSpec. + :rtype: V1beta1VirtualMachinePoolAutohealingStrategy + """ + return self._autohealing + + @autohealing.setter + def autohealing(self, autohealing): + """ + 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 V1beta1VirtualMachinePoolSpec. + :type: V1beta1VirtualMachinePoolAutohealingStrategy + """ + + self._autohealing = autohealing + + @property + def max_unavailable(self): + """ + 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 V1beta1VirtualMachinePoolSpec. + :rtype: K8sIoApimachineryPkgUtilIntstrIntOrString + """ + return self._max_unavailable + + @max_unavailable.setter + def max_unavailable(self, max_unavailable): + """ + 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 V1beta1VirtualMachinePoolSpec. + :type: K8sIoApimachineryPkgUtilIntstrIntOrString + """ + + self._max_unavailable = max_unavailable + + @property + def name_generation(self): + """ + Gets the name_generation of this V1beta1VirtualMachinePoolSpec. + Options for the name generation in a pool. + + :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 V1beta1VirtualMachinePoolSpec. + Options for the name generation in a pool. + + :param name_generation: The name_generation of this V1beta1VirtualMachinePoolSpec. + :type: V1beta1VirtualMachinePoolNameGeneration + """ + + self._name_generation = name_generation + + @property + def paused(self): + """ + Gets the paused of this V1beta1VirtualMachinePoolSpec. + Indicates that the pool is paused. + + :return: The paused of this V1beta1VirtualMachinePoolSpec. + :rtype: bool + """ + return self._paused + + @paused.setter + def paused(self, paused): + """ + Sets the paused of this V1beta1VirtualMachinePoolSpec. + Indicates that the pool is paused. + + :param paused: The paused of this V1beta1VirtualMachinePoolSpec. + :type: bool + """ + + self._paused = paused + + @property + def replicas(self): + """ + 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 V1beta1VirtualMachinePoolSpec. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + 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 V1beta1VirtualMachinePoolSpec. + :type: int + """ + + self._replicas = replicas + + @property + def scale_in_strategy(self): + """ + 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 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 V1beta1VirtualMachinePoolSpec. + ScaleInStrategy specifies how the VMPool controller manages scaling in VMs within a VMPool + + :param scale_in_strategy: The scale_in_strategy of this V1beta1VirtualMachinePoolSpec. + :type: V1beta1VirtualMachinePoolScaleInStrategy + """ + + self._scale_in_strategy = scale_in_strategy + + @property + def selector(self): + """ + 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 V1beta1VirtualMachinePoolSpec. + :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """ + 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 V1beta1VirtualMachinePoolSpec. + :type: K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + if selector is None: + raise ValueError("Invalid value for `selector`, must not be `None`") + + self._selector = selector + + @property + def update_strategy(self): + """ + 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 V1beta1VirtualMachinePoolSpec. + :rtype: V1beta1VirtualMachinePoolUpdateStrategy + """ + return self._update_strategy + + @update_strategy.setter + def update_strategy(self, update_strategy): + """ + 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 V1beta1VirtualMachinePoolSpec. + :type: V1beta1VirtualMachinePoolUpdateStrategy + """ + + self._update_strategy = update_strategy + + @property + def virtual_machine_template(self): + """ + Gets the virtual_machine_template of this V1beta1VirtualMachinePoolSpec. + Template describes the VM that will be created. + + :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 V1beta1VirtualMachinePoolSpec. + Template describes the VM that will be created. + + :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`") + + 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, V1beta1VirtualMachinePoolSpec): + return False + + return self.__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_pool_status.py b/kubevirt/models/v1beta1_virtual_machine_pool_status.py new file mode 100644 index 00000000..71f02271 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_pool_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 V1beta1VirtualMachinePoolStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1VirtualMachinePoolCondition]', + '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, ready_replicas=None, replicas=None): + """ + V1beta1VirtualMachinePoolStatus - 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 + + @property + def conditions(self): + """ + Gets the conditions of this V1beta1VirtualMachinePoolStatus. + + :return: The conditions of this V1beta1VirtualMachinePoolStatus. + :rtype: list[V1beta1VirtualMachinePoolCondition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1beta1VirtualMachinePoolStatus. + + :param conditions: The conditions of this V1beta1VirtualMachinePoolStatus. + :type: list[V1beta1VirtualMachinePoolCondition] + """ + + self._conditions = conditions + + @property + def label_selector(self): + """ + 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 V1beta1VirtualMachinePoolStatus. + :rtype: str + """ + return self._label_selector + + @label_selector.setter + def label_selector(self, label_selector): + """ + 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 V1beta1VirtualMachinePoolStatus. + :type: str + """ + + self._label_selector = label_selector + + @property + def ready_replicas(self): + """ + Gets the ready_replicas of this V1beta1VirtualMachinePoolStatus. + + :return: The ready_replicas of this V1beta1VirtualMachinePoolStatus. + :rtype: int + """ + return self._ready_replicas + + @ready_replicas.setter + def ready_replicas(self, ready_replicas): + """ + Sets the ready_replicas of this V1beta1VirtualMachinePoolStatus. + + :param ready_replicas: The ready_replicas of this V1beta1VirtualMachinePoolStatus. + :type: int + """ + + self._ready_replicas = ready_replicas + + @property + def replicas(self): + """ + Gets the replicas of this V1beta1VirtualMachinePoolStatus. + + :return: The replicas of this V1beta1VirtualMachinePoolStatus. + :rtype: int + """ + return self._replicas + + @replicas.setter + def replicas(self, replicas): + """ + Sets the replicas of this V1beta1VirtualMachinePoolStatus. + + :param replicas: The replicas of this V1beta1VirtualMachinePoolStatus. + :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, V1beta1VirtualMachinePoolStatus): + return False + + return self.__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_pool_unmanaged_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_unmanaged_strategy.py new file mode 100644 index 00000000..f18d9771 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachinePoolUnmanagedStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1VirtualMachinePoolUnmanagedStrategy - 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, V1beta1VirtualMachinePoolUnmanagedStrategy): + return False + + return self.__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_pool_update_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_update_strategy.py new file mode 100644 index 00000000..d87de502 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachinePoolUpdateStrategy(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachineOpportunisticUpdateStrategy', + 'proactive': 'V1beta1VirtualMachinePoolProactiveUpdateStrategy', + 'unmanaged': 'V1beta1VirtualMachinePoolUnmanagedStrategy' + } + + attribute_map = { + 'opportunistic': 'opportunistic', + 'proactive': 'proactive', + 'unmanaged': 'unmanaged' + } + + def __init__(self, opportunistic=None, proactive=None, unmanaged=None): + """ + V1beta1VirtualMachinePoolUpdateStrategy - 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 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 V1beta1VirtualMachinePoolUpdateStrategy. + :rtype: V1beta1VirtualMachineOpportunisticUpdateStrategy + """ + return self._opportunistic + + @opportunistic.setter + def opportunistic(self, opportunistic): + """ + 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 V1beta1VirtualMachinePoolUpdateStrategy. + :type: V1beta1VirtualMachineOpportunisticUpdateStrategy + """ + + self._opportunistic = opportunistic + + @property + def proactive(self): + """ + Gets the proactive of this V1beta1VirtualMachinePoolUpdateStrategy. + Proactive update by forcing the VMs to restart during update + + :return: The proactive of this V1beta1VirtualMachinePoolUpdateStrategy. + :rtype: V1beta1VirtualMachinePoolProactiveUpdateStrategy + """ + return self._proactive + + @proactive.setter + def proactive(self, proactive): + """ + Sets the proactive of this V1beta1VirtualMachinePoolUpdateStrategy. + Proactive update by forcing the VMs to restart during update + + :param proactive: The proactive of this V1beta1VirtualMachinePoolUpdateStrategy. + :type: V1beta1VirtualMachinePoolProactiveUpdateStrategy + """ + + self._proactive = proactive + + @property + def unmanaged(self): + """ + 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 V1beta1VirtualMachinePoolUpdateStrategy. + :rtype: V1beta1VirtualMachinePoolUnmanagedStrategy + """ + return self._unmanaged + + @unmanaged.setter + def unmanaged(self, unmanaged): + """ + 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 V1beta1VirtualMachinePoolUpdateStrategy. + :type: V1beta1VirtualMachinePoolUnmanagedStrategy + """ + + 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, V1beta1VirtualMachinePoolUpdateStrategy): + return False + + return self.__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_preference.py b/kubevirt/models/v1beta1_virtual_machine_preference.py new file mode 100644 index 00000000..75d43542 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachinePreference(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachinePreferenceSpec' + } + + attribute_map = { + 'api_version': 'apiVersion', + 'kind': 'kind', + 'metadata': 'metadata', + 'spec': 'spec' + } + + def __init__(self, api_version=None, kind=None, metadata=None, spec=None): + """ + V1beta1VirtualMachinePreference - 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 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 V1beta1VirtualMachinePreference. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachinePreference. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + 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 V1beta1VirtualMachinePreference. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachinePreference. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachinePreference. + + :return: The metadata of this V1beta1VirtualMachinePreference. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachinePreference. + + :param metadata: The metadata of this V1beta1VirtualMachinePreference. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1VirtualMachinePreference. + Required spec describing the preferences + + :return: The spec of this V1beta1VirtualMachinePreference. + :rtype: V1beta1VirtualMachinePreferenceSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1VirtualMachinePreference. + Required spec describing the preferences + + :param spec: The spec of this V1beta1VirtualMachinePreference. + :type: V1beta1VirtualMachinePreferenceSpec + """ + 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, V1beta1VirtualMachinePreference): + return False + + return self.__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_preference_list.py b/kubevirt/models/v1beta1_virtual_machine_preference_list.py new file mode 100644 index 00000000..af9eb0d7 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachinePreferenceList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1VirtualMachinePreference]', + '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): + """ + V1beta1VirtualMachinePreferenceList - 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 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 V1beta1VirtualMachinePreferenceList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachinePreferenceList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1VirtualMachinePreferenceList. + + :return: The items of this V1beta1VirtualMachinePreferenceList. + :rtype: list[V1beta1VirtualMachinePreference] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1VirtualMachinePreferenceList. + + :param items: The items of this V1beta1VirtualMachinePreferenceList. + :type: list[V1beta1VirtualMachinePreference] + """ + 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 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 V1beta1VirtualMachinePreferenceList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachinePreferenceList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachinePreferenceList. + + :return: The metadata of this V1beta1VirtualMachinePreferenceList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachinePreferenceList. + + :param metadata: The metadata of this V1beta1VirtualMachinePreferenceList. + :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, V1beta1VirtualMachinePreferenceList): + return False + + return self.__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_preference_spec.py b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py new file mode 100644 index 00000000..c810caf9 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py @@ -0,0 +1,461 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1VirtualMachinePreferenceSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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)', + 'clock': 'V1beta1ClockPreferences', + 'cpu': 'V1beta1CPUPreferences', + 'devices': 'V1beta1DevicePreferences', + 'features': 'V1beta1FeaturePreferences', + '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', + 'volumes': 'V1beta1VolumePreferences' + } + + attribute_map = { + 'annotations': 'annotations', + 'clock': 'clock', + 'cpu': 'cpu', + 'devices': 'devices', + 'features': 'features', + '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_architecture=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 + self._features = None + 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 + self._volumes = None + + if annotations is not None: + self.annotations = annotations + 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 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: + 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 + + @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): + """ + Gets the clock of this V1beta1VirtualMachinePreferenceSpec. + Clock optionally defines preferences associated with the Clock attribute of a VirtualMachineInstance DomainSpec + + :return: The clock of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1ClockPreferences + """ + return self._clock + + @clock.setter + def clock(self, clock): + """ + 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 V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1ClockPreferences + """ + + self._clock = clock + + @property + def cpu(self): + """ + Gets the cpu of this V1beta1VirtualMachinePreferenceSpec. + CPU optionally defines preferences associated with the CPU attribute of a VirtualMachineInstance DomainSpec + + :return: The cpu of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1CPUPreferences + """ + return self._cpu + + @cpu.setter + def cpu(self, cpu): + """ + 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 V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1CPUPreferences + """ + + self._cpu = cpu + + @property + def devices(self): + """ + Gets the devices of this V1beta1VirtualMachinePreferenceSpec. + Devices optionally defines preferences associated with the Devices attribute of a VirtualMachineInstance DomainSpec + + :return: The devices of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1DevicePreferences + """ + return self._devices + + @devices.setter + def devices(self, devices): + """ + 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 V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1DevicePreferences + """ + + self._devices = devices + + @property + def features(self): + """ + Gets the features of this V1beta1VirtualMachinePreferenceSpec. + Features optionally defines preferences associated with the Features attribute of a VirtualMachineInstance DomainSpec + + :return: The features of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1FeaturePreferences + """ + return self._features + + @features.setter + def features(self, features): + """ + 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 V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1FeaturePreferences + """ + + self._features = features + + @property + def firmware(self): + """ + Gets the firmware of this V1beta1VirtualMachinePreferenceSpec. + Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec + + :return: The firmware of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1FirmwarePreferences + """ + return self._firmware + + @firmware.setter + def firmware(self, firmware): + """ + 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 V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1FirmwarePreferences + """ + + self._firmware = firmware + + @property + def machine(self): + """ + Gets the machine of this V1beta1VirtualMachinePreferenceSpec. + Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec + + :return: The machine of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1MachinePreferences + """ + return self._machine + + @machine.setter + def machine(self, machine): + """ + 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 V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1MachinePreferences + """ + + 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_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): + """ + 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): + """ + 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 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): + """ + Gets the volumes of this V1beta1VirtualMachinePreferenceSpec. + Volumes optionally defines preferences associated with the Volumes attribute of a VirtualMachineInstace DomainSpec + + :return: The volumes of this V1beta1VirtualMachinePreferenceSpec. + :rtype: V1beta1VolumePreferences + """ + return self._volumes + + @volumes.setter + def volumes(self, volumes): + """ + 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 V1beta1VirtualMachinePreferenceSpec. + :type: V1beta1VolumePreferences + """ + + 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, V1beta1VirtualMachinePreferenceSpec): + return False + + return self.__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_restore.py b/kubevirt/models/v1beta1_virtual_machine_restore.py new file mode 100644 index 00000000..9d047c97 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineRestore(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachineRestoreSpec', + 'status': 'V1beta1VirtualMachineRestoreStatus' + } + + 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): + """ + V1beta1VirtualMachineRestore - 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 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 V1beta1VirtualMachineRestore. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineRestore. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + 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 V1beta1VirtualMachineRestore. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineRestore. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineRestore. + + :return: The metadata of this V1beta1VirtualMachineRestore. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineRestore. + + :param metadata: The metadata of this V1beta1VirtualMachineRestore. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1VirtualMachineRestore. + + :return: The spec of this V1beta1VirtualMachineRestore. + :rtype: V1beta1VirtualMachineRestoreSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1VirtualMachineRestore. + + :param spec: The spec of this V1beta1VirtualMachineRestore. + :type: V1beta1VirtualMachineRestoreSpec + """ + 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 V1beta1VirtualMachineRestore. + + :return: The status of this V1beta1VirtualMachineRestore. + :rtype: V1beta1VirtualMachineRestoreStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1VirtualMachineRestore. + + :param status: The status of this V1beta1VirtualMachineRestore. + :type: V1beta1VirtualMachineRestoreStatus + """ + + 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, V1beta1VirtualMachineRestore): + return False + + return self.__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_restore_list.py b/kubevirt/models/v1beta1_virtual_machine_restore_list.py new file mode 100644 index 00000000..50b2c8c6 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineRestoreList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1VirtualMachineRestore]', + '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): + """ + V1beta1VirtualMachineRestoreList - 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 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 V1beta1VirtualMachineRestoreList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineRestoreList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1VirtualMachineRestoreList. + + :return: The items of this V1beta1VirtualMachineRestoreList. + :rtype: list[V1beta1VirtualMachineRestore] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1VirtualMachineRestoreList. + + :param items: The items of this V1beta1VirtualMachineRestoreList. + :type: list[V1beta1VirtualMachineRestore] + """ + 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 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 V1beta1VirtualMachineRestoreList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineRestoreList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineRestoreList. + + :return: The metadata of this V1beta1VirtualMachineRestoreList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineRestoreList. + + :param metadata: The metadata of this V1beta1VirtualMachineRestoreList. + :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, V1beta1VirtualMachineRestoreList): + return False + + return self.__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_restore_spec.py b/kubevirt/models/v1beta1_virtual_machine_restore_spec.py new file mode 100644 index 00000000..46e0c382 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_restore_spec.py @@ -0,0 +1,287 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1VirtualMachineRestoreSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[str]', + 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', + 'target_readiness_policy': 'str', + 'virtual_machine_snapshot_name': 'str', + 'volume_ownership_policy': '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', + '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_ownership_policy=None, volume_restore_overrides=None, volume_restore_policy=None): + """ + V1beta1VirtualMachineRestoreSpec - a model defined in Swagger + """ + + self._patches = None + 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 + + 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 + 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: + self.volume_restore_policy = volume_restore_policy + + @property + def patches(self): + """ + 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 V1beta1VirtualMachineRestoreSpec. + :rtype: list[str] + """ + return self._patches + + @patches.setter + def patches(self, patches): + """ + 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 V1beta1VirtualMachineRestoreSpec. + :type: list[str] + """ + + self._patches = patches + + @property + def target(self): + """ + Gets the target of this V1beta1VirtualMachineRestoreSpec. + initially only VirtualMachine type supported + + :return: The target of this V1beta1VirtualMachineRestoreSpec. + :rtype: K8sIoApiCoreV1TypedLocalObjectReference + """ + return self._target + + @target.setter + def target(self, target): + """ + Sets the target of this V1beta1VirtualMachineRestoreSpec. + initially only VirtualMachine type supported + + :param target: The target of this V1beta1VirtualMachineRestoreSpec. + :type: K8sIoApiCoreV1TypedLocalObjectReference + """ + if target is None: + raise ValueError("Invalid value for `target`, must not be `None`") + + 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): + """ + Gets the virtual_machine_snapshot_name of this V1beta1VirtualMachineRestoreSpec. + + :return: The virtual_machine_snapshot_name of this V1beta1VirtualMachineRestoreSpec. + :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 V1beta1VirtualMachineRestoreSpec. + + :param virtual_machine_snapshot_name: The virtual_machine_snapshot_name of this V1beta1VirtualMachineRestoreSpec. + :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 + + @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): + """ + 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 + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1VirtualMachineRestoreSpec): + return False + + return self.__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_restore_status.py b/kubevirt/models/v1beta1_virtual_machine_restore_status.py new file mode 100644 index 00000000..7bbc0644 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineRestoreStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1Condition]', + 'deleted_data_volumes': 'list[str]', + 'restore_time': 'K8sIoApimachineryPkgApisMetaV1Time', + 'restores': 'list[V1beta1VolumeRestore]' + } + + 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): + """ + V1beta1VirtualMachineRestoreStatus - 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 V1beta1VirtualMachineRestoreStatus. + + :return: The complete of this V1beta1VirtualMachineRestoreStatus. + :rtype: bool + """ + return self._complete + + @complete.setter + def complete(self, complete): + """ + Sets the complete of this V1beta1VirtualMachineRestoreStatus. + + :param complete: The complete of this V1beta1VirtualMachineRestoreStatus. + :type: bool + """ + + self._complete = complete + + @property + def conditions(self): + """ + Gets the conditions of this V1beta1VirtualMachineRestoreStatus. + + :return: The conditions of this V1beta1VirtualMachineRestoreStatus. + :rtype: list[V1beta1Condition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1beta1VirtualMachineRestoreStatus. + + :param conditions: The conditions of this V1beta1VirtualMachineRestoreStatus. + :type: list[V1beta1Condition] + """ + + self._conditions = conditions + + @property + def deleted_data_volumes(self): + """ + Gets the deleted_data_volumes of this V1beta1VirtualMachineRestoreStatus. + + :return: The deleted_data_volumes of this V1beta1VirtualMachineRestoreStatus. + :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 V1beta1VirtualMachineRestoreStatus. + + :param deleted_data_volumes: The deleted_data_volumes of this V1beta1VirtualMachineRestoreStatus. + :type: list[str] + """ + + self._deleted_data_volumes = deleted_data_volumes + + @property + def restore_time(self): + """ + Gets the restore_time of this V1beta1VirtualMachineRestoreStatus. + + :return: The restore_time of this V1beta1VirtualMachineRestoreStatus. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._restore_time + + @restore_time.setter + def restore_time(self, restore_time): + """ + Sets the restore_time of this V1beta1VirtualMachineRestoreStatus. + + :param restore_time: The restore_time of this V1beta1VirtualMachineRestoreStatus. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._restore_time = restore_time + + @property + def restores(self): + """ + Gets the restores of this V1beta1VirtualMachineRestoreStatus. + + :return: The restores of this V1beta1VirtualMachineRestoreStatus. + :rtype: list[V1beta1VolumeRestore] + """ + return self._restores + + @restores.setter + def restores(self, restores): + """ + Sets the restores of this V1beta1VirtualMachineRestoreStatus. + + :param restores: The restores of this V1beta1VirtualMachineRestoreStatus. + :type: list[V1beta1VolumeRestore] + """ + + 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, V1beta1VirtualMachineRestoreStatus): + return False + + return self.__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.py b/kubevirt/models/v1beta1_virtual_machine_snapshot.py new file mode 100644 index 00000000..e2c70e7c --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineSnapshot(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachineSnapshotSpec', + 'status': 'V1beta1VirtualMachineSnapshotStatus' + } + + 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): + """ + V1beta1VirtualMachineSnapshot - 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 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 V1beta1VirtualMachineSnapshot. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineSnapshot. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + 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 V1beta1VirtualMachineSnapshot. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineSnapshot. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineSnapshot. + + :return: The metadata of this V1beta1VirtualMachineSnapshot. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineSnapshot. + + :param metadata: The metadata of this V1beta1VirtualMachineSnapshot. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1VirtualMachineSnapshot. + + :return: The spec of this V1beta1VirtualMachineSnapshot. + :rtype: V1beta1VirtualMachineSnapshotSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1VirtualMachineSnapshot. + + :param spec: The spec of this V1beta1VirtualMachineSnapshot. + :type: V1beta1VirtualMachineSnapshotSpec + """ + 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 V1beta1VirtualMachineSnapshot. + + :return: The status of this V1beta1VirtualMachineSnapshot. + :rtype: V1beta1VirtualMachineSnapshotStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1VirtualMachineSnapshot. + + :param status: The status of this V1beta1VirtualMachineSnapshot. + :type: V1beta1VirtualMachineSnapshotStatus + """ + + 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, V1beta1VirtualMachineSnapshot): + return False + + return self.__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_content.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_content.py new file mode 100644 index 00000000..4a42efc3 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineSnapshotContent(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1VirtualMachineSnapshotContentSpec', + 'status': 'V1beta1VirtualMachineSnapshotContentStatus' + } + + 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): + """ + V1beta1VirtualMachineSnapshotContent - 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 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 V1beta1VirtualMachineSnapshotContent. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineSnapshotContent. + :type: str + """ + + self._api_version = api_version + + @property + def kind(self): + """ + 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 V1beta1VirtualMachineSnapshotContent. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineSnapshotContent. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineSnapshotContent. + + :return: The metadata of this V1beta1VirtualMachineSnapshotContent. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineSnapshotContent. + + :param metadata: The metadata of this V1beta1VirtualMachineSnapshotContent. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1VirtualMachineSnapshotContent. + + :return: The spec of this V1beta1VirtualMachineSnapshotContent. + :rtype: V1beta1VirtualMachineSnapshotContentSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1VirtualMachineSnapshotContent. + + :param spec: The spec of this V1beta1VirtualMachineSnapshotContent. + :type: V1beta1VirtualMachineSnapshotContentSpec + """ + 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 V1beta1VirtualMachineSnapshotContent. + + :return: The status of this V1beta1VirtualMachineSnapshotContent. + :rtype: V1beta1VirtualMachineSnapshotContentStatus + """ + return self._status + + @status.setter + def status(self, status): + """ + Sets the status of this V1beta1VirtualMachineSnapshotContent. + + :param status: The status of this V1beta1VirtualMachineSnapshotContent. + :type: V1beta1VirtualMachineSnapshotContentStatus + """ + + 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, V1beta1VirtualMachineSnapshotContent): + return False + + return self.__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_content_list.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_content_list.py new file mode 100644 index 00000000..a86b5abf --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineSnapshotContentList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1VirtualMachineSnapshotContent]', + '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): + """ + V1beta1VirtualMachineSnapshotContentList - 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 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 V1beta1VirtualMachineSnapshotContentList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineSnapshotContentList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1VirtualMachineSnapshotContentList. + + :return: The items of this V1beta1VirtualMachineSnapshotContentList. + :rtype: list[V1beta1VirtualMachineSnapshotContent] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1VirtualMachineSnapshotContentList. + + :param items: The items of this V1beta1VirtualMachineSnapshotContentList. + :type: list[V1beta1VirtualMachineSnapshotContent] + """ + 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 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 V1beta1VirtualMachineSnapshotContentList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineSnapshotContentList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineSnapshotContentList. + + :return: The metadata of this V1beta1VirtualMachineSnapshotContentList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineSnapshotContentList. + + :param metadata: The metadata of this V1beta1VirtualMachineSnapshotContentList. + :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, V1beta1VirtualMachineSnapshotContentList): + return False + + return self.__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_content_spec.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_content_spec.py new file mode 100644 index 00000000..aeca23ae --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineSnapshotContentSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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': 'V1beta1SourceSpec', + 'virtual_machine_snapshot_name': 'str', + 'volume_backups': 'list[V1beta1VolumeBackup]' + } + + 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): + """ + V1beta1VirtualMachineSnapshotContentSpec - 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 V1beta1VirtualMachineSnapshotContentSpec. + + :return: The source of this V1beta1VirtualMachineSnapshotContentSpec. + :rtype: V1beta1SourceSpec + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1beta1VirtualMachineSnapshotContentSpec. + + :param source: The source of this V1beta1VirtualMachineSnapshotContentSpec. + :type: V1beta1SourceSpec + """ + 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 V1beta1VirtualMachineSnapshotContentSpec. + + :return: The virtual_machine_snapshot_name of this V1beta1VirtualMachineSnapshotContentSpec. + :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 V1beta1VirtualMachineSnapshotContentSpec. + + :param virtual_machine_snapshot_name: The virtual_machine_snapshot_name of this V1beta1VirtualMachineSnapshotContentSpec. + :type: str + """ + + self._virtual_machine_snapshot_name = virtual_machine_snapshot_name + + @property + def volume_backups(self): + """ + Gets the volume_backups of this V1beta1VirtualMachineSnapshotContentSpec. + + :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 V1beta1VirtualMachineSnapshotContentSpec. + + :param volume_backups: The volume_backups of this V1beta1VirtualMachineSnapshotContentSpec. + :type: list[V1beta1VolumeBackup] + """ + + 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, V1beta1VirtualMachineSnapshotContentSpec): + return False + + return self.__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_content_status.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_content_status.py new file mode 100644 index 00000000..c1c671e1 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineSnapshotContentStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + 'error': 'V1beta1Error', + 'ready_to_use': 'bool', + 'volume_snapshot_status': 'list[V1beta1VolumeSnapshotStatus]' + } + + 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): + """ + V1beta1VirtualMachineSnapshotContentStatus - 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 V1beta1VirtualMachineSnapshotContentStatus. + + :return: The creation_time of this V1beta1VirtualMachineSnapshotContentStatus. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._creation_time + + @creation_time.setter + def creation_time(self, creation_time): + """ + Sets the creation_time of this V1beta1VirtualMachineSnapshotContentStatus. + + :param creation_time: The creation_time of this V1beta1VirtualMachineSnapshotContentStatus. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._creation_time = creation_time + + @property + def error(self): + """ + Gets the error of this V1beta1VirtualMachineSnapshotContentStatus. + + :return: The error of this V1beta1VirtualMachineSnapshotContentStatus. + :rtype: V1beta1Error + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this V1beta1VirtualMachineSnapshotContentStatus. + + :param error: The error of this V1beta1VirtualMachineSnapshotContentStatus. + :type: V1beta1Error + """ + + self._error = error + + @property + def ready_to_use(self): + """ + Gets the ready_to_use of this V1beta1VirtualMachineSnapshotContentStatus. + + :return: The ready_to_use of this V1beta1VirtualMachineSnapshotContentStatus. + :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 V1beta1VirtualMachineSnapshotContentStatus. + + :param ready_to_use: The ready_to_use of this V1beta1VirtualMachineSnapshotContentStatus. + :type: bool + """ + + self._ready_to_use = ready_to_use + + @property + def volume_snapshot_status(self): + """ + Gets the volume_snapshot_status of this V1beta1VirtualMachineSnapshotContentStatus. + + :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 V1beta1VirtualMachineSnapshotContentStatus. + + :param volume_snapshot_status: The volume_snapshot_status of this V1beta1VirtualMachineSnapshotContentStatus. + :type: list[V1beta1VolumeSnapshotStatus] + """ + + 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, V1beta1VirtualMachineSnapshotContentStatus): + return False + + return self.__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_list.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_list.py new file mode 100644 index 00000000..d7793a0e --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineSnapshotList(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1VirtualMachineSnapshot]', + '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): + """ + V1beta1VirtualMachineSnapshotList - 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 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 V1beta1VirtualMachineSnapshotList. + :rtype: str + """ + return self._api_version + + @api_version.setter + def api_version(self, api_version): + """ + 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 V1beta1VirtualMachineSnapshotList. + :type: str + """ + + self._api_version = api_version + + @property + def items(self): + """ + Gets the items of this V1beta1VirtualMachineSnapshotList. + + :return: The items of this V1beta1VirtualMachineSnapshotList. + :rtype: list[V1beta1VirtualMachineSnapshot] + """ + return self._items + + @items.setter + def items(self, items): + """ + Sets the items of this V1beta1VirtualMachineSnapshotList. + + :param items: The items of this V1beta1VirtualMachineSnapshotList. + :type: list[V1beta1VirtualMachineSnapshot] + """ + 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 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 V1beta1VirtualMachineSnapshotList. + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """ + 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 V1beta1VirtualMachineSnapshotList. + :type: str + """ + + self._kind = kind + + @property + def metadata(self): + """ + Gets the metadata of this V1beta1VirtualMachineSnapshotList. + + :return: The metadata of this V1beta1VirtualMachineSnapshotList. + :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineSnapshotList. + + :param metadata: The metadata of this V1beta1VirtualMachineSnapshotList. + :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, V1beta1VirtualMachineSnapshotList): + return False + + return self.__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_spec.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_spec.py new file mode 100644 index 00000000..b63fa4a5 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_snapshot_spec.py @@ -0,0 +1,178 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1VirtualMachineSnapshotSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + 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, failure_deadline=None, source=None): + """ + V1beta1VirtualMachineSnapshotSpec - 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 + def deletion_policy(self): + """ + Gets the deletion_policy of this V1beta1VirtualMachineSnapshotSpec. + + :return: The deletion_policy of this V1beta1VirtualMachineSnapshotSpec. + :rtype: str + """ + return self._deletion_policy + + @deletion_policy.setter + def deletion_policy(self, deletion_policy): + """ + Sets the deletion_policy of this V1beta1VirtualMachineSnapshotSpec. + + :param deletion_policy: The deletion_policy of this V1beta1VirtualMachineSnapshotSpec. + :type: str + """ + + self._deletion_policy = deletion_policy + + @property + def failure_deadline(self): + """ + 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 V1beta1VirtualMachineSnapshotSpec. + :rtype: K8sIoApimachineryPkgApisMetaV1Duration + """ + return self._failure_deadline + + @failure_deadline.setter + def failure_deadline(self, failure_deadline): + """ + 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 V1beta1VirtualMachineSnapshotSpec. + :type: K8sIoApimachineryPkgApisMetaV1Duration + """ + + self._failure_deadline = failure_deadline + + @property + def source(self): + """ + Gets the source of this V1beta1VirtualMachineSnapshotSpec. + + :return: The source of this V1beta1VirtualMachineSnapshotSpec. + :rtype: K8sIoApiCoreV1TypedLocalObjectReference + """ + return self._source + + @source.setter + def source(self, source): + """ + Sets the source of this V1beta1VirtualMachineSnapshotSpec. + + :param source: The source of this V1beta1VirtualMachineSnapshotSpec. + :type: K8sIoApiCoreV1TypedLocalObjectReference + """ + 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, V1beta1VirtualMachineSnapshotSpec): + return False + + return self.__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 new file mode 100644 index 00000000..b8231e14 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_snapshot_status.py @@ -0,0 +1,359 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1VirtualMachineSnapshotStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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[V1beta1Condition]', + 'creation_time': 'K8sIoApimachineryPkgApisMetaV1Time', + 'error': 'V1beta1Error', + 'indications': 'list[str]', + 'phase': 'str', + 'ready_to_use': 'bool', + 'snapshot_volumes': 'V1beta1SnapshotVolumesLists', + 'source_indications': 'list[V1beta1SourceIndication]', + 'source_uid': 'str', + 'virtual_machine_snapshot_content_name': 'str' + } + + attribute_map = { + 'conditions': 'conditions', + 'creation_time': 'creationTime', + 'error': 'error', + 'indications': 'indications', + '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_indications=None, source_uid=None, virtual_machine_snapshot_content_name=None): + """ + V1beta1VirtualMachineSnapshotStatus - a model defined in Swagger + """ + + self._conditions = None + self._creation_time = None + self._error = None + self._indications = None + 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 + + 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 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 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: + self.virtual_machine_snapshot_content_name = virtual_machine_snapshot_content_name + + @property + def conditions(self): + """ + Gets the conditions of this V1beta1VirtualMachineSnapshotStatus. + + :return: The conditions of this V1beta1VirtualMachineSnapshotStatus. + :rtype: list[V1beta1Condition] + """ + return self._conditions + + @conditions.setter + def conditions(self, conditions): + """ + Sets the conditions of this V1beta1VirtualMachineSnapshotStatus. + + :param conditions: The conditions of this V1beta1VirtualMachineSnapshotStatus. + :type: list[V1beta1Condition] + """ + + self._conditions = conditions + + @property + def creation_time(self): + """ + Gets the creation_time of this V1beta1VirtualMachineSnapshotStatus. + + :return: The creation_time of this V1beta1VirtualMachineSnapshotStatus. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._creation_time + + @creation_time.setter + def creation_time(self, creation_time): + """ + Sets the creation_time of this V1beta1VirtualMachineSnapshotStatus. + + :param creation_time: The creation_time of this V1beta1VirtualMachineSnapshotStatus. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._creation_time = creation_time + + @property + def error(self): + """ + Gets the error of this V1beta1VirtualMachineSnapshotStatus. + + :return: The error of this V1beta1VirtualMachineSnapshotStatus. + :rtype: V1beta1Error + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this V1beta1VirtualMachineSnapshotStatus. + + :param error: The error of this V1beta1VirtualMachineSnapshotStatus. + :type: V1beta1Error + """ + + self._error = error + + @property + 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] + """ + return self._indications + + @indications.setter + 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] + """ + + self._indications = indications + + @property + def phase(self): + """ + Gets the phase of this V1beta1VirtualMachineSnapshotStatus. + + :return: The phase of this V1beta1VirtualMachineSnapshotStatus. + :rtype: str + """ + return self._phase + + @phase.setter + def phase(self, phase): + """ + Sets the phase of this V1beta1VirtualMachineSnapshotStatus. + + :param phase: The phase of this V1beta1VirtualMachineSnapshotStatus. + :type: str + """ + + self._phase = phase + + @property + def ready_to_use(self): + """ + Gets the ready_to_use of this V1beta1VirtualMachineSnapshotStatus. + + :return: The ready_to_use of this V1beta1VirtualMachineSnapshotStatus. + :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 V1beta1VirtualMachineSnapshotStatus. + + :param ready_to_use: The ready_to_use of this V1beta1VirtualMachineSnapshotStatus. + :type: bool + """ + + self._ready_to_use = ready_to_use + + @property + def snapshot_volumes(self): + """ + Gets the snapshot_volumes of this V1beta1VirtualMachineSnapshotStatus. + + :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 V1beta1VirtualMachineSnapshotStatus. + + :param snapshot_volumes: The snapshot_volumes of this V1beta1VirtualMachineSnapshotStatus. + :type: V1beta1SnapshotVolumesLists + """ + + 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): + """ + Gets the source_uid of this V1beta1VirtualMachineSnapshotStatus. + + :return: The source_uid of this V1beta1VirtualMachineSnapshotStatus. + :rtype: str + """ + return self._source_uid + + @source_uid.setter + def source_uid(self, source_uid): + """ + Sets the source_uid of this V1beta1VirtualMachineSnapshotStatus. + + :param source_uid: The source_uid of this V1beta1VirtualMachineSnapshotStatus. + :type: str + """ + + self._source_uid = source_uid + + @property + def virtual_machine_snapshot_content_name(self): + """ + Gets the virtual_machine_snapshot_content_name of this V1beta1VirtualMachineSnapshotStatus. + + :return: The virtual_machine_snapshot_content_name of this V1beta1VirtualMachineSnapshotStatus. + :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 V1beta1VirtualMachineSnapshotStatus. + + :param virtual_machine_snapshot_content_name: The virtual_machine_snapshot_content_name of this V1beta1VirtualMachineSnapshotStatus. + :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, V1beta1VirtualMachineSnapshotStatus): + return False + + return self.__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_template_spec.py b/kubevirt/models/v1beta1_virtual_machine_template_spec.py new file mode 100644 index 00000000..9d57ceb2 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VirtualMachineTemplateSpec(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1VirtualMachineTemplateSpec - 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 V1beta1VirtualMachineTemplateSpec. + + :return: The metadata of this V1beta1VirtualMachineTemplateSpec. + :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + return self._metadata + + @metadata.setter + def metadata(self, metadata): + """ + Sets the metadata of this V1beta1VirtualMachineTemplateSpec. + + :param metadata: The metadata of this V1beta1VirtualMachineTemplateSpec. + :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta + """ + + self._metadata = metadata + + @property + def spec(self): + """ + Gets the spec of this V1beta1VirtualMachineTemplateSpec. + VirtualMachineSpec contains the VirtualMachine specification. + + :return: The spec of this V1beta1VirtualMachineTemplateSpec. + :rtype: V1VirtualMachineSpec + """ + return self._spec + + @spec.setter + def spec(self, spec): + """ + Sets the spec of this V1beta1VirtualMachineTemplateSpec. + VirtualMachineSpec contains the VirtualMachine specification. + + :param spec: The spec of this V1beta1VirtualMachineTemplateSpec. + :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, V1beta1VirtualMachineTemplateSpec): + return False + + return self.__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_volume_backup.py b/kubevirt/models/v1beta1_volume_backup.py new file mode 100644 index 00000000..4237057c --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VolumeBackup(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'persistent_volume_claim': 'V1beta1PersistentVolumeClaim', + 'volume_name': 'str', + 'volume_snapshot_name': 'str' + } + + attribute_map = { + 'persistent_volume_claim': 'persistentVolumeClaim', + 'volume_name': 'volumeName', + 'volume_snapshot_name': 'volumeSnapshotName' + } + + def __init__(self, persistent_volume_claim=None, volume_name='', volume_snapshot_name=None): + """ + V1beta1VolumeBackup - a model defined in Swagger + """ + + self._persistent_volume_claim = None + self._volume_name = None + self._volume_snapshot_name = None + + 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 persistent_volume_claim(self): + """ + Gets the persistent_volume_claim of this V1beta1VolumeBackup. + + :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 V1beta1VolumeBackup. + + :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`") + + self._persistent_volume_claim = persistent_volume_claim + + @property + def volume_name(self): + """ + Gets the volume_name of this V1beta1VolumeBackup. + + :return: The volume_name of this V1beta1VolumeBackup. + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """ + Sets the volume_name of this V1beta1VolumeBackup. + + :param volume_name: The volume_name of this V1beta1VolumeBackup. + :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 V1beta1VolumeBackup. + + :return: The volume_snapshot_name of this V1beta1VolumeBackup. + :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 V1beta1VolumeBackup. + + :param volume_snapshot_name: The volume_snapshot_name of this V1beta1VolumeBackup. + :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, V1beta1VolumeBackup): + return False + + return self.__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_volume_preferences.py b/kubevirt/models/v1beta1_volume_preferences.py new file mode 100644 index 00000000..d3617bc2 --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VolumePreferences(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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): + """ + V1beta1VolumePreferences - 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 V1beta1VolumePreferences. + PreffereedStorageClassName optionally defines the preferred storageClass + + :return: The preferred_storage_class_name of this V1beta1VolumePreferences. + :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 V1beta1VolumePreferences. + PreffereedStorageClassName optionally defines the preferred storageClass + + :param preferred_storage_class_name: The preferred_storage_class_name of this V1beta1VolumePreferences. + :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, V1beta1VolumePreferences): + return False + + return self.__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_volume_restore.py b/kubevirt/models/v1beta1_volume_restore.py new file mode 100644 index 00000000..23f7ec4d --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VolumeRestore(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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='', volume_name='', volume_snapshot_name=''): + """ + V1beta1VolumeRestore - 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 V1beta1VolumeRestore. + + :return: The data_volume_name of this V1beta1VolumeRestore. + :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 V1beta1VolumeRestore. + + :param data_volume_name: The data_volume_name of this V1beta1VolumeRestore. + :type: str + """ + + self._data_volume_name = data_volume_name + + @property + def persistent_volume_claim(self): + """ + Gets the persistent_volume_claim of this V1beta1VolumeRestore. + + :return: The persistent_volume_claim of this V1beta1VolumeRestore. + :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 V1beta1VolumeRestore. + + :param persistent_volume_claim: The persistent_volume_claim of this V1beta1VolumeRestore. + :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 V1beta1VolumeRestore. + + :return: The volume_name of this V1beta1VolumeRestore. + :rtype: str + """ + return self._volume_name + + @volume_name.setter + def volume_name(self, volume_name): + """ + Sets the volume_name of this V1beta1VolumeRestore. + + :param volume_name: The volume_name of this V1beta1VolumeRestore. + :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 V1beta1VolumeRestore. + + :return: The volume_snapshot_name of this V1beta1VolumeRestore. + :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 V1beta1VolumeRestore. + + :param volume_snapshot_name: The volume_snapshot_name of this V1beta1VolumeRestore. + :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, V1beta1VolumeRestore): + return False + + return self.__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_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/kubevirt/models/v1beta1_volume_snapshot_status.py b/kubevirt/models/v1beta1_volume_snapshot_status.py new file mode 100644 index 00000000..539bdede --- /dev/null +++ b/kubevirt/models/v1beta1_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 V1beta1VolumeSnapshotStatus(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + 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', + 'error': 'V1beta1Error', + '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=''): + """ + V1beta1VolumeSnapshotStatus - 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 V1beta1VolumeSnapshotStatus. + + :return: The creation_time of this V1beta1VolumeSnapshotStatus. + :rtype: K8sIoApimachineryPkgApisMetaV1Time + """ + return self._creation_time + + @creation_time.setter + def creation_time(self, creation_time): + """ + Sets the creation_time of this V1beta1VolumeSnapshotStatus. + + :param creation_time: The creation_time of this V1beta1VolumeSnapshotStatus. + :type: K8sIoApimachineryPkgApisMetaV1Time + """ + + self._creation_time = creation_time + + @property + def error(self): + """ + Gets the error of this V1beta1VolumeSnapshotStatus. + + :return: The error of this V1beta1VolumeSnapshotStatus. + :rtype: V1beta1Error + """ + return self._error + + @error.setter + def error(self, error): + """ + Sets the error of this V1beta1VolumeSnapshotStatus. + + :param error: The error of this V1beta1VolumeSnapshotStatus. + :type: V1beta1Error + """ + + self._error = error + + @property + def ready_to_use(self): + """ + Gets the ready_to_use of this V1beta1VolumeSnapshotStatus. + + :return: The ready_to_use of this V1beta1VolumeSnapshotStatus. + :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 V1beta1VolumeSnapshotStatus. + + :param ready_to_use: The ready_to_use of this V1beta1VolumeSnapshotStatus. + :type: bool + """ + + self._ready_to_use = ready_to_use + + @property + def volume_snapshot_name(self): + """ + Gets the volume_snapshot_name of this V1beta1VolumeSnapshotStatus. + + :return: The volume_snapshot_name of this V1beta1VolumeSnapshotStatus. + :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 V1beta1VolumeSnapshotStatus. + + :param volume_snapshot_name: The volume_snapshot_name of this V1beta1VolumeSnapshotStatus. + :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, V1beta1VolumeSnapshotStatus): + return False + + 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 8e634cbf..07c51b32 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 = "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 ea8fff81..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": "v0.6.0-347-gfff9fda" +"packageVersion": "v1.8.0-beta.0-476-ga23a67089c" } diff --git a/test/test_default_api.py b/test/test_default_api.py index 0db1d439..9dd8f915 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -31,339 +31,2091 @@ def setUp(self): def tearDown(self): pass - def test_check_health(self): + def test_create_migration_policy(self): """ - Test case for check_health + Test case for create_migration_policy - Health endpoint + + """ + pass + + def test_create_namespaced_kube_virt(self): + """ + Test case for create_namespaced_kube_virt + + + """ + pass + + 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 + + def test_create_namespaced_virtual_machine_export(self): + """ + Test case for create_namespaced_virtual_machine_export + + + """ + pass + + def test_create_namespaced_virtual_machine_instance(self): + """ + Test case for create_namespaced_virtual_machine_instance + + + """ + pass + + def test_create_namespaced_virtual_machine_instance_migration(self): + """ + Test case for create_namespaced_virtual_machine_instance_migration + + + """ + pass + + def test_create_namespaced_virtual_machine_instance_preset(self): + """ + Test case for create_namespaced_virtual_machine_instance_preset + + + """ + pass + + 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 + + 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 + + def test_create_namespaced_virtual_machine_restore(self): + """ + Test case for create_namespaced_virtual_machine_restore + + + """ + 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 + + def test_create_virtual_machine_clone(self): + """ + Test case for create_virtual_machine_clone + + + """ + pass + + def test_create_virtual_machine_cluster_instancetype(self): + """ + Test case for create_virtual_machine_cluster_instancetype + + + """ + pass + + def test_create_virtual_machine_cluster_preference(self): + """ + Test case for create_virtual_machine_cluster_preference + + + """ + pass + + def test_delete_collection_migration_policy(self): + """ + Test case for delete_collection_migration_policy + + + """ + pass + + def test_delete_collection_namespaced_kube_virt(self): + """ + Test case for delete_collection_namespaced_kube_virt + + + """ + pass + + 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 + + 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_instance(self): + """ + Test case for delete_collection_namespaced_virtual_machine_instance + + + """ + pass + + def test_delete_collection_namespaced_virtual_machine_instance_migration(self): + """ + Test case for delete_collection_namespaced_virtual_machine_instance_migration + + + """ + pass + + def test_delete_collection_namespaced_virtual_machine_instance_preset(self): + """ + Test case for delete_collection_namespaced_virtual_machine_instance_preset + + + """ + pass + + 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 + + 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 + + def test_delete_collection_namespaced_virtual_machine_restore(self): + """ + Test case for delete_collection_namespaced_virtual_machine_restore + + + """ + 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 + + def test_delete_collection_virtual_machine_clone(self): + """ + Test case for delete_collection_virtual_machine_clone + + + """ + pass + + def test_delete_collection_virtual_machine_cluster_instancetype(self): + """ + Test case for delete_collection_virtual_machine_cluster_instancetype + + + """ + pass + + def test_delete_collection_virtual_machine_cluster_preference(self): + """ + Test case for delete_collection_virtual_machine_cluster_preference + + + """ + pass + + def test_delete_migration_policy(self): + """ + Test case for delete_migration_policy + + + """ + pass + + def test_delete_namespaced_kube_virt(self): + """ + Test case for delete_namespaced_kube_virt + + + """ + pass + + 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 + + def test_delete_namespaced_virtual_machine_export(self): + """ + Test case for delete_namespaced_virtual_machine_export + + + """ + pass + + def test_delete_namespaced_virtual_machine_instance(self): + """ + Test case for delete_namespaced_virtual_machine_instance + + + """ + pass + + def test_delete_namespaced_virtual_machine_instance_migration(self): + """ + Test case for delete_namespaced_virtual_machine_instance_migration + + + """ + pass + + def test_delete_namespaced_virtual_machine_instance_preset(self): + """ + Test case for delete_namespaced_virtual_machine_instance_preset + + + """ + pass + + 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 + + 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 + + def test_delete_namespaced_virtual_machine_restore(self): + """ + Test case for delete_namespaced_virtual_machine_restore + + + """ + 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 + + def test_delete_virtual_machine_clone(self): + """ + Test case for delete_virtual_machine_clone + + + """ + pass + + def test_delete_virtual_machine_cluster_instancetype(self): + """ + Test case for delete_virtual_machine_cluster_instancetype + + + """ + pass + + def test_delete_virtual_machine_cluster_preference(self): + """ + Test case for delete_virtual_machine_cluster_preference + + + """ + pass + + def test_func15(self): + """ + Test case for func15 + + + """ + pass + + 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 + + def test_get_api_group_clone_kubevirt_io(self): + """ + Test case for get_api_group_clone_kubevirt_io + + + """ + pass + + def test_get_api_group_export_kubevirt_io(self): + """ + Test case for get_api_group_export_kubevirt_io + + + """ + pass + + def test_get_api_group_instancetype_kubevirt_io(self): + """ + Test case for get_api_group_instancetype_kubevirt_io + + + """ + pass + + def test_get_api_group_kubevirt_io(self): + """ + Test case for get_api_group_kubevirt_io + + + """ + pass + + 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 + + def test_get_api_group_pool_kubevirt_io(self): + """ + Test case for get_api_group_pool_kubevirt_io + + + """ + pass + + 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 + + def test_get_api_resources_clone_kubevirt_io_v1beta1(self): + """ + Test case for get_api_resources_clone_kubevirt_io_v1beta1 + + + """ + pass + + def test_get_api_resources_export_kubevirt_io_v1beta1(self): + """ + Test case for get_api_resources_export_kubevirt_io_v1beta1 + + + """ + pass + + def test_get_api_resources_instancetype_kubevirt_io_v1beta1(self): + """ + Test case for get_api_resources_instancetype_kubevirt_io_v1beta1 + + + """ + pass + + 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 + + def test_get_api_resources_pool_kubevirt_io_v1beta1(self): + """ + Test case for get_api_resources_pool_kubevirt_io_v1beta1 + + + """ + pass + + def test_get_api_resources_snapshot_kubevirt_io_v1beta1(self): + """ + Test case for get_api_resources_snapshot_kubevirt_io_v1beta1 + + + """ + pass + + 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 + + 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 + + def test_list_namespaced_kube_virt(self): + """ + Test case for list_namespaced_kube_virt + + + """ + pass + + 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 + + def test_list_namespaced_virtual_machine_export(self): + """ + Test case for list_namespaced_virtual_machine_export + + + """ + pass + + def test_list_namespaced_virtual_machine_instance(self): + """ + Test case for list_namespaced_virtual_machine_instance + + + """ + pass + + def test_list_namespaced_virtual_machine_instance_migration(self): + """ + Test case for list_namespaced_virtual_machine_instance_migration + + + """ + pass + + def test_list_namespaced_virtual_machine_instance_preset(self): + """ + Test case for list_namespaced_virtual_machine_instance_preset + + + """ + pass + + 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 + + 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 + + def test_list_namespaced_virtual_machine_restore(self): + """ + Test case for list_namespaced_virtual_machine_restore + + + """ + 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 + + def test_list_virtual_machine_backup_for_all_namespaces(self): + """ + Test case for list_virtual_machine_backup_for_all_namespaces + + + """ + pass + + def test_list_virtual_machine_clone(self): + """ + Test case for list_virtual_machine_clone + + + """ + pass + + def test_list_virtual_machine_cluster_instancetype(self): + """ + Test case for list_virtual_machine_cluster_instancetype + + + """ + pass + + 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 + + def test_list_virtual_machine_for_all_namespaces(self): + """ + Test case for list_virtual_machine_for_all_namespaces + + + """ + pass + + def test_list_virtual_machine_instance_for_all_namespaces(self): + """ + Test case for list_virtual_machine_instance_for_all_namespaces + + + """ + pass + + def test_list_virtual_machine_instance_migration_for_all_namespaces(self): + """ + Test case for list_virtual_machine_instance_migration_for_all_namespaces + + + """ + pass + + def test_list_virtual_machine_instance_preset_for_all_namespaces(self): + """ + Test case for list_virtual_machine_instance_preset_for_all_namespaces + + + """ + pass + + 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 + + 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 + + def test_list_virtual_machine_restore_for_all_namespaces(self): + """ + Test case for list_virtual_machine_restore_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 + + def test_patch_migration_policy(self): + """ + Test case for patch_migration_policy + + + """ + pass + + def test_patch_namespaced_kube_virt(self): + """ + Test case for patch_namespaced_kube_virt + + + """ + pass + + 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 + + def test_patch_namespaced_virtual_machine_export(self): + """ + Test case for patch_namespaced_virtual_machine_export + + + """ + pass + + def test_patch_namespaced_virtual_machine_instance(self): + """ + Test case for patch_namespaced_virtual_machine_instance + + + """ + pass + + def test_patch_namespaced_virtual_machine_instance_migration(self): + """ + Test case for patch_namespaced_virtual_machine_instance_migration + + + """ + pass + + def test_patch_namespaced_virtual_machine_instance_preset(self): + """ + Test case for patch_namespaced_virtual_machine_instance_preset + + + """ + pass + + 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 + + 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 + + def test_patch_namespaced_virtual_machine_restore(self): + """ + Test case for patch_namespaced_virtual_machine_restore + + + """ + 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 + + def test_patch_virtual_machine_clone(self): + """ + Test case for patch_virtual_machine_clone + + + """ + pass + + def test_patch_virtual_machine_cluster_instancetype(self): + """ + Test case for patch_virtual_machine_cluster_instancetype + + + """ + pass + + def test_patch_virtual_machine_cluster_preference(self): + """ + Test case for patch_virtual_machine_cluster_preference + + + """ + pass + + def test_read_migration_policy(self): + """ + Test case for read_migration_policy + + + """ + pass + + def test_read_namespaced_kube_virt(self): + """ + Test case for read_namespaced_kube_virt + + + """ + pass + + 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 + + def test_read_namespaced_virtual_machine_export(self): + """ + Test case for read_namespaced_virtual_machine_export + + + """ + pass + + def test_read_namespaced_virtual_machine_instance(self): + """ + Test case for read_namespaced_virtual_machine_instance + + + """ + pass + + def test_read_namespaced_virtual_machine_instance_migration(self): + """ + Test case for read_namespaced_virtual_machine_instance_migration + + + """ + pass + + def test_read_namespaced_virtual_machine_instance_preset(self): + """ + Test case for read_namespaced_virtual_machine_instance_preset + + + """ + pass + + 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 + + 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 + + def test_read_namespaced_virtual_machine_restore(self): + """ + Test case for read_namespaced_virtual_machine_restore + + + """ + 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 + + def test_read_virtual_machine_clone(self): + """ + Test case for read_virtual_machine_clone + + + """ + pass + + def test_read_virtual_machine_cluster_instancetype(self): + """ + Test case for read_virtual_machine_cluster_instancetype + + + """ + pass + + def test_read_virtual_machine_cluster_preference(self): + """ + Test case for read_virtual_machine_cluster_preference + + + """ + pass + + def test_replace_migration_policy(self): + """ + Test case for replace_migration_policy + + + """ + pass + + def test_replace_namespaced_kube_virt(self): + """ + Test case for replace_namespaced_kube_virt + + + """ + pass + + 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 + + def test_replace_namespaced_virtual_machine_export(self): + """ + Test case for replace_namespaced_virtual_machine_export + + + """ + pass + + def test_replace_namespaced_virtual_machine_instance(self): + """ + Test case for replace_namespaced_virtual_machine_instance + + + """ + pass + + def test_replace_namespaced_virtual_machine_instance_migration(self): + """ + Test case for replace_namespaced_virtual_machine_instance_migration + + + """ + pass + + def test_replace_namespaced_virtual_machine_instance_preset(self): + """ + Test case for replace_namespaced_virtual_machine_instance_preset + + + """ + pass + + 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 + + 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 + + def test_replace_namespaced_virtual_machine_restore(self): + """ + Test case for replace_namespaced_virtual_machine_restore + + + """ + 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 + + def test_replace_virtual_machine_clone(self): + """ + Test case for replace_virtual_machine_clone + + + """ + pass + + def test_replace_virtual_machine_cluster_instancetype(self): + """ + Test case for replace_virtual_machine_cluster_instancetype + + + """ + pass + + 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 + + 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_expand_spec(self): + """ + Test case for v1_expand_spec + + + """ + pass + + def test_v1_filesystemlist(self): + """ + Test case for v1_filesystemlist + + + """ + pass + + 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 + + def test_v1_guestfs(self): + """ + Test case for v1_guestfs + + + """ + pass + + def test_v1_guestosinfo(self): + """ + Test case for v1_guestosinfo + + + """ + pass + + def test_v1_memory_dump(self): + """ + Test case for v1_memory_dump + + + """ + 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_redefine_checkpoint(self): + """ + Test case for v1_redefine_checkpoint + + + """ + pass + + 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 + + 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 + + def test_v1_soft_reboot(self): + """ + Test case for v1_soft_reboot + + + """ + 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_unfreeze(self): + """ + Test case for v1_unfreeze + + + """ + 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_v1_vnc_screenshot(self): + """ + Test case for v1_vnc_screenshot + + + """ + pass + + def test_v1_vsock(self): + """ + Test case for v1_vsock + + + """ + pass + + def test_v1alpha3_backup(self): + """ + Test case for v1alpha3_backup + + + """ + 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_expand_spec(self): + """ + Test case for v1alpha3_expand_spec + + + """ + pass + + def test_v1alpha3_filesystemlist(self): + """ + Test case for v1alpha3_filesystemlist + + + """ + pass + + def test_v1alpha3_freeze(self): + """ + Test case for v1alpha3_freeze + + + """ + pass + + def test_v1alpha3_guestfs(self): + """ + Test case for v1alpha3_guestfs + + + """ + pass + + def test_v1alpha3_guestosinfo(self): + """ + Test case for v1alpha3_guestosinfo + + + """ + pass + + def test_v1alpha3_memory_dump(self): + """ + Test case for v1alpha3_memory_dump + + + """ + 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_redefine_checkpoint(self): + """ + Test case for v1alpha3_redefine_checkpoint + + + """ + pass + + 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 + + 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 + + def test_v1alpha3_soft_reboot(self): + """ + Test case for v1alpha3_soft_reboot + + + """ + 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_unfreeze(self): + """ + Test case for v1alpha3_unfreeze + + + """ + pass + + def test_v1alpha3_unpause(self): + """ + Test case for v1alpha3_unpause + + """ pass - def test_console(self): + def test_v1alpha3_userlist(self): """ - Test case for console + Test case for v1alpha3_userlist - Open a websocket connection to a serial console on the specified VirtualMachineInstance. + """ pass - def test_create_namespaced_virtual_machine(self): + def test_v1alpha3_version(self): """ - Test case for create_namespaced_virtual_machine + Test case for v1alpha3_version - Create a VirtualMachine object. + """ pass - def test_create_namespaced_virtual_machine_instance(self): + def test_v1alpha3_vnc(self): """ - Test case for create_namespaced_virtual_machine_instance + Test case for v1alpha3_vnc - Create a VirtualMachineInstance object. + """ pass - def test_create_namespaced_virtual_machine_instance_preset(self): + def test_v1alpha3_vnc_screenshot(self): """ - Test case for create_namespaced_virtual_machine_instance_preset + Test case for v1alpha3_vnc_screenshot - Create a VirtualMachineInstancePreset object. + """ pass - def test_create_namespaced_virtual_machine_instance_replica_set(self): + def test_v1alpha3_vsock(self): """ - Test case for create_namespaced_virtual_machine_instance_replica_set + Test case for v1alpha3_vsock - Create a VirtualMachineInstanceReplicaSet object. + """ pass - def test_delete_collection_namespaced_virtual_machine(self): + def test_v1alpha3dump_cluster_profiler(self): """ - Test case for delete_collection_namespaced_virtual_machine + Test case for v1alpha3dump_cluster_profiler - Delete a collection of VirtualMachine objects. + """ pass - def test_delete_collection_namespaced_virtual_machine_instance(self): + def test_v1alpha3get_api_sub_resources(self): """ - Test case for delete_collection_namespaced_virtual_machine_instance + Test case for v1alpha3get_api_sub_resources - Delete a collection of VirtualMachineInstance objects. + """ pass - def test_delete_collection_namespaced_virtual_machine_instance_preset(self): + def test_v1alpha3start_cluster_profiler(self): """ - Test case for delete_collection_namespaced_virtual_machine_instance_preset + Test case for v1alpha3start_cluster_profiler - Delete a collection of VirtualMachineInstancePreset objects. + """ pass - def test_delete_collection_namespaced_virtual_machine_instance_replica_set(self): + def test_v1alpha3stop_cluster_profiler(self): """ - Test case for delete_collection_namespaced_virtual_machine_instance_replica_set + Test case for v1alpha3stop_cluster_profiler - Delete a collection of VirtualMachineInstanceReplicaSet objects. + """ pass - def test_delete_namespaced_virtual_machine(self): + def test_v1alpha3usbredir(self): """ - Test case for delete_namespaced_virtual_machine + Test case for v1alpha3usbredir - Delete a VirtualMachine object. + """ pass - def test_delete_namespaced_virtual_machine_instance(self): + def test_v1alpha3vm_addvolume(self): """ - Test case for delete_namespaced_virtual_machine_instance + Test case for v1alpha3vm_addvolume - Delete a VirtualMachineInstance object. + """ pass - def test_delete_namespaced_virtual_machine_instance_preset(self): + def test_v1alpha3vm_evacuatecancel(self): """ - Test case for delete_namespaced_virtual_machine_instance_preset + Test case for v1alpha3vm_evacuatecancel - Delete a VirtualMachineInstancePreset object. + """ pass - def test_delete_namespaced_virtual_machine_instance_replica_set(self): + def test_v1alpha3vm_expand_spec(self): """ - Test case for delete_namespaced_virtual_machine_instance_replica_set + Test case for v1alpha3vm_expand_spec - Delete a VirtualMachineInstanceReplicaSet object. + """ pass - def test_get_api_group(self): + def test_v1alpha3vm_objectgraph(self): """ - Test case for get_api_group + Test case for v1alpha3vm_objectgraph - Get a KubeVirt API GroupList + """ pass - def test_get_api_group_0(self): + def test_v1alpha3vm_port_forward(self): """ - Test case for get_api_group_0 + Test case for v1alpha3vm_port_forward - Get a KubeVirt API group + """ pass - def test_get_api_group_1(self): + def test_v1alpha3vm_port_forward_with_protocol(self): """ - Test case for get_api_group_1 + Test case for v1alpha3vm_port_forward_with_protocol - Get a KubeVirt API Group + """ pass - def test_get_api_resources(self): + def test_v1alpha3vm_removevolume(self): """ - Test case for get_api_resources + Test case for v1alpha3vm_removevolume - Get KubeVirt API Resources + """ pass - def test_get_api_resources_0(self): + def test_v1alpha3vmi_addvolume(self): """ - Test case for get_api_resources_0 + Test case for v1alpha3vmi_addvolume - Get a KubeVirt API resources + """ pass - def test_list_namespaced_virtual_machine(self): + def test_v1alpha3vmi_evacuatecancel(self): """ - Test case for list_namespaced_virtual_machine + Test case for v1alpha3vmi_evacuatecancel - Get a list of VirtualMachine objects. + """ pass - def test_list_namespaced_virtual_machine_instance(self): + def test_v1alpha3vmi_objectgraph(self): """ - Test case for list_namespaced_virtual_machine_instance + Test case for v1alpha3vmi_objectgraph - Get a list of VirtualMachineInstance objects. + """ pass - def test_list_namespaced_virtual_machine_instance_preset(self): + def test_v1alpha3vmi_port_forward(self): """ - Test case for list_namespaced_virtual_machine_instance_preset + Test case for v1alpha3vmi_port_forward - Get a list of VirtualMachineInstancePreset objects. + """ pass - def test_list_namespaced_virtual_machine_instance_replica_set(self): + def test_v1alpha3vmi_port_forward_with_protocol(self): """ - Test case for list_namespaced_virtual_machine_instance_replica_set + Test case for v1alpha3vmi_port_forward_with_protocol - Get a list of VirtualMachineInstanceReplicaSet objects. + """ pass - def test_list_virtual_machine_for_all_namespaces(self): + def test_v1alpha3vmi_removevolume(self): """ - Test case for list_virtual_machine_for_all_namespaces + Test case for v1alpha3vmi_removevolume - Get a list of all VirtualMachine objects. + """ pass - def test_list_virtual_machine_instance_for_all_namespaces(self): + def test_v1dump_cluster_profiler(self): """ - Test case for list_virtual_machine_instance_for_all_namespaces + Test case for v1dump_cluster_profiler - Get a list of all VirtualMachineInstance objects. + """ pass - def test_list_virtual_machine_instance_preset_for_all_namespaces(self): + def test_v1get_api_sub_resources(self): """ - Test case for list_virtual_machine_instance_preset_for_all_namespaces + Test case for v1get_api_sub_resources - Get a list of all VirtualMachineInstancePreset objects. + """ pass - def test_list_virtual_machine_instance_replica_set_for_all_namespaces(self): + def test_v1start_cluster_profiler(self): """ - Test case for list_virtual_machine_instance_replica_set_for_all_namespaces + Test case for v1start_cluster_profiler - Get a list of all VirtualMachineInstanceReplicaSet objects. + """ pass - def test_patch_namespaced_virtual_machine(self): + def test_v1stop_cluster_profiler(self): """ - Test case for patch_namespaced_virtual_machine + Test case for v1stop_cluster_profiler - Patch a VirtualMachine object. + """ pass - def test_patch_namespaced_virtual_machine_instance(self): + def test_v1usbredir(self): """ - Test case for patch_namespaced_virtual_machine_instance + Test case for v1usbredir - Patch a VirtualMachineInstance object. + """ pass - def test_patch_namespaced_virtual_machine_instance_preset(self): + def test_v1vm_addvolume(self): """ - Test case for patch_namespaced_virtual_machine_instance_preset + Test case for v1vm_addvolume - Patch a VirtualMachineInstancePreset object. + """ pass - def test_patch_namespaced_virtual_machine_instance_replica_set(self): + def test_v1vm_evacuatecancel(self): """ - Test case for patch_namespaced_virtual_machine_instance_replica_set + Test case for v1vm_evacuatecancel - Patch a VirtualMachineInstanceReplicaSet object. + """ pass - def test_read_namespaced_virtual_machine(self): + def test_v1vm_expand_spec(self): """ - Test case for read_namespaced_virtual_machine + Test case for v1vm_expand_spec - Get a VirtualMachine object. + """ pass - def test_read_namespaced_virtual_machine_instance(self): + def test_v1vm_objectgraph(self): """ - Test case for read_namespaced_virtual_machine_instance + Test case for v1vm_objectgraph - Get a VirtualMachineInstance object. + """ pass - def test_read_namespaced_virtual_machine_instance_preset(self): + def test_v1vm_port_forward(self): """ - Test case for read_namespaced_virtual_machine_instance_preset + Test case for v1vm_port_forward - Get a VirtualMachineInstancePreset object. + """ pass - def test_read_namespaced_virtual_machine_instance_replica_set(self): + def test_v1vm_port_forward_with_protocol(self): """ - Test case for read_namespaced_virtual_machine_instance_replica_set + Test case for v1vm_port_forward_with_protocol - Get a VirtualMachineInstanceReplicaSet object. + """ pass - def test_replace_namespaced_virtual_machine(self): + def test_v1vm_removevolume(self): """ - Test case for replace_namespaced_virtual_machine + Test case for v1vm_removevolume - Update a VirtualMachine object. + """ pass - def test_replace_namespaced_virtual_machine_instance(self): + def test_v1vmi_addvolume(self): """ - Test case for replace_namespaced_virtual_machine_instance + Test case for v1vmi_addvolume + + + """ + pass + + def test_v1vmi_evacuatecancel(self): + """ + Test case for v1vmi_evacuatecancel - Update a VirtualMachineInstance object. + """ pass - def test_replace_namespaced_virtual_machine_instance_preset(self): + def test_v1vmi_objectgraph(self): """ - Test case for replace_namespaced_virtual_machine_instance_preset + Test case for v1vmi_objectgraph - Update a VirtualMachineInstancePreset object. + """ pass - def test_replace_namespaced_virtual_machine_instance_replica_set(self): + def test_v1vmi_port_forward(self): """ - Test case for replace_namespaced_virtual_machine_instance_replica_set + Test case for v1vmi_port_forward + + + """ + pass + + def test_v1vmi_port_forward_with_protocol(self): + """ + Test case for v1vmi_port_forward_with_protocol + + + """ + pass + + def test_v1vmi_removevolume(self): + """ + Test case for v1vmi_removevolume - Update a VirtualMachineInstanceReplicaSet object. + """ pass - def test_test(self): + def test_watch_kube_virt_list_for_all_namespaces(self): """ - Test case for test + Test case for watch_kube_virt_list_for_all_namespaces - Test endpoint verifying apiserver connectivity. + """ pass - def test_version(self): + def test_watch_migration_policy_list_for_all_namespaces(self): """ - Test case for version + Test case for watch_migration_policy_list_for_all_namespaces """ pass - def test_vnc(self): + def test_watch_namespaced_kube_virt(self): """ - Test case for vnc + Test case for watch_namespaced_kube_virt - Open a websocket connection to connect to VNC on the specified VirtualMachineInstance. + """ pass @@ -371,7 +2123,23 @@ def test_watch_namespaced_virtual_machine(self): """ Test case for watch_namespaced_virtual_machine - Watch a VirtualMachine object. + + """ + pass + + def test_watch_namespaced_virtual_machine_backup(self): + """ + Test case for watch_namespaced_virtual_machine_backup + + + """ + pass + + def test_watch_namespaced_virtual_machine_export(self): + """ + Test case for watch_namespaced_virtual_machine_export + + """ pass @@ -379,7 +2147,15 @@ def test_watch_namespaced_virtual_machine_instance(self): """ Test case for watch_namespaced_virtual_machine_instance - Watch a VirtualMachineInstance object. + + """ + pass + + def test_watch_namespaced_virtual_machine_instance_migration(self): + """ + Test case for watch_namespaced_virtual_machine_instance_migration + + """ pass @@ -387,7 +2163,7 @@ def test_watch_namespaced_virtual_machine_instance_preset(self): """ Test case for watch_namespaced_virtual_machine_instance_preset - Watch a VirtualMachineInstancePreset object. + """ pass @@ -395,7 +2171,95 @@ 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 + + def test_watch_namespaced_virtual_machine_instancetype(self): + """ + Test case for watch_namespaced_virtual_machine_instancetype + + + """ + pass + + 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 + + def test_watch_namespaced_virtual_machine_restore(self): + """ + Test case for watch_namespaced_virtual_machine_restore + + + """ + 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 + + def test_watch_virtual_machine_backup_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_backup_list_for_all_namespaces + + + """ + pass + + def test_watch_virtual_machine_clone_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_clone_list_for_all_namespaces + + + """ + pass + + def test_watch_virtual_machine_cluster_instancetype_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_cluster_instancetype_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 + + def test_watch_virtual_machine_export_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_export_list_for_all_namespaces + + """ pass @@ -403,7 +2267,15 @@ 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 + + def test_watch_virtual_machine_instance_migration_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_instance_migration_list_for_all_namespaces + + """ pass @@ -411,7 +2283,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 @@ -419,7 +2291,15 @@ 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 + + def test_watch_virtual_machine_instancetype_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_instancetype_list_for_all_namespaces + + """ pass @@ -427,7 +2307,47 @@ 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 + + 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 + + def test_watch_virtual_machine_restore_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_restore_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_k8s_io_api_core_v1_affinity.py b/test/test_k8s_io_api_core_v1_affinity.py new file mode 100644 index 00000000..7da93ca9 --- /dev/null +++ b/test/test_k8s_io_api_core_v1_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_affinity import K8sIoApiCoreV1Affinity + + +class TestK8sIoApiCoreV1Affinity(unittest.TestCase): + """ K8sIoApiCoreV1Affinity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1Affinity(self): + """ + Test K8sIoApiCoreV1Affinity + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_affinity.K8sIoApiCoreV1Affinity() + pass + + +if __name__ == '__main__': + unittest.main() 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_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() 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_k8s_io_api_core_v1_http_header.py b/test/test_k8s_io_api_core_v1_http_header.py new file mode 100644 index 00000000..ae3473dc --- /dev/null +++ b/test/test_k8s_io_api_core_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.k8s_io_api_core_v1_http_header import K8sIoApiCoreV1HTTPHeader + + +class TestK8sIoApiCoreV1HTTPHeader(unittest.TestCase): + """ K8sIoApiCoreV1HTTPHeader unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1HTTPHeader(self): + """ + Test K8sIoApiCoreV1HTTPHeader + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_http_header.K8sIoApiCoreV1HTTPHeader() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_k8s_io_api_core_v1_local_object_reference.py b/test/test_k8s_io_api_core_v1_local_object_reference.py new file mode 100644 index 00000000..fce86dde --- /dev/null +++ b/test/test_k8s_io_api_core_v1_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_local_object_reference import K8sIoApiCoreV1LocalObjectReference + + +class TestK8sIoApiCoreV1LocalObjectReference(unittest.TestCase): + """ K8sIoApiCoreV1LocalObjectReference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1LocalObjectReference(self): + """ + Test K8sIoApiCoreV1LocalObjectReference + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_local_object_reference.K8sIoApiCoreV1LocalObjectReference() + pass + + +if __name__ == '__main__': + unittest.main() 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_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_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_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_k8s_io_api_core_v1_pod_affinity.py b/test/test_k8s_io_api_core_v1_pod_affinity.py new file mode 100644 index 00000000..1f041c72 --- /dev/null +++ b/test/test_k8s_io_api_core_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.k8s_io_api_core_v1_pod_affinity import K8sIoApiCoreV1PodAffinity + + +class TestK8sIoApiCoreV1PodAffinity(unittest.TestCase): + """ K8sIoApiCoreV1PodAffinity unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1PodAffinity(self): + """ + Test K8sIoApiCoreV1PodAffinity + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_pod_affinity.K8sIoApiCoreV1PodAffinity() + pass + + +if __name__ == '__main__': + unittest.main() 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_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_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_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_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_k8s_io_api_core_v1_toleration.py b/test/test_k8s_io_api_core_v1_toleration.py new file mode 100644 index 00000000..dbb05ed9 --- /dev/null +++ b/test/test_k8s_io_api_core_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.k8s_io_api_core_v1_toleration import K8sIoApiCoreV1Toleration + + +class TestK8sIoApiCoreV1Toleration(unittest.TestCase): + """ K8sIoApiCoreV1Toleration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApiCoreV1Toleration(self): + """ + Test K8sIoApiCoreV1Toleration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_api_core_v1_toleration.K8sIoApiCoreV1Toleration() + pass + + +if __name__ == '__main__': + unittest.main() 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() 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_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() 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() 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_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_v1_initializers.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.py similarity index 54% rename from test/test_v1_initializers.py rename to test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.py index e7330498..231502a6 100644 --- a/test/test_v1_initializers.py +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_initializers import V1Initializers +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list import K8sIoApimachineryPkgApisMetaV1APIGroupList -class TestV1Initializers(unittest.TestCase): - """ V1Initializers unit test stubs """ +class TestK8sIoApimachineryPkgApisMetaV1APIGroupList(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1APIGroupList unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1Initializers(self): + def testK8sIoApimachineryPkgApisMetaV1APIGroupList(self): """ - Test V1Initializers + Test K8sIoApimachineryPkgApisMetaV1APIGroupList """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_initializers.V1Initializers() + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.K8sIoApimachineryPkgApisMetaV1APIGroupList() pass 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_k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.py new file mode 100644 index 00000000..ae045ee6 --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_delete_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.k8s_io_apimachinery_pkg_apis_meta_v1_delete_options import K8sIoApimachineryPkgApisMetaV1DeleteOptions + + +class TestK8sIoApimachineryPkgApisMetaV1DeleteOptions(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1DeleteOptions unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1DeleteOptions(self): + """ + Test K8sIoApimachineryPkgApisMetaV1DeleteOptions + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.K8sIoApimachineryPkgApisMetaV1DeleteOptions() + pass + + +if __name__ == '__main__': + unittest.main() 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_k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.py new file mode 100644 index 00000000..ad02704e --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_label_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_apimachinery_pkg_apis_meta_v1_label_selector import K8sIoApimachineryPkgApisMetaV1LabelSelector + + +class TestK8sIoApimachineryPkgApisMetaV1LabelSelector(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1LabelSelector unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1LabelSelector(self): + """ + Test K8sIoApimachineryPkgApisMetaV1LabelSelector + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.K8sIoApimachineryPkgApisMetaV1LabelSelector() + pass + + +if __name__ == '__main__': + unittest.main() 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_v1_registry_disk_source.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py similarity index 56% rename from test/test_v1_registry_disk_source.py rename to test/test_k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py index 7d519f56..384b0388 100644 --- a/test/test_v1_registry_disk_source.py +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_registry_disk_source import V1RegistryDiskSource +from kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_object_meta import K8sIoApimachineryPkgApisMetaV1ObjectMeta -class TestV1RegistryDiskSource(unittest.TestCase): - """ V1RegistryDiskSource unit test stubs """ +class TestK8sIoApimachineryPkgApisMetaV1ObjectMeta(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1ObjectMeta unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1RegistryDiskSource(self): + def testK8sIoApimachineryPkgApisMetaV1ObjectMeta(self): """ - Test V1RegistryDiskSource + Test K8sIoApimachineryPkgApisMetaV1ObjectMeta """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_registry_disk_source.V1RegistryDiskSource() + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.K8sIoApimachineryPkgApisMetaV1ObjectMeta() pass 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_k8s_io_apimachinery_pkg_apis_meta_v1_time.py b/test/test_k8s_io_apimachinery_pkg_apis_meta_v1_time.py new file mode 100644 index 00000000..fec09eac --- /dev/null +++ b/test/test_k8s_io_apimachinery_pkg_apis_meta_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.k8s_io_apimachinery_pkg_apis_meta_v1_time import K8sIoApimachineryPkgApisMetaV1Time + + +class TestK8sIoApimachineryPkgApisMetaV1Time(unittest.TestCase): + """ K8sIoApimachineryPkgApisMetaV1Time unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testK8sIoApimachineryPkgApisMetaV1Time(self): + """ + Test K8sIoApimachineryPkgApisMetaV1Time + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.k8s_io_apimachinery_pkg_apis_meta_v1_time.K8sIoApimachineryPkgApisMetaV1Time() + pass + + +if __name__ == '__main__': + unittest.main() 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_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_big_int.py b/test/test_v1_acpi.py similarity index 74% rename from test/test_big_int.py rename to test/test_v1_acpi.py index fd3d2075..a43072f9 100644 --- a/test/test_big_int.py +++ b/test/test_v1_acpi.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.big_int import BigInt +from kubevirt.models.v1_acpi import V1ACPI -class TestBigInt(unittest.TestCase): - """ BigInt unit test stubs """ +class TestV1ACPI(unittest.TestCase): + """ V1ACPI unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testBigInt(self): + def testV1ACPI(self): """ - Test BigInt + Test V1ACPI """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.big_int.BigInt() + #model = kubevirt.models.v1_acpi.V1ACPI() 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_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_resource_int64_amount.py b/test/test_v1_arch_configuration.py similarity index 66% rename from test/test_resource_int64_amount.py rename to test/test_v1_arch_configuration.py index 7ee23ae0..3631981d 100644 --- a/test/test_resource_int64_amount.py +++ b/test/test_v1_arch_configuration.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.resource_int64_amount import ResourceInt64Amount +from kubevirt.models.v1_arch_configuration import V1ArchConfiguration -class TestResourceInt64Amount(unittest.TestCase): - """ ResourceInt64Amount unit test stubs """ +class TestV1ArchConfiguration(unittest.TestCase): + """ V1ArchConfiguration unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testResourceInt64Amount(self): + def testV1ArchConfiguration(self): """ - Test ResourceInt64Amount + Test V1ArchConfiguration """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.resource_int64_amount.ResourceInt64Amount() + #model = kubevirt.models.v1_arch_configuration.V1ArchConfiguration() pass 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() diff --git a/test/test_inf_dec.py b/test/test_v1_bios.py similarity index 74% rename from test/test_inf_dec.py rename to test/test_v1_bios.py index 0e9141c6..83307a88 100644 --- a/test/test_inf_dec.py +++ b/test/test_v1_bios.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.inf_dec import InfDec +from kubevirt.models.v1_bios import V1BIOS -class TestInfDec(unittest.TestCase): - """ InfDec unit test stubs """ +class TestV1BIOS(unittest.TestCase): + """ V1BIOS unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testInfDec(self): + def testV1BIOS(self): """ - Test InfDec + Test V1BIOS """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.inf_dec.InfDec() + #model = kubevirt.models.v1_bios.V1BIOS() pass 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_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() 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() 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() diff --git a/test/test_v1_affinity.py b/test/test_v1_chassis.py similarity index 71% rename from test/test_v1_affinity.py rename to test/test_v1_chassis.py index 76a9483a..11b95f4e 100644 --- a/test/test_v1_affinity.py +++ b/test/test_v1_chassis.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_affinity import V1Affinity +from kubevirt.models.v1_chassis import V1Chassis -class TestV1Affinity(unittest.TestCase): - """ V1Affinity unit test stubs """ +class TestV1Chassis(unittest.TestCase): + """ V1Chassis unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1Affinity(self): + def testV1Chassis(self): """ - Test V1Affinity + Test V1Chassis """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_affinity.V1Affinity() + #model = kubevirt.models.v1_chassis.V1Chassis() 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() diff --git a/test/test_v1_api_resource.py b/test/test_v1_clock_offset.py similarity index 69% rename from test/test_v1_api_resource.py rename to test/test_v1_clock_offset.py index e3f45ca7..cbf4a4c9 100644 --- a/test/test_v1_api_resource.py +++ b/test/test_v1_clock_offset.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_api_resource import V1APIResource +from kubevirt.models.v1_clock_offset import V1ClockOffset -class TestV1APIResource(unittest.TestCase): - """ V1APIResource unit test stubs """ +class TestV1ClockOffset(unittest.TestCase): + """ V1ClockOffset unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1APIResource(self): + def testV1ClockOffset(self): """ - Test V1APIResource + Test V1ClockOffset """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_api_resource.V1APIResource() + #model = kubevirt.models.v1_clock_offset.V1ClockOffset() pass 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() 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() 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_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_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_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_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_container_disk_source.py b/test/test_v1_container_disk_source.py new file mode 100644 index 00000000..854d5a13 --- /dev/null +++ b/test/test_v1_container_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_container_disk_source import V1ContainerDiskSource + + +class TestV1ContainerDiskSource(unittest.TestCase): + """ V1ContainerDiskSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1ContainerDiskSource(self): + """ + Test V1ContainerDiskSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_container_disk_source.V1ContainerDiskSource() + pass + + +if __name__ == '__main__': + unittest.main() 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() 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_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() diff --git a/test/test_v1_pod_affinity.py b/test/test_v1_cpu_topology.py similarity index 69% rename from test/test_v1_pod_affinity.py rename to test/test_v1_cpu_topology.py index 1737b5ce..7fa24c76 100644 --- a/test/test_v1_pod_affinity.py +++ b/test/test_v1_cpu_topology.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_pod_affinity import V1PodAffinity +from kubevirt.models.v1_cpu_topology import V1CPUTopology -class TestV1PodAffinity(unittest.TestCase): - """ V1PodAffinity unit test stubs """ +class TestV1CPUTopology(unittest.TestCase): + """ V1CPUTopology unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1PodAffinity(self): + def testV1CPUTopology(self): """ - Test V1PodAffinity + Test V1CPUTopology """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_pod_affinity.V1PodAffinity() + #model = kubevirt.models.v1_cpu_topology.V1CPUTopology() pass 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() 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_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() 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() 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_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() diff --git a/test/test_v1_data_volume_template_spec.py b/test/test_v1_data_volume_template_spec.py new file mode 100644 index 00000000..b6e6a123 --- /dev/null +++ b/test/test_v1_data_volume_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_data_volume_template_spec import V1DataVolumeTemplateSpec + + +class TestV1DataVolumeTemplateSpec(unittest.TestCase): + """ V1DataVolumeTemplateSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DataVolumeTemplateSpec(self): + """ + Test V1DataVolumeTemplateSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_data_volume_template_spec.V1DataVolumeTemplateSpec() + 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_deprecated_interface_macvtap.py b/test/test_v1_deprecated_interface_macvtap.py new file mode 100644 index 00000000..635b94eb --- /dev/null +++ b/test/test_v1_deprecated_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_deprecated_interface_macvtap import V1DeprecatedInterfaceMacvtap + + +class TestV1DeprecatedInterfaceMacvtap(unittest.TestCase): + """ V1DeprecatedInterfaceMacvtap unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeprecatedInterfaceMacvtap(self): + """ + Test V1DeprecatedInterfaceMacvtap + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_deprecated_interface_macvtap.V1DeprecatedInterfaceMacvtap() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_deprecated_interface_passt.py b/test/test_v1_deprecated_interface_passt.py new file mode 100644 index 00000000..a89dab3f --- /dev/null +++ b/test/test_v1_deprecated_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_deprecated_interface_passt import V1DeprecatedInterfacePasst + + +class TestV1DeprecatedInterfacePasst(unittest.TestCase): + """ V1DeprecatedInterfacePasst unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeprecatedInterfacePasst(self): + """ + Test V1DeprecatedInterfacePasst + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_deprecated_interface_passt.V1DeprecatedInterfacePasst() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_deprecated_interface_slirp.py b/test/test_v1_deprecated_interface_slirp.py new file mode 100644 index 00000000..f12e0f68 --- /dev/null +++ b/test/test_v1_deprecated_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_deprecated_interface_slirp import V1DeprecatedInterfaceSlirp + + +class TestV1DeprecatedInterfaceSlirp(unittest.TestCase): + """ V1DeprecatedInterfaceSlirp unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1DeprecatedInterfaceSlirp(self): + """ + Test V1DeprecatedInterfaceSlirp + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_deprecated_interface_slirp.V1DeprecatedInterfaceSlirp() + pass + + +if __name__ == '__main__': + unittest.main() 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_status_cause.py b/test/test_v1_dhcp_options.py similarity index 69% rename from test/test_v1_status_cause.py rename to test/test_v1_dhcp_options.py index 70e5ec26..3245b144 100644 --- a/test/test_v1_status_cause.py +++ b/test/test_v1_dhcp_options.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_status_cause import V1StatusCause +from kubevirt.models.v1_dhcp_options import V1DHCPOptions -class TestV1StatusCause(unittest.TestCase): - """ V1StatusCause unit test stubs """ +class TestV1DHCPOptions(unittest.TestCase): + """ V1DHCPOptions unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1StatusCause(self): + def testV1DHCPOptions(self): """ - Test V1StatusCause + Test V1DHCPOptions """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_status_cause.V1StatusCause() + #model = kubevirt.models.v1_dhcp_options.V1DHCPOptions() pass diff --git a/test/test_resource_inf_dec_amount.py b/test/test_v1_dhcp_private_options.py similarity index 65% rename from test/test_resource_inf_dec_amount.py rename to test/test_v1_dhcp_private_options.py index a23cedde..9833b9a7 100644 --- a/test/test_resource_inf_dec_amount.py +++ b/test/test_v1_dhcp_private_options.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.resource_inf_dec_amount import ResourceInfDecAmount +from kubevirt.models.v1_dhcp_private_options import V1DHCPPrivateOptions -class TestResourceInfDecAmount(unittest.TestCase): - """ ResourceInfDecAmount unit test stubs """ +class TestV1DHCPPrivateOptions(unittest.TestCase): + """ V1DHCPPrivateOptions unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testResourceInfDecAmount(self): + def testV1DHCPPrivateOptions(self): """ - Test ResourceInfDecAmount + Test V1DHCPPrivateOptions """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.resource_inf_dec_amount.ResourceInfDecAmount() + #model = kubevirt.models.v1_dhcp_private_options.V1DHCPPrivateOptions() pass 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() 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_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() 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() 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() 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_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() 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_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() 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() diff --git a/test/test_v1_status.py b/test/test_v1_efi.py similarity index 73% rename from test/test_v1_status.py rename to test/test_v1_efi.py index 997da94d..536d4f86 100644 --- a/test/test_v1_status.py +++ b/test/test_v1_efi.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_status import V1Status +from kubevirt.models.v1_efi import V1EFI -class TestV1Status(unittest.TestCase): - """ V1Status unit test stubs """ +class TestV1EFI(unittest.TestCase): + """ V1EFI unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1Status(self): + def testV1EFI(self): """ - Test V1Status + Test V1EFI """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_status.V1Status() + #model = kubevirt.models.v1_efi.V1EFI() 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() 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() 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() 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() 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() diff --git a/test/test_v1_generation_status.py b/test/test_v1_generation_status.py new file mode 100644 index 00000000..121f9db4 --- /dev/null +++ b/test/test_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.v1_generation_status import V1GenerationStatus + + +class TestV1GenerationStatus(unittest.TestCase): + """ V1GenerationStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1GenerationStatus(self): + """ + Test V1GenerationStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_generation_status.V1GenerationStatus() + pass + + +if __name__ == '__main__': + unittest.main() 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() 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_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() 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() 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_api_group.py b/test/test_v1_host_disk.py similarity index 71% rename from test/test_v1_api_group.py rename to test/test_v1_host_disk.py index 94c193bb..cd362f27 100644 --- a/test/test_v1_api_group.py +++ b/test/test_v1_host_disk.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_api_group import V1APIGroup +from kubevirt.models.v1_host_disk import V1HostDisk -class TestV1APIGroup(unittest.TestCase): - """ V1APIGroup unit test stubs """ +class TestV1HostDisk(unittest.TestCase): + """ V1HostDisk unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1APIGroup(self): + def testV1HostDisk(self): """ - Test V1APIGroup + Test V1HostDisk """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_api_group.V1APIGroup() + #model = kubevirt.models.v1_host_disk.V1HostDisk() pass 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_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() 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() diff --git a/test/test_v1_initializer.py b/test/test_v1_initializer.py deleted file mode 100644 index a2d93da6..00000000 --- a/test/test_v1_initializer.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_initializer import V1Initializer - - -class TestV1Initializer(unittest.TestCase): - """ V1Initializer unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1Initializer(self): - """ - Test V1Initializer - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_initializer.V1Initializer() - 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_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() 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() diff --git a/test/test_v1_instancetype_matcher.py b/test/test_v1_instancetype_matcher.py new file mode 100644 index 00000000..a323ec69 --- /dev/null +++ b/test/test_v1_instancetype_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_instancetype_matcher import V1InstancetypeMatcher + + +class TestV1InstancetypeMatcher(unittest.TestCase): + """ V1InstancetypeMatcher unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1InstancetypeMatcher(self): + """ + Test V1InstancetypeMatcher + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1_instancetype_matcher.V1InstancetypeMatcher() + 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() 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() 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_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_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() 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_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() 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() 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() 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_api_group_list.py b/test/test_v1_kube_virt_list.py similarity index 69% rename from test/test_v1_api_group_list.py rename to test/test_v1_kube_virt_list.py index 3914bc3f..e23f2374 100644 --- a/test/test_v1_api_group_list.py +++ b/test/test_v1_kube_virt_list.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_api_group_list import V1APIGroupList +from kubevirt.models.v1_kube_virt_list import V1KubeVirtList -class TestV1APIGroupList(unittest.TestCase): - """ V1APIGroupList unit test stubs """ +class TestV1KubeVirtList(unittest.TestCase): + """ V1KubeVirtList unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1APIGroupList(self): + def testV1KubeVirtList(self): """ - Test V1APIGroupList + Test V1KubeVirtList """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_api_group_list.V1APIGroupList() + #model = kubevirt.models.v1_kube_virt_list.V1KubeVirtList() pass 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_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() 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_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_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_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_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_floppy_target.py b/test/test_v1_log_verbosity.py similarity index 69% rename from test/test_v1_floppy_target.py rename to test/test_v1_log_verbosity.py index 1c7bdac4..c3a12206 100644 --- a/test/test_v1_floppy_target.py +++ b/test/test_v1_log_verbosity.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_floppy_target import V1FloppyTarget +from kubevirt.models.v1_log_verbosity import V1LogVerbosity -class TestV1FloppyTarget(unittest.TestCase): - """ V1FloppyTarget unit test stubs """ +class TestV1LogVerbosity(unittest.TestCase): + """ V1LogVerbosity unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1FloppyTarget(self): + def testV1LogVerbosity(self): """ - Test V1FloppyTarget + Test V1LogVerbosity """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_floppy_target.V1FloppyTarget() + #model = kubevirt.models.v1_log_verbosity.V1LogVerbosity() pass 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() 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_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_node_affinity.py b/test/test_v1_memory_status.py similarity index 69% rename from test/test_v1_node_affinity.py rename to test/test_v1_memory_status.py index 36218013..902552b3 100644 --- a/test/test_v1_node_affinity.py +++ b/test/test_v1_memory_status.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_node_affinity import V1NodeAffinity +from kubevirt.models.v1_memory_status import V1MemoryStatus -class TestV1NodeAffinity(unittest.TestCase): - """ V1NodeAffinity unit test stubs """ +class TestV1MemoryStatus(unittest.TestCase): + """ V1MemoryStatus unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1NodeAffinity(self): + def testV1MemoryStatus(self): """ - Test V1NodeAffinity + Test V1MemoryStatus """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_node_affinity.V1NodeAffinity() + #model = kubevirt.models.v1_memory_status.V1MemoryStatus() pass 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() 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_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() 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_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() 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() 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() 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_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() 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() 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_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() diff --git a/test/test_v1_node_selector.py b/test/test_v1_pause_options.py similarity index 69% rename from test/test_v1_node_selector.py rename to test/test_v1_pause_options.py index c1d027ee..e0587100 100644 --- a/test/test_v1_node_selector.py +++ b/test/test_v1_pause_options.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_node_selector import V1NodeSelector +from kubevirt.models.v1_pause_options import V1PauseOptions -class TestV1NodeSelector(unittest.TestCase): - """ V1NodeSelector unit test stubs """ +class TestV1PauseOptions(unittest.TestCase): + """ V1PauseOptions unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1NodeSelector(self): + def testV1PauseOptions(self): """ - Test V1NodeSelector + Test V1PauseOptions """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_node_selector.V1NodeSelector() + #model = kubevirt.models.v1_pause_options.V1PauseOptions() pass 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() 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() 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() 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_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_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_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_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_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_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_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() 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_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_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() 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() 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_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() 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_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_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() 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_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() 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() 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_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() 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() 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() 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() 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() 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_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() 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() 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() 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() 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() 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() 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() 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() 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() 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() 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() 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() 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() 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() 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() 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() 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() 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() 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() 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() 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_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_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() 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_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_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_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() 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() 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() 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_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() 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_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() 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_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_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() 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() 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() 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() 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() 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() 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() 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() 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() 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_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_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() 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() 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() 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() 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_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_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() 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_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() 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() diff --git a/test/test_v1beta1_clock_preferences.py b/test/test_v1beta1_clock_preferences.py new file mode 100644 index 00000000..3d85eee5 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_clock_preferences import V1beta1ClockPreferences + + +class TestV1beta1ClockPreferences(unittest.TestCase): + """ V1beta1ClockPreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1ClockPreferences(self): + """ + Test V1beta1ClockPreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_clock_preferences.V1beta1ClockPreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_resource_quantity.py b/test/test_v1beta1_condition.py similarity index 67% rename from test/test_resource_quantity.py rename to test/test_v1beta1_condition.py index 0bdfb38b..27f026e2 100644 --- a/test/test_resource_quantity.py +++ b/test/test_v1beta1_condition.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.resource_quantity import ResourceQuantity +from kubevirt.models.v1beta1_condition import V1beta1Condition -class TestResourceQuantity(unittest.TestCase): - """ ResourceQuantity 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 testResourceQuantity(self): + def testV1beta1Condition(self): """ - Test ResourceQuantity + Test V1beta1Condition """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.resource_quantity.ResourceQuantity() + #model = kubevirt.models.v1beta1_condition.V1beta1Condition() pass diff --git a/test/test_v1beta1_cpu_instancetype.py b/test/test_v1beta1_cpu_instancetype.py new file mode 100644 index 00000000..65d9775c --- /dev/null +++ b/test/test_v1beta1_cpu_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_cpu_instancetype import V1beta1CPUInstancetype + + +class TestV1beta1CPUInstancetype(unittest.TestCase): + """ V1beta1CPUInstancetype unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1CPUInstancetype(self): + """ + Test V1beta1CPUInstancetype + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_cpu_instancetype.V1beta1CPUInstancetype() + pass + + +if __name__ == '__main__': + unittest.main() 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_cpu_preferences.py b/test/test_v1beta1_cpu_preferences.py new file mode 100644 index 00000000..f6d0ce31 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_cpu_preferences import V1beta1CPUPreferences + + +class TestV1beta1CPUPreferences(unittest.TestCase): + """ V1beta1CPUPreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1CPUPreferences(self): + """ + Test V1beta1CPUPreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_cpu_preferences.V1beta1CPUPreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_data_volume_blank_image.py b/test/test_v1beta1_data_volume_blank_image.py new file mode 100644 index 00000000..4a7e2daa --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_data_volume_blank_image import V1beta1DataVolumeBlankImage + + +class TestV1beta1DataVolumeBlankImage(unittest.TestCase): + """ V1beta1DataVolumeBlankImage unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeBlankImage(self): + """ + Test V1beta1DataVolumeBlankImage + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_blank_image.V1beta1DataVolumeBlankImage() + pass + + +if __name__ == '__main__': + unittest.main() 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_v1beta1_data_volume_source.py b/test/test_v1beta1_data_volume_source.py new file mode 100644 index 00000000..234754f2 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_data_volume_source import V1beta1DataVolumeSource + + +class TestV1beta1DataVolumeSource(unittest.TestCase): + """ V1beta1DataVolumeSource unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeSource(self): + """ + Test V1beta1DataVolumeSource + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_source.V1beta1DataVolumeSource() + 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_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_v1beta1_data_volume_source_image_io.py b/test/test_v1beta1_data_volume_source_image_io.py new file mode 100644 index 00000000..e5c69a2c --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_data_volume_source_image_io import V1beta1DataVolumeSourceImageIO + + +class TestV1beta1DataVolumeSourceImageIO(unittest.TestCase): + """ V1beta1DataVolumeSourceImageIO unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeSourceImageIO(self): + """ + Test V1beta1DataVolumeSourceImageIO + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_source_image_io.V1beta1DataVolumeSourceImageIO() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_data_volume_source_pvc.py b/test/test_v1beta1_data_volume_source_pvc.py new file mode 100644 index 00000000..2ec24d25 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_data_volume_source_pvc import V1beta1DataVolumeSourcePVC + + +class TestV1beta1DataVolumeSourcePVC(unittest.TestCase): + """ V1beta1DataVolumeSourcePVC unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeSourcePVC(self): + """ + Test V1beta1DataVolumeSourcePVC + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_source_pvc.V1beta1DataVolumeSourcePVC() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1_object_meta.py b/test/test_v1beta1_data_volume_source_ref.py similarity index 64% rename from test/test_v1_object_meta.py rename to test/test_v1beta1_data_volume_source_ref.py index 2bdb42d7..48106033 100644 --- a/test/test_v1_object_meta.py +++ b/test/test_v1beta1_data_volume_source_ref.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_object_meta import V1ObjectMeta +from kubevirt.models.v1beta1_data_volume_source_ref import V1beta1DataVolumeSourceRef -class TestV1ObjectMeta(unittest.TestCase): - """ V1ObjectMeta unit test stubs """ +class TestV1beta1DataVolumeSourceRef(unittest.TestCase): + """ V1beta1DataVolumeSourceRef unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1ObjectMeta(self): + def testV1beta1DataVolumeSourceRef(self): """ - Test V1ObjectMeta + Test V1beta1DataVolumeSourceRef """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_object_meta.V1ObjectMeta() + #model = kubevirt.models.v1beta1_data_volume_source_ref.V1beta1DataVolumeSourceRef() pass diff --git a/test/test_v1beta1_data_volume_source_registry.py b/test/test_v1beta1_data_volume_source_registry.py new file mode 100644 index 00000000..040c7bc2 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_data_volume_source_registry import V1beta1DataVolumeSourceRegistry + + +class TestV1beta1DataVolumeSourceRegistry(unittest.TestCase): + """ V1beta1DataVolumeSourceRegistry unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeSourceRegistry(self): + """ + Test V1beta1DataVolumeSourceRegistry + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_source_registry.V1beta1DataVolumeSourceRegistry() + pass + + +if __name__ == '__main__': + unittest.main() 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_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() diff --git a/test/test_v1beta1_data_volume_source_upload.py b/test/test_v1beta1_data_volume_source_upload.py new file mode 100644 index 00000000..64d3f2b6 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_data_volume_source_upload import V1beta1DataVolumeSourceUpload + + +class TestV1beta1DataVolumeSourceUpload(unittest.TestCase): + """ V1beta1DataVolumeSourceUpload unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeSourceUpload(self): + """ + Test V1beta1DataVolumeSourceUpload + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_source_upload.V1beta1DataVolumeSourceUpload() + pass + + +if __name__ == '__main__': + unittest.main() 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_v1beta1_data_volume_spec.py b/test/test_v1beta1_data_volume_spec.py new file mode 100644 index 00000000..f307043b --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_data_volume_spec import V1beta1DataVolumeSpec + + +class TestV1beta1DataVolumeSpec(unittest.TestCase): + """ V1beta1DataVolumeSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DataVolumeSpec(self): + """ + Test V1beta1DataVolumeSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_data_volume_spec.V1beta1DataVolumeSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_device_preferences.py b/test/test_v1beta1_device_preferences.py new file mode 100644 index 00000000..6861e638 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_device_preferences import V1beta1DevicePreferences + + +class TestV1beta1DevicePreferences(unittest.TestCase): + """ V1beta1DevicePreferences unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1DevicePreferences(self): + """ + Test V1beta1DevicePreferences + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_device_preferences.V1beta1DevicePreferences() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_error.py b/test/test_v1beta1_error.py new file mode 100644 index 00000000..af85176f --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_error import V1beta1Error + + +class TestV1beta1Error(unittest.TestCase): + """ V1beta1Error unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1Error(self): + """ + Test V1beta1Error + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_error.V1beta1Error() + pass + + +if __name__ == '__main__': + unittest.main() 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_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_persistent_volume_claim.py b/test/test_v1beta1_persistent_volume_claim.py new file mode 100644 index 00000000..75f77f78 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_persistent_volume_claim import V1beta1PersistentVolumeClaim + + +class TestV1beta1PersistentVolumeClaim(unittest.TestCase): + """ V1beta1PersistentVolumeClaim unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1PersistentVolumeClaim(self): + """ + Test V1beta1PersistentVolumeClaim + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_persistent_volume_claim.V1beta1PersistentVolumeClaim() + pass + + +if __name__ == '__main__': + unittest.main() 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() 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() diff --git a/test/test_v1beta1_snapshot_volumes_lists.py b/test/test_v1beta1_snapshot_volumes_lists.py new file mode 100644 index 00000000..651e87f0 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_snapshot_volumes_lists import V1beta1SnapshotVolumesLists + + +class TestV1beta1SnapshotVolumesLists(unittest.TestCase): + """ V1beta1SnapshotVolumesLists unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1SnapshotVolumesLists(self): + """ + Test V1beta1SnapshotVolumesLists + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_snapshot_volumes_lists.V1beta1SnapshotVolumesLists() + pass + + +if __name__ == '__main__': + unittest.main() 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() diff --git a/test/test_v1beta1_source_spec.py b/test/test_v1beta1_source_spec.py new file mode 100644 index 00000000..5bd0554a --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_source_spec import V1beta1SourceSpec + + +class TestV1beta1SourceSpec(unittest.TestCase): + """ V1beta1SourceSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1SourceSpec(self): + """ + Test V1beta1SourceSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_source_spec.V1beta1SourceSpec() + pass + + +if __name__ == '__main__': + unittest.main() 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() diff --git a/test/test_v1beta1_storage_spec.py b/test/test_v1beta1_storage_spec.py new file mode 100644 index 00000000..5a096da1 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_storage_spec import V1beta1StorageSpec + + +class TestV1beta1StorageSpec(unittest.TestCase): + """ V1beta1StorageSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1StorageSpec(self): + """ + Test V1beta1StorageSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_storage_spec.V1beta1StorageSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine.py b/test/test_v1beta1_virtual_machine.py new file mode 100644 index 00000000..4ca11358 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine import V1beta1VirtualMachine + + +class TestV1beta1VirtualMachine(unittest.TestCase): + """ V1beta1VirtualMachine unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachine(self): + """ + Test V1beta1VirtualMachine + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine.V1beta1VirtualMachine() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_clone.py b/test/test_v1beta1_virtual_machine_clone.py new file mode 100644 index 00000000..2c1bf28f --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_clone import V1beta1VirtualMachineClone + + +class TestV1beta1VirtualMachineClone(unittest.TestCase): + """ V1beta1VirtualMachineClone unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineClone(self): + """ + Test V1beta1VirtualMachineClone + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_clone.V1beta1VirtualMachineClone() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_clone_list.py b/test/test_v1beta1_virtual_machine_clone_list.py new file mode 100644 index 00000000..415505de --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_clone_list import V1beta1VirtualMachineCloneList + + +class TestV1beta1VirtualMachineCloneList(unittest.TestCase): + """ V1beta1VirtualMachineCloneList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineCloneList(self): + """ + Test V1beta1VirtualMachineCloneList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_clone_list.V1beta1VirtualMachineCloneList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_clone_spec.py b/test/test_v1beta1_virtual_machine_clone_spec.py new file mode 100644 index 00000000..15afdbbb --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_clone_spec import V1beta1VirtualMachineCloneSpec + + +class TestV1beta1VirtualMachineCloneSpec(unittest.TestCase): + """ V1beta1VirtualMachineCloneSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineCloneSpec(self): + """ + Test V1beta1VirtualMachineCloneSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_clone_spec.V1beta1VirtualMachineCloneSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_clone_status.py b/test/test_v1beta1_virtual_machine_clone_status.py new file mode 100644 index 00000000..45c99b56 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_clone_status import V1beta1VirtualMachineCloneStatus + + +class TestV1beta1VirtualMachineCloneStatus(unittest.TestCase): + """ V1beta1VirtualMachineCloneStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineCloneStatus(self): + """ + Test V1beta1VirtualMachineCloneStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_clone_status.V1beta1VirtualMachineCloneStatus() + pass + + +if __name__ == '__main__': + unittest.main() 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() 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_v1beta1_virtual_machine_cluster_preference.py b/test/test_v1beta1_virtual_machine_cluster_preference.py new file mode 100644 index 00000000..423ea403 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_cluster_preference import V1beta1VirtualMachineClusterPreference + + +class TestV1beta1VirtualMachineClusterPreference(unittest.TestCase): + """ V1beta1VirtualMachineClusterPreference unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineClusterPreference(self): + """ + Test V1beta1VirtualMachineClusterPreference + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_cluster_preference.V1beta1VirtualMachineClusterPreference() + pass + + +if __name__ == '__main__': + unittest.main() 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_export.py b/test/test_v1beta1_virtual_machine_export.py new file mode 100644 index 00000000..6b40b0a3 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_export import V1beta1VirtualMachineExport + + +class TestV1beta1VirtualMachineExport(unittest.TestCase): + """ V1beta1VirtualMachineExport unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineExport(self): + """ + Test V1beta1VirtualMachineExport + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_export.V1beta1VirtualMachineExport() + pass + + +if __name__ == '__main__': + unittest.main() 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() diff --git a/test/test_v1beta1_virtual_machine_export_link.py b/test/test_v1beta1_virtual_machine_export_link.py new file mode 100644 index 00000000..fe98847b --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_export_link import V1beta1VirtualMachineExportLink + + +class TestV1beta1VirtualMachineExportLink(unittest.TestCase): + """ V1beta1VirtualMachineExportLink unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineExportLink(self): + """ + Test V1beta1VirtualMachineExportLink + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_export_link.V1beta1VirtualMachineExportLink() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_export_links.py b/test/test_v1beta1_virtual_machine_export_links.py new file mode 100644 index 00000000..be3d7c10 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_export_links import V1beta1VirtualMachineExportLinks + + +class TestV1beta1VirtualMachineExportLinks(unittest.TestCase): + """ V1beta1VirtualMachineExportLinks unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineExportLinks(self): + """ + Test V1beta1VirtualMachineExportLinks + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_export_links.V1beta1VirtualMachineExportLinks() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_export_list.py b/test/test_v1beta1_virtual_machine_export_list.py new file mode 100644 index 00000000..f6b18b50 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_export_list import V1beta1VirtualMachineExportList + + +class TestV1beta1VirtualMachineExportList(unittest.TestCase): + """ V1beta1VirtualMachineExportList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineExportList(self): + """ + Test V1beta1VirtualMachineExportList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_export_list.V1beta1VirtualMachineExportList() + pass + + +if __name__ == '__main__': + unittest.main() 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_v1beta1_virtual_machine_export_status.py b/test/test_v1beta1_virtual_machine_export_status.py new file mode 100644 index 00000000..803ddb5a --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_export_status import V1beta1VirtualMachineExportStatus + + +class TestV1beta1VirtualMachineExportStatus(unittest.TestCase): + """ V1beta1VirtualMachineExportStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineExportStatus(self): + """ + Test V1beta1VirtualMachineExportStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_export_status.V1beta1VirtualMachineExportStatus() + pass + + +if __name__ == '__main__': + unittest.main() 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() 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_opportunistic_update_strategy.py b/test/test_v1beta1_virtual_machine_opportunistic_update_strategy.py new file mode 100644 index 00000000..784ca772 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_opportunistic_update_strategy import V1beta1VirtualMachineOpportunisticUpdateStrategy + + +class TestV1beta1VirtualMachineOpportunisticUpdateStrategy(unittest.TestCase): + """ V1beta1VirtualMachineOpportunisticUpdateStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineOpportunisticUpdateStrategy(self): + """ + Test V1beta1VirtualMachineOpportunisticUpdateStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_opportunistic_update_strategy.V1beta1VirtualMachineOpportunisticUpdateStrategy() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_pool.py b/test/test_v1beta1_virtual_machine_pool.py new file mode 100644 index 00000000..2b61c87f --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_pool import V1beta1VirtualMachinePool + + +class TestV1beta1VirtualMachinePool(unittest.TestCase): + """ V1beta1VirtualMachinePool unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePool(self): + """ + Test V1beta1VirtualMachinePool + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool.V1beta1VirtualMachinePool() + pass + + +if __name__ == '__main__': + unittest.main() 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_v1beta1_virtual_machine_pool_condition.py b/test/test_v1beta1_virtual_machine_pool_condition.py new file mode 100644 index 00000000..19c5869f --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_pool_condition import V1beta1VirtualMachinePoolCondition + + +class TestV1beta1VirtualMachinePoolCondition(unittest.TestCase): + """ V1beta1VirtualMachinePoolCondition unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolCondition(self): + """ + Test V1beta1VirtualMachinePoolCondition + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_condition.V1beta1VirtualMachinePoolCondition() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_pool_list.py b/test/test_v1beta1_virtual_machine_pool_list.py new file mode 100644 index 00000000..2db2ddef --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_pool_list import V1beta1VirtualMachinePoolList + + +class TestV1beta1VirtualMachinePoolList(unittest.TestCase): + """ V1beta1VirtualMachinePoolList unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolList(self): + """ + Test V1beta1VirtualMachinePoolList + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_list.V1beta1VirtualMachinePoolList() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_pool_name_generation.py b/test/test_v1beta1_virtual_machine_pool_name_generation.py new file mode 100644 index 00000000..11bb2926 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_pool_name_generation import V1beta1VirtualMachinePoolNameGeneration + + +class TestV1beta1VirtualMachinePoolNameGeneration(unittest.TestCase): + """ V1beta1VirtualMachinePoolNameGeneration unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolNameGeneration(self): + """ + Test V1beta1VirtualMachinePoolNameGeneration + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_name_generation.V1beta1VirtualMachinePoolNameGeneration() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py b/test/test_v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py new file mode 100644 index 00000000..8931cf22 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy import V1beta1VirtualMachinePoolOpportunisticScaleInStrategy + + +class TestV1beta1VirtualMachinePoolOpportunisticScaleInStrategy(unittest.TestCase): + """ V1beta1VirtualMachinePoolOpportunisticScaleInStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolOpportunisticScaleInStrategy(self): + """ + Test V1beta1VirtualMachinePoolOpportunisticScaleInStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.V1beta1VirtualMachinePoolOpportunisticScaleInStrategy() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py b/test/test_v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py new file mode 100644 index 00000000..e18ab5cf --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_pool_proactive_scale_in_strategy import V1beta1VirtualMachinePoolProactiveScaleInStrategy + + +class TestV1beta1VirtualMachinePoolProactiveScaleInStrategy(unittest.TestCase): + """ V1beta1VirtualMachinePoolProactiveScaleInStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolProactiveScaleInStrategy(self): + """ + Test V1beta1VirtualMachinePoolProactiveScaleInStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_proactive_scale_in_strategy.V1beta1VirtualMachinePoolProactiveScaleInStrategy() + pass + + +if __name__ == '__main__': + unittest.main() 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_v1beta1_virtual_machine_pool_scale_in_strategy.py b/test/test_v1beta1_virtual_machine_pool_scale_in_strategy.py new file mode 100644 index 00000000..908fa09c --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_pool_scale_in_strategy import V1beta1VirtualMachinePoolScaleInStrategy + + +class TestV1beta1VirtualMachinePoolScaleInStrategy(unittest.TestCase): + """ V1beta1VirtualMachinePoolScaleInStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolScaleInStrategy(self): + """ + Test V1beta1VirtualMachinePoolScaleInStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_scale_in_strategy.V1beta1VirtualMachinePoolScaleInStrategy() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_pool_selection_policy.py b/test/test_v1beta1_virtual_machine_pool_selection_policy.py new file mode 100644 index 00000000..2ff63da9 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_pool_selection_policy import V1beta1VirtualMachinePoolSelectionPolicy + + +class TestV1beta1VirtualMachinePoolSelectionPolicy(unittest.TestCase): + """ V1beta1VirtualMachinePoolSelectionPolicy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolSelectionPolicy(self): + """ + Test V1beta1VirtualMachinePoolSelectionPolicy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_selection_policy.V1beta1VirtualMachinePoolSelectionPolicy() + pass + + +if __name__ == '__main__': + unittest.main() 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_v1beta1_virtual_machine_pool_spec.py b/test/test_v1beta1_virtual_machine_pool_spec.py new file mode 100644 index 00000000..265b9099 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_pool_spec import V1beta1VirtualMachinePoolSpec + + +class TestV1beta1VirtualMachinePoolSpec(unittest.TestCase): + """ V1beta1VirtualMachinePoolSpec unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolSpec(self): + """ + Test V1beta1VirtualMachinePoolSpec + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_spec.V1beta1VirtualMachinePoolSpec() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_pool_status.py b/test/test_v1beta1_virtual_machine_pool_status.py new file mode 100644 index 00000000..39c08f0f --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_pool_status import V1beta1VirtualMachinePoolStatus + + +class TestV1beta1VirtualMachinePoolStatus(unittest.TestCase): + """ V1beta1VirtualMachinePoolStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolStatus(self): + """ + Test V1beta1VirtualMachinePoolStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_status.V1beta1VirtualMachinePoolStatus() + pass + + +if __name__ == '__main__': + unittest.main() 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_v1beta1_virtual_machine_pool_update_strategy.py b/test/test_v1beta1_virtual_machine_pool_update_strategy.py new file mode 100644 index 00000000..3eba964d --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_pool_update_strategy import V1beta1VirtualMachinePoolUpdateStrategy + + +class TestV1beta1VirtualMachinePoolUpdateStrategy(unittest.TestCase): + """ V1beta1VirtualMachinePoolUpdateStrategy unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolUpdateStrategy(self): + """ + Test V1beta1VirtualMachinePoolUpdateStrategy + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_update_strategy.V1beta1VirtualMachinePoolUpdateStrategy() + 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_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_v1beta1_virtual_machine_restore_status.py b/test/test_v1beta1_virtual_machine_restore_status.py new file mode 100644 index 00000000..6c0d0a68 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_restore_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_restore_status import V1beta1VirtualMachineRestoreStatus + + +class TestV1beta1VirtualMachineRestoreStatus(unittest.TestCase): + """ V1beta1VirtualMachineRestoreStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineRestoreStatus(self): + """ + Test V1beta1VirtualMachineRestoreStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_restore_status.V1beta1VirtualMachineRestoreStatus() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_snapshot.py b/test/test_v1beta1_virtual_machine_snapshot.py new file mode 100644 index 00000000..0a14dd97 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_snapshot import V1beta1VirtualMachineSnapshot + + +class TestV1beta1VirtualMachineSnapshot(unittest.TestCase): + """ V1beta1VirtualMachineSnapshot unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineSnapshot(self): + """ + Test V1beta1VirtualMachineSnapshot + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_snapshot.V1beta1VirtualMachineSnapshot() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_v1beta1_virtual_machine_snapshot_content.py b/test/test_v1beta1_virtual_machine_snapshot_content.py new file mode 100644 index 00000000..43108d65 --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_snapshot_content import V1beta1VirtualMachineSnapshotContent + + +class TestV1beta1VirtualMachineSnapshotContent(unittest.TestCase): + """ V1beta1VirtualMachineSnapshotContent unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineSnapshotContent(self): + """ + Test V1beta1VirtualMachineSnapshotContent + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_snapshot_content.V1beta1VirtualMachineSnapshotContent() + pass + + +if __name__ == '__main__': + unittest.main() 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_v1beta1_virtual_machine_snapshot_status.py b/test/test_v1beta1_virtual_machine_snapshot_status.py new file mode 100644 index 00000000..103e24dd --- /dev/null +++ b/test/test_v1beta1_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.v1beta1_virtual_machine_snapshot_status import V1beta1VirtualMachineSnapshotStatus + + +class TestV1beta1VirtualMachineSnapshotStatus(unittest.TestCase): + """ V1beta1VirtualMachineSnapshotStatus unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachineSnapshotStatus(self): + """ + Test V1beta1VirtualMachineSnapshotStatus + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_snapshot_status.V1beta1VirtualMachineSnapshotStatus() + pass + + +if __name__ == '__main__': + unittest.main() 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() 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_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() 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_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() 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()