diff --git a/README.md b/README.md index 391bd44f..9928266d 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ This is KubeVirt API an add-on for Kubernetes. This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: 1.0.0 -- Package version: v1.6.0-beta.0-869-g12ebd1cfe9 +- 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) @@ -72,13 +72,14 @@ Class | Method | HTTP request | Description *DefaultApi* | [**create_migration_policy**](docs/DefaultApi.md#create_migration_policy) | **POST** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**create_namespaced_kube_virt**](docs/DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | *DefaultApi* | [**create_namespaced_virtual_machine**](docs/DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +*DefaultApi* | [**create_namespaced_virtual_machine_backup**](docs/DefaultApi.md#create_namespaced_virtual_machine_backup) | **POST** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups | *DefaultApi* | [**create_namespaced_virtual_machine_export**](docs/DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | *DefaultApi* | [**create_namespaced_virtual_machine_instance**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | *DefaultApi* | [**create_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | *DefaultApi* | [**create_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | *DefaultApi* | [**create_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | *DefaultApi* | [**create_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | -*DefaultApi* | [**create_namespaced_virtual_machine_pool**](docs/DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +*DefaultApi* | [**create_namespaced_virtual_machine_pool**](docs/DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools | *DefaultApi* | [**create_namespaced_virtual_machine_preference**](docs/DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | *DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | *DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | @@ -89,13 +90,14 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_collection_migration_policy**](docs/DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**delete_collection_namespaced_kube_virt**](docs/DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | *DefaultApi* | [**delete_collection_namespaced_virtual_machine**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_backup**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_backup) | **DELETE** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | -*DefaultApi* | [**delete_collection_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +*DefaultApi* | [**delete_collection_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | *DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | @@ -106,13 +108,14 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_migration_policy**](docs/DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | *DefaultApi* | [**delete_namespaced_kube_virt**](docs/DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine**](docs/DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_backup**](docs/DefaultApi.md#delete_namespaced_virtual_machine_backup) | **DELETE** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_export**](docs/DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -*DefaultApi* | [**delete_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +*DefaultApi* | [**delete_namespaced_virtual_machine_pool**](docs/DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_preference**](docs/DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -120,8 +123,9 @@ Class | Method | HTTP request | Description *DefaultApi* | [**delete_virtual_machine_clone**](docs/DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | *DefaultApi* | [**delete_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | -*DefaultApi* | [**func13**](docs/DefaultApi.md#func13) | **GET** /healthz | +*DefaultApi* | [**func15**](docs/DefaultApi.md#func15) | **GET** /healthz | *DefaultApi* | [**func6**](docs/DefaultApi.md#func6) | **GET** /openapi/v2 | +*DefaultApi* | [**get_api_group_backup_kubevirt_io**](docs/DefaultApi.md#get_api_group_backup_kubevirt_io) | **GET** /apis/backup.kubevirt.io/ | *DefaultApi* | [**get_api_group_clone_kubevirt_io**](docs/DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | *DefaultApi* | [**get_api_group_export_kubevirt_io**](docs/DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | *DefaultApi* | [**get_api_group_instancetype_kubevirt_io**](docs/DefaultApi.md#get_api_group_instancetype_kubevirt_io) | **GET** /apis/instancetype.kubevirt.io/ | @@ -130,12 +134,13 @@ Class | Method | HTTP request | Description *DefaultApi* | [**get_api_group_migrations_kubevirt_io**](docs/DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | *DefaultApi* | [**get_api_group_pool_kubevirt_io**](docs/DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | *DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | +*DefaultApi* | [**get_api_resources_backup_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_backup_kubevirt_io_v1alpha1) | **GET** /apis/backup.kubevirt.io/v1alpha1/ | *DefaultApi* | [**get_api_resources_clone_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_clone_kubevirt_io_v1beta1) | **GET** /apis/clone.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_api_resources_export_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_export_kubevirt_io_v1beta1) | **GET** /apis/export.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_api_resources_instancetype_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1beta1) | **GET** /apis/instancetype.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | *DefaultApi* | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | -*DefaultApi* | [**get_api_resources_pool_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_pool_kubevirt_io_v1alpha1) | **GET** /apis/pool.kubevirt.io/v1alpha1/ | +*DefaultApi* | [**get_api_resources_pool_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_pool_kubevirt_io_v1beta1) | **GET** /apis/pool.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_api_resources_snapshot_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1beta1) | **GET** /apis/snapshot.kubevirt.io/v1beta1/ | *DefaultApi* | [**get_root_paths**](docs/DefaultApi.md#get_root_paths) | **GET** / | *DefaultApi* | [**handle_dump_profiler**](docs/DefaultApi.md#handle_dump_profiler) | **GET** /dump-profiler | @@ -145,17 +150,19 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_migration_policy**](docs/DefaultApi.md#list_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | *DefaultApi* | [**list_namespaced_kube_virt**](docs/DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | *DefaultApi* | [**list_namespaced_virtual_machine**](docs/DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +*DefaultApi* | [**list_namespaced_virtual_machine_backup**](docs/DefaultApi.md#list_namespaced_virtual_machine_backup) | **GET** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups | *DefaultApi* | [**list_namespaced_virtual_machine_export**](docs/DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | *DefaultApi* | [**list_namespaced_virtual_machine_instance**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | *DefaultApi* | [**list_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | *DefaultApi* | [**list_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | *DefaultApi* | [**list_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | *DefaultApi* | [**list_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | -*DefaultApi* | [**list_namespaced_virtual_machine_pool**](docs/DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +*DefaultApi* | [**list_namespaced_virtual_machine_pool**](docs/DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools | *DefaultApi* | [**list_namespaced_virtual_machine_preference**](docs/DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | *DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | *DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | *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 | @@ -166,7 +173,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**list_virtual_machine_instance_preset_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | *DefaultApi* | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | *DefaultApi* | [**list_virtual_machine_instancetype_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineinstancetypes | -*DefaultApi* | [**list_virtual_machine_pool_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | +*DefaultApi* | [**list_virtual_machine_pool_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1beta1/virtualmachinepools | *DefaultApi* | [**list_virtual_machine_preference_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachinepreferences | *DefaultApi* | [**list_virtual_machine_restore_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/virtualmachinerestores | *DefaultApi* | [**list_virtual_machine_snapshot_content_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/virtualmachinesnapshotcontents | @@ -174,13 +181,14 @@ Class | Method | HTTP request | Description *DefaultApi* | [**patch_migration_policy**](docs/DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | *DefaultApi* | [**patch_namespaced_kube_virt**](docs/DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine**](docs/DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_backup**](docs/DefaultApi.md#patch_namespaced_virtual_machine_backup) | **PATCH** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_export**](docs/DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -*DefaultApi* | [**patch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +*DefaultApi* | [**patch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -191,13 +199,14 @@ Class | Method | HTTP request | Description *DefaultApi* | [**read_migration_policy**](docs/DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | *DefaultApi* | [**read_namespaced_kube_virt**](docs/DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | *DefaultApi* | [**read_namespaced_virtual_machine**](docs/DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_backup**](docs/DefaultApi.md#read_namespaced_virtual_machine_backup) | **GET** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_export**](docs/DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_instance**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -*DefaultApi* | [**read_namespaced_virtual_machine_pool**](docs/DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +*DefaultApi* | [**read_namespaced_virtual_machine_pool**](docs/DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_preference**](docs/DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -208,13 +217,14 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_migration_policy**](docs/DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | *DefaultApi* | [**replace_namespaced_kube_virt**](docs/DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine**](docs/DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_backup**](docs/DefaultApi.md#replace_namespaced_virtual_machine_backup) | **PUT** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_export**](docs/DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -*DefaultApi* | [**replace_namespaced_virtual_machine_pool**](docs/DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +*DefaultApi* | [**replace_namespaced_virtual_machine_pool**](docs/DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_preference**](docs/DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -222,6 +232,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**replace_virtual_machine_clone**](docs/DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | *DefaultApi* | [**replace_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | +*DefaultApi* | [**v1_backup**](docs/DefaultApi.md#v1_backup) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/backup | *DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | *DefaultApi* | [**v1_console**](docs/DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/console | *DefaultApi* | [**v1_expand_spec**](docs/DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/expand-vm-spec | @@ -233,6 +244,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_memory_dump**](docs/DefaultApi.md#v1_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/memorydump | *DefaultApi* | [**v1_migrate**](docs/DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/migrate | *DefaultApi* | [**v1_pause**](docs/DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/pause | +*DefaultApi* | [**v1_redefine_checkpoint**](docs/DefaultApi.md#v1_redefine_checkpoint) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/redefine-checkpoint | *DefaultApi* | [**v1_remove_memory_dump**](docs/DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removememorydump | *DefaultApi* | [**v1_reset**](docs/DefaultApi.md#v1_reset) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/reset | *DefaultApi* | [**v1_restart**](docs/DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/restart | @@ -250,6 +262,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1_vnc**](docs/DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | *DefaultApi* | [**v1_vnc_screenshot**](docs/DefaultApi.md#v1_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc/screenshot | *DefaultApi* | [**v1_vsock**](docs/DefaultApi.md#v1_vsock) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vsock | +*DefaultApi* | [**v1alpha3_backup**](docs/DefaultApi.md#v1alpha3_backup) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/backup | *DefaultApi* | [**v1alpha3_check_health**](docs/DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | *DefaultApi* | [**v1alpha3_console**](docs/DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/console | *DefaultApi* | [**v1alpha3_expand_spec**](docs/DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/expand-vm-spec | @@ -260,6 +273,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3_memory_dump**](docs/DefaultApi.md#v1alpha3_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/memorydump | *DefaultApi* | [**v1alpha3_migrate**](docs/DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate | *DefaultApi* | [**v1alpha3_pause**](docs/DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause | +*DefaultApi* | [**v1alpha3_redefine_checkpoint**](docs/DefaultApi.md#v1alpha3_redefine_checkpoint) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/redefine-checkpoint | *DefaultApi* | [**v1alpha3_remove_memory_dump**](docs/DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removememorydump | *DefaultApi* | [**v1alpha3_reset**](docs/DefaultApi.md#v1alpha3_reset) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/reset | *DefaultApi* | [**v1alpha3_restart**](docs/DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | @@ -283,12 +297,14 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1alpha3stop_cluster_profiler**](docs/DefaultApi.md#v1alpha3stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler | *DefaultApi* | [**v1alpha3usbredir**](docs/DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | *DefaultApi* | [**v1alpha3vm_addvolume**](docs/DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/addvolume | +*DefaultApi* | [**v1alpha3vm_evacuatecancel**](docs/DefaultApi.md#v1alpha3vm_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/evacuate/cancel | *DefaultApi* | [**v1alpha3vm_expand_spec**](docs/DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/expand-spec | *DefaultApi* | [**v1alpha3vm_objectgraph**](docs/DefaultApi.md#v1alpha3vm_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/objectgraph | *DefaultApi* | [**v1alpha3vm_port_forward**](docs/DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | *DefaultApi* | [**v1alpha3vm_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | *DefaultApi* | [**v1alpha3vm_removevolume**](docs/DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removevolume | *DefaultApi* | [**v1alpha3vmi_addvolume**](docs/DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +*DefaultApi* | [**v1alpha3vmi_evacuatecancel**](docs/DefaultApi.md#v1alpha3vmi_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/evacuate/cancel | *DefaultApi* | [**v1alpha3vmi_objectgraph**](docs/DefaultApi.md#v1alpha3vmi_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/objectgraph | *DefaultApi* | [**v1alpha3vmi_port_forward**](docs/DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | *DefaultApi* | [**v1alpha3vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | @@ -299,12 +315,14 @@ Class | Method | HTTP request | Description *DefaultApi* | [**v1stop_cluster_profiler**](docs/DefaultApi.md#v1stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/stop-cluster-profiler | *DefaultApi* | [**v1usbredir**](docs/DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | *DefaultApi* | [**v1vm_addvolume**](docs/DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/addvolume | +*DefaultApi* | [**v1vm_evacuatecancel**](docs/DefaultApi.md#v1vm_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/evacuate/cancel | *DefaultApi* | [**v1vm_expand_spec**](docs/DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/expand-spec | *DefaultApi* | [**v1vm_objectgraph**](docs/DefaultApi.md#v1vm_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/objectgraph | *DefaultApi* | [**v1vm_port_forward**](docs/DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | *DefaultApi* | [**v1vm_port_forward_with_protocol**](docs/DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | *DefaultApi* | [**v1vm_removevolume**](docs/DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removevolume | *DefaultApi* | [**v1vmi_addvolume**](docs/DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +*DefaultApi* | [**v1vmi_evacuatecancel**](docs/DefaultApi.md#v1vmi_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/evacuate/cancel | *DefaultApi* | [**v1vmi_objectgraph**](docs/DefaultApi.md#v1vmi_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/objectgraph | *DefaultApi* | [**v1vmi_port_forward**](docs/DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | *DefaultApi* | [**v1vmi_port_forward_with_protocol**](docs/DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | @@ -313,17 +331,19 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_migration_policy_list_for_all_namespaces**](docs/DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | *DefaultApi* | [**watch_namespaced_kube_virt**](docs/DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/kubevirt | *DefaultApi* | [**watch_namespaced_virtual_machine**](docs/DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachines | +*DefaultApi* | [**watch_namespaced_virtual_machine_backup**](docs/DefaultApi.md#watch_namespaced_virtual_machine_backup) | **GET** /apis/backup.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinebackups | *DefaultApi* | [**watch_namespaced_virtual_machine_export**](docs/DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineexports | *DefaultApi* | [**watch_namespaced_virtual_machine_instance**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstances | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_migration**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancemigrations | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_preset**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancepresets | *DefaultApi* | [**watch_namespaced_virtual_machine_instance_replica_set**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | *DefaultApi* | [**watch_namespaced_virtual_machine_instancetype**](docs/DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineinstancetypes | -*DefaultApi* | [**watch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepools | +*DefaultApi* | [**watch_namespaced_virtual_machine_pool**](docs/DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepools | *DefaultApi* | [**watch_namespaced_virtual_machine_preference**](docs/DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepreferences | *DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinerestores | *DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshots | *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 | @@ -334,7 +354,7 @@ Class | Method | HTTP request | Description *DefaultApi* | [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | *DefaultApi* | [**watch_virtual_machine_instancetype_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineinstancetypes | *DefaultApi* | [**watch_virtual_machine_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | -*DefaultApi* | [**watch_virtual_machine_pool_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | +*DefaultApi* | [**watch_virtual_machine_pool_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1beta1/watch/virtualmachinepools | *DefaultApi* | [**watch_virtual_machine_preference_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachinepreferences | *DefaultApi* | [**watch_virtual_machine_restore_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinerestores | *DefaultApi* | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinesnapshotcontents | @@ -410,6 +430,8 @@ Class | Method | HTTP request | Description - [V1CPUFeature](docs/V1CPUFeature.md) - [V1CPUTopology](docs/V1CPUTopology.md) - [V1CertConfig](docs/V1CertConfig.md) + - [V1ChangedBlockTrackingSelectors](docs/V1ChangedBlockTrackingSelectors.md) + - [V1ChangedBlockTrackingStatus](docs/V1ChangedBlockTrackingStatus.md) - [V1Chassis](docs/V1Chassis.md) - [V1ClientPassthroughDevices](docs/V1ClientPassthroughDevices.md) - [V1Clock](docs/V1Clock.md) @@ -419,10 +441,12 @@ Class | Method | HTTP request | Description - [V1CloudInitNoCloudSource](docs/V1CloudInitNoCloudSource.md) - [V1CommonInstancetypesDeployment](docs/V1CommonInstancetypesDeployment.md) - [V1ComponentConfig](docs/V1ComponentConfig.md) + - [V1ConfidentialComputeConfiguration](docs/V1ConfidentialComputeConfiguration.md) - [V1ConfigDriveSSHPublicKeyAccessCredentialPropagation](docs/V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md) - [V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [V1ContainerDiskInfo](docs/V1ContainerDiskInfo.md) - [V1ContainerDiskSource](docs/V1ContainerDiskSource.md) + - [V1ContainerPathVolumeSource](docs/V1ContainerPathVolumeSource.md) - [V1ControllerRevisionRef](docs/V1ControllerRevisionRef.md) - [V1CustomBlockSize](docs/V1CustomBlockSize.md) - [V1CustomProfile](docs/V1CustomProfile.md) @@ -437,10 +461,6 @@ Class | Method | HTTP request | Description - [V1DeprecatedInterfacePasst](docs/V1DeprecatedInterfacePasst.md) - [V1DeprecatedInterfaceSlirp](docs/V1DeprecatedInterfaceSlirp.md) - [V1DeveloperConfiguration](docs/V1DeveloperConfiguration.md) - - [V1DeviceAttribute](docs/V1DeviceAttribute.md) - - [V1DeviceResourceClaimStatus](docs/V1DeviceResourceClaimStatus.md) - - [V1DeviceStatus](docs/V1DeviceStatus.md) - - [V1DeviceStatusInfo](docs/V1DeviceStatusInfo.md) - [V1Devices](docs/V1Devices.md) - [V1Diag288Watchdog](docs/V1Diag288Watchdog.md) - [V1DisableFreePageReporting](docs/V1DisableFreePageReporting.md) @@ -457,6 +477,7 @@ Class | Method | HTTP request | Description - [V1EFI](docs/V1EFI.md) - [V1EmptyDiskSource](docs/V1EmptyDiskSource.md) - [V1EphemeralVolumeSource](docs/V1EphemeralVolumeSource.md) + - [V1EvacuateCancelOptions](docs/V1EvacuateCancelOptions.md) - [V1FeatureAPIC](docs/V1FeatureAPIC.md) - [V1FeatureHyperv](docs/V1FeatureHyperv.md) - [V1FeatureKVM](docs/V1FeatureKVM.md) @@ -481,6 +502,7 @@ Class | Method | HTTP request | Description - [V1Hugepages](docs/V1Hugepages.md) - [V1HyperVPassthrough](docs/V1HyperVPassthrough.md) - [V1HypervTimer](docs/V1HypervTimer.md) + - [V1HypervisorConfiguration](docs/V1HypervisorConfiguration.md) - [V1I6300ESBWatchdog](docs/V1I6300ESBWatchdog.md) - [V1InitrdInfo](docs/V1InitrdInfo.md) - [V1Input](docs/V1Input.md) @@ -492,6 +514,7 @@ Class | Method | HTTP request | Description - [V1InterfaceBindingPlugin](docs/V1InterfaceBindingPlugin.md) - [V1InterfaceBridge](docs/V1InterfaceBridge.md) - [V1InterfaceMasquerade](docs/V1InterfaceMasquerade.md) + - [V1InterfacePasstBinding](docs/V1InterfacePasstBinding.md) - [V1InterfaceSRIOV](docs/V1InterfaceSRIOV.md) - [V1KSMConfiguration](docs/V1KSMConfiguration.md) - [V1KVMTimer](docs/V1KVMTimer.md) @@ -550,6 +573,7 @@ Class | Method | HTTP request | Description - [V1Realtime](docs/V1Realtime.md) - [V1ReloadableComponentConfiguration](docs/V1ReloadableComponentConfiguration.md) - [V1RemoveVolumeOptions](docs/V1RemoveVolumeOptions.md) + - [V1ReservedOverhead](docs/V1ReservedOverhead.md) - [V1ResourceRequirements](docs/V1ResourceRequirements.md) - [V1ResourceRequirementsWithoutClaims](docs/V1ResourceRequirementsWithoutClaims.md) - [V1RestartOptions](docs/V1RestartOptions.md) @@ -559,6 +583,7 @@ Class | Method | HTTP request | Description - [V1SEVMeasurementInfo](docs/V1SEVMeasurementInfo.md) - [V1SEVPlatformInfo](docs/V1SEVPlatformInfo.md) - [V1SEVPolicy](docs/V1SEVPolicy.md) + - [V1SEVSNP](docs/V1SEVSNP.md) - [V1SEVSecretOptions](docs/V1SEVSecretOptions.md) - [V1SEVSessionOptions](docs/V1SEVSessionOptions.md) - [V1SMBiosConfiguration](docs/V1SMBiosConfiguration.md) @@ -575,6 +600,10 @@ Class | Method | HTTP request | Description - [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) @@ -586,12 +615,15 @@ Class | Method | HTTP request | Description - [V1UserPasswordAccessCredential](docs/V1UserPasswordAccessCredential.md) - [V1UserPasswordAccessCredentialPropagationMethod](docs/V1UserPasswordAccessCredentialPropagationMethod.md) - [V1UserPasswordAccessCredentialSource](docs/V1UserPasswordAccessCredentialSource.md) + - [V1UtilityVolume](docs/V1UtilityVolume.md) - [V1VGPUDisplayOptions](docs/V1VGPUDisplayOptions.md) - [V1VGPUOptions](docs/V1VGPUOptions.md) - [V1VideoDevice](docs/V1VideoDevice.md) + - [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) @@ -599,7 +631,6 @@ Class | Method | HTTP request | Description - [V1VirtualMachineInstanceFileSystemList](docs/V1VirtualMachineInstanceFileSystemList.md) - [V1VirtualMachineInstanceGuestAgentInfo](docs/V1VirtualMachineInstanceGuestAgentInfo.md) - [V1VirtualMachineInstanceGuestOSInfo](docs/V1VirtualMachineInstanceGuestOSInfo.md) - - [V1VirtualMachineInstanceGuestOSLoad](docs/V1VirtualMachineInstanceGuestOSLoad.md) - [V1VirtualMachineInstanceGuestOSUser](docs/V1VirtualMachineInstanceGuestOSUser.md) - [V1VirtualMachineInstanceGuestOSUserList](docs/V1VirtualMachineInstanceGuestOSUserList.md) - [V1VirtualMachineInstanceList](docs/V1VirtualMachineInstanceList.md) @@ -642,21 +673,19 @@ Class | Method | HTTP request | Description - [V1VolumeStatus](docs/V1VolumeStatus.md) - [V1VolumeUpdateState](docs/V1VolumeUpdateState.md) - [V1Watchdog](docs/V1Watchdog.md) + - [V1alpha1BackupCheckpoint](docs/V1alpha1BackupCheckpoint.md) + - [V1alpha1BackupOptions](docs/V1alpha1BackupOptions.md) + - [V1alpha1BackupVolumeInfo](docs/V1alpha1BackupVolumeInfo.md) + - [V1alpha1Condition](docs/V1alpha1Condition.md) - [V1alpha1MigrationPolicy](docs/V1alpha1MigrationPolicy.md) - [V1alpha1MigrationPolicyList](docs/V1alpha1MigrationPolicyList.md) - [V1alpha1MigrationPolicySpec](docs/V1alpha1MigrationPolicySpec.md) - [V1alpha1MigrationPolicyStatus](docs/V1alpha1MigrationPolicyStatus.md) - [V1alpha1Selectors](docs/V1alpha1Selectors.md) - - [V1alpha1VirtualMachinePool](docs/V1alpha1VirtualMachinePool.md) - - [V1alpha1VirtualMachinePoolCondition](docs/V1alpha1VirtualMachinePoolCondition.md) - - [V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) - - [V1alpha1VirtualMachinePoolNameGeneration](docs/V1alpha1VirtualMachinePoolNameGeneration.md) - - [V1alpha1VirtualMachinePoolProactiveScaleInStrategy](docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md) - - [V1alpha1VirtualMachinePoolScaleInStrategy](docs/V1alpha1VirtualMachinePoolScaleInStrategy.md) - - [V1alpha1VirtualMachinePoolSelectionPolicy](docs/V1alpha1VirtualMachinePoolSelectionPolicy.md) - - [V1alpha1VirtualMachinePoolSpec](docs/V1alpha1VirtualMachinePoolSpec.md) - - [V1alpha1VirtualMachinePoolStatus](docs/V1alpha1VirtualMachinePoolStatus.md) - - [V1alpha1VirtualMachineTemplateSpec](docs/V1alpha1VirtualMachineTemplateSpec.md) + - [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) @@ -684,8 +713,10 @@ Class | Method | HTTP request | Description - [V1beta1MemoryInstancetype](docs/V1beta1MemoryInstancetype.md) - [V1beta1MemoryPreferenceRequirement](docs/V1beta1MemoryPreferenceRequirement.md) - [V1beta1PersistentVolumeClaim](docs/V1beta1PersistentVolumeClaim.md) + - [V1beta1PlatformOptions](docs/V1beta1PlatformOptions.md) - [V1beta1PreferenceRequirements](docs/V1beta1PreferenceRequirements.md) - [V1beta1SnapshotVolumesLists](docs/V1beta1SnapshotVolumesLists.md) + - [V1beta1SourceIndication](docs/V1beta1SourceIndication.md) - [V1beta1SourceSpec](docs/V1beta1SourceSpec.md) - [V1beta1SpreadOptions](docs/V1beta1SpreadOptions.md) - [V1beta1StorageSpec](docs/V1beta1StorageSpec.md) @@ -700,6 +731,8 @@ Class | Method | HTTP request | Description - [V1beta1VirtualMachineClusterPreference](docs/V1beta1VirtualMachineClusterPreference.md) - [V1beta1VirtualMachineClusterPreferenceList](docs/V1beta1VirtualMachineClusterPreferenceList.md) - [V1beta1VirtualMachineExport](docs/V1beta1VirtualMachineExport.md) + - [V1beta1VirtualMachineExportBackup](docs/V1beta1VirtualMachineExportBackup.md) + - [V1beta1VirtualMachineExportBackupEndpoint](docs/V1beta1VirtualMachineExportBackupEndpoint.md) - [V1beta1VirtualMachineExportLink](docs/V1beta1VirtualMachineExportLink.md) - [V1beta1VirtualMachineExportLinks](docs/V1beta1VirtualMachineExportLinks.md) - [V1beta1VirtualMachineExportList](docs/V1beta1VirtualMachineExportList.md) @@ -711,6 +744,22 @@ Class | Method | HTTP request | Description - [V1beta1VirtualMachineInstancetype](docs/V1beta1VirtualMachineInstancetype.md) - [V1beta1VirtualMachineInstancetypeList](docs/V1beta1VirtualMachineInstancetypeList.md) - [V1beta1VirtualMachineInstancetypeSpec](docs/V1beta1VirtualMachineInstancetypeSpec.md) + - [V1beta1VirtualMachineOpportunisticUpdateStrategy](docs/V1beta1VirtualMachineOpportunisticUpdateStrategy.md) + - [V1beta1VirtualMachinePool](docs/V1beta1VirtualMachinePool.md) + - [V1beta1VirtualMachinePoolAutohealingStrategy](docs/V1beta1VirtualMachinePoolAutohealingStrategy.md) + - [V1beta1VirtualMachinePoolCondition](docs/V1beta1VirtualMachinePoolCondition.md) + - [V1beta1VirtualMachinePoolList](docs/V1beta1VirtualMachinePoolList.md) + - [V1beta1VirtualMachinePoolNameGeneration](docs/V1beta1VirtualMachinePoolNameGeneration.md) + - [V1beta1VirtualMachinePoolOpportunisticScaleInStrategy](docs/V1beta1VirtualMachinePoolOpportunisticScaleInStrategy.md) + - [V1beta1VirtualMachinePoolProactiveScaleInStrategy](docs/V1beta1VirtualMachinePoolProactiveScaleInStrategy.md) + - [V1beta1VirtualMachinePoolProactiveUpdateStrategy](docs/V1beta1VirtualMachinePoolProactiveUpdateStrategy.md) + - [V1beta1VirtualMachinePoolScaleInStrategy](docs/V1beta1VirtualMachinePoolScaleInStrategy.md) + - [V1beta1VirtualMachinePoolSelectionPolicy](docs/V1beta1VirtualMachinePoolSelectionPolicy.md) + - [V1beta1VirtualMachinePoolSelectors](docs/V1beta1VirtualMachinePoolSelectors.md) + - [V1beta1VirtualMachinePoolSpec](docs/V1beta1VirtualMachinePoolSpec.md) + - [V1beta1VirtualMachinePoolStatus](docs/V1beta1VirtualMachinePoolStatus.md) + - [V1beta1VirtualMachinePoolUnmanagedStrategy](docs/V1beta1VirtualMachinePoolUnmanagedStrategy.md) + - [V1beta1VirtualMachinePoolUpdateStrategy](docs/V1beta1VirtualMachinePoolUpdateStrategy.md) - [V1beta1VirtualMachinePreference](docs/V1beta1VirtualMachinePreference.md) - [V1beta1VirtualMachinePreferenceList](docs/V1beta1VirtualMachinePreferenceList.md) - [V1beta1VirtualMachinePreferenceSpec](docs/V1beta1VirtualMachinePreferenceSpec.md) @@ -726,6 +775,7 @@ Class | Method | HTTP request | Description - [V1beta1VirtualMachineSnapshotList](docs/V1beta1VirtualMachineSnapshotList.md) - [V1beta1VirtualMachineSnapshotSpec](docs/V1beta1VirtualMachineSnapshotSpec.md) - [V1beta1VirtualMachineSnapshotStatus](docs/V1beta1VirtualMachineSnapshotStatus.md) + - [V1beta1VirtualMachineTemplateSpec](docs/V1beta1VirtualMachineTemplateSpec.md) - [V1beta1VolumeBackup](docs/V1beta1VolumeBackup.md) - [V1beta1VolumePreferences](docs/V1beta1VolumePreferences.md) - [V1beta1VolumeRestore](docs/V1beta1VolumeRestore.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index 6e11d307..c5df68f0 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -7,13 +7,14 @@ Method | HTTP request | Description [**create_migration_policy**](DefaultApi.md#create_migration_policy) | **POST** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**create_namespaced_kube_virt**](DefaultApi.md#create_namespaced_kube_virt) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | [**create_namespaced_virtual_machine**](DefaultApi.md#create_namespaced_virtual_machine) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +[**create_namespaced_virtual_machine_backup**](DefaultApi.md#create_namespaced_virtual_machine_backup) | **POST** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups | [**create_namespaced_virtual_machine_export**](DefaultApi.md#create_namespaced_virtual_machine_export) | **POST** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | [**create_namespaced_virtual_machine_instance**](DefaultApi.md#create_namespaced_virtual_machine_instance) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | [**create_namespaced_virtual_machine_instance_migration**](DefaultApi.md#create_namespaced_virtual_machine_instance_migration) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | [**create_namespaced_virtual_machine_instance_preset**](DefaultApi.md#create_namespaced_virtual_machine_instance_preset) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | [**create_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#create_namespaced_virtual_machine_instance_replica_set) | **POST** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | [**create_namespaced_virtual_machine_instancetype**](DefaultApi.md#create_namespaced_virtual_machine_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | -[**create_namespaced_virtual_machine_pool**](DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +[**create_namespaced_virtual_machine_pool**](DefaultApi.md#create_namespaced_virtual_machine_pool) | **POST** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools | [**create_namespaced_virtual_machine_preference**](DefaultApi.md#create_namespaced_virtual_machine_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | [**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | @@ -24,13 +25,14 @@ Method | HTTP request | Description [**delete_collection_migration_policy**](DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**delete_collection_namespaced_kube_virt**](DefaultApi.md#delete_collection_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | [**delete_collection_namespaced_virtual_machine**](DefaultApi.md#delete_collection_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +[**delete_collection_namespaced_virtual_machine_backup**](DefaultApi.md#delete_collection_namespaced_virtual_machine_backup) | **DELETE** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups | [**delete_collection_namespaced_virtual_machine_export**](DefaultApi.md#delete_collection_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | [**delete_collection_namespaced_virtual_machine_instance**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | [**delete_collection_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | [**delete_collection_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | [**delete_collection_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | [**delete_collection_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_collection_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | -[**delete_collection_namespaced_virtual_machine_pool**](DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +[**delete_collection_namespaced_virtual_machine_pool**](DefaultApi.md#delete_collection_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools | [**delete_collection_namespaced_virtual_machine_preference**](DefaultApi.md#delete_collection_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | [**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | @@ -41,13 +43,14 @@ Method | HTTP request | Description [**delete_migration_policy**](DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | [**delete_namespaced_kube_virt**](DefaultApi.md#delete_namespaced_kube_virt) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | [**delete_namespaced_virtual_machine**](DefaultApi.md#delete_namespaced_virtual_machine) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +[**delete_namespaced_virtual_machine_backup**](DefaultApi.md#delete_namespaced_virtual_machine_backup) | **DELETE** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | [**delete_namespaced_virtual_machine_export**](DefaultApi.md#delete_namespaced_virtual_machine_export) | **DELETE** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | [**delete_namespaced_virtual_machine_instance**](DefaultApi.md#delete_namespaced_virtual_machine_instance) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | [**delete_namespaced_virtual_machine_instance_migration**](DefaultApi.md#delete_namespaced_virtual_machine_instance_migration) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | [**delete_namespaced_virtual_machine_instance_preset**](DefaultApi.md#delete_namespaced_virtual_machine_instance_preset) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | [**delete_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#delete_namespaced_virtual_machine_instance_replica_set) | **DELETE** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | [**delete_namespaced_virtual_machine_instancetype**](DefaultApi.md#delete_namespaced_virtual_machine_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -[**delete_namespaced_virtual_machine_pool**](DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +[**delete_namespaced_virtual_machine_pool**](DefaultApi.md#delete_namespaced_virtual_machine_pool) | **DELETE** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | [**delete_namespaced_virtual_machine_preference**](DefaultApi.md#delete_namespaced_virtual_machine_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | [**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | [**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -55,8 +58,9 @@ Method | HTTP request | Description [**delete_virtual_machine_clone**](DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | [**delete_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | [**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | -[**func13**](DefaultApi.md#func13) | **GET** /healthz | +[**func15**](DefaultApi.md#func15) | **GET** /healthz | [**func6**](DefaultApi.md#func6) | **GET** /openapi/v2 | +[**get_api_group_backup_kubevirt_io**](DefaultApi.md#get_api_group_backup_kubevirt_io) | **GET** /apis/backup.kubevirt.io/ | [**get_api_group_clone_kubevirt_io**](DefaultApi.md#get_api_group_clone_kubevirt_io) | **GET** /apis/clone.kubevirt.io/ | [**get_api_group_export_kubevirt_io**](DefaultApi.md#get_api_group_export_kubevirt_io) | **GET** /apis/export.kubevirt.io/ | [**get_api_group_instancetype_kubevirt_io**](DefaultApi.md#get_api_group_instancetype_kubevirt_io) | **GET** /apis/instancetype.kubevirt.io/ | @@ -65,12 +69,13 @@ Method | HTTP request | Description [**get_api_group_migrations_kubevirt_io**](DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | [**get_api_group_pool_kubevirt_io**](DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | [**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | +[**get_api_resources_backup_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_backup_kubevirt_io_v1alpha1) | **GET** /apis/backup.kubevirt.io/v1alpha1/ | [**get_api_resources_clone_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_clone_kubevirt_io_v1beta1) | **GET** /apis/clone.kubevirt.io/v1beta1/ | [**get_api_resources_export_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_export_kubevirt_io_v1beta1) | **GET** /apis/export.kubevirt.io/v1beta1/ | [**get_api_resources_instancetype_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1beta1) | **GET** /apis/instancetype.kubevirt.io/v1beta1/ | [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | [**get_api_resources_migrations_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_migrations_kubevirt_io_v1alpha1) | **GET** /apis/migrations.kubevirt.io/v1alpha1/ | -[**get_api_resources_pool_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_pool_kubevirt_io_v1alpha1) | **GET** /apis/pool.kubevirt.io/v1alpha1/ | +[**get_api_resources_pool_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_pool_kubevirt_io_v1beta1) | **GET** /apis/pool.kubevirt.io/v1beta1/ | [**get_api_resources_snapshot_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_snapshot_kubevirt_io_v1beta1) | **GET** /apis/snapshot.kubevirt.io/v1beta1/ | [**get_root_paths**](DefaultApi.md#get_root_paths) | **GET** / | [**handle_dump_profiler**](DefaultApi.md#handle_dump_profiler) | **GET** /dump-profiler | @@ -80,17 +85,19 @@ Method | HTTP request | Description [**list_migration_policy**](DefaultApi.md#list_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | [**list_namespaced_kube_virt**](DefaultApi.md#list_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt | [**list_namespaced_virtual_machine**](DefaultApi.md#list_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines | +[**list_namespaced_virtual_machine_backup**](DefaultApi.md#list_namespaced_virtual_machine_backup) | **GET** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups | [**list_namespaced_virtual_machine_export**](DefaultApi.md#list_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports | [**list_namespaced_virtual_machine_instance**](DefaultApi.md#list_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances | [**list_namespaced_virtual_machine_instance_migration**](DefaultApi.md#list_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations | [**list_namespaced_virtual_machine_instance_preset**](DefaultApi.md#list_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets | [**list_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#list_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets | [**list_namespaced_virtual_machine_instancetype**](DefaultApi.md#list_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes | -[**list_namespaced_virtual_machine_pool**](DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools | +[**list_namespaced_virtual_machine_pool**](DefaultApi.md#list_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools | [**list_namespaced_virtual_machine_preference**](DefaultApi.md#list_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences | [**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | [**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | [**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 | @@ -101,7 +108,7 @@ Method | HTTP request | Description [**list_virtual_machine_instance_preset_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_preset_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancepresets | [**list_virtual_machine_instance_replica_set_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instance_replica_set_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/virtualmachineinstancereplicasets | [**list_virtual_machine_instancetype_for_all_namespaces**](DefaultApi.md#list_virtual_machine_instancetype_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineinstancetypes | -[**list_virtual_machine_pool_for_all_namespaces**](DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/virtualmachinepools | +[**list_virtual_machine_pool_for_all_namespaces**](DefaultApi.md#list_virtual_machine_pool_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1beta1/virtualmachinepools | [**list_virtual_machine_preference_for_all_namespaces**](DefaultApi.md#list_virtual_machine_preference_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachinepreferences | [**list_virtual_machine_restore_for_all_namespaces**](DefaultApi.md#list_virtual_machine_restore_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/virtualmachinerestores | [**list_virtual_machine_snapshot_content_for_all_namespaces**](DefaultApi.md#list_virtual_machine_snapshot_content_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/virtualmachinesnapshotcontents | @@ -109,13 +116,14 @@ Method | HTTP request | Description [**patch_migration_policy**](DefaultApi.md#patch_migration_policy) | **PATCH** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | [**patch_namespaced_kube_virt**](DefaultApi.md#patch_namespaced_kube_virt) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | [**patch_namespaced_virtual_machine**](DefaultApi.md#patch_namespaced_virtual_machine) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +[**patch_namespaced_virtual_machine_backup**](DefaultApi.md#patch_namespaced_virtual_machine_backup) | **PATCH** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | [**patch_namespaced_virtual_machine_export**](DefaultApi.md#patch_namespaced_virtual_machine_export) | **PATCH** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | [**patch_namespaced_virtual_machine_instance**](DefaultApi.md#patch_namespaced_virtual_machine_instance) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | [**patch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#patch_namespaced_virtual_machine_instance_migration) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | [**patch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#patch_namespaced_virtual_machine_instance_preset) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | [**patch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#patch_namespaced_virtual_machine_instance_replica_set) | **PATCH** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | [**patch_namespaced_virtual_machine_instancetype**](DefaultApi.md#patch_namespaced_virtual_machine_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -[**patch_namespaced_virtual_machine_pool**](DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +[**patch_namespaced_virtual_machine_pool**](DefaultApi.md#patch_namespaced_virtual_machine_pool) | **PATCH** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | [**patch_namespaced_virtual_machine_preference**](DefaultApi.md#patch_namespaced_virtual_machine_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | [**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -126,13 +134,14 @@ Method | HTTP request | Description [**read_migration_policy**](DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | [**read_namespaced_kube_virt**](DefaultApi.md#read_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | [**read_namespaced_virtual_machine**](DefaultApi.md#read_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +[**read_namespaced_virtual_machine_backup**](DefaultApi.md#read_namespaced_virtual_machine_backup) | **GET** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | [**read_namespaced_virtual_machine_export**](DefaultApi.md#read_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | [**read_namespaced_virtual_machine_instance**](DefaultApi.md#read_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | [**read_namespaced_virtual_machine_instance_migration**](DefaultApi.md#read_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | [**read_namespaced_virtual_machine_instance_preset**](DefaultApi.md#read_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | [**read_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#read_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | [**read_namespaced_virtual_machine_instancetype**](DefaultApi.md#read_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -[**read_namespaced_virtual_machine_pool**](DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +[**read_namespaced_virtual_machine_pool**](DefaultApi.md#read_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | [**read_namespaced_virtual_machine_preference**](DefaultApi.md#read_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | [**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -143,13 +152,14 @@ Method | HTTP request | Description [**replace_migration_policy**](DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | [**replace_namespaced_kube_virt**](DefaultApi.md#replace_namespaced_kube_virt) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/kubevirt/{name} | [**replace_namespaced_virtual_machine**](DefaultApi.md#replace_namespaced_virtual_machine) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name} | +[**replace_namespaced_virtual_machine_backup**](DefaultApi.md#replace_namespaced_virtual_machine_backup) | **PUT** /apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name} | [**replace_namespaced_virtual_machine_export**](DefaultApi.md#replace_namespaced_virtual_machine_export) | **PUT** /apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name} | [**replace_namespaced_virtual_machine_instance**](DefaultApi.md#replace_namespaced_virtual_machine_instance) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name} | [**replace_namespaced_virtual_machine_instance_migration**](DefaultApi.md#replace_namespaced_virtual_machine_instance_migration) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancemigrations/{name} | [**replace_namespaced_virtual_machine_instance_preset**](DefaultApi.md#replace_namespaced_virtual_machine_instance_preset) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancepresets/{name} | [**replace_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#replace_namespaced_virtual_machine_instance_replica_set) | **PUT** /apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstancereplicasets/{name} | [**replace_namespaced_virtual_machine_instancetype**](DefaultApi.md#replace_namespaced_virtual_machine_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineinstancetypes/{name} | -[**replace_namespaced_virtual_machine_pool**](DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name} | +[**replace_namespaced_virtual_machine_pool**](DefaultApi.md#replace_namespaced_virtual_machine_pool) | **PUT** /apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name} | [**replace_namespaced_virtual_machine_preference**](DefaultApi.md#replace_namespaced_virtual_machine_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepreferences/{name} | [**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | [**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | @@ -157,6 +167,7 @@ Method | HTTP request | Description [**replace_virtual_machine_clone**](DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | [**replace_virtual_machine_cluster_instancetype**](DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | [**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | +[**v1_backup**](DefaultApi.md#v1_backup) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/backup | [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | [**v1_console**](DefaultApi.md#v1_console) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/console | [**v1_expand_spec**](DefaultApi.md#v1_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/expand-vm-spec | @@ -168,6 +179,7 @@ Method | HTTP request | Description [**v1_memory_dump**](DefaultApi.md#v1_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/memorydump | [**v1_migrate**](DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/migrate | [**v1_pause**](DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/pause | +[**v1_redefine_checkpoint**](DefaultApi.md#v1_redefine_checkpoint) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/redefine-checkpoint | [**v1_remove_memory_dump**](DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removememorydump | [**v1_reset**](DefaultApi.md#v1_reset) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/reset | [**v1_restart**](DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/restart | @@ -185,6 +197,7 @@ Method | HTTP request | Description [**v1_vnc**](DefaultApi.md#v1_vnc) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc | [**v1_vnc_screenshot**](DefaultApi.md#v1_vnc_screenshot) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vnc/screenshot | [**v1_vsock**](DefaultApi.md#v1_vsock) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/vsock | +[**v1alpha3_backup**](DefaultApi.md#v1alpha3_backup) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/backup | [**v1alpha3_check_health**](DefaultApi.md#v1alpha3_check_health) | **GET** /apis/subresources.kubevirt.io/v1alpha3/healthz | [**v1alpha3_console**](DefaultApi.md#v1alpha3_console) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/console | [**v1alpha3_expand_spec**](DefaultApi.md#v1alpha3_expand_spec) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/expand-vm-spec | @@ -195,6 +208,7 @@ Method | HTTP request | Description [**v1alpha3_memory_dump**](DefaultApi.md#v1alpha3_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/memorydump | [**v1alpha3_migrate**](DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate | [**v1alpha3_pause**](DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause | +[**v1alpha3_redefine_checkpoint**](DefaultApi.md#v1alpha3_redefine_checkpoint) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/redefine-checkpoint | [**v1alpha3_remove_memory_dump**](DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removememorydump | [**v1alpha3_reset**](DefaultApi.md#v1alpha3_reset) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/reset | [**v1alpha3_restart**](DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | @@ -218,12 +232,14 @@ Method | HTTP request | Description [**v1alpha3stop_cluster_profiler**](DefaultApi.md#v1alpha3stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1alpha3/stop-cluster-profiler | [**v1alpha3usbredir**](DefaultApi.md#v1alpha3usbredir) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | [**v1alpha3vm_addvolume**](DefaultApi.md#v1alpha3vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/addvolume | +[**v1alpha3vm_evacuatecancel**](DefaultApi.md#v1alpha3vm_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/evacuate/cancel | [**v1alpha3vm_expand_spec**](DefaultApi.md#v1alpha3vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/expand-spec | [**v1alpha3vm_objectgraph**](DefaultApi.md#v1alpha3vm_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/objectgraph | [**v1alpha3vm_port_forward**](DefaultApi.md#v1alpha3vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | [**v1alpha3vm_port_forward_with_protocol**](DefaultApi.md#v1alpha3vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | [**v1alpha3vm_removevolume**](DefaultApi.md#v1alpha3vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removevolume | [**v1alpha3vmi_addvolume**](DefaultApi.md#v1alpha3vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +[**v1alpha3vmi_evacuatecancel**](DefaultApi.md#v1alpha3vmi_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/evacuate/cancel | [**v1alpha3vmi_objectgraph**](DefaultApi.md#v1alpha3vmi_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/objectgraph | [**v1alpha3vmi_port_forward**](DefaultApi.md#v1alpha3vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | [**v1alpha3vmi_port_forward_with_protocol**](DefaultApi.md#v1alpha3vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | @@ -234,12 +250,14 @@ Method | HTTP request | Description [**v1stop_cluster_profiler**](DefaultApi.md#v1stop_cluster_profiler) | **GET** /apis/subresources.kubevirt.io/v1/stop-cluster-profiler | [**v1usbredir**](DefaultApi.md#v1usbredir) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/usbredir | [**v1vm_addvolume**](DefaultApi.md#v1vm_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/addvolume | +[**v1vm_evacuatecancel**](DefaultApi.md#v1vm_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/evacuate/cancel | [**v1vm_expand_spec**](DefaultApi.md#v1vm_expand_spec) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/expand-spec | [**v1vm_objectgraph**](DefaultApi.md#v1vm_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/objectgraph | [**v1vm_port_forward**](DefaultApi.md#v1vm_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port} | [**v1vm_port_forward_with_protocol**](DefaultApi.md#v1vm_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/portforward/{port}/{protocol} | [**v1vm_removevolume**](DefaultApi.md#v1vm_removevolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removevolume | [**v1vmi_addvolume**](DefaultApi.md#v1vmi_addvolume) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume | +[**v1vmi_evacuatecancel**](DefaultApi.md#v1vmi_evacuatecancel) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/evacuate/cancel | [**v1vmi_objectgraph**](DefaultApi.md#v1vmi_objectgraph) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/objectgraph | [**v1vmi_port_forward**](DefaultApi.md#v1vmi_port_forward) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port} | [**v1vmi_port_forward_with_protocol**](DefaultApi.md#v1vmi_port_forward_with_protocol) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/portforward/{port}/{protocol} | @@ -248,17 +266,19 @@ Method | HTTP request | Description [**watch_migration_policy_list_for_all_namespaces**](DefaultApi.md#watch_migration_policy_list_for_all_namespaces) | **GET** /apis/migrations.kubevirt.io/v1alpha1/watch/migrationpolicies | [**watch_namespaced_kube_virt**](DefaultApi.md#watch_namespaced_kube_virt) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/kubevirt | [**watch_namespaced_virtual_machine**](DefaultApi.md#watch_namespaced_virtual_machine) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachines | +[**watch_namespaced_virtual_machine_backup**](DefaultApi.md#watch_namespaced_virtual_machine_backup) | **GET** /apis/backup.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinebackups | [**watch_namespaced_virtual_machine_export**](DefaultApi.md#watch_namespaced_virtual_machine_export) | **GET** /apis/export.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineexports | [**watch_namespaced_virtual_machine_instance**](DefaultApi.md#watch_namespaced_virtual_machine_instance) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstances | [**watch_namespaced_virtual_machine_instance_migration**](DefaultApi.md#watch_namespaced_virtual_machine_instance_migration) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancemigrations | [**watch_namespaced_virtual_machine_instance_preset**](DefaultApi.md#watch_namespaced_virtual_machine_instance_preset) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancepresets | [**watch_namespaced_virtual_machine_instance_replica_set**](DefaultApi.md#watch_namespaced_virtual_machine_instance_replica_set) | **GET** /apis/kubevirt.io/v1/watch/namespaces/{namespace}/virtualmachineinstancereplicasets | [**watch_namespaced_virtual_machine_instancetype**](DefaultApi.md#watch_namespaced_virtual_machine_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachineinstancetypes | -[**watch_namespaced_virtual_machine_pool**](DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepools | +[**watch_namespaced_virtual_machine_pool**](DefaultApi.md#watch_namespaced_virtual_machine_pool) | **GET** /apis/pool.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepools | [**watch_namespaced_virtual_machine_preference**](DefaultApi.md#watch_namespaced_virtual_machine_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepreferences | [**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinerestores | [**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshots | [**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 | @@ -269,7 +289,7 @@ Method | HTTP request | Description [**watch_virtual_machine_instance_replica_set_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instance_replica_set_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachineinstancereplicasets | [**watch_virtual_machine_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineinstancetypes | [**watch_virtual_machine_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_list_for_all_namespaces) | **GET** /apis/kubevirt.io/v1/watch/virtualmachines | -[**watch_virtual_machine_pool_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools | +[**watch_virtual_machine_pool_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_pool_list_for_all_namespaces) | **GET** /apis/pool.kubevirt.io/v1beta1/watch/virtualmachinepools | [**watch_virtual_machine_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachinepreferences | [**watch_virtual_machine_restore_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_restore_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinerestores | [**watch_virtual_machine_snapshot_content_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_snapshot_content_list_for_all_namespaces) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/virtualmachinesnapshotcontents | @@ -421,6 +441,55 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **create_namespaced_virtual_machine_backup** +> V1alpha1VirtualMachineBackup create_namespaced_virtual_machine_backup(body, namespace) + + + +Create a VirtualMachineBackup object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +body = kubevirt.V1alpha1VirtualMachineBackup() # V1alpha1VirtualMachineBackup | +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects + +try: + api_response = api_instance.create_namespaced_virtual_machine_backup(body, namespace) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->create_namespaced_virtual_machine_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **body** | [**V1alpha1VirtualMachineBackup**](V1alpha1VirtualMachineBackup.md)| | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + +### Return type + +[**V1alpha1VirtualMachineBackup**](V1alpha1VirtualMachineBackup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **create_namespaced_virtual_machine_export** > V1beta1VirtualMachineExport create_namespaced_virtual_machine_export(body, namespace) @@ -716,7 +785,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **create_namespaced_virtual_machine_pool** -> V1alpha1VirtualMachinePool create_namespaced_virtual_machine_pool(body, namespace) +> V1beta1VirtualMachinePool create_namespaced_virtual_machine_pool(body, namespace) @@ -732,7 +801,7 @@ from pprint import pprint # create an instance of the API class api_instance = kubevirt.DefaultApi() -body = kubevirt.V1alpha1VirtualMachinePool() # V1alpha1VirtualMachinePool | +body = kubevirt.V1beta1VirtualMachinePool() # V1beta1VirtualMachinePool | namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects try: @@ -746,12 +815,12 @@ except ApiException as e: Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- - **body** | [**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md)| | + **body** | [**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.md)| | **namespace** | **str**| Object name and auth scope, such as for teams and projects | ### Return type -[**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md) +[**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.md) ### Authorization @@ -1284,6 +1353,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_collection_namespaced_virtual_machine_backup** +> K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_backup(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Delete a collection of VirtualMachineBackup objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.delete_collection_namespaced_virtual_machine_backup(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_collection_namespaced_virtual_machine_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_collection_namespaced_virtual_machine_export** > K8sIoApimachineryPkgApisMetaV1Status delete_collection_namespaced_virtual_machine_export(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -2307,6 +2437,63 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **delete_namespaced_virtual_machine_backup** +> K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_backup(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + + + +Delete a VirtualMachineBackup object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.K8sIoApimachineryPkgApisMetaV1DeleteOptions() # K8sIoApimachineryPkgApisMetaV1DeleteOptions | +grace_period_seconds = 56 # int | The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. (optional) +orphan_dependents = true # bool | Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. (optional) +propagation_policy = 'propagation_policy_example' # str | Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. (optional) + +try: + api_response = api_instance.delete_namespaced_virtual_machine_backup(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->delete_namespaced_virtual_machine_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**K8sIoApimachineryPkgApisMetaV1DeleteOptions**](K8sIoApimachineryPkgApisMetaV1DeleteOptions.md)| | + **grace_period_seconds** | **int**| The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. | [optional] + **orphan_dependents** | **bool**| Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. | [optional] + **propagation_policy** | **str**| Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1Status**](K8sIoApimachineryPkgApisMetaV1Status.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **delete_namespaced_virtual_machine_export** > K8sIoApimachineryPkgApisMetaV1Status delete_namespaced_virtual_machine_export(name, namespace, body, grace_period_seconds=grace_period_seconds, orphan_dependents=orphan_dependents, propagation_policy=propagation_policy) @@ -3099,8 +3286,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **func13** -> func13() +# **func15** +> func15() @@ -3118,9 +3305,9 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_instance.func13() + api_instance.func15() except ApiException as e: - print("Exception when calling DefaultApi->func13: %s\n" % e) + print("Exception when calling DefaultApi->func15: %s\n" % e) ``` ### Parameters @@ -3181,6 +3368,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_api_group_backup_kubevirt_io** +> K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_backup_kubevirt_io() + + + +Get a KubeVirt API group + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_group_backup_kubevirt_io() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_group_backup_kubevirt_io: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIGroup**](K8sIoApimachineryPkgApisMetaV1APIGroup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_group_clone_kubevirt_io** > K8sIoApimachineryPkgApisMetaV1APIGroup get_api_group_clone_kubevirt_io() @@ -3525,6 +3755,49 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **get_api_resources_backup_kubevirt_io_v1alpha1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_backup_kubevirt_io_v1alpha1() + + + +Get KubeVirt API Resources + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() + +try: + api_response = api_instance.get_api_resources_backup_kubevirt_io_v1alpha1() + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->get_api_resources_backup_kubevirt_io_v1alpha1: %s\n" % e) +``` + +### Parameters +This endpoint does not need any parameter. + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1APIResourceList**](K8sIoApimachineryPkgApisMetaV1APIResourceList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **get_api_resources_clone_kubevirt_io_v1beta1** > K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_clone_kubevirt_io_v1beta1() @@ -3740,8 +4013,8 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **get_api_resources_pool_kubevirt_io_v1alpha1** -> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_pool_kubevirt_io_v1alpha1() +# **get_api_resources_pool_kubevirt_io_v1beta1** +> K8sIoApimachineryPkgApisMetaV1APIResourceList get_api_resources_pool_kubevirt_io_v1beta1() @@ -3759,10 +4032,10 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() try: - api_response = api_instance.get_api_resources_pool_kubevirt_io_v1alpha1() + api_response = api_instance.get_api_resources_pool_kubevirt_io_v1beta1() pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->get_api_resources_pool_kubevirt_io_v1alpha1: %s\n" % e) + print("Exception when calling DefaultApi->get_api_resources_pool_kubevirt_io_v1beta1: %s\n" % e) ``` ### Parameters @@ -4243,12 +4516,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_virtual_machine_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) +# **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 VirtualMachineExport objects. +Get a list of VirtualMachineBackup objects. ### Example ```python @@ -4271,10 +4544,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_virtual_machine_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) + 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_export: %s\n" % e) + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_backup: %s\n" % e) ``` ### Parameters @@ -4293,7 +4566,7 @@ Name | Type | Description | Notes ### Return type -[**V1beta1VirtualMachineExportList**](V1beta1VirtualMachineExportList.md) +[**V1alpha1VirtualMachineBackupList**](V1alpha1VirtualMachineBackupList.md) ### Authorization @@ -4306,12 +4579,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_virtual_machine_instance** -> V1VirtualMachineInstanceList list_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_virtual_machine_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 VirtualMachineInstance objects. +Get a list of VirtualMachineExport objects. ### Example ```python @@ -4334,10 +4607,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_virtual_machine_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_instance: %s\n" % e) + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_export: %s\n" % e) ``` ### Parameters @@ -4356,7 +4629,7 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceList**](V1VirtualMachineInstanceList.md) +[**V1beta1VirtualMachineExportList**](V1beta1VirtualMachineExportList.md) ### Authorization @@ -4369,12 +4642,12 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **list_namespaced_virtual_machine_instance_migration** -> V1VirtualMachineInstanceMigrationList list_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +# **list_namespaced_virtual_machine_instance** +> 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 VirtualMachineInstanceMigration objects. +Get a list of VirtualMachineInstance objects. ### Example ```python @@ -4397,10 +4670,10 @@ timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) try: - api_response = api_instance.list_namespaced_virtual_machine_instance_migration(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + api_response = api_instance.list_namespaced_virtual_machine_instance(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) pprint(api_response) except ApiException as e: - print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instance_migration: %s\n" % e) + print("Exception when calling DefaultApi->list_namespaced_virtual_machine_instance: %s\n" % e) ``` ### Parameters @@ -4419,7 +4692,70 @@ Name | Type | Description | Notes ### Return type -[**V1VirtualMachineInstanceMigrationList**](V1VirtualMachineInstanceMigrationList.md) +[**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 @@ -4622,7 +4958,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_namespaced_virtual_machine_pool** -> V1alpha1VirtualMachinePoolList list_namespaced_virtual_machine_pool(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachinePoolList list_namespaced_virtual_machine_pool(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -4671,7 +5007,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachinePoolList**](V1alpha1VirtualMachinePoolList.md) +[**V1beta1VirtualMachinePoolList**](V1beta1VirtualMachinePoolList.md) ### Authorization @@ -4936,6 +5272,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **list_virtual_machine_backup_for_all_namespaces** +> V1alpha1VirtualMachineBackupList list_virtual_machine_backup_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Get a list of all VirtualMachineBackup objects. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.list_virtual_machine_backup_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->list_virtual_machine_backup_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**V1alpha1VirtualMachineBackupList**](V1alpha1VirtualMachineBackupList.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json, application/yaml, application/json;stream=watch + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **list_virtual_machine_clone** > V1beta1VirtualMachineCloneList list_virtual_machine_clone(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5547,7 +5944,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **list_virtual_machine_pool_for_all_namespaces** -> V1alpha1VirtualMachinePoolList list_virtual_machine_pool_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) +> V1beta1VirtualMachinePoolList list_virtual_machine_pool_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -5594,7 +5991,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachinePoolList**](V1alpha1VirtualMachinePoolList.md) +[**V1beta1VirtualMachinePoolList**](V1beta1VirtualMachinePoolList.md) ### Authorization @@ -6002,6 +6399,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **patch_namespaced_virtual_machine_backup** +> V1alpha1VirtualMachineBackup patch_namespaced_virtual_machine_backup(name, namespace, body) + + + +Patch a VirtualMachineBackup object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.K8sIoApimachineryPkgApisMetaV1Patch() # K8sIoApimachineryPkgApisMetaV1Patch | + +try: + api_response = api_instance.patch_namespaced_virtual_machine_backup(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->patch_namespaced_virtual_machine_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**K8sIoApimachineryPkgApisMetaV1Patch**](K8sIoApimachineryPkgApisMetaV1Patch.md)| | + +### Return type + +[**V1alpha1VirtualMachineBackup**](V1alpha1VirtualMachineBackup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json-patch+json, application/merge-patch+json + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **patch_namespaced_virtual_machine_export** > V1beta1VirtualMachineExport patch_namespaced_virtual_machine_export(name, namespace, body) @@ -6309,7 +6757,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **patch_namespaced_virtual_machine_pool** -> V1alpha1VirtualMachinePool patch_namespaced_virtual_machine_pool(name, namespace, body) +> V1beta1VirtualMachinePool patch_namespaced_virtual_machine_pool(name, namespace, body) @@ -6346,7 +6794,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md) +[**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.md) ### Authorization @@ -6867,6 +7315,59 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **read_namespaced_virtual_machine_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) @@ -7186,7 +7687,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **read_namespaced_virtual_machine_pool** -> V1alpha1VirtualMachinePool read_namespaced_virtual_machine_pool(name, namespace, exact=exact, export=export) +> V1beta1VirtualMachinePool read_namespaced_virtual_machine_pool(name, namespace, exact=exact, export=export) @@ -7225,7 +7726,7 @@ Name | Type | Description | Notes ### Return type -[**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md) +[**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.md) ### Authorization @@ -7754,6 +8255,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **replace_namespaced_virtual_machine_backup** +> V1alpha1VirtualMachineBackup replace_namespaced_virtual_machine_backup(name, namespace, body) + + + +Update a VirtualMachineBackup object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1alpha1VirtualMachineBackup() # V1alpha1VirtualMachineBackup | + +try: + api_response = api_instance.replace_namespaced_virtual_machine_backup(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->replace_namespaced_virtual_machine_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1VirtualMachineBackup**](V1alpha1VirtualMachineBackup.md)| | + +### Return type + +[**V1alpha1VirtualMachineBackup**](V1alpha1VirtualMachineBackup.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: application/json, application/yaml + - **Accept**: application/json, application/yaml + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **replace_namespaced_virtual_machine_export** > V1beta1VirtualMachineExport replace_namespaced_virtual_machine_export(name, namespace, body) @@ -8061,7 +8613,7 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) # **replace_namespaced_virtual_machine_pool** -> V1alpha1VirtualMachinePool replace_namespaced_virtual_machine_pool(name, namespace, body) +> V1beta1VirtualMachinePool replace_namespaced_virtual_machine_pool(name, namespace, body) @@ -8079,7 +8631,7 @@ from pprint import pprint api_instance = kubevirt.DefaultApi() name = 'name_example' # str | Name of the resource namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects -body = kubevirt.V1alpha1VirtualMachinePool() # V1alpha1VirtualMachinePool | +body = kubevirt.V1beta1VirtualMachinePool() # V1beta1VirtualMachinePool | try: api_response = api_instance.replace_namespaced_virtual_machine_pool(name, namespace, body) @@ -8094,11 +8646,11 @@ Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- **name** | **str**| Name of the resource | **namespace** | **str**| Object name and auth scope, such as for teams and projects | - **body** | [**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md)| | + **body** | [**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.md)| | ### Return type -[**V1alpha1VirtualMachinePool**](V1alpha1VirtualMachinePool.md) +[**V1beta1VirtualMachinePool**](V1beta1VirtualMachinePool.md) ### Authorization @@ -8462,8 +9014,59 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) -# **v1_check_health** -> str v1_check_health() +# **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() @@ -8986,6 +9589,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1_redefine_checkpoint** +> str v1_redefine_checkpoint(name, namespace, body) + + + +Redefine a checkpoint for a VirtualMachineInstance. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1alpha1BackupCheckpoint() # V1alpha1BackupCheckpoint | + +try: + api_response = api_instance.v1_redefine_checkpoint(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1_redefine_checkpoint: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1BackupCheckpoint**](V1alpha1BackupCheckpoint.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1_remove_memory_dump** > str v1_remove_memory_dump(name, namespace) @@ -9827,6 +10481,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_backup** +> str v1alpha3_backup(name, namespace, body) + + + +Initiate a VirtualMachineInstance backup. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1alpha1BackupOptions() # V1alpha1BackupOptions | + +try: + api_response = api_instance.v1alpha3_backup(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1BackupOptions**](V1alpha1BackupOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_check_health** > str v1alpha3_check_health() @@ -10308,6 +11013,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3_redefine_checkpoint** +> str v1alpha3_redefine_checkpoint(name, namespace, body) + + + +Redefine a checkpoint for a VirtualMachineInstance. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1alpha1BackupCheckpoint() # V1alpha1BackupCheckpoint | + +try: + api_response = api_instance.v1alpha3_redefine_checkpoint(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3_redefine_checkpoint: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1alpha1BackupCheckpoint**](V1alpha1BackupCheckpoint.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3_remove_memory_dump** > str v1alpha3_remove_memory_dump(name, namespace) @@ -11411,6 +12167,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3vm_evacuatecancel** +> str v1alpha3vm_evacuatecancel(name, namespace, body) + + + +Cancel evacuation Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1EvacuateCancelOptions() # V1EvacuateCancelOptions | + +try: + api_response = api_instance.v1alpha3vm_evacuatecancel(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vm_evacuatecancel: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1EvacuateCancelOptions**](V1EvacuateCancelOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vm_expand_spec** > str v1alpha3vm_expand_spec(name, namespace) @@ -11715,6 +12522,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1alpha3vmi_evacuatecancel** +> str v1alpha3vmi_evacuatecancel(name, namespace, body) + + + +Cancel evacuation Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1EvacuateCancelOptions() # V1EvacuateCancelOptions | + +try: + api_response = api_instance.v1alpha3vmi_evacuatecancel(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1alpha3vmi_evacuatecancel: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1EvacuateCancelOptions**](V1EvacuateCancelOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1alpha3vmi_objectgraph** > V1ObjectGraphNode v1alpha3vmi_objectgraph(name, namespace, body) @@ -12181,6 +13039,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1vm_evacuatecancel** +> str v1vm_evacuatecancel(name, namespace, body) + + + +Cancel evacuation Virtual Machine + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1EvacuateCancelOptions() # V1EvacuateCancelOptions | + +try: + api_response = api_instance.v1vm_evacuatecancel(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vm_evacuatecancel: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1EvacuateCancelOptions**](V1EvacuateCancelOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vm_expand_spec** > str v1vm_expand_spec(name, namespace) @@ -12485,6 +13394,57 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **v1vmi_evacuatecancel** +> str v1vmi_evacuatecancel(name, namespace, body) + + + +Cancel evacuation Virtual Machine Instance + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +name = 'name_example' # str | Name of the resource +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +body = kubevirt.V1EvacuateCancelOptions() # V1EvacuateCancelOptions | + +try: + api_response = api_instance.v1vmi_evacuatecancel(name, namespace, body) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->v1vmi_evacuatecancel: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **name** | **str**| Name of the resource | + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **body** | [**V1EvacuateCancelOptions**](V1EvacuateCancelOptions.md)| | + +### Return type + +**str** + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: */* + - **Accept**: Not defined + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **v1vmi_objectgraph** > V1ObjectGraphNode v1vmi_objectgraph(name, namespace, body) @@ -12937,6 +13897,69 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_namespaced_virtual_machine_backup** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_backup(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineBackup object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +namespace = 'namespace_example' # str | Object name and auth scope, such as for teams and projects +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_namespaced_virtual_machine_backup(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_namespaced_virtual_machine_backup: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **namespace** | **str**| Object name and auth scope, such as for teams and projects | + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_namespaced_virtual_machine_export** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_namespaced_virtual_machine_export(namespace, _continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) @@ -13630,6 +14653,67 @@ No authorization required [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) +# **watch_virtual_machine_backup_list_for_all_namespaces** +> K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_backup_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + + + +Watch a VirtualMachineBackupList object. + +### Example +```python +from __future__ import print_function +import time +import kubevirt +from kubevirt.rest import ApiException +from pprint import pprint + +# create an instance of the API class +api_instance = kubevirt.DefaultApi() +_continue = '_continue_example' # str | The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. (optional) +field_selector = 'field_selector_example' # str | A selector to restrict the list of returned objects by their fields. Defaults to everything. (optional) +include_uninitialized = true # bool | If true, partially initialized resources are included in the response. (optional) +label_selector = 'label_selector_example' # str | A selector to restrict the list of returned objects by their labels. Defaults to everything (optional) +limit = 56 # int | limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. (optional) +resource_version = 'resource_version_example' # str | When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. (optional) +timeout_seconds = 56 # int | TimeoutSeconds for the list/watch call. (optional) +watch = true # bool | Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. (optional) + +try: + api_response = api_instance.watch_virtual_machine_backup_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) + pprint(api_response) +except ApiException as e: + print("Exception when calling DefaultApi->watch_virtual_machine_backup_list_for_all_namespaces: %s\n" % e) +``` + +### Parameters + +Name | Type | Description | Notes +------------- | ------------- | ------------- | ------------- + **_continue** | **str**| The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. | [optional] + **field_selector** | **str**| A selector to restrict the list of returned objects by their fields. Defaults to everything. | [optional] + **include_uninitialized** | **bool**| If true, partially initialized resources are included in the response. | [optional] + **label_selector** | **str**| A selector to restrict the list of returned objects by their labels. Defaults to everything | [optional] + **limit** | **int**| limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. | [optional] + **resource_version** | **str**| When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. | [optional] + **timeout_seconds** | **int**| TimeoutSeconds for the list/watch call. | [optional] + **watch** | **bool**| Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. | [optional] + +### Return type + +[**K8sIoApimachineryPkgApisMetaV1WatchEvent**](K8sIoApimachineryPkgApisMetaV1WatchEvent.md) + +### Authorization + +No authorization required + +### HTTP request headers + + - **Content-Type**: Not defined + - **Accept**: application/json + +[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) + # **watch_virtual_machine_clone_list_for_all_namespaces** > K8sIoApimachineryPkgApisMetaV1WatchEvent watch_virtual_machine_clone_list_for_all_namespaces(_continue=_continue, field_selector=field_selector, include_uninitialized=include_uninitialized, label_selector=label_selector, limit=limit, resource_version=resource_version, timeout_seconds=timeout_seconds, watch=watch) diff --git a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md index 3cef4bd6..7d683ecb 100644 --- a/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md +++ b/docs/K8sIoApiCoreV1PersistentVolumeClaimSpec.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **resources** | [**K8sIoApiCoreV1VolumeResourceRequirements**](K8sIoApiCoreV1VolumeResourceRequirements.md) | resources represents the minimum resources the volume should have. If RecoverVolumeExpansionFailure feature is enabled users are allowed to specify resource requirements that are lower than previous value but must still be higher than capacity recorded in the status field of the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#resources | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | selector is a label query over volumes to consider for binding. | [optional] **storage_class_name** | **str** | storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 | [optional] -**volume_attributes_class_name** | **str** | volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). | [optional] +**volume_attributes_class_name** | **str** | volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ | [optional] **volume_mode** | **str** | volumeMode defines what type of volume is required by the claim. Value of Filesystem is implied when not included in claim spec. Possible enum values: - `\"Block\"` means the volume will not be formatted with a filesystem and will remain a raw block device. - `\"Filesystem\"` means the volume will be or is formatted with a filesystem. - `\"FromStorageProfile\"` means the volume mode will be auto selected by CDI according to a matching StorageProfile | [optional] **volume_name** | **str** | volumeName is the binding reference to the PersistentVolume backing this claim. | [optional] diff --git a/docs/K8sIoApiCoreV1PodAffinityTerm.md b/docs/K8sIoApiCoreV1PodAffinityTerm.md index 797efe78..30c5585c 100644 --- a/docs/K8sIoApiCoreV1PodAffinityTerm.md +++ b/docs/K8sIoApiCoreV1PodAffinityTerm.md @@ -4,8 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over a set of resources, in this case pods. If it's null, this PodAffinityTerm matches with no Pods. | [optional] -**match_label_keys** | **list[str]** | MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). | [optional] -**mismatch_label_keys** | **list[str]** | MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). | [optional] +**match_label_keys** | **list[str]** | MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. | [optional] +**mismatch_label_keys** | **list[str]** | MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. | [optional] **namespace_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | A label query over the set of namespaces that the term applies to. The term is applied to the union of the namespaces selected by this field and the ones listed in the namespaces field. null selector and null or empty namespaces list means \"this pod's namespace\". An empty selector ({}) matches all namespaces. | [optional] **namespaces** | **list[str]** | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". | [optional] **topology_key** | **str** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. | [default to ''] diff --git a/docs/K8sIoApiCoreV1PodAntiAffinity.md b/docs/K8sIoApiCoreV1PodAntiAffinity.md index 4df8df10..9fca15bb 100644 --- a/docs/K8sIoApiCoreV1PodAntiAffinity.md +++ b/docs/K8sIoApiCoreV1PodAntiAffinity.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**preferred_during_scheduling_ignored_during_execution** | [**list[K8sIoApiCoreV1WeightedPodAffinityTerm]**](K8sIoApiCoreV1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] +**preferred_during_scheduling_ignored_during_execution** | [**list[K8sIoApiCoreV1WeightedPodAffinityTerm]**](K8sIoApiCoreV1WeightedPodAffinityTerm.md) | The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. | [optional] **required_during_scheduling_ignored_during_execution** | [**list[K8sIoApiCoreV1PodAffinityTerm]**](K8sIoApiCoreV1PodAffinityTerm.md) | If the anti-affinity requirements specified by this field are not met at scheduling time, the pod will not be scheduled onto the node. If the anti-affinity requirements specified by this field cease to be met at some point during pod execution (e.g. due to a pod label update), the system may or may not try to eventually evict the pod from its node. When there are multiple elements, the lists of nodes corresponding to each podAffinityTerm are intersected, i.e. all terms must be satisfied. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/K8sIoApiCoreV1TopologySpreadConstraint.md b/docs/K8sIoApiCoreV1TopologySpreadConstraint.md index 49fa6185..2b4310a3 100644 --- a/docs/K8sIoApiCoreV1TopologySpreadConstraint.md +++ b/docs/K8sIoApiCoreV1TopologySpreadConstraint.md @@ -7,8 +7,8 @@ Name | Type | Description | Notes **match_label_keys** | **list[str]** | MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). | [optional] **max_skew** | **int** | MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. | zone1 | zone2 | zone3 | | P P | P P | P | - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). - if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. | [default to 0] **min_domains** | **int** | MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: | zone1 | zone2 | zone3 | | P P | P P | P P | The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. | [optional] -**node_affinity_policy** | **str** | NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. | [optional] -**node_taints_policy** | **str** | NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. | [optional] +**node_affinity_policy** | **str** | NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. | [optional] +**node_taints_policy** | **str** | NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. | [optional] **topology_key** | **str** | TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. | [default to ''] **when_unsatisfiable** | **str** | WhenUnsatisfiable indicates how to deal with a pod if it doesn't satisfy the spread constraint. - DoNotSchedule (default) tells the scheduler not to schedule it. - ScheduleAnyway tells the scheduler to schedule the pod in any location, but giving higher precedence to topologies that would help reduce the skew. A constraint is considered \"Unsatisfiable\" for an incoming pod if and only if every possible node assignment for that pod would violate \"MaxSkew\" on some topology. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 3/1/1: | zone1 | zone2 | zone3 | | P P P | P | P | If WhenUnsatisfiable is set to DoNotSchedule, incoming pod can only be scheduled to zone2(zone3) to become 3/2/1(3/1/2) as ActualSkew(2-1) on zone2(zone3) satisfies MaxSkew(1). In other words, the cluster can still be imbalanced, but scheduler won't make it *more* imbalanced. It's a required field. Possible enum values: - `\"DoNotSchedule\"` instructs the scheduler not to schedule the pod when constraints are not satisfied. - `\"ScheduleAnyway\"` instructs the scheduler to schedule the pod even if constraints are not satisfied. | [default to ''] diff --git a/docs/V1ArchConfiguration.md b/docs/V1ArchConfiguration.md index c540b0e1..39636210 100644 --- a/docs/V1ArchConfiguration.md +++ b/docs/V1ArchConfiguration.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **amd64** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] **arm64** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] **default_architecture** | **str** | | [optional] -**ppc64le** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] +**ppc64le** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | Deprecated: ppc64le architecture is no longer supported. | [optional] **s390x** | [**V1ArchSpecificConfiguration**](V1ArchSpecificConfiguration.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/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/V1DeviceAttribute.md b/docs/V1ConfidentialComputeConfiguration.md similarity index 55% rename from docs/V1DeviceAttribute.md rename to docs/V1ConfidentialComputeConfiguration.md index 3e7d933e..4a34d288 100644 --- a/docs/V1DeviceAttribute.md +++ b/docs/V1ConfidentialComputeConfiguration.md @@ -1,10 +1,9 @@ -# V1DeviceAttribute +# V1ConfidentialComputeConfiguration ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**m_dev_uuid** | **str** | MDevUUID is the mediated device uuid of the allocated device | [optional] -**pci_address** | **str** | PCIAddress is the PCIe bus address of the allocated device | [optional] +**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/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/V1CustomBlockSize.md b/docs/V1CustomBlockSize.md index fae3d34f..4d4a3bb3 100644 --- a/docs/V1CustomBlockSize.md +++ b/docs/V1CustomBlockSize.md @@ -3,8 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**logical** | **int** | | [default to 0] -**physical** | **int** | | [default to 0] +**discard_granularity** | **int** | | [optional] +**logical** | **int** | | [optional] +**physical** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md index 1cc57cc9..01f61254 100644 --- a/docs/V1DeveloperConfiguration.md +++ b/docs/V1DeveloperConfiguration.md @@ -5,8 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cluster_profiler** | **bool** | Enable the ability to pprof profile KubeVirt control plane | [optional] **cpu_allocation_ratio** | **int** | For each requested virtual CPU, CPUAllocationRatio defines how much physical CPU to request per VMI from the hosting node. The value is in fraction of a CPU thread (or core on non-hyperthreaded nodes). For example, a value of 1 means 1 physical CPU thread per VMI CPU thread. A value of 100 would be 1% of a physical thread allocated for each requested VMI thread. This option has no effect on VMIs that request dedicated CPUs. More information at: https://kubevirt.io/user-guide/operations/node_overcommit/#node-cpu-allocation-ratio Defaults to 10 | [optional] +**disabled_feature_gates** | **list[str]** | DisabledFeatureGates specifies a list of experimental feature gates to disable. A feature gate must not appear in both FeatureGates and DisabledFeatureGates. | [optional] **disk_verification** | [**V1DiskVerification**](V1DiskVerification.md) | | [optional] -**feature_gates** | **list[str]** | FeatureGates is the list of experimental features to enable. Defaults to none | [optional] +**feature_gates** | **list[str]** | FeatureGates specifies a list of experimental feature gates to enable. Defaults to none. A feature gate must not appear in both FeatureGates and DisabledFeatureGates. | [optional] **log_verbosity** | [**V1LogVerbosity**](V1LogVerbosity.md) | | [optional] **memory_overcommit** | **int** | MemoryOvercommit is the percentage of memory we want to give VMIs compared to the amount given to its parent pod (virt-launcher). For example, a value of 102 means the VMI will \"see\" 2% more memory than its parent pod. Values under 100 are effectively \"undercommits\". Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 100 | [optional] **minimum_cluster_tsc_frequency** | **int** | Allow overriding the automatically determined minimum TSC frequency of the cluster and fixate the minimum to this frequency. | [optional] diff --git a/docs/V1DeviceResourceClaimStatus.md b/docs/V1DeviceResourceClaimStatus.md deleted file mode 100644 index 7c7a2944..00000000 --- a/docs/V1DeviceResourceClaimStatus.md +++ /dev/null @@ -1,12 +0,0 @@ -# V1DeviceResourceClaimStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**attributes** | [**V1DeviceAttribute**](V1DeviceAttribute.md) | Attributes are properties of the device that could be used by kubevirt and other copmonents to learn more about the device, like pciAddress or mdevUUID | [optional] -**name** | **str** | Name is the name of actual device on the host provisioned by the driver as reflected in resourceclaim.status | [optional] -**resource_claim_name** | **str** | ResourceClaimName is the name of the resource claims object used to provision this resource | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1DeviceStatus.md b/docs/V1DeviceStatus.md deleted file mode 100644 index 8895d0e5..00000000 --- a/docs/V1DeviceStatus.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1DeviceStatus - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**gpu_statuses** | [**list[V1DeviceStatusInfo]**](V1DeviceStatusInfo.md) | GPUStatuses reflects the state of GPUs requested in spec.domain.devices.gpus | [optional] -**host_device_statuses** | [**list[V1DeviceStatusInfo]**](V1DeviceStatusInfo.md) | HostDeviceStatuses reflects the state of GPUs requested in spec.domain.devices.hostDevices DRA | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1DeviceStatusInfo.md b/docs/V1DeviceStatusInfo.md deleted file mode 100644 index 97756e03..00000000 --- a/docs/V1DeviceStatusInfo.md +++ /dev/null @@ -1,11 +0,0 @@ -# V1DeviceStatusInfo - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**device_resource_claim_status** | [**V1DeviceResourceClaimStatus**](V1DeviceResourceClaimStatus.md) | DeviceResourceClaimStatus reflects the DRA related information for the device | [optional] -**name** | **str** | Name of the device as specified in spec.domain.devices.gpus.name or spec.domain.devices.hostDevices.name | [default to ''] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1Disk.md b/docs/V1Disk.md index 96900afd..f85eee30 100644 --- a/docs/V1Disk.md +++ b/docs/V1Disk.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **boot_order** | **int** | BootOrder is an integer value > 0, used to determine ordering of boot devices. Lower values take precedence. Each disk or interface that has a boot order must have a unique value. Disks without a boot order are not tried if a disk with a boot order exists. | [optional] **cache** | **str** | Cache specifies which kvm disk cache mode should be used. Supported values are: none: Guest I/O not cached on the host, but may be kept in a disk cache. writethrough: Guest I/O cached on the host but written through to the physical medium. Slowest but with most guarantees. writeback: Guest I/O cached on the host. Defaults to none if the storage supports O_DIRECT, otherwise writethrough. | [optional] **cdrom** | [**V1CDRomTarget**](V1CDRomTarget.md) | Attach a volume as a cdrom to the vmi. | [optional] +**changed_block_tracking** | **bool** | ChangedBlockTracking indicates this disk should have CBT option Defaults to false. | [optional] **dedicated_io_thread** | **bool** | dedicatedIOThread indicates this disk should have an exclusive IO Thread. Enabling this implies useIOThreads = true. Defaults to false. | [optional] **disk** | [**V1DiskTarget**](V1DiskTarget.md) | Attach a volume as a disk to the vmi. | [optional] **error_policy** | **str** | If specified, it can change the default error policy (stop) for the disk | [optional] diff --git a/docs/V1DomainSpec.md b/docs/V1DomainSpec.md index 8da22a67..18ec51c4 100644 --- a/docs/V1DomainSpec.md +++ b/docs/V1DomainSpec.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | Launch Security setting of the vmi. | [optional] **machine** | [**V1Machine**](V1Machine.md) | Machine type. | [optional] **memory** | [**V1Memory**](V1Memory.md) | Memory allow specifying the VMI memory features. | [optional] +**reboot_policy** | **str** | RebootPolicy specifies how the guest should behave on reboot. Reboot (default): The guest is allowed to reboot silently. Terminate: The VMI will be terminated on guest reboot, allowing higher level controllers (such as the VM controller) to recreate the VMI with any updated configuration such as boot order changes. | [optional] **resources** | [**V1ResourceRequirements**](V1ResourceRequirements.md) | Resources describes the Compute Resources required by this vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/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/V1FeatureHyperv.md b/docs/V1FeatureHyperv.md index dedbbc48..b5a809ec 100644 --- a/docs/V1FeatureHyperv.md +++ b/docs/V1FeatureHyperv.md @@ -13,7 +13,7 @@ Name | Type | Description | Notes **spinlocks** | [**V1FeatureSpinlocks**](V1FeatureSpinlocks.md) | Spinlocks allows to configure the spinlock retry attempts. | [optional] **synic** | [**V1FeatureState**](V1FeatureState.md) | SyNIC enables the Synthetic Interrupt Controller. Defaults to the machine type setting. | [optional] **synictimer** | [**V1SyNICTimer**](V1SyNICTimer.md) | SyNICTimer enables Synthetic Interrupt Controller Timers, reducing CPU load. Defaults to the machine type setting. | [optional] -**tlbflush** | [**V1FeatureState**](V1FeatureState.md) | TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. | [optional] +**tlbflush** | [**V1TLBFlush**](V1TLBFlush.md) | TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. | [optional] **vapic** | [**V1FeatureState**](V1FeatureState.md) | VAPIC improves the paravirtualized handling of interrupts. Defaults to the machine type setting. | [optional] **vendorid** | [**V1FeatureVendorID**](V1FeatureVendorID.md) | VendorID allows setting the hypervisor vendor id. Defaults to the machine type setting. | [optional] **vpindex** | [**V1FeatureState**](V1FeatureState.md) | VPIndex enables the Virtual Processor Index to help windows identifying virtual processors. Defaults to the machine type setting. | [optional] diff --git a/docs/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/V1Interface.md b/docs/V1Interface.md index 88219616..bc64c33a 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -14,6 +14,7 @@ Name | Type | Description | Notes **model** | **str** | Interface model. One of: e1000, e1000e, igb, ne2k_pci, pcnet, rtl8139, virtio. Defaults to virtio. | [optional] **name** | **str** | Logical name of the interface as well as a reference to the associated networks. Must match the Name of a Network. | [default to ''] **passt** | [**V1DeprecatedInterfacePasst**](V1DeprecatedInterfacePasst.md) | DeprecatedPasst is an alias to the deprecated Passt interface, please refer to Kubevirt user guide for alternatives. Deprecated: Removed in v1.3 | [optional] +**passt_binding** | [**V1InterfacePasstBinding**](V1InterfacePasstBinding.md) | | [optional] **pci_address** | **str** | If specified, the virtual network interface will be placed on the guests pci address with the specified PCI address. For example: 0000:81:01.10 | [optional] **ports** | [**list[V1Port]**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] **slirp** | [**V1DeprecatedInterfaceSlirp**](V1DeprecatedInterfaceSlirp.md) | DeprecatedSlirp is an alias to the deprecated Slirp interface Deprecated: Removed in v1.3 | [optional] diff --git a/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md b/docs/V1InterfacePasstBinding.md similarity index 65% rename from docs/V1alpha1VirtualMachinePoolSelectionPolicy.md rename to docs/V1InterfacePasstBinding.md index a49a304e..b18e7762 100644 --- a/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md +++ b/docs/V1InterfacePasstBinding.md @@ -1,9 +1,8 @@ -# V1alpha1VirtualMachinePoolSelectionPolicy +# V1InterfacePasstBinding ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**base_policy** | **str** | BasePolicy is a catch-all policy [Random|DescendingOrder] | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index 0e10d8bf..f4c00059 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -7,7 +7,9 @@ Name | Type | Description | Notes **api_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] **architecture_configuration** | [**V1ArchConfiguration**](V1ArchConfiguration.md) | | [optional] **auto_cpu_limit_namespace_label_selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | When set, AutoCPULimitNamespaceLabelSelector will set a CPU limit on virt-launcher for VMIs running inside namespaces that match the label selector. The CPU limit will equal the number of requested vCPUs. This setting does not apply to VMIs with dedicated CPUs. | [optional] +**changed_block_tracking_label_selectors** | [**V1ChangedBlockTrackingSelectors**](V1ChangedBlockTrackingSelectors.md) | ChangedBlockTrackingLabelSelectors defines label selectors. VMs matching these selectors will have changed block tracking enabled. Enabling changedBlockTracking is mandatory for performing storage-agnostic backups and incremental backups. | [optional] **common_instancetypes_deployment** | [**V1CommonInstancetypesDeployment**](V1CommonInstancetypesDeployment.md) | CommonInstancetypesDeployment controls the deployment of common-instancetypes resources | [optional] +**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] @@ -16,6 +18,7 @@ Name | Type | Description | Notes **emulated_machines** | **list[str]** | Deprecated. Use architectureConfiguration instead. | [optional] **eviction_strategy** | **str** | EvictionStrategy defines at the cluster level if the VirtualMachineInstance should be migrated instead of shut-off in case of a node drain. If the VirtualMachineInstance specific field is set it overrides the cluster level one. | [optional] **handler_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] +**hypervisors** | [**list[V1HypervisorConfiguration]**](V1HypervisorConfiguration.md) | Hypervisors holds information regarding the hypervisor configurations supported on this cluster. | [optional] **image_pull_policy** | **str** | Possible enum values: - `\"Always\"` means that kubelet always attempts to pull the latest image. Container will fail If the pull fails. - `\"IfNotPresent\"` means that kubelet pulls if the image isn't present on disk. Container will fail if the image isn't present and the pull fails. - `\"Never\"` means that kubelet never pulls an image, but only uses a local image. Container will fail if the image isn't present | [optional] **instancetype** | [**V1InstancetypeConfiguration**](V1InstancetypeConfiguration.md) | Instancetype configuration | [optional] **ksm_configuration** | [**V1KSMConfiguration**](V1KSMConfiguration.md) | KSMConfiguration holds the information regarding the enabling the KSM in the nodes (if available). | [optional] @@ -24,17 +27,19 @@ Name | Type | Description | Notes **mediated_devices_configuration** | [**V1MediatedDevicesConfiguration**](V1MediatedDevicesConfiguration.md) | | [optional] **mem_balloon_stats_period** | **int** | | [optional] **migrations** | [**V1MigrationConfiguration**](V1MigrationConfiguration.md) | | [optional] -**min_cpu_model** | **str** | | [optional] +**min_cpu_model** | **str** | deprecated | [optional] **network** | [**V1NetworkConfiguration**](V1NetworkConfiguration.md) | | [optional] **obsolete_cpu_models** | **dict(str, bool)** | | [optional] **ovmf_path** | **str** | Deprecated. Use architectureConfiguration instead. | [optional] **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] diff --git a/docs/V1LaunchSecurity.md b/docs/V1LaunchSecurity.md index 72cd51d8..cd192ada 100644 --- a/docs/V1LaunchSecurity.md +++ b/docs/V1LaunchSecurity.md @@ -4,6 +4,8 @@ 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/V1MediatedDevicesConfiguration.md b/docs/V1MediatedDevicesConfiguration.md index b9b82c10..1fe42afe 100644 --- a/docs/V1MediatedDevicesConfiguration.md +++ b/docs/V1MediatedDevicesConfiguration.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**enabled** | **bool** | Enable the creation and removal of mediated devices by virt-handler Replaces the deprecated DisableMDEVConfiguration feature gate Defaults to true | [optional] **mediated_device_types** | **list[str]** | | [optional] **mediated_devices_types** | **list[str]** | Deprecated. Use mediatedDeviceTypes instead. | [optional] **node_mediated_device_types** | [**list[V1NodeMediatedDeviceTypesConfig]**](V1NodeMediatedDeviceTypesConfig.md) | | [optional] diff --git a/docs/V1Memory.md b/docs/V1Memory.md index 87b28eca..bbdcb46e 100644 --- a/docs/V1Memory.md +++ b/docs/V1Memory.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | Guest allows to specifying the amount of memory which is visible inside the Guest OS. The Guest must lie between Requests and Limits from the resources section. Defaults to the requested memory in the resources section if not specified. | [optional] **hugepages** | [**V1Hugepages**](V1Hugepages.md) | Hugepages allow to use hugepages for the VirtualMachineInstance instead of regular memory. | [optional] **max_guest** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | MaxGuest allows to specify the maximum amount of memory which is visible inside the Guest OS. The delta between MaxGuest and Guest is the amount of memory that can be hot(un)plugged. | [optional] +**reserved_overhead** | [**V1ReservedOverhead**](V1ReservedOverhead.md) | ReservedOverhead configures the memory overhead applied to a VM and its characteristics. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1MemoryStatus.md b/docs/V1MemoryStatus.md index 897ef6ee..99c9687b 100644 --- a/docs/V1MemoryStatus.md +++ b/docs/V1MemoryStatus.md @@ -6,6 +6,7 @@ Name | Type | Description | Notes **guest_at_boot** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestAtBoot specifies with how much memory the VirtualMachine intiallly booted with. | [optional] **guest_current** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestCurrent specifies how much memory is currently available for the VirtualMachine. | [optional] **guest_requested** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | GuestRequested specifies how much memory was requested (hotplug) for the VirtualMachine. | [optional] +**memory_overhead** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | MemoryOverhead specifies the memory overhead added by the virtualization infrastructure for the virt-launcher pod. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1MigrationConfiguration.md b/docs/V1MigrationConfiguration.md index ce40a95e..386d48db 100644 --- a/docs/V1MigrationConfiguration.md +++ b/docs/V1MigrationConfiguration.md @@ -16,6 +16,7 @@ Name | Type | Description | Notes **parallel_outbound_migrations_per_node** | **int** | ParallelOutboundMigrationsPerNode is the maximum number of concurrent outgoing live migrations allowed per node. Defaults to 2 | [optional] **progress_timeout** | **int** | ProgressTimeout is the maximum number of seconds a live migration is allowed to make no progress. Hitting this timeout means a migration transferred 0 data for that many seconds. The migration is then considered stuck and therefore cancelled. Defaults to 150 | [optional] **unsafe_migration_override** | **bool** | UnsafeMigrationOverride allows live migrations to occur even if the compatibility check indicates the migration will be unsafe to the guest. Defaults to false | [optional] +**utility_volumes_timeout** | **int** | UtilityVolumesTimeout is the maximum number of seconds a migration can wait in Pending state for utility volumes to be detached. If utility volumes are still present after this timeout, the migration will be marked as Failed. Defaults to 150 | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/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/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/V1SyNICTimer.md b/docs/V1SyNICTimer.md index efe2c7c6..155cb3a8 100644 --- a/docs/V1SyNICTimer.md +++ b/docs/V1SyNICTimer.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **direct** | [**V1FeatureState**](V1FeatureState.md) | | [optional] -**enabled** | **bool** | | [optional] +**enabled** | **bool** | Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/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/V1alpha1VirtualMachinePoolScaleInStrategy.md b/docs/V1TDXAttestationConfiguration.md similarity index 50% rename from docs/V1alpha1VirtualMachinePoolScaleInStrategy.md rename to docs/V1TDXAttestationConfiguration.md index d940fbb9..f38a37b3 100644 --- a/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md +++ b/docs/V1TDXAttestationConfiguration.md @@ -1,9 +1,10 @@ -# V1alpha1VirtualMachinePoolScaleInStrategy +# V1TDXAttestationConfiguration ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**proactive** | [**V1alpha1VirtualMachinePoolProactiveScaleInStrategy**](V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md) | Proactive scale-in by forcing VMs to shutdown during scale-in (Default) | [optional] +**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/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/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/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/V1VirtualMachineInstanceGuestAgentInfo.md b/docs/V1VirtualMachineInstanceGuestAgentInfo.md index f9e0eadf..c443c525 100644 --- a/docs/V1VirtualMachineInstanceGuestAgentInfo.md +++ b/docs/V1VirtualMachineInstanceGuestAgentInfo.md @@ -9,7 +9,6 @@ Name | Type | Description | Notes **guest_agent_version** | **str** | GAVersion is a version of currently installed guest agent | [optional] **hostname** | **str** | Hostname represents FQDN of a guest | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**load** | [**V1VirtualMachineInstanceGuestOSLoad**](V1VirtualMachineInstanceGuestOSLoad.md) | Load contains the system load averages (1M, 5M, 15M) from the guest agent | [optional] **os** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | OS contains the guest operating system information | [optional] **supported_commands** | [**list[V1GuestAgentCommandInfo]**](V1GuestAgentCommandInfo.md) | Return command list the guest agent supports | [optional] **timezone** | **str** | Timezone is guest os current timezone | [optional] diff --git a/docs/V1VirtualMachineInstanceGuestOSLoad.md b/docs/V1VirtualMachineInstanceGuestOSLoad.md deleted file mode 100644 index 65947a80..00000000 --- a/docs/V1VirtualMachineInstanceGuestOSLoad.md +++ /dev/null @@ -1,15 +0,0 @@ -# V1VirtualMachineInstanceGuestOSLoad - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**load15m** | **float** | Load average over 15 minutes | [optional] -**load15m_set** | **bool** | Load15mSet indicates whether the 15 minute load average is set | [optional] -**load1m** | **float** | Load average over 1 minute | [optional] -**load1m_set** | **bool** | Load1mSet indicates whether the 1 minute load average is set | [optional] -**load5m** | **float** | Load average over 5 minutes | [optional] -**load5m_set** | **bool** | Load5mSet indicates whether the 5 minute load average is set | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1VirtualMachineInstanceMigrationSpec.md b/docs/V1VirtualMachineInstanceMigrationSpec.md index de264aa1..38949e0e 100644 --- a/docs/V1VirtualMachineInstanceMigrationSpec.md +++ b/docs/V1VirtualMachineInstanceMigrationSpec.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **added_node_selector** | **dict(str, str)** | AddedNodeSelector is an additional selector that can be used to complement a NodeSelector or NodeAffinity as set on the VM to restrict the set of allowed target nodes for a migration. In case of key collisions, values set on the VM objects are going to be preserved to ensure that addedNodeSelector can only restrict but not bypass constraints already set on the VM object. | [optional] +**priority** | **str** | Priority of the migration. This can be one of `system-critical`, `user-triggered`, `system-maintenance`. | [optional] **receive** | [**V1VirtualMachineInstanceMigrationTarget**](V1VirtualMachineInstanceMigrationTarget.md) | If receieve is specified, this VirtualMachineInstanceMigration will be considered the target | [optional] **send_to** | [**V1VirtualMachineInstanceMigrationSource**](V1VirtualMachineInstanceMigrationSource.md) | If sendTo is specified, this VirtualMachineInstanceMigration will be considered the source | [optional] **vmi_name** | **str** | The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace | [optional] diff --git a/docs/V1VirtualMachineInstanceMigrationState.md b/docs/V1VirtualMachineInstanceMigrationState.md index 9ec8062f..ac7d8ba6 100644 --- a/docs/V1VirtualMachineInstanceMigrationState.md +++ b/docs/V1VirtualMachineInstanceMigrationState.md @@ -22,6 +22,7 @@ Name | Type | Description | Notes **target_attachment_pod_uid** | **str** | The UID of the target attachment pod for hotplug volumes | [optional] **target_cpu_set** | **list[int]** | If the VMI requires dedicated CPUs, this field will hold the dedicated CPU set on the target node | [optional] **target_direct_migration_node_ports** | **dict(str, int)** | The list of ports opened for live migration on the destination node | [optional] +**target_memory_overhead** | [**K8sIoApimachineryPkgApiResourceQuantity**](K8sIoApimachineryPkgApiResourceQuantity.md) | TargetMemoryOverhead is the memory overhead of the target virt-launcher pod | [optional] **target_node** | **str** | The target node that the VMI is moving to | [optional] **target_node_address** | **str** | The address of the target node to use for the migration | [optional] **target_node_domain_detected** | **bool** | The Target Node has seen the Domain Start Event | [optional] diff --git a/docs/V1VirtualMachineInstanceSpec.md b/docs/V1VirtualMachineInstanceSpec.md index 6df6e1f5..d97c3a81 100644 --- a/docs/V1VirtualMachineInstanceSpec.md +++ b/docs/V1VirtualMachineInstanceSpec.md @@ -23,6 +23,7 @@ Name | Type | Description | Notes **termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **tolerations** | [**list[K8sIoApiCoreV1Toleration]**](K8sIoApiCoreV1Toleration.md) | If toleration is specified, obey all the toleration rules. | [optional] **topology_spread_constraints** | [**list[K8sIoApiCoreV1TopologySpreadConstraint]**](K8sIoApiCoreV1TopologySpreadConstraint.md) | TopologySpreadConstraints describes how a group of VMIs will be spread across a given topology domains. K8s scheduler will schedule VMI pods in a way which abides by the constraints. | [optional] +**utility_volumes** | [**list[V1UtilityVolume]**](V1UtilityVolume.md) | List of utility volumes that can be mounted to the vmi virt-launcher pod without having a matching disk in the domain. Used to collect data for various operational workflows. | [optional] **volumes** | [**list[V1Volume]**](V1Volume.md) | List of volumes that can be mounted by disks belonging to the vmi. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1VirtualMachineInstanceStatus.md b/docs/V1VirtualMachineInstanceStatus.md index b3538398..fff64b2e 100644 --- a/docs/V1VirtualMachineInstanceStatus.md +++ b/docs/V1VirtualMachineInstanceStatus.md @@ -5,9 +5,9 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **vsockcid** | **int** | VSOCKCID is used to track the allocated VSOCK CID in the VM. | [optional] **active_pods** | **dict(str, str)** | ActivePods is a mapping of pod UID to node name. It is possible for multiple pods to be running for a single VMI during migration. | [optional] +**changed_block_tracking** | [**V1ChangedBlockTrackingStatus**](V1ChangedBlockTrackingStatus.md) | ChangedBlockTracking represents the status of the changedBlockTracking | [optional] **conditions** | [**list[V1VirtualMachineInstanceCondition]**](V1VirtualMachineInstanceCondition.md) | Conditions are specific points in VirtualMachineInstance's pod runtime. | [optional] **current_cpu_topology** | [**V1CPUTopology**](V1CPUTopology.md) | CurrentCPUTopology specifies the current CPU topology used by the VM workload. Current topology may differ from the desired topology in the spec while CPU hotplug takes place. | [optional] -**device_status** | [**V1DeviceStatus**](V1DeviceStatus.md) | DeviceStatus reflects the state of devices requested in spec.domain.devices. This is an optional field available only when DRA feature gate is enabled This field will only be populated if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha. | [optional] **evacuation_node_name** | **str** | EvacuationNodeName is used to track the eviction process of a VMI. It stores the name of the node that we want to evacuate. It is meant to be used by KubeVirt core components only and can't be set or modified by users. | [optional] **fs_freeze_status** | **str** | FSFreezeStatus indicates whether a freeze operation was requested for the guest filesystem. It will be set to \"frozen\" if the request was made, or unset otherwise. This does not reflect the actual state of the guest filesystem. | [optional] **guest_os_info** | [**V1VirtualMachineInstanceGuestOSInfo**](V1VirtualMachineInstanceGuestOSInfo.md) | Guest OS Information | [optional] diff --git a/docs/V1VirtualMachineSpec.md b/docs/V1VirtualMachineSpec.md index ac4af1f9..835c03f5 100644 --- a/docs/V1VirtualMachineSpec.md +++ b/docs/V1VirtualMachineSpec.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **data_volume_templates** | [**list[V1DataVolumeTemplateSpec]**](V1DataVolumeTemplateSpec.md) | dataVolumeTemplates is a list of dataVolumes that the VirtualMachineInstance template can reference. DataVolumes in this list are dynamically created for the VirtualMachine and are tied to the VirtualMachine's life-cycle. | [optional] **instancetype** | [**V1InstancetypeMatcher**](V1InstancetypeMatcher.md) | InstancetypeMatcher references a instancetype that is used to fill fields in Template | [optional] **preference** | [**V1PreferenceMatcher**](V1PreferenceMatcher.md) | PreferenceMatcher references a set of preference that is used to fill fields in Template | [optional] -**run_strategy** | **str** | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running | [optional] +**run_strategy** | **str** | Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running Following are allowed values: - \"Always\": VMI should always be running. - \"Halted\": VMI should never be running. - \"Manual\": VMI can be started/stopped using API endpoints. - \"RerunOnFailure\": VMI will initially be running and restarted if a failure occurs, but will not be restarted upon successful completion. - \"Once\": VMI will run once and not be restarted upon completion regardless if the completion is of phase Failure or Success. | [optional] **running** | **bool** | Running controls whether the associatied VirtualMachineInstance is created or not Mutually exclusive with RunStrategy Deprecated: VirtualMachineInstance field \"Running\" is now deprecated, please use RunStrategy instead. | [optional] **template** | [**V1VirtualMachineInstanceTemplateSpec**](V1VirtualMachineInstanceTemplateSpec.md) | Template is the direct specification of VirtualMachineInstance | **update_volumes_strategy** | **str** | UpdateVolumesStrategy is the strategy to apply on volumes updates | [optional] diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index e8c00fdb..2cec03af 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**changed_block_tracking** | [**V1ChangedBlockTrackingStatus**](V1ChangedBlockTrackingStatus.md) | ChangedBlockTracking represents the status of the changedBlockTracking | [optional] **conditions** | [**list[V1VirtualMachineCondition]**](V1VirtualMachineCondition.md) | Hold the state information of the VirtualMachine and its VirtualMachineInstance | [optional] **created** | **bool** | Created indicates if the virtual machine is created in the cluster | [optional] **desired_generation** | **int** | DesiredGeneration is the generation which is desired for the VMI. This will be used in comparisons with ObservedGeneration to understand when the VMI is out of sync. This will be changed at the same time as ObservedGeneration to remove errors which could occur if Generation is updated through an Update() before ObservedGeneration in Status. | [optional] diff --git a/docs/V1Volume.md b/docs/V1Volume.md index 565f5eb7..7d4a11a8 100644 --- a/docs/V1Volume.md +++ b/docs/V1Volume.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **cloud_init_no_cloud** | [**V1CloudInitNoCloudSource**](V1CloudInitNoCloudSource.md) | CloudInitNoCloud represents a cloud-init NoCloud user-data source. The NoCloud data will be added as a disk to the vmi. A proper cloud-init installation is required inside the guest. More info: http://cloudinit.readthedocs.io/en/latest/topics/datasources/nocloud.html | [optional] **config_map** | [**V1ConfigMapVolumeSource**](V1ConfigMapVolumeSource.md) | ConfigMapSource represents a reference to a ConfigMap in the same namespace. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-pod-configmap/ | [optional] **container_disk** | [**V1ContainerDiskSource**](V1ContainerDiskSource.md) | ContainerDisk references a docker image, embedding a qcow or raw disk. More info: https://kubevirt.gitbooks.io/user-guide/registry-disk.html | [optional] +**container_path** | [**V1ContainerPathVolumeSource**](V1ContainerPathVolumeSource.md) | ContainerPath exposes a path from the virt-launcher container to the VM via virtiofs. The path must correspond to an existing volumeMount in the compute container. | [optional] **data_volume** | [**V1DataVolumeSource**](V1DataVolumeSource.md) | DataVolume represents the dynamic creation a PVC for this volume as well as the process of populating that PVC with a disk image. | [optional] **downward_api** | [**V1DownwardAPIVolumeSource**](V1DownwardAPIVolumeSource.md) | DownwardAPI represents downward API about the pod that should populate this volume | [optional] **downward_metrics** | [**V1DownwardMetricsVolumeSource**](V1DownwardMetricsVolumeSource.md) | DownwardMetrics adds a very small disk to VMIs which contains a limited view of host and guest metrics. The disk content is compatible with vhostmd (https://github.com/vhostmd/vhostmd) and vm-dump-metrics. | [optional] diff --git a/docs/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/V1alpha1VirtualMachinePoolCondition.md b/docs/V1alpha1Condition.md similarity index 91% rename from docs/V1alpha1VirtualMachinePoolCondition.md rename to docs/V1alpha1Condition.md index bce44028..96a2edb5 100644 --- a/docs/V1alpha1VirtualMachinePoolCondition.md +++ b/docs/V1alpha1Condition.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachinePoolCondition +# V1alpha1Condition ## Properties Name | Type | Description | Notes 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/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md b/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md deleted file mode 100644 index 54b3d68a..00000000 --- a/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md +++ /dev/null @@ -1,10 +0,0 @@ -# V1alpha1VirtualMachinePoolProactiveScaleInStrategy - -## Properties -Name | Type | Description | Notes ------------- | ------------- | ------------- | ------------- -**selection_policy** | [**V1alpha1VirtualMachinePoolSelectionPolicy**](V1alpha1VirtualMachinePoolSelectionPolicy.md) | SelectionPolicy defines the priority in which VM instances are selected for proactive scale-in Defaults to \"Random\" base policy when no SelectionPolicy is configured | [optional] - -[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) - - diff --git a/docs/V1beta1DataVolumeSourceImageIO.md b/docs/V1beta1DataVolumeSourceImageIO.md index 949d4e50..e3f32b0d 100644 --- a/docs/V1beta1DataVolumeSourceImageIO.md +++ b/docs/V1beta1DataVolumeSourceImageIO.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cert_config_map** | **str** | CertConfigMap provides a reference to the CA cert | [optional] **disk_id** | **str** | DiskID provides id of a disk to be imported | [default to ''] +**insecure_skip_verify** | **bool** | InsecureSkipVerify is a flag to skip certificate verification | [optional] **secret_ref** | **str** | SecretRef provides the secret reference needed to access the ovirt-engine | [optional] **url** | **str** | URL is the URL of the ovirt-engine | [default to ''] diff --git a/docs/V1beta1DataVolumeSourceRegistry.md b/docs/V1beta1DataVolumeSourceRegistry.md index 9b1d8a4b..536a244c 100644 --- a/docs/V1beta1DataVolumeSourceRegistry.md +++ b/docs/V1beta1DataVolumeSourceRegistry.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **cert_config_map** | **str** | CertConfigMap provides a reference to the Registry certs | [optional] **image_stream** | **str** | ImageStream is the name of image stream for import | [optional] +**platform** | [**V1beta1PlatformOptions**](V1beta1PlatformOptions.md) | Platform describes the minimum runtime requirements of the image | [optional] **pull_method** | **str** | PullMethod can be either \"pod\" (default import), or \"node\" (node docker cache based import) | [optional] **secret_ref** | **str** | SecretRef provides the secret reference needed to access the Registry source | [optional] **url** | **str** | URL is the url of the registry source (starting with the scheme: docker, oci-archive) | [optional] diff --git a/docs/V1beta1DataVolumeSourceVDDK.md b/docs/V1beta1DataVolumeSourceVDDK.md index c9260482..32889763 100644 --- a/docs/V1beta1DataVolumeSourceVDDK.md +++ b/docs/V1beta1DataVolumeSourceVDDK.md @@ -4,6 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **backing_file** | **str** | BackingFile is the path to the virtual hard disk to migrate from vCenter/ESXi | [optional] +**extra_args** | **str** | ExtraArgs is a reference to a ConfigMap containing extra arguments to pass directly to the VDDK library | [optional] **init_image_url** | **str** | InitImageURL is an optional URL to an image containing an extracted VDDK library, overrides v2v-vmware config map | [optional] **secret_ref** | **str** | SecretRef provides a reference to a secret containing the username and password needed to access the vCenter or ESXi host | [optional] **thumbprint** | **str** | Thumbprint is the certificate thumbprint of the vCenter or ESXi host | [optional] diff --git a/docs/V1beta1DevicePreferences.md b/docs/V1beta1DevicePreferences.md index a7e8720b..59d5fb77 100644 --- a/docs/V1beta1DevicePreferences.md +++ b/docs/V1beta1DevicePreferences.md @@ -27,6 +27,7 @@ Name | Type | Description | Notes **preferred_sound_model** | **str** | PreferredSoundModel optionally defines the preferred model for Sound devices. | [optional] **preferred_tpm** | [**V1TPMDevice**](V1TPMDevice.md) | PreferredTPM optionally defines the preferred TPM device to be used. | [optional] **preferred_use_virtio_transitional** | **bool** | PreferredUseVirtioTransitional optionally defines the preferred value of UseVirtioTransitional | [optional] +**preferred_video_type** | **str** | PreferredVideoType optionally defines the preferred type for Video devices. | [optional] **preferred_virtual_gpu_options** | [**V1VGPUOptions**](V1VGPUOptions.md) | PreferredVirtualGPUOptions optionally defines the preferred value of VirtualGPUOptions | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/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 index 0d99ae42..c4ca50bc 100644 --- a/docs/V1beta1PreferenceRequirements.md +++ b/docs/V1beta1PreferenceRequirements.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**architecture** | **str** | Required Architecture of the VM referencing this preference | [optional] **cpu** | [**V1beta1CPUPreferenceRequirement**](V1beta1CPUPreferenceRequirement.md) | Required CPU related attributes of the instancetype. | [optional] **memory** | [**V1beta1MemoryPreferenceRequirement**](V1beta1MemoryPreferenceRequirement.md) | Required Memory related attributes of the instancetype. | [optional] diff --git a/docs/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/V1beta1VirtualMachineCloneSpec.md b/docs/V1beta1VirtualMachineCloneSpec.md index d54cabac..0d0ee21a 100644 --- a/docs/V1beta1VirtualMachineCloneSpec.md +++ b/docs/V1beta1VirtualMachineCloneSpec.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Source is the object that would be cloned. Currently supported source types are: VirtualMachine of kubevirt.io API group, VirtualMachineSnapshot of snapshot.kubevirt.io API group | **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | Target is the outcome of the cloning process. Currently supported source types are: - VirtualMachine of kubevirt.io API group - Empty (nil). If the target is not provided, the target type would default to VirtualMachine and a random name would be generated for the target. The target's name can be viewed by inspecting status \"TargetName\" field below. | [optional] **template** | [**V1beta1VirtualMachineCloneTemplateFilters**](V1beta1VirtualMachineCloneTemplateFilters.md) | For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. | [optional] +**volume_name_policy** | **str** | VolumeNamePolicy defines how to handle volume naming during the clone operation | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1beta1VirtualMachineExportBackup.md b/docs/V1beta1VirtualMachineExportBackup.md new file mode 100644 index 00000000..f26643ef --- /dev/null +++ b/docs/V1beta1VirtualMachineExportBackup.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachineExportBackup + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**endpoints** | [**list[V1beta1VirtualMachineExportBackupEndpoint]**](V1beta1VirtualMachineExportBackupEndpoint.md) | | [optional] +**name** | **str** | Name is the name of the exported volume | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineExportBackupEndpoint.md b/docs/V1beta1VirtualMachineExportBackupEndpoint.md new file mode 100644 index 00000000..680ac271 --- /dev/null +++ b/docs/V1beta1VirtualMachineExportBackupEndpoint.md @@ -0,0 +1,11 @@ +# V1beta1VirtualMachineExportBackupEndpoint + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**endpoint** | **str** | Endpoint is the endpoint of the backup export at the specified URL | [default to ''] +**url** | **str** | Url is the url that contains the volume in the format specified | [default to ''] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/docs/V1beta1VirtualMachineExportLink.md b/docs/V1beta1VirtualMachineExportLink.md index 6b39b761..96b01438 100644 --- a/docs/V1beta1VirtualMachineExportLink.md +++ b/docs/V1beta1VirtualMachineExportLink.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**backups** | [**list[V1beta1VirtualMachineExportBackup]**](V1beta1VirtualMachineExportBackup.md) | Backups is a list of available backups for the export | [optional] **cert** | **str** | Cert is the public CA certificate base64 encoded | [default to ''] **manifests** | [**list[V1beta1VirtualMachineExportManifest]**](V1beta1VirtualMachineExportManifest.md) | Manifests is a list of available manifests for the export | [optional] **volumes** | [**list[V1beta1VirtualMachineExportVolume]**](V1beta1VirtualMachineExportVolume.md) | Volumes is a list of available volumes to export | [optional] diff --git a/docs/V1beta1VirtualMachineInstancetypeSpec.md b/docs/V1beta1VirtualMachineInstancetypeSpec.md index 3975b7bf..3f28deaf 100644 --- a/docs/V1beta1VirtualMachineInstancetypeSpec.md +++ b/docs/V1beta1VirtualMachineInstancetypeSpec.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **cpu** | [**V1beta1CPUInstancetype**](V1beta1CPUInstancetype.md) | Required CPU related attributes of the instancetype. | **gpus** | [**list[V1GPU]**](V1GPU.md) | Optionally defines any GPU devices associated with the instancetype. | [optional] **host_devices** | [**list[V1HostDevice]**](V1HostDevice.md) | Optionally defines any HostDevices associated with the instancetype. | [optional] +**io_threads** | [**V1DiskIOThreads**](V1DiskIOThreads.md) | Optionally specifies the IOThreads options to be used by the instancetype. | [optional] **io_threads_policy** | **str** | Optionally defines the IOThreadsPolicy to be used by the instancetype. | [optional] **launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | Optionally defines the LaunchSecurity to be used by the instancetype. | [optional] **memory** | [**V1beta1MemoryInstancetype**](V1beta1MemoryInstancetype.md) | Required Memory related attributes of the instancetype. | diff --git a/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/V1alpha1VirtualMachinePool.md b/docs/V1beta1VirtualMachinePool.md similarity index 82% rename from docs/V1alpha1VirtualMachinePool.md rename to docs/V1beta1VirtualMachinePool.md index 5cf6184d..e8ed8905 100644 --- a/docs/V1alpha1VirtualMachinePool.md +++ b/docs/V1beta1VirtualMachinePool.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachinePool +# V1beta1VirtualMachinePool ## Properties Name | Type | Description | Notes @@ -6,8 +6,8 @@ Name | Type | Description | Notes **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] -**spec** | [**V1alpha1VirtualMachinePoolSpec**](V1alpha1VirtualMachinePoolSpec.md) | | -**status** | [**V1alpha1VirtualMachinePoolStatus**](V1alpha1VirtualMachinePoolStatus.md) | | [optional] +**spec** | [**V1beta1VirtualMachinePoolSpec**](V1beta1VirtualMachinePoolSpec.md) | | +**status** | [**V1beta1VirtualMachinePoolStatus**](V1beta1VirtualMachinePoolStatus.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/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/V1alpha1VirtualMachinePoolList.md b/docs/V1beta1VirtualMachinePoolList.md similarity index 89% rename from docs/V1alpha1VirtualMachinePoolList.md rename to docs/V1beta1VirtualMachinePoolList.md index fd07f333..df4bbdbf 100644 --- a/docs/V1alpha1VirtualMachinePoolList.md +++ b/docs/V1beta1VirtualMachinePoolList.md @@ -1,10 +1,10 @@ -# V1alpha1VirtualMachinePoolList +# V1beta1VirtualMachinePoolList ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources | [optional] -**items** | [**list[V1alpha1VirtualMachinePool]**](V1alpha1VirtualMachinePool.md) | | +**items** | [**list[V1beta1VirtualMachinePool]**](V1beta1VirtualMachinePool.md) | | **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] **metadata** | [**K8sIoApimachineryPkgApisMetaV1ListMeta**](K8sIoApimachineryPkgApisMetaV1ListMeta.md) | | [optional] diff --git a/docs/V1alpha1VirtualMachinePoolNameGeneration.md b/docs/V1beta1VirtualMachinePoolNameGeneration.md similarity index 90% rename from docs/V1alpha1VirtualMachinePoolNameGeneration.md rename to docs/V1beta1VirtualMachinePoolNameGeneration.md index 92374b93..99398fc4 100644 --- a/docs/V1alpha1VirtualMachinePoolNameGeneration.md +++ b/docs/V1beta1VirtualMachinePoolNameGeneration.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachinePoolNameGeneration +# V1beta1VirtualMachinePoolNameGeneration ## Properties Name | Type | Description | Notes diff --git a/docs/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/V1alpha1VirtualMachinePoolSpec.md b/docs/V1beta1VirtualMachinePoolSpec.md similarity index 50% rename from docs/V1alpha1VirtualMachinePoolSpec.md rename to docs/V1beta1VirtualMachinePoolSpec.md index 89fc56b1..f5b28a3d 100644 --- a/docs/V1alpha1VirtualMachinePoolSpec.md +++ b/docs/V1beta1VirtualMachinePoolSpec.md @@ -1,15 +1,17 @@ -# V1alpha1VirtualMachinePoolSpec +# 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** | [**V1alpha1VirtualMachinePoolNameGeneration**](V1alpha1VirtualMachinePoolNameGeneration.md) | Options for the name generation in a pool. | [optional] +**name_generation** | [**V1beta1VirtualMachinePoolNameGeneration**](V1beta1VirtualMachinePoolNameGeneration.md) | Options for the name generation in a pool. | [optional] **paused** | **bool** | Indicates that the pool is paused. | [optional] **replicas** | **int** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] -**scale_in_strategy** | [**V1alpha1VirtualMachinePoolScaleInStrategy**](V1alpha1VirtualMachinePoolScaleInStrategy.md) | ScaleInStrategy specifies how the VMPool controller manages scaling in VMs within a VMPool | [optional] +**scale_in_strategy** | [**V1beta1VirtualMachinePoolScaleInStrategy**](V1beta1VirtualMachinePoolScaleInStrategy.md) | ScaleInStrategy specifies how the VMPool controller manages scaling in VMs within a VMPool | [optional] **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | Label selector for pods. Existing Poolss whose pods are selected by this will be the ones affected by this deployment. | -**virtual_machine_template** | [**V1alpha1VirtualMachineTemplateSpec**](V1alpha1VirtualMachineTemplateSpec.md) | Template describes the VM that will be created. | +**update_strategy** | [**V1beta1VirtualMachinePoolUpdateStrategy**](V1beta1VirtualMachinePoolUpdateStrategy.md) | UpdateStrategy specifies how the VMPool controller manages updating VMs within a VMPool | [optional] +**virtual_machine_template** | [**V1beta1VirtualMachineTemplateSpec**](V1beta1VirtualMachineTemplateSpec.md) | Template describes the VM that will be created. | [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/docs/V1alpha1VirtualMachinePoolStatus.md b/docs/V1beta1VirtualMachinePoolStatus.md similarity index 76% rename from docs/V1alpha1VirtualMachinePoolStatus.md rename to docs/V1beta1VirtualMachinePoolStatus.md index 0cd5a66f..0291019d 100644 --- a/docs/V1alpha1VirtualMachinePoolStatus.md +++ b/docs/V1beta1VirtualMachinePoolStatus.md @@ -1,9 +1,9 @@ -# V1alpha1VirtualMachinePoolStatus +# V1beta1VirtualMachinePoolStatus ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**conditions** | [**list[V1alpha1VirtualMachinePoolCondition]**](V1alpha1VirtualMachinePoolCondition.md) | | [optional] +**conditions** | [**list[V1beta1VirtualMachinePoolCondition]**](V1beta1VirtualMachinePoolCondition.md) | | [optional] **label_selector** | **str** | Canonical form of the label selector for HPA which consumes it through the scale subresource. | [optional] **ready_replicas** | **int** | | [optional] **replicas** | **int** | | [optional] diff --git a/docs/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/V1beta1VirtualMachinePreferenceSpec.md b/docs/V1beta1VirtualMachinePreferenceSpec.md index 122a7d38..c6dd3a86 100644 --- a/docs/V1beta1VirtualMachinePreferenceSpec.md +++ b/docs/V1beta1VirtualMachinePreferenceSpec.md @@ -11,6 +11,7 @@ Name | Type | Description | Notes **firmware** | [**V1beta1FirmwarePreferences**](V1beta1FirmwarePreferences.md) | Firmware optionally defines preferences associated with the Firmware attribute of a VirtualMachineInstance DomainSpec | [optional] **machine** | [**V1beta1MachinePreferences**](V1beta1MachinePreferences.md) | Machine optionally defines preferences associated with the Machine attribute of a VirtualMachineInstance DomainSpec | [optional] **prefer_spread_socket_to_core_ratio** | **int** | PreferSpreadSocketToCoreRatio defines the ratio to spread vCPUs between cores and sockets, it defaults to 2. | [optional] +**preferred_architecture** | **str** | PreferredArchitecture defines a prefeerred architecture for the VirtualMachine | [optional] **preferred_subdomain** | **str** | Subdomain of the VirtualMachineInstance | [optional] **preferred_termination_grace_period_seconds** | **int** | Grace period observed after signalling a VirtualMachineInstance to stop after which the VirtualMachineInstance is force terminated. | [optional] **requirements** | [**V1beta1PreferenceRequirements**](V1beta1PreferenceRequirements.md) | Requirements defines the minium amount of instance type defined resources required by a set of preferences | [optional] diff --git a/docs/V1beta1VirtualMachineRestoreSpec.md b/docs/V1beta1VirtualMachineRestoreSpec.md index 0fefdb7d..55244b0d 100644 --- a/docs/V1beta1VirtualMachineRestoreSpec.md +++ b/docs/V1beta1VirtualMachineRestoreSpec.md @@ -7,6 +7,7 @@ Name | Type | Description | Notes **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | initially only VirtualMachine type supported | **target_readiness_policy** | **str** | | [optional] **virtual_machine_snapshot_name** | **str** | | [default to ''] +**volume_ownership_policy** | **str** | | [optional] **volume_restore_overrides** | [**list[V1beta1VolumeRestoreOverride]**](V1beta1VolumeRestoreOverride.md) | VolumeRestoreOverrides gives the option to change properties of each restored volume For example, specifying the name of the restored volume, or adding labels/annotations to it | [optional] **volume_restore_policy** | **str** | | [optional] diff --git a/docs/V1beta1VirtualMachineSnapshotStatus.md b/docs/V1beta1VirtualMachineSnapshotStatus.md index 391dd329..e48e9deb 100644 --- a/docs/V1beta1VirtualMachineSnapshotStatus.md +++ b/docs/V1beta1VirtualMachineSnapshotStatus.md @@ -6,10 +6,11 @@ Name | Type | Description | Notes **conditions** | [**list[V1beta1Condition]**](V1beta1Condition.md) | | [optional] **creation_time** | [**K8sIoApimachineryPkgApisMetaV1Time**](K8sIoApimachineryPkgApisMetaV1Time.md) | | [optional] **error** | [**V1beta1Error**](V1beta1Error.md) | | [optional] -**indications** | **list[str]** | | [optional] +**indications** | **list[str]** | Deprecated: Use SourceIndications instead. This field will be removed in a future version. | [optional] **phase** | **str** | | [optional] **ready_to_use** | **bool** | | [optional] **snapshot_volumes** | [**V1beta1SnapshotVolumesLists**](V1beta1SnapshotVolumesLists.md) | | [optional] +**source_indications** | [**list[V1beta1SourceIndication]**](V1beta1SourceIndication.md) | | [optional] **source_uid** | **str** | | [optional] **virtual_machine_snapshot_content_name** | **str** | | [optional] diff --git a/docs/V1alpha1VirtualMachineTemplateSpec.md b/docs/V1beta1VirtualMachineTemplateSpec.md similarity index 93% rename from docs/V1alpha1VirtualMachineTemplateSpec.md rename to docs/V1beta1VirtualMachineTemplateSpec.md index 50f1fa9c..4d43a953 100644 --- a/docs/V1alpha1VirtualMachineTemplateSpec.md +++ b/docs/V1beta1VirtualMachineTemplateSpec.md @@ -1,4 +1,4 @@ -# V1alpha1VirtualMachineTemplateSpec +# V1beta1VirtualMachineTemplateSpec ## Properties Name | Type | Description | Notes diff --git a/git_push.sh b/git_push.sh index b5fa606a..4d1d3aae 100644 --- a/git_push.sh +++ b/git_push.sh @@ -18,7 +18,7 @@ if [ "$git_repo_id" = "" ]; then fi if [ "$release_note" = "" ]; then - release_note="Auto-generated client v1.6.0-beta.0-869-g12ebd1cfe9" + 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 5d79e957..21ed5851 100644 --- a/kubevirt-pysdk-codegen.log +++ b/kubevirt-pysdk-codegen.log @@ -18,6 +18,8 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} +[main] WARN io.swagger.util.PropertyDeserializer - no property from , null, {ENUM=null, TITLE=null, DESCRIPTION=null, DEFAULT=null, PATTERN=null, DESCRIMINATOR=null, MIN_ITEMS=null, MAX_ITEMS=null, MIN_PROPERTIES=null, MAX_PROPERTIES=null, MIN_LENGTH=null, MAX_LENGTH=null, MINIMUM=null, MAXIMUM=null, EXCLUSIVE_MINIMUM=null, EXCLUSIVE_MAXIMUM=null, UNIQUE_ITEMS=null, EXAMPLE=null, TYPE=, FORMAT=null, READ_ONLY=null, VENDOR_EXTENSIONS={}, MULTIPLE_OF=null} [main] INFO io.swagger.codegen.ignore.CodegenIgnoreProcessor - No .swagger-codegen-ignore file found. [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default appVersion set to 1.0.0 [main] ERROR io.swagger.codegen.DefaultGenerator - Missing required field info version. Default version set to 1.0.0 @@ -222,6 +224,12 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_cert_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_cert_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1CertConfig.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_changed_block_tracking_selectors.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_changed_block_tracking_selectors.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ChangedBlockTrackingSelectors.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_changed_block_tracking_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_changed_block_tracking_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ChangedBlockTrackingStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_chassis.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_chassis.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Chassis.md @@ -249,6 +257,9 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_component_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_component_config.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ComponentConfig.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_confidential_compute_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_confidential_compute_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ConfidentialComputeConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_config_drive_ssh_public_key_access_credential_propagation.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_config_drive_ssh_public_key_access_credential_propagation.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ConfigDriveSSHPublicKeyAccessCredentialPropagation.md @@ -261,6 +272,9 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_container_disk_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_container_disk_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ContainerDiskSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_container_path_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_container_path_volume_source.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ContainerPathVolumeSource.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_controller_revision_ref.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_controller_revision_ref.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ControllerRevisionRef.md @@ -303,18 +317,6 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_developer_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_developer_configuration.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeveloperConfiguration.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_device_attribute.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_device_attribute.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeviceAttribute.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_device_resource_claim_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_device_resource_claim_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeviceResourceClaimStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_device_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_device_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeviceStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_device_status_info.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_device_status_info.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1DeviceStatusInfo.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_devices.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_devices.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Devices.md @@ -363,6 +365,9 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_ephemeral_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_ephemeral_volume_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1EphemeralVolumeSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_evacuate_cancel_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_evacuate_cancel_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1EvacuateCancelOptions.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_feature_apic.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_feature_apic.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1FeatureAPIC.md @@ -435,6 +440,9 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hyperv_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hyperv_timer.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HypervTimer.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_hypervisor_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_hypervisor_configuration.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1HypervisorConfiguration.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_i6300_esb_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_i6300_esb_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1I6300ESBWatchdog.md @@ -468,6 +476,9 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_masquerade.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_masquerade.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceMasquerade.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_passt_binding.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_passt_binding.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfacePasstBinding.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_interface_sriov.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_interface_sriov.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1InterfaceSRIOV.md @@ -642,6 +653,9 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_remove_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_remove_volume_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1RemoveVolumeOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_reserved_overhead.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_reserved_overhead.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ReservedOverhead.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_resource_requirements.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1ResourceRequirements.md @@ -669,6 +683,9 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sev_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sev_policy.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEVPolicy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sevsnp.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sevsnp.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEVSNP.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_sev_secret_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_sev_secret_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1SEVSecretOptions.md @@ -717,6 +734,18 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_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 @@ -750,6 +779,9 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_user_password_access_credential_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_user_password_access_credential_source.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1UserPasswordAccessCredentialSource.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_utility_volume.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_utility_volume.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1UtilityVolume.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_vgpu_display_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_vgpu_display_options.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VGPUDisplayOptions.md @@ -759,6 +791,9 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_video_device.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_video_device.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VideoDevice.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virt_template_deployment.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virt_template_deployment.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtTemplateDeployment.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachine.md @@ -768,6 +803,9 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstance.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_backup_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_backup_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceBackupStatus.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_condition.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceCondition.md @@ -789,9 +827,6 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_guest_os_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_os_info.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestOSInfo.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_guest_os_load.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_os_load.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestOSLoad.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_virtual_machine_instance_guest_os_user.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_virtual_machine_instance_guest_os_user.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1VirtualMachineInstanceGuestOSUser.md @@ -918,6 +953,18 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1_watchdog.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1Watchdog.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_backup_checkpoint.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_backup_checkpoint.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1BackupCheckpoint.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_backup_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_backup_options.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1BackupOptions.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_backup_volume_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_backup_volume_info.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1BackupVolumeInfo.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Condition.md [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 @@ -933,36 +980,18 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_selectors.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_selectors.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1Selectors.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePool.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_condition.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolCondition.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_list.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolList.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_name_generation.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolNameGeneration.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolProactiveScaleInStrategy.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolScaleInStrategy.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_selection_policy.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolSelectionPolicy.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolSpec.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_pool_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_pool_status.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachinePoolStatus.md -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_virtual_machine_template_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1alpha1_virtual_machine_template_spec.py -[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1alpha1VirtualMachineTemplateSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1alpha1_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 @@ -1044,12 +1073,18 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/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 @@ -1092,6 +1127,12 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExport.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export_backup.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export_backup.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExportBackup.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export_backup_endpoint.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export_backup_endpoint.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExportBackupEndpoint.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_export_link.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_export_link.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineExportLink.md @@ -1125,6 +1166,54 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_instancetype_spec.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineInstancetypeSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_opportunistic_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_opportunistic_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineOpportunisticUpdateStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePool.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_autohealing_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_autohealing_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolAutohealingStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_condition.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolCondition.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_list.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolList.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_name_generation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_name_generation.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolNameGeneration.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolOpportunisticScaleInStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_proactive_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolProactiveScaleInStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_proactive_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_proactive_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolProactiveUpdateStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_scale_in_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolScaleInStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_selection_policy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_selection_policy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolSelectionPolicy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_selectors.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_selectors.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolSelectors.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolSpec.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_status.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_unmanaged_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_unmanaged_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolUnmanagedStrategy.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_pool_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_pool_update_strategy.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePoolUpdateStrategy.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_preference.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_preference.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachinePreference.md @@ -1170,6 +1259,9 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_snapshot_status.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineSnapshotStatus.md +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_virtual_machine_template_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_virtual_machine_template_spec.py +[main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VirtualMachineTemplateSpec.md [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/models/v1beta1_volume_backup.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_v1beta1_volume_backup.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/V1beta1VolumeBackup.md @@ -1595,6 +1687,60 @@ Populated by the system. Read-only. Null for lists. More info: https://git.k8s.i [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. +[main] WARN io.swagger.codegen.examples.ExampleGenerator - Ref property with empty model. [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/kubevirt/apis/default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/test/test_default_api.py [main] INFO io.swagger.codegen.AbstractGenerator - writing file /root/go/src/kubevirt.io/kubevirt/_out/client-python/docs/DefaultApi.md diff --git a/kubevirt/__init__.py b/kubevirt/__init__.py index 73e4760b..db2fcd1d 100644 --- a/kubevirt/__init__.py +++ b/kubevirt/__init__.py @@ -81,6 +81,8 @@ from .models.v1_cpu_feature import V1CPUFeature from .models.v1_cpu_topology import V1CPUTopology from .models.v1_cert_config import V1CertConfig +from .models.v1_changed_block_tracking_selectors import V1ChangedBlockTrackingSelectors +from .models.v1_changed_block_tracking_status import V1ChangedBlockTrackingStatus from .models.v1_chassis import V1Chassis from .models.v1_client_passthrough_devices import V1ClientPassthroughDevices from .models.v1_clock import V1Clock @@ -90,10 +92,12 @@ from .models.v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource from .models.v1_common_instancetypes_deployment import V1CommonInstancetypesDeployment from .models.v1_component_config import V1ComponentConfig +from .models.v1_confidential_compute_configuration import V1ConfidentialComputeConfiguration from .models.v1_config_drive_ssh_public_key_access_credential_propagation import V1ConfigDriveSSHPublicKeyAccessCredentialPropagation from .models.v1_config_map_volume_source import V1ConfigMapVolumeSource from .models.v1_container_disk_info import V1ContainerDiskInfo 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 @@ -108,10 +112,6 @@ from .models.v1_deprecated_interface_passt import V1DeprecatedInterfacePasst from .models.v1_deprecated_interface_slirp import V1DeprecatedInterfaceSlirp from .models.v1_developer_configuration import V1DeveloperConfiguration -from .models.v1_device_attribute import V1DeviceAttribute -from .models.v1_device_resource_claim_status import V1DeviceResourceClaimStatus -from .models.v1_device_status import V1DeviceStatus -from .models.v1_device_status_info import V1DeviceStatusInfo from .models.v1_devices import V1Devices from .models.v1_diag288_watchdog import V1Diag288Watchdog from .models.v1_disable_free_page_reporting import V1DisableFreePageReporting @@ -128,6 +128,7 @@ from .models.v1_efi import V1EFI from .models.v1_empty_disk_source import V1EmptyDiskSource from .models.v1_ephemeral_volume_source import V1EphemeralVolumeSource +from .models.v1_evacuate_cancel_options import V1EvacuateCancelOptions from .models.v1_feature_apic import V1FeatureAPIC from .models.v1_feature_hyperv import V1FeatureHyperv from .models.v1_feature_kvm import V1FeatureKVM @@ -152,6 +153,7 @@ from .models.v1_hugepages import V1Hugepages from .models.v1_hyper_v_passthrough import V1HyperVPassthrough from .models.v1_hyperv_timer import V1HypervTimer +from .models.v1_hypervisor_configuration import V1HypervisorConfiguration from .models.v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .models.v1_initrd_info import V1InitrdInfo from .models.v1_input import V1Input @@ -163,6 +165,7 @@ from .models.v1_interface_binding_plugin import V1InterfaceBindingPlugin from .models.v1_interface_bridge import V1InterfaceBridge from .models.v1_interface_masquerade import V1InterfaceMasquerade +from .models.v1_interface_passt_binding import V1InterfacePasstBinding from .models.v1_interface_sriov import V1InterfaceSRIOV from .models.v1_ksm_configuration import V1KSMConfiguration from .models.v1_kvm_timer import V1KVMTimer @@ -221,6 +224,7 @@ from .models.v1_realtime import V1Realtime from .models.v1_reloadable_component_configuration import V1ReloadableComponentConfiguration from .models.v1_remove_volume_options import V1RemoveVolumeOptions +from .models.v1_reserved_overhead import V1ReservedOverhead from .models.v1_resource_requirements import V1ResourceRequirements from .models.v1_resource_requirements_without_claims import V1ResourceRequirementsWithoutClaims from .models.v1_restart_options import V1RestartOptions @@ -230,6 +234,7 @@ from .models.v1_sev_measurement_info import V1SEVMeasurementInfo from .models.v1_sev_platform_info import V1SEVPlatformInfo from .models.v1_sev_policy import V1SEVPolicy +from .models.v1_sevsnp import V1SEVSNP from .models.v1_sev_secret_options import V1SEVSecretOptions from .models.v1_sev_session_options import V1SEVSessionOptions from .models.v1_sm_bios_configuration import V1SMBiosConfiguration @@ -246,6 +251,10 @@ 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 @@ -257,12 +266,15 @@ 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 @@ -270,7 +282,6 @@ from .models.v1_virtual_machine_instance_file_system_list import V1VirtualMachineInstanceFileSystemList from .models.v1_virtual_machine_instance_guest_agent_info import V1VirtualMachineInstanceGuestAgentInfo from .models.v1_virtual_machine_instance_guest_os_info import V1VirtualMachineInstanceGuestOSInfo -from .models.v1_virtual_machine_instance_guest_os_load import V1VirtualMachineInstanceGuestOSLoad from .models.v1_virtual_machine_instance_guest_os_user import V1VirtualMachineInstanceGuestOSUser from .models.v1_virtual_machine_instance_guest_os_user_list import V1VirtualMachineInstanceGuestOSUserList from .models.v1_virtual_machine_instance_list import V1VirtualMachineInstanceList @@ -313,21 +324,19 @@ from .models.v1_volume_status import V1VolumeStatus from .models.v1_volume_update_state import V1VolumeUpdateState from .models.v1_watchdog import V1Watchdog +from .models.v1alpha1_backup_checkpoint import V1alpha1BackupCheckpoint +from .models.v1alpha1_backup_options import V1alpha1BackupOptions +from .models.v1alpha1_backup_volume_info import V1alpha1BackupVolumeInfo +from .models.v1alpha1_condition import V1alpha1Condition from .models.v1alpha1_migration_policy import V1alpha1MigrationPolicy from .models.v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList 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_pool import V1alpha1VirtualMachinePool -from .models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition -from .models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList -from .models.v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration -from .models.v1alpha1_virtual_machine_pool_proactive_scale_in_strategy import V1alpha1VirtualMachinePoolProactiveScaleInStrategy -from .models.v1alpha1_virtual_machine_pool_scale_in_strategy import V1alpha1VirtualMachinePoolScaleInStrategy -from .models.v1alpha1_virtual_machine_pool_selection_policy import V1alpha1VirtualMachinePoolSelectionPolicy -from .models.v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec -from .models.v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus -from .models.v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec +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 @@ -355,8 +364,10 @@ 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 @@ -371,6 +382,8 @@ from .models.v1beta1_virtual_machine_cluster_preference import V1beta1VirtualMachineClusterPreference from .models.v1beta1_virtual_machine_cluster_preference_list import V1beta1VirtualMachineClusterPreferenceList from .models.v1beta1_virtual_machine_export import V1beta1VirtualMachineExport +from .models.v1beta1_virtual_machine_export_backup import V1beta1VirtualMachineExportBackup +from .models.v1beta1_virtual_machine_export_backup_endpoint import V1beta1VirtualMachineExportBackupEndpoint from .models.v1beta1_virtual_machine_export_link import V1beta1VirtualMachineExportLink from .models.v1beta1_virtual_machine_export_links import V1beta1VirtualMachineExportLinks from .models.v1beta1_virtual_machine_export_list import V1beta1VirtualMachineExportList @@ -382,6 +395,22 @@ from .models.v1beta1_virtual_machine_instancetype import V1beta1VirtualMachineInstancetype from .models.v1beta1_virtual_machine_instancetype_list import V1beta1VirtualMachineInstancetypeList from .models.v1beta1_virtual_machine_instancetype_spec import V1beta1VirtualMachineInstancetypeSpec +from .models.v1beta1_virtual_machine_opportunistic_update_strategy import V1beta1VirtualMachineOpportunisticUpdateStrategy +from .models.v1beta1_virtual_machine_pool import V1beta1VirtualMachinePool +from .models.v1beta1_virtual_machine_pool_autohealing_strategy import V1beta1VirtualMachinePoolAutohealingStrategy +from .models.v1beta1_virtual_machine_pool_condition import V1beta1VirtualMachinePoolCondition +from .models.v1beta1_virtual_machine_pool_list import V1beta1VirtualMachinePoolList +from .models.v1beta1_virtual_machine_pool_name_generation import V1beta1VirtualMachinePoolNameGeneration +from .models.v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy import V1beta1VirtualMachinePoolOpportunisticScaleInStrategy +from .models.v1beta1_virtual_machine_pool_proactive_scale_in_strategy import V1beta1VirtualMachinePoolProactiveScaleInStrategy +from .models.v1beta1_virtual_machine_pool_proactive_update_strategy import V1beta1VirtualMachinePoolProactiveUpdateStrategy +from .models.v1beta1_virtual_machine_pool_scale_in_strategy import V1beta1VirtualMachinePoolScaleInStrategy +from .models.v1beta1_virtual_machine_pool_selection_policy import V1beta1VirtualMachinePoolSelectionPolicy +from .models.v1beta1_virtual_machine_pool_selectors import V1beta1VirtualMachinePoolSelectors +from .models.v1beta1_virtual_machine_pool_spec import V1beta1VirtualMachinePoolSpec +from .models.v1beta1_virtual_machine_pool_status import V1beta1VirtualMachinePoolStatus +from .models.v1beta1_virtual_machine_pool_unmanaged_strategy import V1beta1VirtualMachinePoolUnmanagedStrategy +from .models.v1beta1_virtual_machine_pool_update_strategy import V1beta1VirtualMachinePoolUpdateStrategy from .models.v1beta1_virtual_machine_preference import V1beta1VirtualMachinePreference from .models.v1beta1_virtual_machine_preference_list import V1beta1VirtualMachinePreferenceList from .models.v1beta1_virtual_machine_preference_spec import V1beta1VirtualMachinePreferenceSpec @@ -397,6 +426,7 @@ from .models.v1beta1_virtual_machine_snapshot_list import V1beta1VirtualMachineSnapshotList from .models.v1beta1_virtual_machine_snapshot_spec import V1beta1VirtualMachineSnapshotSpec from .models.v1beta1_virtual_machine_snapshot_status import V1beta1VirtualMachineSnapshotStatus +from .models.v1beta1_virtual_machine_template_spec import V1beta1VirtualMachineTemplateSpec from .models.v1beta1_volume_backup import V1beta1VolumeBackup from .models.v1beta1_volume_preferences import V1beta1VolumePreferences from .models.v1beta1_volume_restore import V1beta1VolumeRestore diff --git a/kubevirt/api_client.py b/kubevirt/api_client.py index 9b47fc78..c8e84117 100644 --- a/kubevirt/api_client.py +++ b/kubevirt/api_client.py @@ -73,7 +73,7 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None): self.host = host self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/v1.6.0-beta.0-869-g12ebd1cfe9/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 5c8bd579..b07b8c90 100644 --- a/kubevirt/apis/default_api.py +++ b/kubevirt/apis/default_api.py @@ -366,6 +366,117 @@ def create_namespaced_virtual_machine_with_http_info(self, body, namespace, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def create_namespaced_virtual_machine_backup(self, body, namespace, **kwargs): + """ + Create a VirtualMachineBackup object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_backup(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineBackup body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachineBackup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.create_namespaced_virtual_machine_backup_with_http_info(body, namespace, **kwargs) + else: + (data) = self.create_namespaced_virtual_machine_backup_with_http_info(body, namespace, **kwargs) + return data + + def create_namespaced_virtual_machine_backup_with_http_info(self, body, namespace, **kwargs): + """ + Create a VirtualMachineBackup object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.create_namespaced_virtual_machine_backup_with_http_info(body, namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param V1alpha1VirtualMachineBackup body: (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :return: V1alpha1VirtualMachineBackup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['body', 'namespace'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method create_namespaced_virtual_machine_backup" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `create_namespaced_virtual_machine_backup`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `create_namespaced_virtual_machine_backup`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups', 'POST', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='V1alpha1VirtualMachineBackup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def create_namespaced_virtual_machine_export(self, body, namespace, **kwargs): """ Create a VirtualMachineExport object. @@ -1045,9 +1156,9 @@ def create_namespaced_virtual_machine_pool(self, body, namespace, **kwargs): :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachinePool body: (required) + :param V1beta1VirtualMachinePool body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachinePool + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -1071,9 +1182,9 @@ def create_namespaced_virtual_machine_pool_with_http_info(self, body, namespace, :param callback function: The callback function for asynchronous request. (optional) - :param V1alpha1VirtualMachinePool body: (required) + :param V1beta1VirtualMachinePool body: (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: V1alpha1VirtualMachinePool + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -1128,14 +1239,14 @@ def create_namespaced_virtual_machine_pool_with_http_info(self, body, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools', 'POST', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools', 'POST', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePool', + response_type='V1beta1VirtualMachinePool', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -2274,6 +2385,131 @@ def delete_collection_namespaced_virtual_machine_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def delete_collection_namespaced_virtual_machine_backup(self, **kwargs): + """ + Delete a collection of VirtualMachineBackup objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_virtual_machine_backup(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_collection_namespaced_virtual_machine_backup_with_http_info(**kwargs) + else: + (data) = self.delete_collection_namespaced_virtual_machine_backup_with_http_info(**kwargs) + return data + + def delete_collection_namespaced_virtual_machine_backup_with_http_info(self, **kwargs): + """ + Delete a collection of VirtualMachineBackup objects. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_collection_namespaced_virtual_machine_backup_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_collection_namespaced_virtual_machine_backup" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def delete_collection_namespaced_virtual_machine_export(self, **kwargs): """ Delete a collection of VirtualMachineExport objects. @@ -3134,7 +3370,7 @@ def delete_collection_namespaced_virtual_machine_pool_with_http_info(self, **kwa # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools', 'DELETE', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools', 'DELETE', path_params, query_params, header_params, @@ -4407,16 +4643,16 @@ def delete_namespaced_virtual_machine_with_http_info(self, name, namespace, body _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_export(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_backup(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineExport object. + Delete a VirtualMachineBackup object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_export(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_backup(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4432,21 +4668,21 @@ def delete_namespaced_virtual_machine_export(self, name, namespace, body, **kwar """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_backup_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineExport object. + Delete a VirtualMachineBackup object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_backup_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4472,19 +4708,19 @@ def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespac if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_export" % key + " to method delete_namespaced_virtual_machine_backup" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_export`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_backup`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_export`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_backup`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_export`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_backup`") collection_formats = {} @@ -4522,7 +4758,7 @@ def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespac # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name}', 'DELETE', + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinebackups/{name}', 'DELETE', path_params, query_params, header_params, @@ -4537,16 +4773,16 @@ def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespac _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_export(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstance object. + Delete a VirtualMachineExport object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_export(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4562,21 +4798,21 @@ def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kw """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + (data) = self.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, **kwargs) return data - def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_export_with_http_info(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstance object. + Delete a VirtualMachineExport object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_export_with_http_info(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4602,19 +4838,19 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method delete_namespaced_virtual_machine_instance" % key + " to method delete_namespaced_virtual_machine_export" % key ) params[key] = val del params['kwargs'] # verify the required parameter 'name' is set if ('name' not in params) or (params['name'] is None): - raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_export`") # verify the required parameter 'namespace' is set if ('namespace' not in params) or (params['namespace'] is None): - raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_export`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_export`") collection_formats = {} @@ -4652,7 +4888,7 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}', 'DELETE', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name}', 'DELETE', path_params, query_params, header_params, @@ -4667,16 +4903,16 @@ def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + def delete_namespaced_virtual_machine_instance(self, name, namespace, body, **kwargs): """ - Delete a VirtualMachineInstanceMigration object. + Delete a VirtualMachineInstance object. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + >>> thread = api.delete_namespaced_virtual_machine_instance(name, namespace, body, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -4692,7 +4928,137 @@ def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) + return self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, **kwargs) + return data + + def delete_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachineInstance object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_instance_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body', 'grace_period_seconds', 'orphan_dependents', 'propagation_policy'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method delete_namespaced_virtual_machine_instance" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `delete_namespaced_virtual_machine_instance`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `delete_namespaced_virtual_machine_instance`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `delete_namespaced_virtual_machine_instance`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if 'grace_period_seconds' in params: + query_params.append(('gracePeriodSeconds', params['grace_period_seconds'])) + if 'orphan_dependents' in params: + query_params.append(('orphanDependents', params['orphan_dependents'])) + if 'propagation_policy' in params: + query_params.append(('propagationPolicy', params['propagation_policy'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json', 'application/yaml']) + + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['application/json', 'application/yaml']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}', 'DELETE', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1Status', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + + def delete_namespaced_virtual_machine_instance_migration(self, name, namespace, body, **kwargs): + """ + Delete a VirtualMachineInstanceMigration object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.delete_namespaced_virtual_machine_instance_migration(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param K8sIoApimachineryPkgApisMetaV1DeleteOptions body: (required) + :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately. + :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both. + :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground. + :return: K8sIoApimachineryPkgApisMetaV1Status + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) else: (data) = self.delete_namespaced_virtual_machine_instance_migration_with_http_info(name, namespace, body, **kwargs) return data @@ -5302,7 +5668,7 @@ def delete_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name}', 'DELETE', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name}', 'DELETE', path_params, query_params, header_params, @@ -6206,7 +6572,7 @@ def delete_virtual_machine_cluster_preference_with_http_info(self, name, body, * _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def func13(self, **kwargs): + def func15(self, **kwargs): """ Health endpoint This method makes a synchronous HTTP request by default. To make an @@ -6215,7 +6581,7 @@ def func13(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func13(callback=callback_function) + >>> thread = api.func15(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6225,12 +6591,12 @@ def func13(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.func13_with_http_info(**kwargs) + return self.func15_with_http_info(**kwargs) else: - (data) = self.func13_with_http_info(**kwargs) + (data) = self.func15_with_http_info(**kwargs) return data - def func13_with_http_info(self, **kwargs): + def func15_with_http_info(self, **kwargs): """ Health endpoint This method makes a synchronous HTTP request by default. To make an @@ -6239,7 +6605,7 @@ def func13_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.func13_with_http_info(callback=callback_function) + >>> thread = api.func15_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -6259,7 +6625,7 @@ def func13_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method func13" % key + " to method func15" % key ) params[key] = val del params['kwargs'] @@ -6388,6 +6754,98 @@ def func6_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def get_api_group_backup_kubevirt_io(self, **kwargs): + """ + Get a KubeVirt API group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_group_backup_kubevirt_io(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.get_api_group_backup_kubevirt_io_with_http_info(**kwargs) + else: + (data) = self.get_api_group_backup_kubevirt_io_with_http_info(**kwargs) + return data + + def get_api_group_backup_kubevirt_io_with_http_info(self, **kwargs): + """ + Get a KubeVirt API group + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.get_api_group_backup_kubevirt_io_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :return: K8sIoApimachineryPkgApisMetaV1APIGroup + If the method is called asynchronously, + returns the request thread. + """ + + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method get_api_group_backup_kubevirt_io" % key + ) + params[key] = val + del params['kwargs'] + + collection_formats = {} + + path_params = {} + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/backup.kubevirt.io/', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1APIGroup', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def get_api_group_clone_kubevirt_io(self, **kwargs): """ Get a KubeVirt API group @@ -7124,7 +7582,7 @@ def get_api_group_snapshot_kubevirt_io_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_clone_kubevirt_io_v1beta1(self, **kwargs): + 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 @@ -7133,7 +7591,7 @@ def get_api_resources_clone_kubevirt_io_v1beta1(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_clone_kubevirt_io_v1beta1(callback=callback_function) + >>> thread = api.get_api_resources_backup_kubevirt_io_v1alpha1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7143,12 +7601,12 @@ def get_api_resources_clone_kubevirt_io_v1beta1(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(**kwargs) + return self.get_api_resources_backup_kubevirt_io_v1alpha1_with_http_info(**kwargs) else: - (data) = self.get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(**kwargs) + (data) = self.get_api_resources_backup_kubevirt_io_v1alpha1_with_http_info(**kwargs) return data - def get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(self, **kwargs): + 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 @@ -7157,7 +7615,7 @@ def get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(callback=callback_function) + >>> 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) @@ -7177,7 +7635,7 @@ def get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_clone_kubevirt_io_v1beta1" % key + " to method get_api_resources_backup_kubevirt_io_v1alpha1" % key ) params[key] = val del params['kwargs'] @@ -7201,7 +7659,7 @@ def get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1beta1/', 'GET', + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/', 'GET', path_params, query_params, header_params, @@ -7216,7 +7674,7 @@ def get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_export_kubevirt_io_v1beta1(self, **kwargs): + def get_api_resources_clone_kubevirt_io_v1beta1(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7225,7 +7683,7 @@ def get_api_resources_export_kubevirt_io_v1beta1(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_export_kubevirt_io_v1beta1(callback=callback_function) + >>> thread = api.get_api_resources_clone_kubevirt_io_v1beta1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7235,12 +7693,12 @@ def get_api_resources_export_kubevirt_io_v1beta1(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_export_kubevirt_io_v1beta1_with_http_info(**kwargs) + return self.get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(**kwargs) else: - (data) = self.get_api_resources_export_kubevirt_io_v1beta1_with_http_info(**kwargs) + (data) = self.get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(**kwargs) return data - def get_api_resources_export_kubevirt_io_v1beta1_with_http_info(self, **kwargs): + def get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7249,7 +7707,7 @@ def get_api_resources_export_kubevirt_io_v1beta1_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_export_kubevirt_io_v1beta1_with_http_info(callback=callback_function) + >>> thread = api.get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7269,7 +7727,7 @@ def get_api_resources_export_kubevirt_io_v1beta1_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_export_kubevirt_io_v1beta1" % key + " to method get_api_resources_clone_kubevirt_io_v1beta1" % key ) params[key] = val del params['kwargs'] @@ -7293,7 +7751,7 @@ def get_api_resources_export_kubevirt_io_v1beta1_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/', 'GET', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1beta1/', 'GET', path_params, query_params, header_params, @@ -7308,7 +7766,7 @@ def get_api_resources_export_kubevirt_io_v1beta1_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_instancetype_kubevirt_io_v1beta1(self, **kwargs): + def get_api_resources_export_kubevirt_io_v1beta1(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7317,7 +7775,7 @@ def get_api_resources_instancetype_kubevirt_io_v1beta1(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_instancetype_kubevirt_io_v1beta1(callback=callback_function) + >>> thread = api.get_api_resources_export_kubevirt_io_v1beta1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7327,12 +7785,12 @@ def get_api_resources_instancetype_kubevirt_io_v1beta1(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_instancetype_kubevirt_io_v1beta1_with_http_info(**kwargs) + return self.get_api_resources_export_kubevirt_io_v1beta1_with_http_info(**kwargs) else: - (data) = self.get_api_resources_instancetype_kubevirt_io_v1beta1_with_http_info(**kwargs) + (data) = self.get_api_resources_export_kubevirt_io_v1beta1_with_http_info(**kwargs) return data - def get_api_resources_instancetype_kubevirt_io_v1beta1_with_http_info(self, **kwargs): + def get_api_resources_export_kubevirt_io_v1beta1_with_http_info(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7341,7 +7799,7 @@ def get_api_resources_instancetype_kubevirt_io_v1beta1_with_http_info(self, **kw >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_instancetype_kubevirt_io_v1beta1_with_http_info(callback=callback_function) + >>> thread = api.get_api_resources_export_kubevirt_io_v1beta1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7361,7 +7819,7 @@ def get_api_resources_instancetype_kubevirt_io_v1beta1_with_http_info(self, **kw if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_instancetype_kubevirt_io_v1beta1" % key + " to method get_api_resources_export_kubevirt_io_v1beta1" % key ) params[key] = val del params['kwargs'] @@ -7385,7 +7843,7 @@ def get_api_resources_instancetype_kubevirt_io_v1beta1_with_http_info(self, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/', 'GET', + return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/', 'GET', path_params, query_params, header_params, @@ -7400,7 +7858,99 @@ def get_api_resources_instancetype_kubevirt_io_v1beta1_with_http_info(self, **kw _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_kubevirt_io_v1(self, **kwargs): + def get_api_resources_instancetype_kubevirt_io_v1beta1(self, **kwargs): + """ + Get KubeVirt API Resources + This method makes a synchronous HTTP request by default. To make an + 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 @@ -7584,7 +8134,7 @@ def get_api_resources_migrations_kubevirt_io_v1alpha1_with_http_info(self, **kwa _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def get_api_resources_pool_kubevirt_io_v1alpha1(self, **kwargs): + def get_api_resources_pool_kubevirt_io_v1beta1(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7593,7 +8143,7 @@ def get_api_resources_pool_kubevirt_io_v1alpha1(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_pool_kubevirt_io_v1alpha1(callback=callback_function) + >>> thread = api.get_api_resources_pool_kubevirt_io_v1beta1(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7603,12 +8153,12 @@ def get_api_resources_pool_kubevirt_io_v1alpha1(self, **kwargs): """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(**kwargs) + return self.get_api_resources_pool_kubevirt_io_v1beta1_with_http_info(**kwargs) else: - (data) = self.get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(**kwargs) + (data) = self.get_api_resources_pool_kubevirt_io_v1beta1_with_http_info(**kwargs) return data - def get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): + def get_api_resources_pool_kubevirt_io_v1beta1_with_http_info(self, **kwargs): """ Get KubeVirt API Resources This method makes a synchronous HTTP request by default. To make an @@ -7617,7 +8167,7 @@ def get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(callback=callback_function) + >>> thread = api.get_api_resources_pool_kubevirt_io_v1beta1_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -7637,7 +8187,7 @@ def get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method get_api_resources_pool_kubevirt_io_v1alpha1" % key + " to method get_api_resources_pool_kubevirt_io_v1beta1" % key ) params[key] = val del params['kwargs'] @@ -7661,7 +8211,7 @@ def get_api_resources_pool_kubevirt_io_v1alpha1_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/', 'GET', path_params, query_params, header_params, @@ -8638,6 +9188,138 @@ 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_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. @@ -9452,7 +10134,7 @@ def list_namespaced_virtual_machine_pool(self, namespace, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachinePoolList + :return: V1beta1VirtualMachinePoolList If the method is called asynchronously, returns the request thread. """ @@ -9485,7 +10167,7 @@ def list_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwarg :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachinePoolList + :return: V1beta1VirtualMachinePoolList If the method is called asynchronously, returns the request thread. """ @@ -9547,14 +10229,14 @@ def list_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwarg # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePoolList', + response_type='V1beta1VirtualMachinePoolList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10090,16 +10772,16 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(self, namesp _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_clone(self, **kwargs): + def list_virtual_machine_backup_for_all_namespaces(self, **kwargs): """ - Get a list of VirtualMachineClone objects. + 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_clone(callback=callback_function) + >>> thread = api.list_virtual_machine_backup_for_all_namespaces(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10111,27 +10793,27 @@ def list_virtual_machine_clone(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1VirtualMachineCloneList + :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_clone_with_http_info(**kwargs) + return self.list_virtual_machine_backup_for_all_namespaces_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_clone_with_http_info(**kwargs) + (data) = self.list_virtual_machine_backup_for_all_namespaces_with_http_info(**kwargs) return data - def list_virtual_machine_clone_with_http_info(self, **kwargs): + def list_virtual_machine_backup_for_all_namespaces_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineClone objects. + 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_clone_with_http_info(callback=callback_function) + >>> 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) @@ -10143,7 +10825,7 @@ def list_virtual_machine_clone_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1VirtualMachineCloneList + :return: V1alpha1VirtualMachineBackupList If the method is called asynchronously, returns the request thread. """ @@ -10159,7 +10841,7 @@ def list_virtual_machine_clone_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_clone" % key + " to method list_virtual_machine_backup_for_all_namespaces" % key ) params[key] = val del params['kwargs'] @@ -10200,14 +10882,14 @@ def list_virtual_machine_clone_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/clone.kubevirt.io/v1beta1/virtualmachineclones', 'GET', + 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='V1beta1VirtualMachineCloneList', + response_type='V1alpha1VirtualMachineBackupList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10215,16 +10897,16 @@ def list_virtual_machine_clone_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_cluster_instancetype(self, **kwargs): + def list_virtual_machine_clone(self, **kwargs): """ - Get a list of VirtualMachineClusterInstancetype objects. + Get a list of VirtualMachineClone objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_cluster_instancetype(callback=callback_function) + >>> thread = api.list_virtual_machine_clone(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10236,27 +10918,27 @@ def list_virtual_machine_cluster_instancetype(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1VirtualMachineClusterInstancetypeList + :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_cluster_instancetype_with_http_info(**kwargs) + return self.list_virtual_machine_clone_with_http_info(**kwargs) else: - (data) = self.list_virtual_machine_cluster_instancetype_with_http_info(**kwargs) + (data) = self.list_virtual_machine_clone_with_http_info(**kwargs) return data - def list_virtual_machine_cluster_instancetype_with_http_info(self, **kwargs): + def list_virtual_machine_clone_with_http_info(self, **kwargs): """ - Get a list of VirtualMachineClusterInstancetype objects. + Get a list of VirtualMachineClone objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_cluster_instancetype_with_http_info(callback=callback_function) + >>> thread = api.list_virtual_machine_clone_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10268,7 +10950,7 @@ def list_virtual_machine_cluster_instancetype_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1VirtualMachineClusterInstancetypeList + :return: V1beta1VirtualMachineCloneList If the method is called asynchronously, returns the request thread. """ @@ -10284,7 +10966,7 @@ def list_virtual_machine_cluster_instancetype_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method list_virtual_machine_cluster_instancetype" % key + " to method list_virtual_machine_clone" % key ) params[key] = val del params['kwargs'] @@ -10325,14 +11007,14 @@ def list_virtual_machine_cluster_instancetype_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes', 'GET', + return self.api_client.call_api('/apis/clone.kubevirt.io/v1beta1/virtualmachineclones', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1beta1VirtualMachineClusterInstancetypeList', + response_type='V1beta1VirtualMachineCloneList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -10340,16 +11022,16 @@ def list_virtual_machine_cluster_instancetype_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def list_virtual_machine_cluster_preference(self, **kwargs): + def list_virtual_machine_cluster_instancetype(self, **kwargs): """ - Get a list of VirtualMachineClusterPreference objects. + Get a list of VirtualMachineClusterInstancetype objects. This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.list_virtual_machine_cluster_preference(callback=callback_function) + >>> thread = api.list_virtual_machine_cluster_instancetype(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -10361,7 +11043,132 @@ def list_virtual_machine_cluster_preference(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1beta1VirtualMachineClusterPreferenceList + :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. """ @@ -11361,7 +12168,7 @@ def list_virtual_machine_pool_for_all_namespaces(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachinePoolList + :return: V1beta1VirtualMachinePoolList If the method is called asynchronously, returns the request thread. """ @@ -11393,7 +12200,7 @@ def list_virtual_machine_pool_for_all_namespaces_with_http_info(self, **kwargs): :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. :param int timeout_seconds: TimeoutSeconds for the list/watch call. :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - :return: V1alpha1VirtualMachinePoolList + :return: V1beta1VirtualMachinePoolList If the method is called asynchronously, returns the request thread. """ @@ -11450,14 +12257,14 @@ def list_virtual_machine_pool_for_all_namespaces_with_http_info(self, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/virtualmachinepools', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/virtualmachinepools', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePoolList', + response_type='V1beta1VirtualMachinePoolList', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -12312,6 +13119,124 @@ def patch_namespaced_virtual_machine_with_http_info(self, name, namespace, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def patch_namespaced_virtual_machine_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. @@ -13036,7 +13961,7 @@ def patch_namespaced_virtual_machine_pool(self, name, namespace, body, **kwargs) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachinePool + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -13063,7 +13988,7 @@ def patch_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) :param K8sIoApimachineryPkgApisMetaV1Patch body: (required) - :return: V1alpha1VirtualMachinePool + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -13123,14 +14048,14 @@ def patch_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name}', 'PATCH', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name}', 'PATCH', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePool', + response_type='V1beta1VirtualMachinePool', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14281,16 +15206,16 @@ def read_namespaced_virtual_machine_with_http_info(self, name, namespace, **kwar _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_export(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_backup(self, name, namespace, **kwargs): """ - Get a VirtualMachineExport object. + 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_export(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_backup(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14298,27 +15223,27 @@ def read_namespaced_virtual_machine_export(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1VirtualMachineExport + :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_export_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_backup_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_export_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_backup_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_export_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_backup_with_http_info(self, name, namespace, **kwargs): """ - Get a VirtualMachineExport object. + 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_export_with_http_info(name, namespace, callback=callback_function) + >>> 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) @@ -14326,7 +15251,7 @@ def read_namespaced_virtual_machine_export_with_http_info(self, name, namespace, :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1beta1VirtualMachineExport + :return: V1alpha1VirtualMachineBackup If the method is called asynchronously, returns the request thread. """ @@ -14342,16 +15267,16 @@ def read_namespaced_virtual_machine_export_with_http_info(self, name, namespace, if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method read_namespaced_virtual_machine_export" % key + " 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_export`") + 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_export`") + raise ValueError("Missing the required parameter `namespace` when calling `read_namespaced_virtual_machine_backup`") collection_formats = {} @@ -14381,14 +15306,14 @@ def read_namespaced_virtual_machine_export_with_http_info(self, name, namespace, # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/export.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachineexports/{name}', 'GET', + 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='V1beta1VirtualMachineExport', + response_type='V1alpha1VirtualMachineBackup', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -14396,16 +15321,16 @@ def read_namespaced_virtual_machine_export_with_http_info(self, name, namespace, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def read_namespaced_virtual_machine_instance(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_export(self, name, namespace, **kwargs): """ - Get a VirtualMachineInstance object. + 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_instance(name, namespace, callback=callback_function) + >>> thread = api.read_namespaced_virtual_machine_export(name, namespace, callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) @@ -14413,18 +15338,133 @@ def read_namespaced_virtual_machine_instance(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1VirtualMachineInstance + :return: 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_instance_with_http_info(name, namespace, **kwargs) + return self.read_namespaced_virtual_machine_export_with_http_info(name, namespace, **kwargs) else: - (data) = self.read_namespaced_virtual_machine_instance_with_http_info(name, namespace, **kwargs) + (data) = self.read_namespaced_virtual_machine_export_with_http_info(name, namespace, **kwargs) return data - def read_namespaced_virtual_machine_instance_with_http_info(self, name, namespace, **kwargs): + def read_namespaced_virtual_machine_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 @@ -14988,7 +16028,7 @@ def read_namespaced_virtual_machine_pool(self, name, namespace, **kwargs): :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachinePool + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -15016,7 +16056,7 @@ def read_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, * :param str namespace: Object name and auth scope, such as for teams and projects (required) :param bool exact: Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. :param bool export: Should this value be exported. Export strips fields that a user can not specify. - :return: V1alpha1VirtualMachinePool + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -15071,14 +16111,14 @@ def read_namespaced_virtual_machine_pool_with_http_info(self, name, namespace, * # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name}', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name}', 'GET', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePool', + response_type='V1beta1VirtualMachinePool', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -16217,6 +17257,124 @@ def replace_namespaced_virtual_machine_with_http_info(self, name, namespace, bod _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def replace_namespaced_virtual_machine_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. @@ -16940,8 +18098,8 @@ def replace_namespaced_virtual_machine_pool(self, name, namespace, body, **kwarg for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachinePool body: (required) - :return: V1alpha1VirtualMachinePool + :param V1beta1VirtualMachinePool body: (required) + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -16967,8 +18125,8 @@ def replace_namespaced_virtual_machine_pool_with_http_info(self, name, namespace for asynchronous request. (optional) :param str name: Name of the resource (required) :param str namespace: Object name and auth scope, such as for teams and projects (required) - :param V1alpha1VirtualMachinePool body: (required) - :return: V1alpha1VirtualMachinePool + :param V1beta1VirtualMachinePool body: (required) + :return: V1beta1VirtualMachinePool If the method is called asynchronously, returns the request thread. """ @@ -17028,14 +18186,14 @@ def replace_namespaced_virtual_machine_pool_with_http_info(self, name, namespace # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/namespaces/{namespace}/virtualmachinepools/{name}', 'PUT', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinepools/{name}', 'PUT', path_params, query_params, header_params, body=body_params, post_params=form_params, files=local_var_files, - response_type='V1alpha1VirtualMachinePool', + response_type='V1beta1VirtualMachinePool', auth_settings=auth_settings, callback=params.get('callback'), _return_http_data_only=params.get('_return_http_data_only'), @@ -17848,49 +19006,55 @@ def replace_virtual_machine_cluster_preference_with_http_info(self, name, body, _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_check_health(self, **kwargs): + def v1_backup(self, name, namespace, body, **kwargs): """ - Health endpoint + 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_check_health(callback=callback_function) + >>> 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_check_health_with_http_info(**kwargs) + return self.v1_backup_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1_check_health_with_http_info(**kwargs) + (data) = self.v1_backup_with_http_info(name, namespace, body, **kwargs) return data - def v1_check_health_with_http_info(self, **kwargs): + def v1_backup_with_http_info(self, name, namespace, body, **kwargs): """ - Health endpoint + 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_check_health_with_http_info(callback=callback_function) + >>> 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 = [] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -17901,14 +19065,28 @@ def v1_check_health_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1_check_health" % key + " to method v1_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 = [] @@ -17918,18 +19096,16 @@ def v1_check_health_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - + if 'body' in params: + body_params = params['body'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/healthz', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/backup', 'PUT', path_params, query_params, header_params, @@ -17944,16 +19120,112 @@ def v1_check_health_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1_console(self, name, namespace, **kwargs): + def v1_check_health(self, **kwargs): """ - Open a websocket connection to a serial console on the specified VirtualMachineInstance. + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1_console(name, namespace, callback=callback_function) + >>> thread = api.v1_check_health(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :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) @@ -19011,6 +20283,120 @@ def v1_pause_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1_redefine_checkpoint(self, name, namespace, body, **kwargs): + """ + Redefine a checkpoint for a VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_redefine_checkpoint(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1BackupCheckpoint body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1_redefine_checkpoint_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1_redefine_checkpoint_with_http_info(name, namespace, body, **kwargs) + return data + + def v1_redefine_checkpoint_with_http_info(self, name, namespace, body, **kwargs): + """ + Redefine a checkpoint for a VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1_redefine_checkpoint_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1BackupCheckpoint body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1_redefine_checkpoint" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1_redefine_checkpoint`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1_redefine_checkpoint`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1_redefine_checkpoint`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/redefine-checkpoint', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1_remove_memory_dump(self, name, namespace, **kwargs): """ Remove memory dump association. @@ -20852,49 +22238,55 @@ def v1_vsock_with_http_info(self, name, namespace, port, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_check_health(self, **kwargs): + def v1alpha3_backup(self, name, namespace, body, **kwargs): """ - Health endpoint + 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_check_health(callback=callback_function) + >>> 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_check_health_with_http_info(**kwargs) + return self.v1alpha3_backup_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3_check_health_with_http_info(**kwargs) + (data) = self.v1alpha3_backup_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3_check_health_with_http_info(self, **kwargs): + def v1alpha3_backup_with_http_info(self, name, namespace, body, **kwargs): """ - Health endpoint + 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_check_health_with_http_info(callback=callback_function) + >>> 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 = [] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -20905,14 +22297,28 @@ def v1alpha3_check_health_with_http_info(self, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3_check_health" % key + " to method v1alpha3_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 = [] @@ -20922,18 +22328,16 @@ def v1alpha3_check_health_with_http_info(self, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) - + if 'body' in params: + body_params = params['body'] # HTTP header `Content-Type` header_params['Content-Type'] = self.api_client.\ - select_header_content_type(['application/json']) + select_header_content_type(['*/*']) # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/healthz', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/backup', 'PUT', path_params, query_params, header_params, @@ -20948,53 +22352,149 @@ def v1alpha3_check_health_with_http_info(self, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3_console(self, name, namespace, **kwargs): + def v1alpha3_check_health(self, **kwargs): """ - Open a websocket connection to a serial console on the specified VirtualMachineInstance. + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_console(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_check_health(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ kwargs['_return_http_data_only'] = True if kwargs.get('callback'): - return self.v1alpha3_console_with_http_info(name, namespace, **kwargs) + return self.v1alpha3_check_health_with_http_info(**kwargs) else: - (data) = self.v1alpha3_console_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3_check_health_with_http_info(**kwargs) return data - def v1alpha3_console_with_http_info(self, name, namespace, **kwargs): + def v1alpha3_check_health_with_http_info(self, **kwargs): """ - Open a websocket connection to a serial console on the specified VirtualMachineInstance. + Health endpoint This method makes a synchronous HTTP request by default. To make an asynchronous HTTP request, please define a `callback` function to be invoked when receiving the response. >>> def callback_function(response): >>> pprint(response) >>> - >>> thread = api.v1alpha3_console_with_http_info(name, namespace, callback=callback_function) + >>> thread = api.v1alpha3_check_health_with_http_info(callback=callback_function) :param callback function: The callback function for asynchronous request. (optional) - :param str name: Name of the resource (required) - :param str namespace: Object name and auth scope, such as for teams and projects (required) - :return: None + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace'] + all_params = [] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = 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') @@ -21923,6 +23423,120 @@ def v1alpha3_pause_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3_redefine_checkpoint(self, name, namespace, body, **kwargs): + """ + Redefine a checkpoint for a VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_redefine_checkpoint(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1BackupCheckpoint body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3_redefine_checkpoint_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3_redefine_checkpoint_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3_redefine_checkpoint_with_http_info(self, name, namespace, body, **kwargs): + """ + Redefine a checkpoint for a VirtualMachineInstance. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3_redefine_checkpoint_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1alpha1BackupCheckpoint body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3_redefine_checkpoint" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3_redefine_checkpoint`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3_redefine_checkpoint`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3_redefine_checkpoint`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/redefine-checkpoint', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3_remove_memory_dump(self, name, namespace, **kwargs): """ Remove memory dump association. @@ -24343,53 +25957,55 @@ def v1alpha3vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vm_expand_spec(self, name, namespace, **kwargs): + def v1alpha3vm_evacuatecancel(self, name, namespace, body, **kwargs): """ - Get VirtualMachine object with expanded instancetype and preference. + 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_expand_spec(name, namespace, callback=callback_function) + >>> 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_expand_spec_with_http_info(name, namespace, **kwargs) + return self.v1alpha3vm_evacuatecancel_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1alpha3vm_expand_spec_with_http_info(name, namespace, **kwargs) + (data) = self.v1alpha3vm_evacuatecancel_with_http_info(name, namespace, body, **kwargs) return data - def v1alpha3vm_expand_spec_with_http_info(self, name, namespace, **kwargs): + def v1alpha3vm_evacuatecancel_with_http_info(self, name, namespace, body, **kwargs): """ - Get VirtualMachine object with expanded instancetype and preference. + 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_expand_spec_with_http_info(name, namespace, callback=callback_function) + >>> 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'] + all_params = ['name', 'namespace', 'body'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -24400,16 +26016,19 @@ def v1alpha3vm_expand_spec_with_http_info(self, name, namespace, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3vm_expand_spec" % key + " 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_expand_spec`") + 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_expand_spec`") + 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 = {} @@ -24428,14 +26047,16 @@ def v1alpha3vm_expand_spec_with_http_info(self, name, namespace, **kwargs): local_var_files = {} body_params = None - # HTTP header `Accept` - header_params['Accept'] = self.api_client.\ - select_header_accept(['application/json']) + 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}/expand-spec', 'GET', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/evacuate/cancel', 'PUT', path_params, query_params, header_params, @@ -24450,55 +26071,53 @@ def v1alpha3vm_expand_spec_with_http_info(self, name, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1alpha3vm_objectgraph(self, name, namespace, body, **kwargs): + def v1alpha3vm_expand_spec(self, name, namespace, **kwargs): """ - Get graph of objects related to a Virtual Machine + 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_objectgraph(name, namespace, body, callback=callback_function) + >>> 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) - :param V1ObjectGraphOptions body: (required) - :return: V1ObjectGraphNode + :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_objectgraph_with_http_info(name, namespace, body, **kwargs) + return self.v1alpha3vm_expand_spec_with_http_info(name, namespace, **kwargs) else: - (data) = self.v1alpha3vm_objectgraph_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1alpha3vm_expand_spec_with_http_info(name, namespace, **kwargs) return data - def v1alpha3vm_objectgraph_with_http_info(self, name, namespace, body, **kwargs): + def v1alpha3vm_expand_spec_with_http_info(self, name, namespace, **kwargs): """ - Get graph of objects related to a Virtual Machine + 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_objectgraph_with_http_info(name, namespace, body, callback=callback_function) + >>> 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) - :param V1ObjectGraphOptions body: (required) - :return: V1ObjectGraphNode + :return: str If the method is called asynchronously, returns the request thread. """ - all_params = ['name', 'namespace', 'body'] + all_params = ['name', 'namespace'] all_params.append('callback') all_params.append('_return_http_data_only') all_params.append('_preload_content') @@ -24509,19 +26128,128 @@ def v1alpha3vm_objectgraph_with_http_info(self, name, namespace, body, **kwargs) if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1alpha3vm_objectgraph" % key + " 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_objectgraph`") + 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_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`") + 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 = {} @@ -25023,6 +26751,120 @@ def v1alpha3vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1alpha3vmi_evacuatecancel(self, name, namespace, body, **kwargs): + """ + Cancel evacuation Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_evacuatecancel(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1EvacuateCancelOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1alpha3vmi_evacuatecancel_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1alpha3vmi_evacuatecancel_with_http_info(name, namespace, body, **kwargs) + return data + + def v1alpha3vmi_evacuatecancel_with_http_info(self, name, namespace, body, **kwargs): + """ + Cancel evacuation Virtual Machine Instance + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1alpha3vmi_evacuatecancel_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1EvacuateCancelOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1alpha3vmi_evacuatecancel" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1alpha3vmi_evacuatecancel`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1alpha3vmi_evacuatecancel`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1alpha3vmi_evacuatecancel`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/evacuate/cancel', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1alpha3vmi_objectgraph(self, name, namespace, body, **kwargs): """ Get graph of objects related to a Virtual Machine Instance @@ -26061,6 +27903,120 @@ def v1vm_addvolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def v1vm_evacuatecancel(self, name, namespace, body, **kwargs): + """ + Cancel evacuation Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vm_evacuatecancel(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1EvacuateCancelOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.v1vm_evacuatecancel_with_http_info(name, namespace, body, **kwargs) + else: + (data) = self.v1vm_evacuatecancel_with_http_info(name, namespace, body, **kwargs) + return data + + def v1vm_evacuatecancel_with_http_info(self, name, namespace, body, **kwargs): + """ + Cancel evacuation Virtual Machine + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.v1vm_evacuatecancel_with_http_info(name, namespace, body, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str name: Name of the resource (required) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param V1EvacuateCancelOptions body: (required) + :return: str + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['name', 'namespace', 'body'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method v1vm_evacuatecancel" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'name' is set + if ('name' not in params) or (params['name'] is None): + raise ValueError("Missing the required parameter `name` when calling `v1vm_evacuatecancel`") + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `v1vm_evacuatecancel`") + # verify the required parameter 'body' is set + if ('body' not in params) or (params['body'] is None): + raise ValueError("Missing the required parameter `body` when calling `v1vm_evacuatecancel`") + + + collection_formats = {} + + path_params = {} + if 'name' in params: + path_params['name'] = params['name'] + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + if 'body' in params: + body_params = params['body'] + # HTTP header `Content-Type` + header_params['Content-Type'] = self.api_client.\ + select_header_content_type(['*/*']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/evacuate/cancel', 'PUT', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='str', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def v1vm_expand_spec(self, name, namespace, **kwargs): """ Get VirtualMachine object with expanded instancetype and preference. @@ -26584,7 +28540,121 @@ def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): raise ValueError("Missing the required parameter `namespace` when calling `v1vm_removevolume`") # verify the required parameter 'body' is set if ('body' not in params) or (params['body'] is None): - raise ValueError("Missing the required parameter `body` when calling `v1vm_removevolume`") + raise ValueError("Missing the required parameter `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 = {} @@ -26612,7 +28682,7 @@ def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removevolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume', 'PUT', path_params, query_params, header_params, @@ -26627,49 +28697,49 @@ def v1vm_removevolume_with_http_info(self, name, namespace, body, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) - def v1vmi_addvolume(self, name, namespace, body, **kwargs): + def v1vmi_evacuatecancel(self, name, namespace, body, **kwargs): """ - Add a volume and disk to a running Virtual Machine Instance + 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_addvolume(name, namespace, body, callback=callback_function) + >>> 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 V1AddVolumeOptions body: (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_addvolume_with_http_info(name, namespace, body, **kwargs) + return self.v1vmi_evacuatecancel_with_http_info(name, namespace, body, **kwargs) else: - (data) = self.v1vmi_addvolume_with_http_info(name, namespace, body, **kwargs) + (data) = self.v1vmi_evacuatecancel_with_http_info(name, namespace, body, **kwargs) return data - def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): + def v1vmi_evacuatecancel_with_http_info(self, name, namespace, body, **kwargs): """ - Add a volume and disk to a running Virtual Machine Instance + 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_addvolume_with_http_info(name, namespace, body, callback=callback_function) + >>> 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 V1AddVolumeOptions body: (required) + :param V1EvacuateCancelOptions body: (required) :return: str If the method is called asynchronously, returns the request thread. @@ -26686,19 +28756,19 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): if key not in all_params: raise TypeError( "Got an unexpected keyword argument '%s'" - " to method v1vmi_addvolume" % key + " to method v1vmi_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_addvolume`") + 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_addvolume`") + 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_addvolume`") + raise ValueError("Missing the required parameter `body` when calling `v1vmi_evacuatecancel`") collection_formats = {} @@ -26726,7 +28796,7 @@ def v1vmi_addvolume_with_http_info(self, name, namespace, body, **kwargs): # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/addvolume', 'PUT', + return self.api_client.call_api('/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/evacuate/cancel', 'PUT', path_params, query_params, header_params, @@ -27714,6 +29784,138 @@ def watch_namespaced_virtual_machine_with_http_info(self, namespace, **kwargs): _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_namespaced_virtual_machine_backup(self, namespace, **kwargs): + """ + Watch a VirtualMachineBackup object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_backup(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_namespaced_virtual_machine_backup_with_http_info(namespace, **kwargs) + else: + (data) = self.watch_namespaced_virtual_machine_backup_with_http_info(namespace, **kwargs) + return data + + def watch_namespaced_virtual_machine_backup_with_http_info(self, namespace, **kwargs): + """ + Watch a VirtualMachineBackup object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_namespaced_virtual_machine_backup_with_http_info(namespace, callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str namespace: Object name and auth scope, such as for teams and projects (required) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['namespace', '_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_namespaced_virtual_machine_backup" % key + ) + params[key] = val + del params['kwargs'] + # verify the required parameter 'namespace' is set + if ('namespace' not in params) or (params['namespace'] is None): + raise ValueError("Missing the required parameter `namespace` when calling `watch_namespaced_virtual_machine_backup`") + + + collection_formats = {} + + path_params = {} + if 'namespace' in params: + path_params['namespace'] = params['namespace'] + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinebackups', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_namespaced_virtual_machine_export(self, namespace, **kwargs): """ Watch a VirtualMachineExport object. @@ -28623,7 +30825,7 @@ def watch_namespaced_virtual_machine_pool_with_http_info(self, namespace, **kwar # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/watch/namespaces/{namespace}/virtualmachinepools', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinepools', 'GET', path_params, query_params, header_params, @@ -29166,6 +31368,131 @@ def watch_namespaced_virtual_machine_snapshot_content_with_http_info(self, names _request_timeout=params.get('_request_timeout'), collection_formats=collection_formats) + def watch_virtual_machine_backup_list_for_all_namespaces(self, **kwargs): + """ + Watch a VirtualMachineBackupList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_backup_list_for_all_namespaces(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + kwargs['_return_http_data_only'] = True + if kwargs.get('callback'): + return self.watch_virtual_machine_backup_list_for_all_namespaces_with_http_info(**kwargs) + else: + (data) = self.watch_virtual_machine_backup_list_for_all_namespaces_with_http_info(**kwargs) + return data + + def watch_virtual_machine_backup_list_for_all_namespaces_with_http_info(self, **kwargs): + """ + Watch a VirtualMachineBackupList object. + This method makes a synchronous HTTP request by default. To make an + asynchronous HTTP request, please define a `callback` function + to be invoked when receiving the response. + >>> def callback_function(response): + >>> pprint(response) + >>> + >>> thread = api.watch_virtual_machine_backup_list_for_all_namespaces_with_http_info(callback=callback_function) + + :param callback function: The callback function + for asynchronous request. (optional) + :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server the server will respond with a 410 ResourceExpired error indicating the client must restart their list without the continue field. This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications. + :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything. + :param bool include_uninitialized: If true, partially initialized resources are included in the response. + :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything + :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned. + :param str resource_version: When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. + :param int timeout_seconds: TimeoutSeconds for the list/watch call. + :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. + :return: K8sIoApimachineryPkgApisMetaV1WatchEvent + If the method is called asynchronously, + returns the request thread. + """ + + all_params = ['_continue', 'field_selector', 'include_uninitialized', 'label_selector', 'limit', 'resource_version', 'timeout_seconds', 'watch'] + all_params.append('callback') + all_params.append('_return_http_data_only') + all_params.append('_preload_content') + all_params.append('_request_timeout') + + params = locals() + for key, val in iteritems(params['kwargs']): + if key not in all_params: + raise TypeError( + "Got an unexpected keyword argument '%s'" + " to method watch_virtual_machine_backup_list_for_all_namespaces" % key + ) + params[key] = val + del params['kwargs'] + + + collection_formats = {} + + path_params = {} + + query_params = [] + if '_continue' in params: + query_params.append(('continue', params['_continue'])) + if 'field_selector' in params: + query_params.append(('fieldSelector', params['field_selector'])) + if 'include_uninitialized' in params: + query_params.append(('includeUninitialized', params['include_uninitialized'])) + if 'label_selector' in params: + query_params.append(('labelSelector', params['label_selector'])) + if 'limit' in params: + query_params.append(('limit', params['limit'])) + if 'resource_version' in params: + query_params.append(('resourceVersion', params['resource_version'])) + if 'timeout_seconds' in params: + query_params.append(('timeoutSeconds', params['timeout_seconds'])) + if 'watch' in params: + query_params.append(('watch', params['watch'])) + + header_params = {} + + form_params = [] + local_var_files = {} + + body_params = None + # HTTP header `Accept` + header_params['Accept'] = self.api_client.\ + select_header_accept(['application/json']) + + # Authentication setting + auth_settings = [] + + return self.api_client.call_api('/apis/backup.kubevirt.io/v1alpha1/watch/virtualmachinebackups', 'GET', + path_params, + query_params, + header_params, + body=body_params, + post_params=form_params, + files=local_var_files, + response_type='K8sIoApimachineryPkgApisMetaV1WatchEvent', + auth_settings=auth_settings, + callback=params.get('callback'), + _return_http_data_only=params.get('_return_http_data_only'), + _preload_content=params.get('_preload_content', True), + _request_timeout=params.get('_request_timeout'), + collection_formats=collection_formats) + def watch_virtual_machine_clone_list_for_all_namespaces(self, **kwargs): """ Watch a VirtualMachineCloneList object. @@ -30526,7 +32853,7 @@ def watch_virtual_machine_pool_list_for_all_namespaces_with_http_info(self, **kw # Authentication setting auth_settings = [] - return self.api_client.call_api('/apis/pool.kubevirt.io/v1alpha1/watch/virtualmachinepools', 'GET', + return self.api_client.call_api('/apis/pool.kubevirt.io/v1beta1/watch/virtualmachinepools', 'GET', path_params, query_params, header_params, diff --git a/kubevirt/configuration.py b/kubevirt/configuration.py index 56fea2fe..aefb0cb6 100644 --- a/kubevirt/configuration.py +++ b/kubevirt/configuration.py @@ -227,5 +227,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: 1.0.0\n"\ - "SDK Package Version: v1.6.0-beta.0-869-g12ebd1cfe9".\ + "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 18797134..ef6ee858 100644 --- a/kubevirt/models/__init__.py +++ b/kubevirt/models/__init__.py @@ -81,6 +81,8 @@ from .v1_cpu_feature import V1CPUFeature from .v1_cpu_topology import V1CPUTopology from .v1_cert_config import V1CertConfig +from .v1_changed_block_tracking_selectors import V1ChangedBlockTrackingSelectors +from .v1_changed_block_tracking_status import V1ChangedBlockTrackingStatus from .v1_chassis import V1Chassis from .v1_client_passthrough_devices import V1ClientPassthroughDevices from .v1_clock import V1Clock @@ -90,10 +92,12 @@ from .v1_cloud_init_no_cloud_source import V1CloudInitNoCloudSource from .v1_common_instancetypes_deployment import V1CommonInstancetypesDeployment from .v1_component_config import V1ComponentConfig +from .v1_confidential_compute_configuration import V1ConfidentialComputeConfiguration from .v1_config_drive_ssh_public_key_access_credential_propagation import V1ConfigDriveSSHPublicKeyAccessCredentialPropagation from .v1_config_map_volume_source import V1ConfigMapVolumeSource from .v1_container_disk_info import V1ContainerDiskInfo 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 @@ -108,10 +112,6 @@ from .v1_deprecated_interface_passt import V1DeprecatedInterfacePasst from .v1_deprecated_interface_slirp import V1DeprecatedInterfaceSlirp from .v1_developer_configuration import V1DeveloperConfiguration -from .v1_device_attribute import V1DeviceAttribute -from .v1_device_resource_claim_status import V1DeviceResourceClaimStatus -from .v1_device_status import V1DeviceStatus -from .v1_device_status_info import V1DeviceStatusInfo from .v1_devices import V1Devices from .v1_diag288_watchdog import V1Diag288Watchdog from .v1_disable_free_page_reporting import V1DisableFreePageReporting @@ -128,6 +128,7 @@ from .v1_efi import V1EFI from .v1_empty_disk_source import V1EmptyDiskSource from .v1_ephemeral_volume_source import V1EphemeralVolumeSource +from .v1_evacuate_cancel_options import V1EvacuateCancelOptions from .v1_feature_apic import V1FeatureAPIC from .v1_feature_hyperv import V1FeatureHyperv from .v1_feature_kvm import V1FeatureKVM @@ -152,6 +153,7 @@ from .v1_hugepages import V1Hugepages from .v1_hyper_v_passthrough import V1HyperVPassthrough from .v1_hyperv_timer import V1HypervTimer +from .v1_hypervisor_configuration import V1HypervisorConfiguration from .v1_i6300_esb_watchdog import V1I6300ESBWatchdog from .v1_initrd_info import V1InitrdInfo from .v1_input import V1Input @@ -163,6 +165,7 @@ from .v1_interface_binding_plugin import V1InterfaceBindingPlugin from .v1_interface_bridge import V1InterfaceBridge from .v1_interface_masquerade import V1InterfaceMasquerade +from .v1_interface_passt_binding import V1InterfacePasstBinding from .v1_interface_sriov import V1InterfaceSRIOV from .v1_ksm_configuration import V1KSMConfiguration from .v1_kvm_timer import V1KVMTimer @@ -221,6 +224,7 @@ from .v1_realtime import V1Realtime from .v1_reloadable_component_configuration import V1ReloadableComponentConfiguration from .v1_remove_volume_options import V1RemoveVolumeOptions +from .v1_reserved_overhead import V1ReservedOverhead from .v1_resource_requirements import V1ResourceRequirements from .v1_resource_requirements_without_claims import V1ResourceRequirementsWithoutClaims from .v1_restart_options import V1RestartOptions @@ -230,6 +234,7 @@ from .v1_sev_measurement_info import V1SEVMeasurementInfo from .v1_sev_platform_info import V1SEVPlatformInfo from .v1_sev_policy import V1SEVPolicy +from .v1_sevsnp import V1SEVSNP from .v1_sev_secret_options import V1SEVSecretOptions from .v1_sev_session_options import V1SEVSessionOptions from .v1_sm_bios_configuration import V1SMBiosConfiguration @@ -246,6 +251,10 @@ 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 @@ -257,12 +266,15 @@ 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 @@ -270,7 +282,6 @@ from .v1_virtual_machine_instance_file_system_list import V1VirtualMachineInstanceFileSystemList from .v1_virtual_machine_instance_guest_agent_info import V1VirtualMachineInstanceGuestAgentInfo from .v1_virtual_machine_instance_guest_os_info import V1VirtualMachineInstanceGuestOSInfo -from .v1_virtual_machine_instance_guest_os_load import V1VirtualMachineInstanceGuestOSLoad from .v1_virtual_machine_instance_guest_os_user import V1VirtualMachineInstanceGuestOSUser from .v1_virtual_machine_instance_guest_os_user_list import V1VirtualMachineInstanceGuestOSUserList from .v1_virtual_machine_instance_list import V1VirtualMachineInstanceList @@ -313,21 +324,19 @@ from .v1_volume_status import V1VolumeStatus from .v1_volume_update_state import V1VolumeUpdateState from .v1_watchdog import V1Watchdog +from .v1alpha1_backup_checkpoint import V1alpha1BackupCheckpoint +from .v1alpha1_backup_options import V1alpha1BackupOptions +from .v1alpha1_backup_volume_info import V1alpha1BackupVolumeInfo +from .v1alpha1_condition import V1alpha1Condition from .v1alpha1_migration_policy import V1alpha1MigrationPolicy from .v1alpha1_migration_policy_list import V1alpha1MigrationPolicyList from .v1alpha1_migration_policy_spec import V1alpha1MigrationPolicySpec from .v1alpha1_migration_policy_status import V1alpha1MigrationPolicyStatus from .v1alpha1_selectors import V1alpha1Selectors -from .v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool -from .v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition -from .v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList -from .v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration -from .v1alpha1_virtual_machine_pool_proactive_scale_in_strategy import V1alpha1VirtualMachinePoolProactiveScaleInStrategy -from .v1alpha1_virtual_machine_pool_scale_in_strategy import V1alpha1VirtualMachinePoolScaleInStrategy -from .v1alpha1_virtual_machine_pool_selection_policy import V1alpha1VirtualMachinePoolSelectionPolicy -from .v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec -from .v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus -from .v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec +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 @@ -355,8 +364,10 @@ 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 @@ -371,6 +382,8 @@ from .v1beta1_virtual_machine_cluster_preference import V1beta1VirtualMachineClusterPreference from .v1beta1_virtual_machine_cluster_preference_list import V1beta1VirtualMachineClusterPreferenceList from .v1beta1_virtual_machine_export import V1beta1VirtualMachineExport +from .v1beta1_virtual_machine_export_backup import V1beta1VirtualMachineExportBackup +from .v1beta1_virtual_machine_export_backup_endpoint import V1beta1VirtualMachineExportBackupEndpoint from .v1beta1_virtual_machine_export_link import V1beta1VirtualMachineExportLink from .v1beta1_virtual_machine_export_links import V1beta1VirtualMachineExportLinks from .v1beta1_virtual_machine_export_list import V1beta1VirtualMachineExportList @@ -382,6 +395,22 @@ from .v1beta1_virtual_machine_instancetype import V1beta1VirtualMachineInstancetype from .v1beta1_virtual_machine_instancetype_list import V1beta1VirtualMachineInstancetypeList from .v1beta1_virtual_machine_instancetype_spec import V1beta1VirtualMachineInstancetypeSpec +from .v1beta1_virtual_machine_opportunistic_update_strategy import V1beta1VirtualMachineOpportunisticUpdateStrategy +from .v1beta1_virtual_machine_pool import V1beta1VirtualMachinePool +from .v1beta1_virtual_machine_pool_autohealing_strategy import V1beta1VirtualMachinePoolAutohealingStrategy +from .v1beta1_virtual_machine_pool_condition import V1beta1VirtualMachinePoolCondition +from .v1beta1_virtual_machine_pool_list import V1beta1VirtualMachinePoolList +from .v1beta1_virtual_machine_pool_name_generation import V1beta1VirtualMachinePoolNameGeneration +from .v1beta1_virtual_machine_pool_opportunistic_scale_in_strategy import V1beta1VirtualMachinePoolOpportunisticScaleInStrategy +from .v1beta1_virtual_machine_pool_proactive_scale_in_strategy import V1beta1VirtualMachinePoolProactiveScaleInStrategy +from .v1beta1_virtual_machine_pool_proactive_update_strategy import V1beta1VirtualMachinePoolProactiveUpdateStrategy +from .v1beta1_virtual_machine_pool_scale_in_strategy import V1beta1VirtualMachinePoolScaleInStrategy +from .v1beta1_virtual_machine_pool_selection_policy import V1beta1VirtualMachinePoolSelectionPolicy +from .v1beta1_virtual_machine_pool_selectors import V1beta1VirtualMachinePoolSelectors +from .v1beta1_virtual_machine_pool_spec import V1beta1VirtualMachinePoolSpec +from .v1beta1_virtual_machine_pool_status import V1beta1VirtualMachinePoolStatus +from .v1beta1_virtual_machine_pool_unmanaged_strategy import V1beta1VirtualMachinePoolUnmanagedStrategy +from .v1beta1_virtual_machine_pool_update_strategy import V1beta1VirtualMachinePoolUpdateStrategy from .v1beta1_virtual_machine_preference import V1beta1VirtualMachinePreference from .v1beta1_virtual_machine_preference_list import V1beta1VirtualMachinePreferenceList from .v1beta1_virtual_machine_preference_spec import V1beta1VirtualMachinePreferenceSpec @@ -397,6 +426,7 @@ from .v1beta1_virtual_machine_snapshot_list import V1beta1VirtualMachineSnapshotList from .v1beta1_virtual_machine_snapshot_spec import V1beta1VirtualMachineSnapshotSpec from .v1beta1_virtual_machine_snapshot_status import V1beta1VirtualMachineSnapshotStatus +from .v1beta1_virtual_machine_template_spec import V1beta1VirtualMachineTemplateSpec from .v1beta1_volume_backup import V1beta1VolumeBackup from .v1beta1_volume_preferences import V1beta1VolumePreferences from .v1beta1_volume_restore import V1beta1VolumeRestore diff --git a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py index 64719f17..9653d39c 100644 --- a/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py +++ b/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.py @@ -237,7 +237,7 @@ def storage_class_name(self, storage_class_name): def volume_attributes_class_name(self): """ Gets the volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). + volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ :return: The volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :rtype: str @@ -248,7 +248,7 @@ def volume_attributes_class_name(self): def volume_attributes_class_name(self, volume_attributes_class_name): """ Sets the volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. - volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). + volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ :param volume_attributes_class_name: The volume_attributes_class_name of this K8sIoApiCoreV1PersistentVolumeClaimSpec. :type: str diff --git a/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py index 9b8de4d9..b9488e41 100644 --- a/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py +++ b/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.py @@ -99,7 +99,7 @@ def label_selector(self, label_selector): def match_label_keys(self): """ Gets the match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. - MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. :return: The match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. :rtype: list[str] @@ -110,7 +110,7 @@ def match_label_keys(self): def match_label_keys(self, match_label_keys): """ Sets the match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. - MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + MatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key in (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both matchLabelKeys and labelSelector. Also, matchLabelKeys cannot be set when labelSelector isn't set. :param match_label_keys: The match_label_keys of this K8sIoApiCoreV1PodAffinityTerm. :type: list[str] @@ -122,7 +122,7 @@ def match_label_keys(self, match_label_keys): def mismatch_label_keys(self): """ Gets the mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. - MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. :return: The mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. :rtype: list[str] @@ -133,7 +133,7 @@ def mismatch_label_keys(self): def mismatch_label_keys(self, mismatch_label_keys): """ Sets the mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. - MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. This is a beta field and requires enabling MatchLabelKeysInPodAffinity feature gate (enabled by default). + MismatchLabelKeys is a set of pod label keys to select which pods will be taken into consideration. The keys are used to lookup values from the incoming pod labels, those key-value labels are merged with `labelSelector` as `key notin (value)` to select the group of existing pods which pods will be taken into consideration for the incoming pod's pod (anti) affinity. Keys that don't exist in the incoming pod labels will be ignored. The default value is empty. The same key is forbidden to exist in both mismatchLabelKeys and labelSelector. Also, mismatchLabelKeys cannot be set when labelSelector isn't set. :param mismatch_label_keys: The mismatch_label_keys of this K8sIoApiCoreV1PodAffinityTerm. :type: list[str] diff --git a/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.py b/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.py index 69bdeee2..9f5b05a1 100644 --- a/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.py +++ b/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.py @@ -57,7 +57,7 @@ def __init__(self, preferred_during_scheduling_ignored_during_execution=None, re def preferred_during_scheduling_ignored_during_execution(self): """ Gets the preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. :return: The preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. :rtype: list[K8sIoApiCoreV1WeightedPodAffinityTerm] @@ -68,7 +68,7 @@ def preferred_during_scheduling_ignored_during_execution(self): def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution): """ Sets the preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. - The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. + The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. :param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this K8sIoApiCoreV1PodAntiAffinity. :type: list[K8sIoApiCoreV1WeightedPodAffinityTerm] diff --git a/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py b/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py index 6d8245ff..a4d723f9 100644 --- a/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py +++ b/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.py @@ -178,7 +178,7 @@ def min_domains(self, min_domains): def node_affinity_policy(self): """ Gets the node_affinity_policy of this K8sIoApiCoreV1TopologySpreadConstraint. - NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. + NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. :return: The node_affinity_policy of this K8sIoApiCoreV1TopologySpreadConstraint. :rtype: str @@ -189,7 +189,7 @@ def node_affinity_policy(self): def node_affinity_policy(self, node_affinity_policy): """ Sets the node_affinity_policy of this K8sIoApiCoreV1TopologySpreadConstraint. - NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. + NodeAffinityPolicy indicates how we will treat Pod's nodeAffinity/nodeSelector when calculating pod topology spread skew. Options are: - Honor: only nodes matching nodeAffinity/nodeSelector are included in the calculations. - Ignore: nodeAffinity/nodeSelector are ignored. All nodes are included in the calculations. If this value is nil, the behavior is equivalent to the Honor policy. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. :param node_affinity_policy: The node_affinity_policy of this K8sIoApiCoreV1TopologySpreadConstraint. :type: str @@ -207,7 +207,7 @@ def node_affinity_policy(self, node_affinity_policy): def node_taints_policy(self): """ Gets the node_taints_policy of this K8sIoApiCoreV1TopologySpreadConstraint. - NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. + NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. :return: The node_taints_policy of this K8sIoApiCoreV1TopologySpreadConstraint. :rtype: str @@ -218,7 +218,7 @@ def node_taints_policy(self): def node_taints_policy(self, node_taints_policy): """ Sets the node_taints_policy of this K8sIoApiCoreV1TopologySpreadConstraint. - NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. This is a beta-level feature default enabled by the NodeInclusionPolicyInPodTopologySpread feature flag. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. + NodeTaintsPolicy indicates how we will treat node taints when calculating pod topology spread skew. Options are: - Honor: nodes without taints, along with tainted nodes for which the incoming pod has a toleration, are included. - Ignore: node taints are ignored. All nodes are included. If this value is nil, the behavior is equivalent to the Ignore policy. Possible enum values: - `\"Honor\"` means use this scheduling directive when calculating pod topology spread skew. - `\"Ignore\"` means ignore this scheduling directive when calculating pod topology spread skew. :param node_taints_policy: The node_taints_policy of this K8sIoApiCoreV1TopologySpreadConstraint. :type: str diff --git a/kubevirt/models/v1_arch_configuration.py b/kubevirt/models/v1_arch_configuration.py index 5e74cf62..4d2274af 100644 --- a/kubevirt/models/v1_arch_configuration.py +++ b/kubevirt/models/v1_arch_configuration.py @@ -135,6 +135,7 @@ def default_architecture(self, default_architecture): def ppc64le(self): """ Gets the ppc64le of this V1ArchConfiguration. + Deprecated: ppc64le architecture is no longer supported. :return: The ppc64le of this V1ArchConfiguration. :rtype: V1ArchSpecificConfiguration @@ -145,6 +146,7 @@ def ppc64le(self): def ppc64le(self, ppc64le): """ Sets the ppc64le of this V1ArchConfiguration. + Deprecated: ppc64le architecture is no longer supported. :param ppc64le: The ppc64le of this V1ArchConfiguration. :type: V1ArchSpecificConfiguration diff --git a/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/v1alpha1_virtual_machine_pool_scale_in_strategy.py b/kubevirt/models/v1_confidential_compute_configuration.py similarity index 64% rename from kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py rename to kubevirt/models/v1_confidential_compute_configuration.py index 64dfe67f..6ee353dd 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_scale_in_strategy.py +++ b/kubevirt/models/v1_confidential_compute_configuration.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolScaleInStrategy(object): +class V1ConfidentialComputeConfiguration(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,45 +31,45 @@ class V1alpha1VirtualMachinePoolScaleInStrategy(object): and the value is json key in definition. """ swagger_types = { - 'proactive': 'V1alpha1VirtualMachinePoolProactiveScaleInStrategy' + 'tdx': 'V1TDXConfiguration' } attribute_map = { - 'proactive': 'proactive' + 'tdx': 'tdx' } - def __init__(self, proactive=None): + def __init__(self, tdx=None): """ - V1alpha1VirtualMachinePoolScaleInStrategy - a model defined in Swagger + V1ConfidentialComputeConfiguration - a model defined in Swagger """ - self._proactive = None + self._tdx = None - if proactive is not None: - self.proactive = proactive + if tdx is not None: + self.tdx = tdx @property - def proactive(self): + def tdx(self): """ - Gets the proactive of this V1alpha1VirtualMachinePoolScaleInStrategy. - Proactive scale-in by forcing VMs to shutdown during scale-in (Default) + Gets the tdx of this V1ConfidentialComputeConfiguration. + TDX configuration for attestation on the Intel TDX Platform - :return: The proactive of this V1alpha1VirtualMachinePoolScaleInStrategy. - :rtype: V1alpha1VirtualMachinePoolProactiveScaleInStrategy + :return: The tdx of this V1ConfidentialComputeConfiguration. + :rtype: V1TDXConfiguration """ - return self._proactive + return self._tdx - @proactive.setter - def proactive(self, proactive): + @tdx.setter + def tdx(self, tdx): """ - Sets the proactive of this V1alpha1VirtualMachinePoolScaleInStrategy. - Proactive scale-in by forcing VMs to shutdown during scale-in (Default) + Sets the tdx of this V1ConfidentialComputeConfiguration. + TDX configuration for attestation on the Intel TDX Platform - :param proactive: The proactive of this V1alpha1VirtualMachinePoolScaleInStrategy. - :type: V1alpha1VirtualMachinePoolProactiveScaleInStrategy + :param tdx: The tdx of this V1ConfidentialComputeConfiguration. + :type: V1TDXConfiguration """ - self._proactive = proactive + self._tdx = tdx def to_dict(self): """ @@ -113,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolScaleInStrategy): + if not isinstance(other, V1ConfidentialComputeConfiguration): return False return self.__dict__ == other.__dict__ 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_custom_block_size.py b/kubevirt/models/v1_custom_block_size.py index b9729754..e1fb6f58 100644 --- a/kubevirt/models/v1_custom_block_size.py +++ b/kubevirt/models/v1_custom_block_size.py @@ -31,25 +31,53 @@ class V1CustomBlockSize(object): and the value is json key in definition. """ swagger_types = { + 'discard_granularity': 'int', 'logical': 'int', 'physical': 'int' } attribute_map = { + 'discard_granularity': 'discardGranularity', 'logical': 'logical', 'physical': 'physical' } - def __init__(self, logical=0, physical=0): + def __init__(self, discard_granularity=None, logical=None, physical=None): """ V1CustomBlockSize - a model defined in Swagger """ + self._discard_granularity = None self._logical = None self._physical = None - self.logical = logical - self.physical = physical + if discard_granularity is not None: + self.discard_granularity = discard_granularity + if logical is not None: + self.logical = logical + if physical is not None: + self.physical = physical + + @property + def discard_granularity(self): + """ + Gets the discard_granularity of this V1CustomBlockSize. + + :return: The discard_granularity of this V1CustomBlockSize. + :rtype: int + """ + return self._discard_granularity + + @discard_granularity.setter + def discard_granularity(self, discard_granularity): + """ + Sets the discard_granularity of this V1CustomBlockSize. + + :param discard_granularity: The discard_granularity of this V1CustomBlockSize. + :type: int + """ + + self._discard_granularity = discard_granularity @property def logical(self): @@ -69,8 +97,6 @@ def logical(self, logical): :param logical: The logical of this V1CustomBlockSize. :type: int """ - if logical is None: - raise ValueError("Invalid value for `logical`, must not be `None`") self._logical = logical @@ -92,8 +118,6 @@ def physical(self, physical): :param physical: The physical of this V1CustomBlockSize. :type: int """ - if physical is None: - raise ValueError("Invalid value for `physical`, must not be `None`") self._physical = physical diff --git a/kubevirt/models/v1_developer_configuration.py b/kubevirt/models/v1_developer_configuration.py index 701dc2e1..838d23eb 100644 --- a/kubevirt/models/v1_developer_configuration.py +++ b/kubevirt/models/v1_developer_configuration.py @@ -33,6 +33,7 @@ class V1DeveloperConfiguration(object): swagger_types = { 'cluster_profiler': 'bool', 'cpu_allocation_ratio': 'int', + 'disabled_feature_gates': 'list[str]', 'disk_verification': 'V1DiskVerification', 'feature_gates': 'list[str]', 'log_verbosity': 'V1LogVerbosity', @@ -47,6 +48,7 @@ class V1DeveloperConfiguration(object): attribute_map = { 'cluster_profiler': 'clusterProfiler', 'cpu_allocation_ratio': 'cpuAllocationRatio', + 'disabled_feature_gates': 'disabledFeatureGates', 'disk_verification': 'diskVerification', 'feature_gates': 'featureGates', 'log_verbosity': 'logVerbosity', @@ -58,13 +60,14 @@ class V1DeveloperConfiguration(object): 'use_emulation': 'useEmulation' } - def __init__(self, cluster_profiler=None, cpu_allocation_ratio=None, disk_verification=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_cluster_tsc_frequency=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): + def __init__(self, cluster_profiler=None, cpu_allocation_ratio=None, disabled_feature_gates=None, disk_verification=None, feature_gates=None, log_verbosity=None, memory_overcommit=None, minimum_cluster_tsc_frequency=None, minimum_reserve_pvc_bytes=None, node_selectors=None, pvc_tolerate_less_space_up_to_percent=None, use_emulation=None): """ V1DeveloperConfiguration - a model defined in Swagger """ self._cluster_profiler = None self._cpu_allocation_ratio = None + self._disabled_feature_gates = None self._disk_verification = None self._feature_gates = None self._log_verbosity = None @@ -79,6 +82,8 @@ def __init__(self, cluster_profiler=None, cpu_allocation_ratio=None, disk_verifi self.cluster_profiler = cluster_profiler if cpu_allocation_ratio is not None: self.cpu_allocation_ratio = cpu_allocation_ratio + if disabled_feature_gates is not None: + self.disabled_feature_gates = disabled_feature_gates if disk_verification is not None: self.disk_verification = disk_verification if feature_gates is not None: @@ -144,6 +149,29 @@ def cpu_allocation_ratio(self, cpu_allocation_ratio): self._cpu_allocation_ratio = cpu_allocation_ratio + @property + def disabled_feature_gates(self): + """ + Gets the disabled_feature_gates of this V1DeveloperConfiguration. + DisabledFeatureGates specifies a list of experimental feature gates to disable. A feature gate must not appear in both FeatureGates and DisabledFeatureGates. + + :return: The disabled_feature_gates of this V1DeveloperConfiguration. + :rtype: list[str] + """ + return self._disabled_feature_gates + + @disabled_feature_gates.setter + def disabled_feature_gates(self, disabled_feature_gates): + """ + Sets the disabled_feature_gates of this V1DeveloperConfiguration. + DisabledFeatureGates specifies a list of experimental feature gates to disable. A feature gate must not appear in both FeatureGates and DisabledFeatureGates. + + :param disabled_feature_gates: The disabled_feature_gates of this V1DeveloperConfiguration. + :type: list[str] + """ + + self._disabled_feature_gates = disabled_feature_gates + @property def disk_verification(self): """ @@ -169,7 +197,7 @@ def disk_verification(self, disk_verification): def feature_gates(self): """ Gets the feature_gates of this V1DeveloperConfiguration. - FeatureGates is the list of experimental features to enable. Defaults to none + FeatureGates specifies a list of experimental feature gates to enable. Defaults to none. A feature gate must not appear in both FeatureGates and DisabledFeatureGates. :return: The feature_gates of this V1DeveloperConfiguration. :rtype: list[str] @@ -180,7 +208,7 @@ def feature_gates(self): def feature_gates(self, feature_gates): """ Sets the feature_gates of this V1DeveloperConfiguration. - FeatureGates is the list of experimental features to enable. Defaults to none + FeatureGates specifies a list of experimental feature gates to enable. Defaults to none. A feature gate must not appear in both FeatureGates and DisabledFeatureGates. :param feature_gates: The feature_gates of this V1DeveloperConfiguration. :type: list[str] diff --git a/kubevirt/models/v1_device_resource_claim_status.py b/kubevirt/models/v1_device_resource_claim_status.py deleted file mode 100644 index 3dee52a7..00000000 --- a/kubevirt/models/v1_device_resource_claim_status.py +++ /dev/null @@ -1,181 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1DeviceResourceClaimStatus(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'attributes': 'V1DeviceAttribute', - 'name': 'str', - 'resource_claim_name': 'str' - } - - attribute_map = { - 'attributes': 'attributes', - 'name': 'name', - 'resource_claim_name': 'resourceClaimName' - } - - def __init__(self, attributes=None, name=None, resource_claim_name=None): - """ - V1DeviceResourceClaimStatus - a model defined in Swagger - """ - - self._attributes = None - self._name = None - self._resource_claim_name = None - - if attributes is not None: - self.attributes = attributes - if name is not None: - self.name = name - if resource_claim_name is not None: - self.resource_claim_name = resource_claim_name - - @property - def attributes(self): - """ - Gets the attributes of this V1DeviceResourceClaimStatus. - Attributes are properties of the device that could be used by kubevirt and other copmonents to learn more about the device, like pciAddress or mdevUUID - - :return: The attributes of this V1DeviceResourceClaimStatus. - :rtype: V1DeviceAttribute - """ - return self._attributes - - @attributes.setter - def attributes(self, attributes): - """ - Sets the attributes of this V1DeviceResourceClaimStatus. - Attributes are properties of the device that could be used by kubevirt and other copmonents to learn more about the device, like pciAddress or mdevUUID - - :param attributes: The attributes of this V1DeviceResourceClaimStatus. - :type: V1DeviceAttribute - """ - - self._attributes = attributes - - @property - def name(self): - """ - Gets the name of this V1DeviceResourceClaimStatus. - Name is the name of actual device on the host provisioned by the driver as reflected in resourceclaim.status - - :return: The name of this V1DeviceResourceClaimStatus. - :rtype: str - """ - return self._name - - @name.setter - def name(self, name): - """ - Sets the name of this V1DeviceResourceClaimStatus. - Name is the name of actual device on the host provisioned by the driver as reflected in resourceclaim.status - - :param name: The name of this V1DeviceResourceClaimStatus. - :type: str - """ - - self._name = name - - @property - def resource_claim_name(self): - """ - Gets the resource_claim_name of this V1DeviceResourceClaimStatus. - ResourceClaimName is the name of the resource claims object used to provision this resource - - :return: The resource_claim_name of this V1DeviceResourceClaimStatus. - :rtype: str - """ - return self._resource_claim_name - - @resource_claim_name.setter - def resource_claim_name(self, resource_claim_name): - """ - Sets the resource_claim_name of this V1DeviceResourceClaimStatus. - ResourceClaimName is the name of the resource claims object used to provision this resource - - :param resource_claim_name: The resource_claim_name of this V1DeviceResourceClaimStatus. - :type: str - """ - - self._resource_claim_name = resource_claim_name - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1DeviceResourceClaimStatus): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_disk.py b/kubevirt/models/v1_disk.py index b94c4680..e6a0ee2f 100644 --- a/kubevirt/models/v1_disk.py +++ b/kubevirt/models/v1_disk.py @@ -35,6 +35,7 @@ class V1Disk(object): 'boot_order': 'int', 'cache': 'str', 'cdrom': 'V1CDRomTarget', + 'changed_block_tracking': 'bool', 'dedicated_io_thread': 'bool', 'disk': 'V1DiskTarget', 'error_policy': 'str', @@ -51,6 +52,7 @@ class V1Disk(object): 'boot_order': 'bootOrder', 'cache': 'cache', 'cdrom': 'cdrom', + 'changed_block_tracking': 'changedBlockTracking', 'dedicated_io_thread': 'dedicatedIOThread', 'disk': 'disk', 'error_policy': 'errorPolicy', @@ -62,7 +64,7 @@ class V1Disk(object): 'tag': 'tag' } - def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, dedicated_io_thread=None, disk=None, error_policy=None, io=None, lun=None, name='', serial=None, shareable=None, tag=None): + def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, changed_block_tracking=None, dedicated_io_thread=None, disk=None, error_policy=None, io=None, lun=None, name='', serial=None, shareable=None, tag=None): """ V1Disk - a model defined in Swagger """ @@ -71,6 +73,7 @@ def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, ded self._boot_order = None self._cache = None self._cdrom = None + self._changed_block_tracking = None self._dedicated_io_thread = None self._disk = None self._error_policy = None @@ -89,6 +92,8 @@ def __init__(self, block_size=None, boot_order=None, cache=None, cdrom=None, ded self.cache = cache if cdrom is not None: self.cdrom = cdrom + if changed_block_tracking is not None: + self.changed_block_tracking = changed_block_tracking if dedicated_io_thread is not None: self.dedicated_io_thread = dedicated_io_thread if disk is not None: @@ -199,6 +204,29 @@ def cdrom(self, cdrom): self._cdrom = cdrom + @property + def changed_block_tracking(self): + """ + Gets the changed_block_tracking of this V1Disk. + ChangedBlockTracking indicates this disk should have CBT option Defaults to false. + + :return: The changed_block_tracking of this V1Disk. + :rtype: bool + """ + return self._changed_block_tracking + + @changed_block_tracking.setter + def changed_block_tracking(self, changed_block_tracking): + """ + Sets the changed_block_tracking of this V1Disk. + ChangedBlockTracking indicates this disk should have CBT option Defaults to false. + + :param changed_block_tracking: The changed_block_tracking of this V1Disk. + :type: bool + """ + + self._changed_block_tracking = changed_block_tracking + @property def dedicated_io_thread(self): """ diff --git a/kubevirt/models/v1_domain_spec.py b/kubevirt/models/v1_domain_spec.py index 93a26f9b..e2e1523c 100644 --- a/kubevirt/models/v1_domain_spec.py +++ b/kubevirt/models/v1_domain_spec.py @@ -42,6 +42,7 @@ class V1DomainSpec(object): 'launch_security': 'V1LaunchSecurity', 'machine': 'V1Machine', 'memory': 'V1Memory', + 'reboot_policy': 'str', 'resources': 'V1ResourceRequirements' } @@ -57,10 +58,11 @@ class V1DomainSpec(object): 'launch_security': 'launchSecurity', 'machine': 'machine', 'memory': 'memory', + 'reboot_policy': 'rebootPolicy', 'resources': 'resources' } - def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=None, firmware=None, io_threads=None, io_threads_policy=None, launch_security=None, machine=None, memory=None, resources=None): + def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=None, firmware=None, io_threads=None, io_threads_policy=None, launch_security=None, machine=None, memory=None, reboot_policy=None, resources=None): """ V1DomainSpec - a model defined in Swagger """ @@ -76,6 +78,7 @@ def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=No self._launch_security = None self._machine = None self._memory = None + self._reboot_policy = None self._resources = None if chassis is not None: @@ -99,6 +102,8 @@ def __init__(self, chassis=None, clock=None, cpu=None, devices=None, features=No self.machine = machine if memory is not None: self.memory = memory + if reboot_policy is not None: + self.reboot_policy = reboot_policy if resources is not None: self.resources = resources @@ -357,6 +362,29 @@ def memory(self, memory): self._memory = memory + @property + def reboot_policy(self): + """ + Gets the reboot_policy of this V1DomainSpec. + RebootPolicy specifies how the guest should behave on reboot. Reboot (default): The guest is allowed to reboot silently. Terminate: The VMI will be terminated on guest reboot, allowing higher level controllers (such as the VM controller) to recreate the VMI with any updated configuration such as boot order changes. + + :return: The reboot_policy of this V1DomainSpec. + :rtype: str + """ + return self._reboot_policy + + @reboot_policy.setter + def reboot_policy(self, reboot_policy): + """ + Sets the reboot_policy of this V1DomainSpec. + RebootPolicy specifies how the guest should behave on reboot. Reboot (default): The guest is allowed to reboot silently. Terminate: The VMI will be terminated on guest reboot, allowing higher level controllers (such as the VM controller) to recreate the VMI with any updated configuration such as boot order changes. + + :param reboot_policy: The reboot_policy of this V1DomainSpec. + :type: str + """ + + self._reboot_policy = reboot_policy + @property def resources(self): """ diff --git a/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_hyperv.py b/kubevirt/models/v1_feature_hyperv.py index 60f673e2..07cedcf9 100644 --- a/kubevirt/models/v1_feature_hyperv.py +++ b/kubevirt/models/v1_feature_hyperv.py @@ -41,7 +41,7 @@ class V1FeatureHyperv(object): 'spinlocks': 'V1FeatureSpinlocks', 'synic': 'V1FeatureState', 'synictimer': 'V1SyNICTimer', - 'tlbflush': 'V1FeatureState', + 'tlbflush': 'V1TLBFlush', 'vapic': 'V1FeatureState', 'vendorid': 'V1FeatureVendorID', 'vpindex': 'V1FeatureState' @@ -350,7 +350,7 @@ def tlbflush(self): TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. :return: The tlbflush of this V1FeatureHyperv. - :rtype: V1FeatureState + :rtype: V1TLBFlush """ return self._tlbflush @@ -361,7 +361,7 @@ def tlbflush(self, tlbflush): TLBFlush improves performances in overcommited environments. Requires vpindex. Defaults to the machine type setting. :param tlbflush: The tlbflush of this V1FeatureHyperv. - :type: V1FeatureState + :type: V1TLBFlush """ self._tlbflush = tlbflush diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py b/kubevirt/models/v1_hypervisor_configuration.py similarity index 68% rename from kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py rename to kubevirt/models/v1_hypervisor_configuration.py index 73f5f72c..be556e67 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_selection_policy.py +++ b/kubevirt/models/v1_hypervisor_configuration.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolSelectionPolicy(object): +class V1HypervisorConfiguration(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,45 +31,45 @@ class V1alpha1VirtualMachinePoolSelectionPolicy(object): and the value is json key in definition. """ swagger_types = { - 'base_policy': 'str' + 'name': 'str' } attribute_map = { - 'base_policy': 'basePolicy' + 'name': 'name' } - def __init__(self, base_policy=None): + def __init__(self, name=None): """ - V1alpha1VirtualMachinePoolSelectionPolicy - a model defined in Swagger + V1HypervisorConfiguration - a model defined in Swagger """ - self._base_policy = None + self._name = None - if base_policy is not None: - self.base_policy = base_policy + if name is not None: + self.name = name @property - def base_policy(self): + def name(self): """ - Gets the base_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. - BasePolicy is a catch-all policy [Random|DescendingOrder] + Gets the name of this V1HypervisorConfiguration. + Name is the name of the hypervisor. Supported values are: \"kvm\", \"hyperv-direct\". - :return: The base_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. + :return: The name of this V1HypervisorConfiguration. :rtype: str """ - return self._base_policy + return self._name - @base_policy.setter - def base_policy(self, base_policy): + @name.setter + def name(self, name): """ - Sets the base_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. - BasePolicy is a catch-all policy [Random|DescendingOrder] + Sets the name of this V1HypervisorConfiguration. + Name is the name of the hypervisor. Supported values are: \"kvm\", \"hyperv-direct\". - :param base_policy: The base_policy of this V1alpha1VirtualMachinePoolSelectionPolicy. + :param name: The name of this V1HypervisorConfiguration. :type: str """ - self._base_policy = base_policy + self._name = name def to_dict(self): """ @@ -113,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolSelectionPolicy): + if not isinstance(other, V1HypervisorConfiguration): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1_interface.py b/kubevirt/models/v1_interface.py index 7c8c39c1..db901f76 100644 --- a/kubevirt/models/v1_interface.py +++ b/kubevirt/models/v1_interface.py @@ -42,6 +42,7 @@ class V1Interface(object): 'model': 'str', 'name': 'str', 'passt': 'V1DeprecatedInterfacePasst', + 'passt_binding': 'V1InterfacePasstBinding', 'pci_address': 'str', 'ports': 'list[V1Port]', 'slirp': 'V1DeprecatedInterfaceSlirp', @@ -62,6 +63,7 @@ class V1Interface(object): 'model': 'model', 'name': 'name', 'passt': 'passt', + 'passt_binding': 'passtBinding', 'pci_address': 'pciAddress', 'ports': 'ports', 'slirp': 'slirp', @@ -70,7 +72,7 @@ class V1Interface(object): 'tag': 'tag' } - def __init__(self, acpi_index=None, binding=None, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name='', passt=None, pci_address=None, ports=None, slirp=None, sriov=None, state=None, tag=None): + def __init__(self, acpi_index=None, binding=None, boot_order=None, bridge=None, dhcp_options=None, mac_address=None, macvtap=None, masquerade=None, model=None, name='', passt=None, passt_binding=None, pci_address=None, ports=None, slirp=None, sriov=None, state=None, tag=None): """ V1Interface - a model defined in Swagger """ @@ -86,6 +88,7 @@ def __init__(self, acpi_index=None, binding=None, boot_order=None, bridge=None, self._model = None self._name = None self._passt = None + self._passt_binding = None self._pci_address = None self._ports = None self._slirp = None @@ -114,6 +117,8 @@ def __init__(self, acpi_index=None, binding=None, boot_order=None, bridge=None, self.name = name if passt is not None: self.passt = passt + if passt_binding is not None: + self.passt_binding = passt_binding if pci_address is not None: self.pci_address = pci_address if ports is not None: @@ -378,6 +383,27 @@ def passt(self, passt): self._passt = passt + @property + def passt_binding(self): + """ + Gets the passt_binding of this V1Interface. + + :return: The passt_binding of this V1Interface. + :rtype: V1InterfacePasstBinding + """ + return self._passt_binding + + @passt_binding.setter + def passt_binding(self, passt_binding): + """ + Sets the passt_binding of this V1Interface. + + :param passt_binding: The passt_binding of this V1Interface. + :type: V1InterfacePasstBinding + """ + + self._passt_binding = passt_binding + @property def pci_address(self): """ diff --git a/kubevirt/models/v1_interface_passt_binding.py b/kubevirt/models/v1_interface_passt_binding.py new file mode 100644 index 00000000..a1a90ed3 --- /dev/null +++ b/kubevirt/models/v1_interface_passt_binding.py @@ -0,0 +1,99 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1InterfacePasstBinding(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + + } + + attribute_map = { + + } + + def __init__(self): + """ + V1InterfacePasstBinding - a model defined in Swagger + """ + + + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1InterfacePasstBinding): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1_kube_virt_configuration.py b/kubevirt/models/v1_kube_virt_configuration.py index 6ad308d7..57f6adb8 100644 --- a/kubevirt/models/v1_kube_virt_configuration.py +++ b/kubevirt/models/v1_kube_virt_configuration.py @@ -35,7 +35,9 @@ class V1KubeVirtConfiguration(object): 'api_configuration': 'V1ReloadableComponentConfiguration', 'architecture_configuration': 'V1ArchConfiguration', 'auto_cpu_limit_namespace_label_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', + 'changed_block_tracking_label_selectors': 'V1ChangedBlockTrackingSelectors', 'common_instancetypes_deployment': 'V1CommonInstancetypesDeployment', + 'confidential_compute': 'V1ConfidentialComputeConfiguration', 'controller_configuration': 'V1ReloadableComponentConfiguration', 'cpu_model': 'str', 'cpu_request': 'K8sIoApimachineryPkgApiResourceQuantity', @@ -44,6 +46,7 @@ class V1KubeVirtConfiguration(object): 'emulated_machines': 'list[str]', 'eviction_strategy': 'str', 'handler_configuration': 'V1ReloadableComponentConfiguration', + 'hypervisors': 'list[V1HypervisorConfiguration]', 'image_pull_policy': 'str', 'instancetype': 'V1InstancetypeConfiguration', 'ksm_configuration': 'V1KSMConfiguration', @@ -57,12 +60,14 @@ class V1KubeVirtConfiguration(object): 'obsolete_cpu_models': 'dict(str, bool)', 'ovmf_path': 'str', 'permitted_host_devices': 'V1PermittedHostDevices', + 'role_aggregation_strategy': 'str', 'seccomp_configuration': 'V1SeccompConfiguration', 'selinux_launcher_type': 'str', 'smbios': 'V1SMBiosConfiguration', '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', @@ -75,7 +80,9 @@ class V1KubeVirtConfiguration(object): 'api_configuration': 'apiConfiguration', 'architecture_configuration': 'architectureConfiguration', 'auto_cpu_limit_namespace_label_selector': 'autoCPULimitNamespaceLabelSelector', + 'changed_block_tracking_label_selectors': 'changedBlockTrackingLabelSelectors', 'common_instancetypes_deployment': 'commonInstancetypesDeployment', + 'confidential_compute': 'confidentialCompute', 'controller_configuration': 'controllerConfiguration', 'cpu_model': 'cpuModel', 'cpu_request': 'cpuRequest', @@ -84,6 +91,7 @@ class V1KubeVirtConfiguration(object): 'emulated_machines': 'emulatedMachines', 'eviction_strategy': 'evictionStrategy', 'handler_configuration': 'handlerConfiguration', + 'hypervisors': 'hypervisors', 'image_pull_policy': 'imagePullPolicy', 'instancetype': 'instancetype', 'ksm_configuration': 'ksmConfiguration', @@ -97,12 +105,14 @@ class V1KubeVirtConfiguration(object): 'obsolete_cpu_models': 'obsoleteCPUModels', 'ovmf_path': 'ovmfPath', 'permitted_host_devices': 'permittedHostDevices', + 'role_aggregation_strategy': 'roleAggregationStrategy', 'seccomp_configuration': 'seccompConfiguration', 'selinux_launcher_type': 'selinuxLauncherType', 'smbios': 'smbios', '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', @@ -110,7 +120,7 @@ class V1KubeVirtConfiguration(object): 'webhook_configuration': 'webhookConfiguration' } - def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, common_instancetypes_deployment=None, controller_configuration=None, cpu_model=None, cpu_request=None, default_runtime_class=None, developer_configuration=None, emulated_machines=None, eviction_strategy=None, handler_configuration=None, image_pull_policy=None, instancetype=None, ksm_configuration=None, live_update_configuration=None, machine_type=None, mediated_devices_configuration=None, mem_balloon_stats_period=None, migrations=None, min_cpu_model=None, network=None, obsolete_cpu_models=None, ovmf_path=None, permitted_host_devices=None, seccomp_configuration=None, selinux_launcher_type=None, smbios=None, support_container_resources=None, supported_guest_agent_versions=None, tls_configuration=None, virtual_machine_instances_per_node=None, virtual_machine_options=None, vm_rollout_strategy=None, vm_state_storage_class=None, webhook_configuration=None): + def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuration=None, architecture_configuration=None, auto_cpu_limit_namespace_label_selector=None, changed_block_tracking_label_selectors=None, common_instancetypes_deployment=None, 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 """ @@ -119,7 +129,9 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._api_configuration = None self._architecture_configuration = None self._auto_cpu_limit_namespace_label_selector = None + self._changed_block_tracking_label_selectors = None self._common_instancetypes_deployment = None + self._confidential_compute = None self._controller_configuration = None self._cpu_model = None self._cpu_request = None @@ -128,6 +140,7 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._emulated_machines = None self._eviction_strategy = None self._handler_configuration = None + self._hypervisors = None self._image_pull_policy = None self._instancetype = None self._ksm_configuration = None @@ -141,12 +154,14 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self._obsolete_cpu_models = None self._ovmf_path = None self._permitted_host_devices = None + self._role_aggregation_strategy = None self._seccomp_configuration = None self._selinux_launcher_type = None self._smbios = None 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 @@ -161,8 +176,12 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.architecture_configuration = architecture_configuration if auto_cpu_limit_namespace_label_selector is not None: self.auto_cpu_limit_namespace_label_selector = auto_cpu_limit_namespace_label_selector + if changed_block_tracking_label_selectors is not None: + self.changed_block_tracking_label_selectors = changed_block_tracking_label_selectors if common_instancetypes_deployment is not None: self.common_instancetypes_deployment = common_instancetypes_deployment + if 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: @@ -179,6 +198,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.eviction_strategy = eviction_strategy if handler_configuration is not None: self.handler_configuration = handler_configuration + if hypervisors is not None: + self.hypervisors = hypervisors if image_pull_policy is not None: self.image_pull_policy = image_pull_policy if instancetype is not None: @@ -205,6 +226,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.ovmf_path = ovmf_path if permitted_host_devices is not None: self.permitted_host_devices = permitted_host_devices + if role_aggregation_strategy is not None: + self.role_aggregation_strategy = role_aggregation_strategy if seccomp_configuration is not None: self.seccomp_configuration = seccomp_configuration if selinux_launcher_type is not None: @@ -217,6 +240,8 @@ def __init__(self, additional_guest_memory_overhead_ratio=None, api_configuratio self.supported_guest_agent_versions = supported_guest_agent_versions if tls_configuration is not None: self.tls_configuration = tls_configuration + if virt_template_deployment is not None: + self.virt_template_deployment = virt_template_deployment if virtual_machine_instances_per_node is not None: self.virtual_machine_instances_per_node = virtual_machine_instances_per_node if virtual_machine_options is not None: @@ -316,6 +341,29 @@ def auto_cpu_limit_namespace_label_selector(self, auto_cpu_limit_namespace_label self._auto_cpu_limit_namespace_label_selector = auto_cpu_limit_namespace_label_selector + @property + def changed_block_tracking_label_selectors(self): + """ + Gets the changed_block_tracking_label_selectors of this V1KubeVirtConfiguration. + ChangedBlockTrackingLabelSelectors defines label selectors. VMs matching these selectors will have changed block tracking enabled. Enabling changedBlockTracking is mandatory for performing storage-agnostic backups and incremental backups. + + :return: The changed_block_tracking_label_selectors of this V1KubeVirtConfiguration. + :rtype: V1ChangedBlockTrackingSelectors + """ + return self._changed_block_tracking_label_selectors + + @changed_block_tracking_label_selectors.setter + def changed_block_tracking_label_selectors(self, changed_block_tracking_label_selectors): + """ + Sets the changed_block_tracking_label_selectors of this V1KubeVirtConfiguration. + ChangedBlockTrackingLabelSelectors defines label selectors. VMs matching these selectors will have changed block tracking enabled. Enabling changedBlockTracking is mandatory for performing storage-agnostic backups and incremental backups. + + :param changed_block_tracking_label_selectors: The changed_block_tracking_label_selectors of this V1KubeVirtConfiguration. + :type: V1ChangedBlockTrackingSelectors + """ + + self._changed_block_tracking_label_selectors = changed_block_tracking_label_selectors + @property def common_instancetypes_deployment(self): """ @@ -339,6 +387,29 @@ def common_instancetypes_deployment(self, common_instancetypes_deployment): self._common_instancetypes_deployment = common_instancetypes_deployment + @property + def confidential_compute(self): + """ + Gets the confidential_compute of this V1KubeVirtConfiguration. + QGS configuration for attestation on the Intel TDX Platform + + :return: The confidential_compute of this V1KubeVirtConfiguration. + :rtype: V1ConfidentialComputeConfiguration + """ + return self._confidential_compute + + @confidential_compute.setter + def confidential_compute(self, confidential_compute): + """ + Sets the confidential_compute of this V1KubeVirtConfiguration. + QGS configuration for attestation on the Intel TDX Platform + + :param confidential_compute: The confidential_compute of this V1KubeVirtConfiguration. + :type: V1ConfidentialComputeConfiguration + """ + + self._confidential_compute = confidential_compute + @property def controller_configuration(self): """ @@ -511,6 +582,29 @@ def handler_configuration(self, handler_configuration): self._handler_configuration = handler_configuration + @property + def hypervisors(self): + """ + Gets the hypervisors of this V1KubeVirtConfiguration. + Hypervisors holds information regarding the hypervisor configurations supported on this cluster. + + :return: The hypervisors of this V1KubeVirtConfiguration. + :rtype: list[V1HypervisorConfiguration] + """ + return self._hypervisors + + @hypervisors.setter + def hypervisors(self, hypervisors): + """ + Sets the hypervisors of this V1KubeVirtConfiguration. + Hypervisors holds information regarding the hypervisor configurations supported on this cluster. + + :param hypervisors: The hypervisors of this V1KubeVirtConfiguration. + :type: list[V1HypervisorConfiguration] + """ + + self._hypervisors = hypervisors + @property def image_pull_policy(self): """ @@ -699,6 +793,7 @@ def migrations(self, migrations): def min_cpu_model(self): """ Gets the min_cpu_model of this V1KubeVirtConfiguration. + deprecated :return: The min_cpu_model of this V1KubeVirtConfiguration. :rtype: str @@ -709,6 +804,7 @@ def min_cpu_model(self): def min_cpu_model(self, min_cpu_model): """ Sets the min_cpu_model of this V1KubeVirtConfiguration. + deprecated :param min_cpu_model: The min_cpu_model of this V1KubeVirtConfiguration. :type: str @@ -802,6 +898,29 @@ def permitted_host_devices(self, permitted_host_devices): self._permitted_host_devices = permitted_host_devices + @property + def role_aggregation_strategy(self): + """ + Gets the role_aggregation_strategy of this V1KubeVirtConfiguration. + RoleAggregationStrategy controls whether RBAC cluster roles should be aggregated to the default Kubernetes roles (admin, edit, view). When set to \"AggregateToDefault\" (default) or not specified, the aggregate-to-* labels are added to the cluster roles. When set to \"Manual\", the labels are not added, and roles will not be aggregated to the default roles. Setting this field to \"Manual\" requires the OptOutRoleAggregation feature gate to be enabled. This is an Alpha feature and subject to change. + + :return: The role_aggregation_strategy of this V1KubeVirtConfiguration. + :rtype: str + """ + return self._role_aggregation_strategy + + @role_aggregation_strategy.setter + def role_aggregation_strategy(self, role_aggregation_strategy): + """ + Sets the role_aggregation_strategy of this V1KubeVirtConfiguration. + RoleAggregationStrategy controls whether RBAC cluster roles should be aggregated to the default Kubernetes roles (admin, edit, view). When set to \"AggregateToDefault\" (default) or not specified, the aggregate-to-* labels are added to the cluster roles. When set to \"Manual\", the labels are not added, and roles will not be aggregated to the default roles. Setting this field to \"Manual\" requires the OptOutRoleAggregation feature gate to be enabled. This is an Alpha feature and subject to change. + + :param role_aggregation_strategy: The role_aggregation_strategy of this V1KubeVirtConfiguration. + :type: str + """ + + self._role_aggregation_strategy = role_aggregation_strategy + @property def seccomp_configuration(self): """ @@ -932,6 +1051,29 @@ def tls_configuration(self, tls_configuration): self._tls_configuration = tls_configuration + @property + def virt_template_deployment(self): + """ + Gets the virt_template_deployment of this V1KubeVirtConfiguration. + VirtTemplateDeployment controls the deployment of virt-template components + + :return: The virt_template_deployment of this V1KubeVirtConfiguration. + :rtype: V1VirtTemplateDeployment + """ + return self._virt_template_deployment + + @virt_template_deployment.setter + def virt_template_deployment(self, virt_template_deployment): + """ + Sets the virt_template_deployment of this V1KubeVirtConfiguration. + VirtTemplateDeployment controls the deployment of virt-template components + + :param virt_template_deployment: The virt_template_deployment of this V1KubeVirtConfiguration. + :type: V1VirtTemplateDeployment + """ + + self._virt_template_deployment = virt_template_deployment + @property def virtual_machine_instances_per_node(self): """ diff --git a/kubevirt/models/v1_launch_security.py b/kubevirt/models/v1_launch_security.py index 37a1d552..bb5743d4 100644 --- a/kubevirt/models/v1_launch_security.py +++ b/kubevirt/models/v1_launch_security.py @@ -31,22 +31,32 @@ class V1LaunchSecurity(object): and the value is json key in definition. """ swagger_types = { - 'sev': 'V1SEV' + 'sev': 'V1SEV', + 'snp': 'V1SEVSNP', + 'tdx': 'V1TDX' } attribute_map = { - 'sev': 'sev' + 'sev': 'sev', + 'snp': 'snp', + 'tdx': 'tdx' } - def __init__(self, sev=None): + def __init__(self, sev=None, snp=None, tdx=None): """ V1LaunchSecurity - a model defined in Swagger """ self._sev = None + self._snp = None + self._tdx = None if sev is not None: self.sev = sev + if snp is not None: + self.snp = snp + if tdx is not None: + self.tdx = tdx @property def sev(self): @@ -71,6 +81,52 @@ def sev(self, sev): self._sev = sev + @property + def snp(self): + """ + Gets the snp of this V1LaunchSecurity. + AMD SEV-SNP flags defined by the SEV-SNP specifications. + + :return: The snp of this V1LaunchSecurity. + :rtype: V1SEVSNP + """ + return self._snp + + @snp.setter + def snp(self, snp): + """ + Sets the snp of this V1LaunchSecurity. + AMD SEV-SNP flags defined by the SEV-SNP specifications. + + :param snp: The snp of this V1LaunchSecurity. + :type: V1SEVSNP + """ + + self._snp = snp + + @property + def tdx(self): + """ + Gets the tdx of this V1LaunchSecurity. + Intel Trust Domain Extensions (TDX). + + :return: The tdx of this V1LaunchSecurity. + :rtype: V1TDX + """ + return self._tdx + + @tdx.setter + def tdx(self, tdx): + """ + Sets the tdx of this V1LaunchSecurity. + Intel Trust Domain Extensions (TDX). + + :param tdx: The tdx of this V1LaunchSecurity. + :type: V1TDX + """ + + self._tdx = tdx + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_mediated_devices_configuration.py b/kubevirt/models/v1_mediated_devices_configuration.py index c8ed0ac2..a482032c 100644 --- a/kubevirt/models/v1_mediated_devices_configuration.py +++ b/kubevirt/models/v1_mediated_devices_configuration.py @@ -31,26 +31,31 @@ class V1MediatedDevicesConfiguration(object): and the value is json key in definition. """ swagger_types = { + 'enabled': 'bool', 'mediated_device_types': 'list[str]', 'mediated_devices_types': 'list[str]', 'node_mediated_device_types': 'list[V1NodeMediatedDeviceTypesConfig]' } attribute_map = { + 'enabled': 'enabled', 'mediated_device_types': 'mediatedDeviceTypes', 'mediated_devices_types': 'mediatedDevicesTypes', 'node_mediated_device_types': 'nodeMediatedDeviceTypes' } - def __init__(self, mediated_device_types=None, mediated_devices_types=None, node_mediated_device_types=None): + def __init__(self, enabled=None, mediated_device_types=None, mediated_devices_types=None, node_mediated_device_types=None): """ V1MediatedDevicesConfiguration - a model defined in Swagger """ + self._enabled = None self._mediated_device_types = None self._mediated_devices_types = None self._node_mediated_device_types = None + if enabled is not None: + self.enabled = enabled if mediated_device_types is not None: self.mediated_device_types = mediated_device_types if mediated_devices_types is not None: @@ -58,6 +63,29 @@ def __init__(self, mediated_device_types=None, mediated_devices_types=None, node if node_mediated_device_types is not None: self.node_mediated_device_types = node_mediated_device_types + @property + def enabled(self): + """ + Gets the enabled of this V1MediatedDevicesConfiguration. + Enable the creation and removal of mediated devices by virt-handler Replaces the deprecated DisableMDEVConfiguration feature gate Defaults to true + + :return: The enabled of this V1MediatedDevicesConfiguration. + :rtype: bool + """ + return self._enabled + + @enabled.setter + def enabled(self, enabled): + """ + Sets the enabled of this V1MediatedDevicesConfiguration. + Enable the creation and removal of mediated devices by virt-handler Replaces the deprecated DisableMDEVConfiguration feature gate Defaults to true + + :param enabled: The enabled of this V1MediatedDevicesConfiguration. + :type: bool + """ + + self._enabled = enabled + @property def mediated_device_types(self): """ diff --git a/kubevirt/models/v1_memory.py b/kubevirt/models/v1_memory.py index de47e216..6a08fbf9 100644 --- a/kubevirt/models/v1_memory.py +++ b/kubevirt/models/v1_memory.py @@ -33,16 +33,18 @@ class V1Memory(object): swagger_types = { 'guest': 'K8sIoApimachineryPkgApiResourceQuantity', 'hugepages': 'V1Hugepages', - 'max_guest': 'K8sIoApimachineryPkgApiResourceQuantity' + 'max_guest': 'K8sIoApimachineryPkgApiResourceQuantity', + 'reserved_overhead': 'V1ReservedOverhead' } attribute_map = { 'guest': 'guest', 'hugepages': 'hugepages', - 'max_guest': 'maxGuest' + 'max_guest': 'maxGuest', + 'reserved_overhead': 'reservedOverhead' } - def __init__(self, guest=None, hugepages=None, max_guest=None): + def __init__(self, guest=None, hugepages=None, max_guest=None, reserved_overhead=None): """ V1Memory - a model defined in Swagger """ @@ -50,6 +52,7 @@ def __init__(self, guest=None, hugepages=None, max_guest=None): self._guest = None self._hugepages = None self._max_guest = None + self._reserved_overhead = None if guest is not None: self.guest = guest @@ -57,6 +60,8 @@ def __init__(self, guest=None, hugepages=None, max_guest=None): self.hugepages = hugepages if max_guest is not None: self.max_guest = max_guest + if reserved_overhead is not None: + self.reserved_overhead = reserved_overhead @property def guest(self): @@ -127,6 +132,29 @@ def max_guest(self, max_guest): self._max_guest = max_guest + @property + def reserved_overhead(self): + """ + Gets the reserved_overhead of this V1Memory. + ReservedOverhead configures the memory overhead applied to a VM and its characteristics. + + :return: The reserved_overhead of this V1Memory. + :rtype: V1ReservedOverhead + """ + return self._reserved_overhead + + @reserved_overhead.setter + def reserved_overhead(self, reserved_overhead): + """ + Sets the reserved_overhead of this V1Memory. + ReservedOverhead configures the memory overhead applied to a VM and its characteristics. + + :param reserved_overhead: The reserved_overhead of this V1Memory. + :type: V1ReservedOverhead + """ + + self._reserved_overhead = reserved_overhead + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_memory_status.py b/kubevirt/models/v1_memory_status.py index a5cd6876..da36c34f 100644 --- a/kubevirt/models/v1_memory_status.py +++ b/kubevirt/models/v1_memory_status.py @@ -33,16 +33,18 @@ class V1MemoryStatus(object): swagger_types = { 'guest_at_boot': 'K8sIoApimachineryPkgApiResourceQuantity', 'guest_current': 'K8sIoApimachineryPkgApiResourceQuantity', - 'guest_requested': 'K8sIoApimachineryPkgApiResourceQuantity' + 'guest_requested': 'K8sIoApimachineryPkgApiResourceQuantity', + 'memory_overhead': 'K8sIoApimachineryPkgApiResourceQuantity' } attribute_map = { 'guest_at_boot': 'guestAtBoot', 'guest_current': 'guestCurrent', - 'guest_requested': 'guestRequested' + 'guest_requested': 'guestRequested', + 'memory_overhead': 'memoryOverhead' } - def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None): + def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None, memory_overhead=None): """ V1MemoryStatus - a model defined in Swagger """ @@ -50,6 +52,7 @@ def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None) self._guest_at_boot = None self._guest_current = None self._guest_requested = None + self._memory_overhead = None if guest_at_boot is not None: self.guest_at_boot = guest_at_boot @@ -57,6 +60,8 @@ def __init__(self, guest_at_boot=None, guest_current=None, guest_requested=None) self.guest_current = guest_current if guest_requested is not None: self.guest_requested = guest_requested + if memory_overhead is not None: + self.memory_overhead = memory_overhead @property def guest_at_boot(self): @@ -127,6 +132,29 @@ def guest_requested(self, guest_requested): self._guest_requested = guest_requested + @property + def memory_overhead(self): + """ + Gets the memory_overhead of this V1MemoryStatus. + MemoryOverhead specifies the memory overhead added by the virtualization infrastructure for the virt-launcher pod. + + :return: The memory_overhead of this V1MemoryStatus. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._memory_overhead + + @memory_overhead.setter + def memory_overhead(self, memory_overhead): + """ + Sets the memory_overhead of this V1MemoryStatus. + MemoryOverhead specifies the memory overhead added by the virtualization infrastructure for the virt-launcher pod. + + :param memory_overhead: The memory_overhead of this V1MemoryStatus. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._memory_overhead = memory_overhead + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_migration_configuration.py b/kubevirt/models/v1_migration_configuration.py index 79dc80e8..e7dd2d59 100644 --- a/kubevirt/models/v1_migration_configuration.py +++ b/kubevirt/models/v1_migration_configuration.py @@ -43,7 +43,8 @@ class V1MigrationConfiguration(object): 'parallel_migrations_per_cluster': 'int', 'parallel_outbound_migrations_per_node': 'int', 'progress_timeout': 'int', - 'unsafe_migration_override': 'bool' + 'unsafe_migration_override': 'bool', + 'utility_volumes_timeout': 'int' } attribute_map = { @@ -59,10 +60,11 @@ class V1MigrationConfiguration(object): 'parallel_migrations_per_cluster': 'parallelMigrationsPerCluster', 'parallel_outbound_migrations_per_node': 'parallelOutboundMigrationsPerNode', 'progress_timeout': 'progressTimeout', - 'unsafe_migration_override': 'unsafeMigrationOverride' + 'unsafe_migration_override': 'unsafeMigrationOverride', + 'utility_volumes_timeout': 'utilityVolumesTimeout' } - def __init__(self, allow_auto_converge=None, allow_post_copy=None, allow_workload_disruption=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, disable_tls=None, match_se_linux_level_on_migration=None, network=None, node_drain_taint_key=None, parallel_migrations_per_cluster=None, parallel_outbound_migrations_per_node=None, progress_timeout=None, unsafe_migration_override=None): + def __init__(self, allow_auto_converge=None, allow_post_copy=None, allow_workload_disruption=None, bandwidth_per_migration=None, completion_timeout_per_gi_b=None, disable_tls=None, match_se_linux_level_on_migration=None, network=None, node_drain_taint_key=None, parallel_migrations_per_cluster=None, parallel_outbound_migrations_per_node=None, progress_timeout=None, unsafe_migration_override=None, utility_volumes_timeout=None): """ V1MigrationConfiguration - a model defined in Swagger """ @@ -80,6 +82,7 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, allow_workloa self._parallel_outbound_migrations_per_node = None self._progress_timeout = None self._unsafe_migration_override = None + self._utility_volumes_timeout = None if allow_auto_converge is not None: self.allow_auto_converge = allow_auto_converge @@ -107,6 +110,8 @@ def __init__(self, allow_auto_converge=None, allow_post_copy=None, allow_workloa self.progress_timeout = progress_timeout if unsafe_migration_override is not None: self.unsafe_migration_override = unsafe_migration_override + if utility_volumes_timeout is not None: + self.utility_volumes_timeout = utility_volumes_timeout @property def allow_auto_converge(self): @@ -407,6 +412,29 @@ def unsafe_migration_override(self, unsafe_migration_override): self._unsafe_migration_override = unsafe_migration_override + @property + def utility_volumes_timeout(self): + """ + Gets the utility_volumes_timeout of this V1MigrationConfiguration. + UtilityVolumesTimeout is the maximum number of seconds a migration can wait in Pending state for utility volumes to be detached. If utility volumes are still present after this timeout, the migration will be marked as Failed. Defaults to 150 + + :return: The utility_volumes_timeout of this V1MigrationConfiguration. + :rtype: int + """ + return self._utility_volumes_timeout + + @utility_volumes_timeout.setter + def utility_volumes_timeout(self, utility_volumes_timeout): + """ + Sets the utility_volumes_timeout of this V1MigrationConfiguration. + UtilityVolumesTimeout is the maximum number of seconds a migration can wait in Pending state for utility volumes to be detached. If utility volumes are still present after this timeout, the migration will be marked as Failed. Defaults to 150 + + :param utility_volumes_timeout: The utility_volumes_timeout of this V1MigrationConfiguration. + :type: int + """ + + self._utility_volumes_timeout = utility_volumes_timeout + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_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_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_sy_nic_timer.py b/kubevirt/models/v1_sy_nic_timer.py index 65eb5b21..1af73ff8 100644 --- a/kubevirt/models/v1_sy_nic_timer.py +++ b/kubevirt/models/v1_sy_nic_timer.py @@ -78,6 +78,7 @@ def direct(self, direct): def enabled(self): """ Gets the enabled of this V1SyNICTimer. + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. :return: The enabled of this V1SyNICTimer. :rtype: bool @@ -88,6 +89,7 @@ def enabled(self): def enabled(self, enabled): """ Sets the enabled of this V1SyNICTimer. + Enabled determines if the feature should be enabled or disabled on the guest. Defaults to true. :param enabled: The enabled of this V1SyNICTimer. :type: bool diff --git a/kubevirt/models/v1_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_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_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_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_guest_agent_info.py b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py index 7ad06939..2ffc69d0 100644 --- a/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py +++ b/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.py @@ -37,7 +37,6 @@ class V1VirtualMachineInstanceGuestAgentInfo(object): 'guest_agent_version': 'str', 'hostname': 'str', 'kind': 'str', - 'load': 'V1VirtualMachineInstanceGuestOSLoad', 'os': 'V1VirtualMachineInstanceGuestOSInfo', 'supported_commands': 'list[V1GuestAgentCommandInfo]', 'timezone': 'str', @@ -51,14 +50,13 @@ class V1VirtualMachineInstanceGuestAgentInfo(object): 'guest_agent_version': 'guestAgentVersion', 'hostname': 'hostname', 'kind': 'kind', - 'load': 'load', 'os': 'os', 'supported_commands': 'supportedCommands', 'timezone': 'timezone', 'user_list': 'userList' } - def __init__(self, api_version=None, fs_freeze_status=None, fs_info=None, guest_agent_version=None, hostname=None, kind=None, load=None, os=None, supported_commands=None, timezone=None, user_list=None): + def __init__(self, api_version=None, fs_freeze_status=None, fs_info=None, guest_agent_version=None, hostname=None, kind=None, os=None, supported_commands=None, timezone=None, user_list=None): """ V1VirtualMachineInstanceGuestAgentInfo - a model defined in Swagger """ @@ -69,7 +67,6 @@ def __init__(self, api_version=None, fs_freeze_status=None, fs_info=None, guest_ self._guest_agent_version = None self._hostname = None self._kind = None - self._load = None self._os = None self._supported_commands = None self._timezone = None @@ -87,8 +84,6 @@ def __init__(self, api_version=None, fs_freeze_status=None, fs_info=None, guest_ self.hostname = hostname if kind is not None: self.kind = kind - if load is not None: - self.load = load if os is not None: self.os = os if supported_commands is not None: @@ -236,29 +231,6 @@ def kind(self, kind): self._kind = kind - @property - def load(self): - """ - Gets the load of this V1VirtualMachineInstanceGuestAgentInfo. - Load contains the system load averages (1M, 5M, 15M) from the guest agent - - :return: The load of this V1VirtualMachineInstanceGuestAgentInfo. - :rtype: V1VirtualMachineInstanceGuestOSLoad - """ - return self._load - - @load.setter - def load(self, load): - """ - Sets the load of this V1VirtualMachineInstanceGuestAgentInfo. - Load contains the system load averages (1M, 5M, 15M) from the guest agent - - :param load: The load of this V1VirtualMachineInstanceGuestAgentInfo. - :type: V1VirtualMachineInstanceGuestOSLoad - """ - - self._load = load - @property def os(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_guest_os_load.py b/kubevirt/models/v1_virtual_machine_instance_guest_os_load.py deleted file mode 100644 index be87f840..00000000 --- a/kubevirt/models/v1_virtual_machine_instance_guest_os_load.py +++ /dev/null @@ -1,265 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from pprint import pformat -from six import iteritems -import re - - -class V1VirtualMachineInstanceGuestOSLoad(object): - """ - NOTE: This class is auto generated by the swagger code generator program. - Do not edit the class manually. - """ - - - """ - Attributes: - swagger_types (dict): The key is attribute name - and the value is attribute type. - attribute_map (dict): The key is attribute name - and the value is json key in definition. - """ - swagger_types = { - 'load15m': 'float', - 'load15m_set': 'bool', - 'load1m': 'float', - 'load1m_set': 'bool', - 'load5m': 'float', - 'load5m_set': 'bool' - } - - attribute_map = { - 'load15m': 'load15m', - 'load15m_set': 'load15mSet', - 'load1m': 'load1m', - 'load1m_set': 'load1mSet', - 'load5m': 'load5m', - 'load5m_set': 'load5mSet' - } - - def __init__(self, load15m=None, load15m_set=None, load1m=None, load1m_set=None, load5m=None, load5m_set=None): - """ - V1VirtualMachineInstanceGuestOSLoad - a model defined in Swagger - """ - - self._load15m = None - self._load15m_set = None - self._load1m = None - self._load1m_set = None - self._load5m = None - self._load5m_set = None - - if load15m is not None: - self.load15m = load15m - if load15m_set is not None: - self.load15m_set = load15m_set - if load1m is not None: - self.load1m = load1m - if load1m_set is not None: - self.load1m_set = load1m_set - if load5m is not None: - self.load5m = load5m - if load5m_set is not None: - self.load5m_set = load5m_set - - @property - def load15m(self): - """ - Gets the load15m of this V1VirtualMachineInstanceGuestOSLoad. - Load average over 15 minutes - - :return: The load15m of this V1VirtualMachineInstanceGuestOSLoad. - :rtype: float - """ - return self._load15m - - @load15m.setter - def load15m(self, load15m): - """ - Sets the load15m of this V1VirtualMachineInstanceGuestOSLoad. - Load average over 15 minutes - - :param load15m: The load15m of this V1VirtualMachineInstanceGuestOSLoad. - :type: float - """ - - self._load15m = load15m - - @property - def load15m_set(self): - """ - Gets the load15m_set of this V1VirtualMachineInstanceGuestOSLoad. - Load15mSet indicates whether the 15 minute load average is set - - :return: The load15m_set of this V1VirtualMachineInstanceGuestOSLoad. - :rtype: bool - """ - return self._load15m_set - - @load15m_set.setter - def load15m_set(self, load15m_set): - """ - Sets the load15m_set of this V1VirtualMachineInstanceGuestOSLoad. - Load15mSet indicates whether the 15 minute load average is set - - :param load15m_set: The load15m_set of this V1VirtualMachineInstanceGuestOSLoad. - :type: bool - """ - - self._load15m_set = load15m_set - - @property - def load1m(self): - """ - Gets the load1m of this V1VirtualMachineInstanceGuestOSLoad. - Load average over 1 minute - - :return: The load1m of this V1VirtualMachineInstanceGuestOSLoad. - :rtype: float - """ - return self._load1m - - @load1m.setter - def load1m(self, load1m): - """ - Sets the load1m of this V1VirtualMachineInstanceGuestOSLoad. - Load average over 1 minute - - :param load1m: The load1m of this V1VirtualMachineInstanceGuestOSLoad. - :type: float - """ - - self._load1m = load1m - - @property - def load1m_set(self): - """ - Gets the load1m_set of this V1VirtualMachineInstanceGuestOSLoad. - Load1mSet indicates whether the 1 minute load average is set - - :return: The load1m_set of this V1VirtualMachineInstanceGuestOSLoad. - :rtype: bool - """ - return self._load1m_set - - @load1m_set.setter - def load1m_set(self, load1m_set): - """ - Sets the load1m_set of this V1VirtualMachineInstanceGuestOSLoad. - Load1mSet indicates whether the 1 minute load average is set - - :param load1m_set: The load1m_set of this V1VirtualMachineInstanceGuestOSLoad. - :type: bool - """ - - self._load1m_set = load1m_set - - @property - def load5m(self): - """ - Gets the load5m of this V1VirtualMachineInstanceGuestOSLoad. - Load average over 5 minutes - - :return: The load5m of this V1VirtualMachineInstanceGuestOSLoad. - :rtype: float - """ - return self._load5m - - @load5m.setter - def load5m(self, load5m): - """ - Sets the load5m of this V1VirtualMachineInstanceGuestOSLoad. - Load average over 5 minutes - - :param load5m: The load5m of this V1VirtualMachineInstanceGuestOSLoad. - :type: float - """ - - self._load5m = load5m - - @property - def load5m_set(self): - """ - Gets the load5m_set of this V1VirtualMachineInstanceGuestOSLoad. - Load5mSet indicates whether the 5 minute load average is set - - :return: The load5m_set of this V1VirtualMachineInstanceGuestOSLoad. - :rtype: bool - """ - return self._load5m_set - - @load5m_set.setter - def load5m_set(self, load5m_set): - """ - Sets the load5m_set of this V1VirtualMachineInstanceGuestOSLoad. - Load5mSet indicates whether the 5 minute load average is set - - :param load5m_set: The load5m_set of this V1VirtualMachineInstanceGuestOSLoad. - :type: bool - """ - - self._load5m_set = load5m_set - - def to_dict(self): - """ - Returns the model properties as a dict - """ - result = {} - - for attr, _ in iteritems(self.swagger_types): - value = getattr(self, attr) - if isinstance(value, list): - result[attr] = list(map( - lambda x: x.to_dict() if hasattr(x, "to_dict") else x, - value - )) - elif hasattr(value, "to_dict"): - result[attr] = value.to_dict() - elif isinstance(value, dict): - result[attr] = dict(map( - lambda item: (item[0], item[1].to_dict()) - if hasattr(item[1], "to_dict") else item, - value.items() - )) - else: - result[attr] = value - - return result - - def to_str(self): - """ - Returns the string representation of the model - """ - return pformat(self.to_dict()) - - def __repr__(self): - """ - For `print` and `pprint` - """ - return self.to_str() - - def __eq__(self, other): - """ - Returns true if both objects are equal - """ - if not isinstance(other, V1VirtualMachineInstanceGuestOSLoad): - return False - - return self.__dict__ == other.__dict__ - - def __ne__(self, other): - """ - Returns true if both objects are not equal - """ - return not self == other diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_spec.py b/kubevirt/models/v1_virtual_machine_instance_migration_spec.py index cd3ed45d..a059c3d5 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_spec.py @@ -32,6 +32,7 @@ class V1VirtualMachineInstanceMigrationSpec(object): """ swagger_types = { 'added_node_selector': 'dict(str, str)', + 'priority': 'str', 'receive': 'V1VirtualMachineInstanceMigrationTarget', 'send_to': 'V1VirtualMachineInstanceMigrationSource', 'vmi_name': 'str' @@ -39,23 +40,27 @@ class V1VirtualMachineInstanceMigrationSpec(object): attribute_map = { 'added_node_selector': 'addedNodeSelector', + 'priority': 'priority', 'receive': 'receive', 'send_to': 'sendTo', 'vmi_name': 'vmiName' } - def __init__(self, added_node_selector=None, receive=None, send_to=None, vmi_name=None): + def __init__(self, added_node_selector=None, priority=None, receive=None, send_to=None, vmi_name=None): """ V1VirtualMachineInstanceMigrationSpec - a model defined in Swagger """ self._added_node_selector = None + self._priority = None self._receive = None self._send_to = None self._vmi_name = None if added_node_selector is not None: self.added_node_selector = added_node_selector + if priority is not None: + self.priority = priority if receive is not None: self.receive = receive if send_to is not None: @@ -86,6 +91,29 @@ def added_node_selector(self, added_node_selector): self._added_node_selector = added_node_selector + @property + def priority(self): + """ + Gets the priority of this V1VirtualMachineInstanceMigrationSpec. + Priority of the migration. This can be one of `system-critical`, `user-triggered`, `system-maintenance`. + + :return: The priority of this V1VirtualMachineInstanceMigrationSpec. + :rtype: str + """ + return self._priority + + @priority.setter + def priority(self, priority): + """ + Sets the priority of this V1VirtualMachineInstanceMigrationSpec. + Priority of the migration. This can be one of `system-critical`, `user-triggered`, `system-maintenance`. + + :param priority: The priority of this V1VirtualMachineInstanceMigrationSpec. + :type: str + """ + + self._priority = priority + @property def receive(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_migration_state.py b/kubevirt/models/v1_virtual_machine_instance_migration_state.py index 9401bddc..49cce1c1 100644 --- a/kubevirt/models/v1_virtual_machine_instance_migration_state.py +++ b/kubevirt/models/v1_virtual_machine_instance_migration_state.py @@ -50,6 +50,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_attachment_pod_uid': 'str', 'target_cpu_set': 'list[int]', 'target_direct_migration_node_ports': 'dict(str, int)', + 'target_memory_overhead': 'K8sIoApimachineryPkgApiResourceQuantity', 'target_node': 'str', 'target_node_address': 'str', 'target_node_domain_detected': 'bool', @@ -80,6 +81,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_attachment_pod_uid': 'targetAttachmentPodUID', 'target_cpu_set': 'targetCPUSet', 'target_direct_migration_node_ports': 'targetDirectMigrationNodePorts', + 'target_memory_overhead': 'targetMemoryOverhead', 'target_node': 'targetNode', 'target_node_address': 'targetNodeAddress', 'target_node_domain_detected': 'targetNodeDomainDetected', @@ -90,7 +92,7 @@ class V1VirtualMachineInstanceMigrationState(object): 'target_state': 'targetState' } - def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, failure_reason=None, migration_configuration=None, migration_network_type=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, source_persistent_state_pvc_name=None, source_pod=None, source_state=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_persistent_state_pvc_name=None, target_pod=None, target_state=None): + def __init__(self, abort_requested=None, abort_status=None, completed=None, end_timestamp=None, failed=None, failure_reason=None, migration_configuration=None, migration_network_type=None, migration_policy_name=None, migration_uid=None, mode=None, source_node=None, source_persistent_state_pvc_name=None, source_pod=None, source_state=None, start_timestamp=None, target_attachment_pod_uid=None, target_cpu_set=None, target_direct_migration_node_ports=None, target_memory_overhead=None, target_node=None, target_node_address=None, target_node_domain_detected=None, target_node_domain_ready_timestamp=None, target_node_topology=None, target_persistent_state_pvc_name=None, target_pod=None, target_state=None): """ V1VirtualMachineInstanceMigrationState - a model defined in Swagger """ @@ -114,6 +116,7 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self._target_attachment_pod_uid = None self._target_cpu_set = None self._target_direct_migration_node_ports = None + self._target_memory_overhead = None self._target_node = None self._target_node_address = None self._target_node_domain_detected = None @@ -161,6 +164,8 @@ def __init__(self, abort_requested=None, abort_status=None, completed=None, end_ self.target_cpu_set = target_cpu_set if target_direct_migration_node_ports is not None: self.target_direct_migration_node_ports = target_direct_migration_node_ports + if target_memory_overhead is not None: + self.target_memory_overhead = target_memory_overhead if target_node is not None: self.target_node = target_node if target_node_address is not None: @@ -613,6 +618,29 @@ def target_direct_migration_node_ports(self, target_direct_migration_node_ports) self._target_direct_migration_node_ports = target_direct_migration_node_ports + @property + def target_memory_overhead(self): + """ + Gets the target_memory_overhead of this V1VirtualMachineInstanceMigrationState. + TargetMemoryOverhead is the memory overhead of the target virt-launcher pod + + :return: The target_memory_overhead of this V1VirtualMachineInstanceMigrationState. + :rtype: K8sIoApimachineryPkgApiResourceQuantity + """ + return self._target_memory_overhead + + @target_memory_overhead.setter + def target_memory_overhead(self, target_memory_overhead): + """ + Sets the target_memory_overhead of this V1VirtualMachineInstanceMigrationState. + TargetMemoryOverhead is the memory overhead of the target virt-launcher pod + + :param target_memory_overhead: The target_memory_overhead of this V1VirtualMachineInstanceMigrationState. + :type: K8sIoApimachineryPkgApiResourceQuantity + """ + + self._target_memory_overhead = target_memory_overhead + @property def target_node(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_spec.py b/kubevirt/models/v1_virtual_machine_instance_spec.py index 99f78652..c7f47878 100644 --- a/kubevirt/models/v1_virtual_machine_instance_spec.py +++ b/kubevirt/models/v1_virtual_machine_instance_spec.py @@ -51,6 +51,7 @@ class V1VirtualMachineInstanceSpec(object): 'termination_grace_period_seconds': 'int', 'tolerations': 'list[K8sIoApiCoreV1Toleration]', 'topology_spread_constraints': 'list[K8sIoApiCoreV1TopologySpreadConstraint]', + 'utility_volumes': 'list[V1UtilityVolume]', 'volumes': 'list[V1Volume]' } @@ -75,10 +76,11 @@ class V1VirtualMachineInstanceSpec(object): 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', 'tolerations': 'tolerations', 'topology_spread_constraints': 'topologySpreadConstraints', + 'utility_volumes': 'utilityVolumes', 'volumes': 'volumes' } - def __init__(self, access_credentials=None, affinity=None, architecture=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, resource_claims=None, scheduler_name=None, start_strategy=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, topology_spread_constraints=None, volumes=None): + def __init__(self, access_credentials=None, affinity=None, architecture=None, dns_config=None, dns_policy=None, domain=None, eviction_strategy=None, hostname=None, liveness_probe=None, networks=None, node_selector=None, priority_class_name=None, readiness_probe=None, resource_claims=None, scheduler_name=None, start_strategy=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, topology_spread_constraints=None, utility_volumes=None, volumes=None): """ V1VirtualMachineInstanceSpec - a model defined in Swagger """ @@ -103,6 +105,7 @@ def __init__(self, access_credentials=None, affinity=None, architecture=None, dn self._termination_grace_period_seconds = None self._tolerations = None self._topology_spread_constraints = None + self._utility_volumes = None self._volumes = None if access_credentials is not None: @@ -144,6 +147,8 @@ def __init__(self, access_credentials=None, affinity=None, architecture=None, dn self.tolerations = tolerations if topology_spread_constraints is not None: self.topology_spread_constraints = topology_spread_constraints + if utility_volumes is not None: + self.utility_volumes = utility_volumes if volumes is not None: self.volumes = volumes @@ -615,6 +620,29 @@ def topology_spread_constraints(self, topology_spread_constraints): self._topology_spread_constraints = topology_spread_constraints + @property + def utility_volumes(self): + """ + Gets the utility_volumes of this V1VirtualMachineInstanceSpec. + List of utility volumes that can be mounted to the vmi virt-launcher pod without having a matching disk in the domain. Used to collect data for various operational workflows. + + :return: The utility_volumes of this V1VirtualMachineInstanceSpec. + :rtype: list[V1UtilityVolume] + """ + return self._utility_volumes + + @utility_volumes.setter + def utility_volumes(self, utility_volumes): + """ + Sets the utility_volumes of this V1VirtualMachineInstanceSpec. + List of utility volumes that can be mounted to the vmi virt-launcher pod without having a matching disk in the domain. Used to collect data for various operational workflows. + + :param utility_volumes: The utility_volumes of this V1VirtualMachineInstanceSpec. + :type: list[V1UtilityVolume] + """ + + self._utility_volumes = utility_volumes + @property def volumes(self): """ diff --git a/kubevirt/models/v1_virtual_machine_instance_status.py b/kubevirt/models/v1_virtual_machine_instance_status.py index 3d25f505..b6bd83cb 100644 --- a/kubevirt/models/v1_virtual_machine_instance_status.py +++ b/kubevirt/models/v1_virtual_machine_instance_status.py @@ -33,9 +33,9 @@ class V1VirtualMachineInstanceStatus(object): swagger_types = { 'vsockcid': 'int', 'active_pods': 'dict(str, str)', + 'changed_block_tracking': 'V1ChangedBlockTrackingStatus', 'conditions': 'list[V1VirtualMachineInstanceCondition]', 'current_cpu_topology': 'V1CPUTopology', - 'device_status': 'V1DeviceStatus', 'evacuation_node_name': 'str', 'fs_freeze_status': 'str', 'guest_os_info': 'V1VirtualMachineInstanceGuestOSInfo', @@ -63,9 +63,9 @@ class V1VirtualMachineInstanceStatus(object): attribute_map = { 'vsockcid': 'VSOCKCID', 'active_pods': 'activePods', + 'changed_block_tracking': 'changedBlockTracking', 'conditions': 'conditions', 'current_cpu_topology': 'currentCPUTopology', - 'device_status': 'deviceStatus', 'evacuation_node_name': 'evacuationNodeName', 'fs_freeze_status': 'fsFreezeStatus', 'guest_os_info': 'guestOSInfo', @@ -90,16 +90,16 @@ class V1VirtualMachineInstanceStatus(object): 'volume_status': 'volumeStatus' } - def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu_topology=None, device_status=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, kernel_boot_status=None, launcher_container_image_version=None, machine=None, memory=None, migrated_volumes=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): + def __init__(self, vsockcid=None, active_pods=None, changed_block_tracking=None, conditions=None, current_cpu_topology=None, evacuation_node_name=None, fs_freeze_status=None, guest_os_info=None, interfaces=None, kernel_boot_status=None, launcher_container_image_version=None, machine=None, memory=None, migrated_volumes=None, migration_method=None, migration_state=None, migration_transport=None, node_name=None, phase=None, phase_transition_timestamps=None, qos_class=None, reason=None, runtime_user=0, selinux_context=None, topology_hints=None, virtual_machine_revision_name=None, volume_status=None): """ V1VirtualMachineInstanceStatus - a model defined in Swagger """ self._vsockcid = None self._active_pods = None + self._changed_block_tracking = None self._conditions = None self._current_cpu_topology = None - self._device_status = None self._evacuation_node_name = None self._fs_freeze_status = None self._guest_os_info = None @@ -127,12 +127,12 @@ def __init__(self, vsockcid=None, active_pods=None, conditions=None, current_cpu self.vsockcid = vsockcid if active_pods is not None: self.active_pods = active_pods + if changed_block_tracking is not None: + self.changed_block_tracking = changed_block_tracking if conditions is not None: self.conditions = conditions if current_cpu_topology is not None: self.current_cpu_topology = current_cpu_topology - if device_status is not None: - self.device_status = device_status if evacuation_node_name is not None: self.evacuation_node_name = evacuation_node_name if fs_freeze_status is not None: @@ -224,6 +224,29 @@ def active_pods(self, active_pods): self._active_pods = active_pods + @property + def changed_block_tracking(self): + """ + Gets the changed_block_tracking of this V1VirtualMachineInstanceStatus. + ChangedBlockTracking represents the status of the changedBlockTracking + + :return: The changed_block_tracking of this V1VirtualMachineInstanceStatus. + :rtype: V1ChangedBlockTrackingStatus + """ + return self._changed_block_tracking + + @changed_block_tracking.setter + def changed_block_tracking(self, changed_block_tracking): + """ + Sets the changed_block_tracking of this V1VirtualMachineInstanceStatus. + ChangedBlockTracking represents the status of the changedBlockTracking + + :param changed_block_tracking: The changed_block_tracking of this V1VirtualMachineInstanceStatus. + :type: V1ChangedBlockTrackingStatus + """ + + self._changed_block_tracking = changed_block_tracking + @property def conditions(self): """ @@ -270,29 +293,6 @@ def current_cpu_topology(self, current_cpu_topology): self._current_cpu_topology = current_cpu_topology - @property - def device_status(self): - """ - Gets the device_status of this V1VirtualMachineInstanceStatus. - DeviceStatus reflects the state of devices requested in spec.domain.devices. This is an optional field available only when DRA feature gate is enabled This field will only be populated if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha. - - :return: The device_status of this V1VirtualMachineInstanceStatus. - :rtype: V1DeviceStatus - """ - return self._device_status - - @device_status.setter - def device_status(self, device_status): - """ - Sets the device_status of this V1VirtualMachineInstanceStatus. - DeviceStatus reflects the state of devices requested in spec.domain.devices. This is an optional field available only when DRA feature gate is enabled This field will only be populated if one of the feature-gates GPUsWithDRA or HostDevicesWithDRA is enabled. This feature is in alpha. - - :param device_status: The device_status of this V1VirtualMachineInstanceStatus. - :type: V1DeviceStatus - """ - - self._device_status = device_status - @property def evacuation_node_name(self): """ diff --git a/kubevirt/models/v1_virtual_machine_spec.py b/kubevirt/models/v1_virtual_machine_spec.py index ba530ec0..f1c0665d 100644 --- a/kubevirt/models/v1_virtual_machine_spec.py +++ b/kubevirt/models/v1_virtual_machine_spec.py @@ -150,7 +150,7 @@ def preference(self, preference): def run_strategy(self): """ Gets the run_strategy of this V1VirtualMachineSpec. - Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running + Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running Following are allowed values: - \"Always\": VMI should always be running. - \"Halted\": VMI should never be running. - \"Manual\": VMI can be started/stopped using API endpoints. - \"RerunOnFailure\": VMI will initially be running and restarted if a failure occurs, but will not be restarted upon successful completion. - \"Once\": VMI will run once and not be restarted upon completion regardless if the completion is of phase Failure or Success. :return: The run_strategy of this V1VirtualMachineSpec. :rtype: str @@ -161,7 +161,7 @@ def run_strategy(self): def run_strategy(self, run_strategy): """ Sets the run_strategy of this V1VirtualMachineSpec. - Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running + Running state indicates the requested running state of the VirtualMachineInstance mutually exclusive with Running Following are allowed values: - \"Always\": VMI should always be running. - \"Halted\": VMI should never be running. - \"Manual\": VMI can be started/stopped using API endpoints. - \"RerunOnFailure\": VMI will initially be running and restarted if a failure occurs, but will not be restarted upon successful completion. - \"Once\": VMI will run once and not be restarted upon completion regardless if the completion is of phase Failure or Success. :param run_strategy: The run_strategy of this V1VirtualMachineSpec. :type: str diff --git a/kubevirt/models/v1_virtual_machine_status.py b/kubevirt/models/v1_virtual_machine_status.py index c701f208..294d13fb 100644 --- a/kubevirt/models/v1_virtual_machine_status.py +++ b/kubevirt/models/v1_virtual_machine_status.py @@ -31,6 +31,7 @@ class V1VirtualMachineStatus(object): and the value is json key in definition. """ swagger_types = { + 'changed_block_tracking': 'V1ChangedBlockTrackingStatus', 'conditions': 'list[V1VirtualMachineCondition]', 'created': 'bool', 'desired_generation': 'int', @@ -51,6 +52,7 @@ class V1VirtualMachineStatus(object): } attribute_map = { + 'changed_block_tracking': 'changedBlockTracking', 'conditions': 'conditions', 'created': 'created', 'desired_generation': 'desiredGeneration', @@ -70,11 +72,12 @@ class V1VirtualMachineStatus(object): 'volume_update_state': 'volumeUpdateState' } - def __init__(self, conditions=None, created=None, desired_generation=None, instancetype_ref=None, memory_dump_request=None, observed_generation=None, preference_ref=None, printable_status=None, ready=None, restore_in_progress=None, run_strategy=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None, volume_update_state=None): + def __init__(self, changed_block_tracking=None, conditions=None, created=None, desired_generation=None, instancetype_ref=None, memory_dump_request=None, observed_generation=None, preference_ref=None, printable_status=None, ready=None, restore_in_progress=None, run_strategy=None, snapshot_in_progress=None, start_failure=None, state_change_requests=None, volume_requests=None, volume_snapshot_statuses=None, volume_update_state=None): """ V1VirtualMachineStatus - a model defined in Swagger """ + self._changed_block_tracking = None self._conditions = None self._created = None self._desired_generation = None @@ -93,6 +96,8 @@ def __init__(self, conditions=None, created=None, desired_generation=None, insta self._volume_snapshot_statuses = None self._volume_update_state = None + if changed_block_tracking is not None: + self.changed_block_tracking = changed_block_tracking if conditions is not None: self.conditions = conditions if created is not None: @@ -128,6 +133,29 @@ def __init__(self, conditions=None, created=None, desired_generation=None, insta if volume_update_state is not None: self.volume_update_state = volume_update_state + @property + def changed_block_tracking(self): + """ + Gets the changed_block_tracking of this V1VirtualMachineStatus. + ChangedBlockTracking represents the status of the changedBlockTracking + + :return: The changed_block_tracking of this V1VirtualMachineStatus. + :rtype: V1ChangedBlockTrackingStatus + """ + return self._changed_block_tracking + + @changed_block_tracking.setter + def changed_block_tracking(self, changed_block_tracking): + """ + Sets the changed_block_tracking of this V1VirtualMachineStatus. + ChangedBlockTracking represents the status of the changedBlockTracking + + :param changed_block_tracking: The changed_block_tracking of this V1VirtualMachineStatus. + :type: V1ChangedBlockTrackingStatus + """ + + self._changed_block_tracking = changed_block_tracking + @property def conditions(self): """ diff --git a/kubevirt/models/v1_volume.py b/kubevirt/models/v1_volume.py index 829081fe..9a0ce12f 100644 --- a/kubevirt/models/v1_volume.py +++ b/kubevirt/models/v1_volume.py @@ -35,6 +35,7 @@ class V1Volume(object): 'cloud_init_no_cloud': 'V1CloudInitNoCloudSource', 'config_map': 'V1ConfigMapVolumeSource', 'container_disk': 'V1ContainerDiskSource', + 'container_path': 'V1ContainerPathVolumeSource', 'data_volume': 'V1DataVolumeSource', 'downward_api': 'V1DownwardAPIVolumeSource', 'downward_metrics': 'V1DownwardMetricsVolumeSource', @@ -54,6 +55,7 @@ class V1Volume(object): 'cloud_init_no_cloud': 'cloudInitNoCloud', 'config_map': 'configMap', 'container_disk': 'containerDisk', + 'container_path': 'containerPath', 'data_volume': 'dataVolume', 'downward_api': 'downwardAPI', 'downward_metrics': 'downwardMetrics', @@ -68,7 +70,7 @@ class V1Volume(object): 'sysprep': 'sysprep' } - def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, data_volume=None, downward_api=None, downward_metrics=None, empty_disk=None, ephemeral=None, host_disk=None, memory_dump=None, name='', persistent_volume_claim=None, secret=None, service_account=None, sysprep=None): + def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, config_map=None, container_disk=None, container_path=None, data_volume=None, downward_api=None, downward_metrics=None, empty_disk=None, ephemeral=None, host_disk=None, memory_dump=None, name='', persistent_volume_claim=None, secret=None, service_account=None, sysprep=None): """ V1Volume - a model defined in Swagger """ @@ -77,6 +79,7 @@ def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, confi self._cloud_init_no_cloud = None self._config_map = None self._container_disk = None + self._container_path = None self._data_volume = None self._downward_api = None self._downward_metrics = None @@ -98,6 +101,8 @@ def __init__(self, cloud_init_config_drive=None, cloud_init_no_cloud=None, confi self.config_map = config_map if container_disk is not None: self.container_disk = container_disk + if container_path is not None: + self.container_path = container_path if data_volume is not None: self.data_volume = data_volume if downward_api is not None: @@ -214,6 +219,29 @@ def container_disk(self, container_disk): self._container_disk = container_disk + @property + def container_path(self): + """ + Gets the container_path of this V1Volume. + ContainerPath exposes a path from the virt-launcher container to the VM via virtiofs. The path must correspond to an existing volumeMount in the compute container. + + :return: The container_path of this V1Volume. + :rtype: V1ContainerPathVolumeSource + """ + return self._container_path + + @container_path.setter + def container_path(self, container_path): + """ + Sets the container_path of this V1Volume. + ContainerPath exposes a path from the virt-launcher container to the VM via virtiofs. The path must correspond to an existing volumeMount in the compute container. + + :param container_path: The container_path of this V1Volume. + :type: V1ContainerPathVolumeSource + """ + + self._container_path = container_path + @property def data_volume(self): """ diff --git a/kubevirt/models/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_virtual_machine_pool.py b/kubevirt/models/v1alpha1_virtual_machine_backup.py similarity index 77% rename from kubevirt/models/v1alpha1_virtual_machine_pool.py rename to kubevirt/models/v1alpha1_virtual_machine_backup.py index 7ca74087..8ebe1f92 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool.py +++ b/kubevirt/models/v1alpha1_virtual_machine_backup.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePool(object): +class V1alpha1VirtualMachineBackup(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -34,8 +34,8 @@ class V1alpha1VirtualMachinePool(object): 'api_version': 'str', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - 'spec': 'V1alpha1VirtualMachinePoolSpec', - 'status': 'V1alpha1VirtualMachinePoolStatus' + 'spec': 'V1alpha1VirtualMachineBackupSpec', + 'status': 'V1alpha1VirtualMachineBackupStatus' } attribute_map = { @@ -48,7 +48,7 @@ class V1alpha1VirtualMachinePool(object): def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None): """ - V1alpha1VirtualMachinePool - a model defined in Swagger + V1alpha1VirtualMachineBackup - a model defined in Swagger """ self._api_version = None @@ -70,10 +70,10 @@ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachinePool. + Gets the api_version of this 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 V1alpha1VirtualMachinePool. + :return: The api_version of this V1alpha1VirtualMachineBackup. :rtype: str """ return self._api_version @@ -81,10 +81,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachinePool. + Sets the api_version of this 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 V1alpha1VirtualMachinePool. + :param api_version: The api_version of this V1alpha1VirtualMachineBackup. :type: str """ @@ -93,10 +93,10 @@ def api_version(self, api_version): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachinePool. + Gets the kind of this 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 V1alpha1VirtualMachinePool. + :return: The kind of this V1alpha1VirtualMachineBackup. :rtype: str """ return self._kind @@ -104,10 +104,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachinePool. + Sets the kind of this 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 V1alpha1VirtualMachinePool. + :param kind: The kind of this V1alpha1VirtualMachineBackup. :type: str """ @@ -116,9 +116,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachinePool. + Gets the metadata of this V1alpha1VirtualMachineBackup. - :return: The metadata of this V1alpha1VirtualMachinePool. + :return: The metadata of this V1alpha1VirtualMachineBackup. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -126,9 +126,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachinePool. + Sets the metadata of this V1alpha1VirtualMachineBackup. - :param metadata: The metadata of this V1alpha1VirtualMachinePool. + :param metadata: The metadata of this V1alpha1VirtualMachineBackup. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -137,20 +137,20 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachinePool. + Gets the spec of this V1alpha1VirtualMachineBackup. - :return: The spec of this V1alpha1VirtualMachinePool. - :rtype: V1alpha1VirtualMachinePoolSpec + :return: The spec of this V1alpha1VirtualMachineBackup. + :rtype: V1alpha1VirtualMachineBackupSpec """ return self._spec @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachinePool. + Sets the spec of this V1alpha1VirtualMachineBackup. - :param spec: The spec of this V1alpha1VirtualMachinePool. - :type: V1alpha1VirtualMachinePoolSpec + :param spec: The spec of this V1alpha1VirtualMachineBackup. + :type: V1alpha1VirtualMachineBackupSpec """ if spec is None: raise ValueError("Invalid value for `spec`, must not be `None`") @@ -160,20 +160,20 @@ def spec(self, spec): @property def status(self): """ - Gets the status of this V1alpha1VirtualMachinePool. + Gets the status of this V1alpha1VirtualMachineBackup. - :return: The status of this V1alpha1VirtualMachinePool. - :rtype: V1alpha1VirtualMachinePoolStatus + :return: The status of this V1alpha1VirtualMachineBackup. + :rtype: V1alpha1VirtualMachineBackupStatus """ return self._status @status.setter def status(self, status): """ - Sets the status of this V1alpha1VirtualMachinePool. + Sets the status of this V1alpha1VirtualMachineBackup. - :param status: The status of this V1alpha1VirtualMachinePool. - :type: V1alpha1VirtualMachinePoolStatus + :param status: The status of this V1alpha1VirtualMachineBackup. + :type: V1alpha1VirtualMachineBackupStatus """ self._status = status @@ -220,7 +220,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePool): + if not isinstance(other, V1alpha1VirtualMachineBackup): return False return self.__dict__ == other.__dict__ 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_data_volume_source_image_io.py b/kubevirt/models/v1beta1_data_volume_source_image_io.py index 222bf97e..6a70661a 100644 --- a/kubevirt/models/v1beta1_data_volume_source_image_io.py +++ b/kubevirt/models/v1beta1_data_volume_source_image_io.py @@ -33,6 +33,7 @@ class V1beta1DataVolumeSourceImageIO(object): swagger_types = { 'cert_config_map': 'str', 'disk_id': 'str', + 'insecure_skip_verify': 'bool', 'secret_ref': 'str', 'url': 'str' } @@ -40,23 +41,27 @@ class V1beta1DataVolumeSourceImageIO(object): attribute_map = { 'cert_config_map': 'certConfigMap', 'disk_id': 'diskId', + 'insecure_skip_verify': 'insecureSkipVerify', 'secret_ref': 'secretRef', 'url': 'url' } - def __init__(self, cert_config_map=None, disk_id='', secret_ref=None, url=''): + def __init__(self, cert_config_map=None, disk_id='', insecure_skip_verify=None, secret_ref=None, url=''): """ V1beta1DataVolumeSourceImageIO - a model defined in Swagger """ self._cert_config_map = None self._disk_id = None + self._insecure_skip_verify = None self._secret_ref = None self._url = None if cert_config_map is not None: self.cert_config_map = cert_config_map self.disk_id = disk_id + if insecure_skip_verify is not None: + self.insecure_skip_verify = insecure_skip_verify if secret_ref is not None: self.secret_ref = secret_ref self.url = url @@ -109,6 +114,29 @@ def disk_id(self, disk_id): self._disk_id = disk_id + @property + def insecure_skip_verify(self): + """ + Gets the insecure_skip_verify of this V1beta1DataVolumeSourceImageIO. + InsecureSkipVerify is a flag to skip certificate verification + + :return: The insecure_skip_verify of this V1beta1DataVolumeSourceImageIO. + :rtype: bool + """ + return self._insecure_skip_verify + + @insecure_skip_verify.setter + def insecure_skip_verify(self, insecure_skip_verify): + """ + Sets the insecure_skip_verify of this V1beta1DataVolumeSourceImageIO. + InsecureSkipVerify is a flag to skip certificate verification + + :param insecure_skip_verify: The insecure_skip_verify of this V1beta1DataVolumeSourceImageIO. + :type: bool + """ + + self._insecure_skip_verify = insecure_skip_verify + @property def secret_ref(self): """ diff --git a/kubevirt/models/v1beta1_data_volume_source_registry.py b/kubevirt/models/v1beta1_data_volume_source_registry.py index c6bcb75e..c8707a20 100644 --- a/kubevirt/models/v1beta1_data_volume_source_registry.py +++ b/kubevirt/models/v1beta1_data_volume_source_registry.py @@ -33,6 +33,7 @@ class V1beta1DataVolumeSourceRegistry(object): swagger_types = { 'cert_config_map': 'str', 'image_stream': 'str', + 'platform': 'V1beta1PlatformOptions', 'pull_method': 'str', 'secret_ref': 'str', 'url': 'str' @@ -41,18 +42,20 @@ class V1beta1DataVolumeSourceRegistry(object): attribute_map = { 'cert_config_map': 'certConfigMap', 'image_stream': 'imageStream', + 'platform': 'platform', 'pull_method': 'pullMethod', 'secret_ref': 'secretRef', 'url': 'url' } - def __init__(self, cert_config_map=None, image_stream=None, pull_method=None, secret_ref=None, url=None): + def __init__(self, cert_config_map=None, image_stream=None, platform=None, pull_method=None, secret_ref=None, url=None): """ V1beta1DataVolumeSourceRegistry - a model defined in Swagger """ self._cert_config_map = None self._image_stream = None + self._platform = None self._pull_method = None self._secret_ref = None self._url = None @@ -61,6 +64,8 @@ def __init__(self, cert_config_map=None, image_stream=None, pull_method=None, se self.cert_config_map = cert_config_map if image_stream is not None: self.image_stream = image_stream + if platform is not None: + self.platform = platform if pull_method is not None: self.pull_method = pull_method if secret_ref is not None: @@ -114,6 +119,29 @@ def image_stream(self, image_stream): self._image_stream = image_stream + @property + def platform(self): + """ + Gets the platform of this V1beta1DataVolumeSourceRegistry. + Platform describes the minimum runtime requirements of the image + + :return: The platform of this V1beta1DataVolumeSourceRegistry. + :rtype: V1beta1PlatformOptions + """ + return self._platform + + @platform.setter + def platform(self, platform): + """ + Sets the platform of this V1beta1DataVolumeSourceRegistry. + Platform describes the minimum runtime requirements of the image + + :param platform: The platform of this V1beta1DataVolumeSourceRegistry. + :type: V1beta1PlatformOptions + """ + + self._platform = platform + @property def pull_method(self): """ diff --git a/kubevirt/models/v1beta1_data_volume_source_vddk.py b/kubevirt/models/v1beta1_data_volume_source_vddk.py index 9a208b9a..00770890 100644 --- a/kubevirt/models/v1beta1_data_volume_source_vddk.py +++ b/kubevirt/models/v1beta1_data_volume_source_vddk.py @@ -32,6 +32,7 @@ class V1beta1DataVolumeSourceVDDK(object): """ swagger_types = { 'backing_file': 'str', + 'extra_args': 'str', 'init_image_url': 'str', 'secret_ref': 'str', 'thumbprint': 'str', @@ -41,6 +42,7 @@ class V1beta1DataVolumeSourceVDDK(object): attribute_map = { 'backing_file': 'backingFile', + 'extra_args': 'extraArgs', 'init_image_url': 'initImageURL', 'secret_ref': 'secretRef', 'thumbprint': 'thumbprint', @@ -48,12 +50,13 @@ class V1beta1DataVolumeSourceVDDK(object): 'uuid': 'uuid' } - def __init__(self, backing_file=None, init_image_url=None, secret_ref=None, thumbprint=None, url=None, uuid=None): + def __init__(self, backing_file=None, extra_args=None, init_image_url=None, secret_ref=None, thumbprint=None, url=None, uuid=None): """ V1beta1DataVolumeSourceVDDK - a model defined in Swagger """ self._backing_file = None + self._extra_args = None self._init_image_url = None self._secret_ref = None self._thumbprint = None @@ -62,6 +65,8 @@ def __init__(self, backing_file=None, init_image_url=None, secret_ref=None, thum if backing_file is not None: self.backing_file = backing_file + if extra_args is not None: + self.extra_args = extra_args if init_image_url is not None: self.init_image_url = init_image_url if secret_ref is not None: @@ -96,6 +101,29 @@ def backing_file(self, backing_file): self._backing_file = backing_file + @property + def extra_args(self): + """ + Gets the extra_args of this V1beta1DataVolumeSourceVDDK. + ExtraArgs is a reference to a ConfigMap containing extra arguments to pass directly to the VDDK library + + :return: The extra_args of this V1beta1DataVolumeSourceVDDK. + :rtype: str + """ + return self._extra_args + + @extra_args.setter + def extra_args(self, extra_args): + """ + Sets the extra_args of this V1beta1DataVolumeSourceVDDK. + ExtraArgs is a reference to a ConfigMap containing extra arguments to pass directly to the VDDK library + + :param extra_args: The extra_args of this V1beta1DataVolumeSourceVDDK. + :type: str + """ + + self._extra_args = extra_args + @property def init_image_url(self): """ diff --git a/kubevirt/models/v1beta1_device_preferences.py b/kubevirt/models/v1beta1_device_preferences.py index f13649f0..50375ed6 100644 --- a/kubevirt/models/v1beta1_device_preferences.py +++ b/kubevirt/models/v1beta1_device_preferences.py @@ -55,6 +55,7 @@ class V1beta1DevicePreferences(object): 'preferred_sound_model': 'str', 'preferred_tpm': 'V1TPMDevice', 'preferred_use_virtio_transitional': 'bool', + 'preferred_video_type': 'str', 'preferred_virtual_gpu_options': 'V1VGPUOptions' } @@ -83,10 +84,11 @@ class V1beta1DevicePreferences(object): 'preferred_sound_model': 'preferredSoundModel', 'preferred_tpm': 'preferredTPM', 'preferred_use_virtio_transitional': 'preferredUseVirtioTransitional', + 'preferred_video_type': 'preferredVideoType', 'preferred_virtual_gpu_options': 'preferredVirtualGPUOptions' } - def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_masquerade=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_panic_device_model=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_virtual_gpu_options=None): + def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoattach_input_device=None, preferred_autoattach_mem_balloon=None, preferred_autoattach_pod_interface=None, preferred_autoattach_serial_console=None, preferred_block_multi_queue=None, preferred_cdrom_bus=None, preferred_disable_hotplug=None, preferred_disk_block_size=None, preferred_disk_bus=None, preferred_disk_cache=None, preferred_disk_dedicated_io_thread=None, preferred_disk_io=None, preferred_input_bus=None, preferred_input_type=None, preferred_interface_masquerade=None, preferred_interface_model=None, preferred_lun_bus=None, preferred_network_interface_multi_queue=None, preferred_panic_device_model=None, preferred_rng=None, preferred_sound_model=None, preferred_tpm=None, preferred_use_virtio_transitional=None, preferred_video_type=None, preferred_virtual_gpu_options=None): """ V1beta1DevicePreferences - a model defined in Swagger """ @@ -115,6 +117,7 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta self._preferred_sound_model = None self._preferred_tpm = None self._preferred_use_virtio_transitional = None + self._preferred_video_type = None self._preferred_virtual_gpu_options = None if preferred_autoattach_graphics_device is not None: @@ -165,6 +168,8 @@ def __init__(self, preferred_autoattach_graphics_device=None, preferred_autoatta self.preferred_tpm = preferred_tpm if preferred_use_virtio_transitional is not None: self.preferred_use_virtio_transitional = preferred_use_virtio_transitional + if preferred_video_type is not None: + self.preferred_video_type = preferred_video_type if preferred_virtual_gpu_options is not None: self.preferred_virtual_gpu_options = preferred_virtual_gpu_options @@ -720,6 +725,29 @@ def preferred_use_virtio_transitional(self, preferred_use_virtio_transitional): self._preferred_use_virtio_transitional = preferred_use_virtio_transitional + @property + def preferred_video_type(self): + """ + Gets the preferred_video_type of this V1beta1DevicePreferences. + PreferredVideoType optionally defines the preferred type for Video devices. + + :return: The preferred_video_type of this V1beta1DevicePreferences. + :rtype: str + """ + return self._preferred_video_type + + @preferred_video_type.setter + def preferred_video_type(self, preferred_video_type): + """ + Sets the preferred_video_type of this V1beta1DevicePreferences. + PreferredVideoType optionally defines the preferred type for Video devices. + + :param preferred_video_type: The preferred_video_type of this V1beta1DevicePreferences. + :type: str + """ + + self._preferred_video_type = preferred_video_type + @property def preferred_virtual_gpu_options(self): """ diff --git a/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 index 30f5858f..f8367996 100644 --- a/kubevirt/models/v1beta1_preference_requirements.py +++ b/kubevirt/models/v1beta1_preference_requirements.py @@ -31,28 +31,56 @@ class V1beta1PreferenceRequirements(object): and the value is json key in definition. """ swagger_types = { + 'architecture': 'str', 'cpu': 'V1beta1CPUPreferenceRequirement', 'memory': 'V1beta1MemoryPreferenceRequirement' } attribute_map = { + 'architecture': 'architecture', 'cpu': 'cpu', 'memory': 'memory' } - def __init__(self, cpu=None, memory=None): + def __init__(self, architecture=None, cpu=None, memory=None): """ V1beta1PreferenceRequirements - a model defined in Swagger """ + self._architecture = None self._cpu = None self._memory = None + if architecture is not None: + self.architecture = architecture if cpu is not None: self.cpu = cpu if memory is not None: self.memory = memory + @property + def architecture(self): + """ + Gets the architecture of this V1beta1PreferenceRequirements. + Required Architecture of the VM referencing this preference + + :return: The architecture of this V1beta1PreferenceRequirements. + :rtype: str + """ + return self._architecture + + @architecture.setter + def architecture(self, architecture): + """ + Sets the architecture of this V1beta1PreferenceRequirements. + Required Architecture of the VM referencing this preference + + :param architecture: The architecture of this V1beta1PreferenceRequirements. + :type: str + """ + + self._architecture = architecture + @property def cpu(self): """ diff --git a/kubevirt/models/v1_device_attribute.py b/kubevirt/models/v1beta1_source_indication.py similarity index 58% rename from kubevirt/models/v1_device_attribute.py rename to kubevirt/models/v1beta1_source_indication.py index e461234c..b914daa9 100644 --- a/kubevirt/models/v1_device_attribute.py +++ b/kubevirt/models/v1beta1_source_indication.py @@ -16,7 +16,7 @@ import re -class V1DeviceAttribute(object): +class V1beta1SourceIndication(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,73 +31,75 @@ class V1DeviceAttribute(object): and the value is json key in definition. """ swagger_types = { - 'm_dev_uuid': 'str', - 'pci_address': 'str' + 'indication': 'str', + 'message': 'str' } attribute_map = { - 'm_dev_uuid': 'mDevUUID', - 'pci_address': 'pciAddress' + 'indication': 'indication', + 'message': 'message' } - def __init__(self, m_dev_uuid=None, pci_address=None): + def __init__(self, indication='', message=''): """ - V1DeviceAttribute - a model defined in Swagger + V1beta1SourceIndication - a model defined in Swagger """ - self._m_dev_uuid = None - self._pci_address = None + self._indication = None + self._message = None - if m_dev_uuid is not None: - self.m_dev_uuid = m_dev_uuid - if pci_address is not None: - self.pci_address = pci_address + self.indication = indication + self.message = message @property - def m_dev_uuid(self): + def indication(self): """ - Gets the m_dev_uuid of this V1DeviceAttribute. - MDevUUID is the mediated device uuid of the allocated device + Gets the indication of this V1beta1SourceIndication. + Indication is the indication type - :return: The m_dev_uuid of this V1DeviceAttribute. + :return: The indication of this V1beta1SourceIndication. :rtype: str """ - return self._m_dev_uuid + return self._indication - @m_dev_uuid.setter - def m_dev_uuid(self, m_dev_uuid): + @indication.setter + def indication(self, indication): """ - Sets the m_dev_uuid of this V1DeviceAttribute. - MDevUUID is the mediated device uuid of the allocated device + Sets the indication of this V1beta1SourceIndication. + Indication is the indication type - :param m_dev_uuid: The m_dev_uuid of this V1DeviceAttribute. + :param indication: The indication of this V1beta1SourceIndication. :type: str """ + if indication is None: + raise ValueError("Invalid value for `indication`, must not be `None`") - self._m_dev_uuid = m_dev_uuid + self._indication = indication @property - def pci_address(self): + def message(self): """ - Gets the pci_address of this V1DeviceAttribute. - PCIAddress is the PCIe bus address of the allocated device + Gets the message of this V1beta1SourceIndication. + Message provides a description message of the indication - :return: The pci_address of this V1DeviceAttribute. + :return: The message of this V1beta1SourceIndication. :rtype: str """ - return self._pci_address + return self._message - @pci_address.setter - def pci_address(self, pci_address): + @message.setter + def message(self, message): """ - Sets the pci_address of this V1DeviceAttribute. - PCIAddress is the PCIe bus address of the allocated device + Sets the message of this V1beta1SourceIndication. + Message provides a description message of the indication - :param pci_address: The pci_address of this V1DeviceAttribute. + :param message: The message of this V1beta1SourceIndication. :type: str """ + if message is None: + raise ValueError("Invalid value for `message`, must not be `None`") - self._pci_address = pci_address + self._message = message def to_dict(self): """ @@ -141,7 +143,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1DeviceAttribute): + if not isinstance(other, V1beta1SourceIndication): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1beta1_virtual_machine_clone_spec.py b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py index 86b42510..f04dad6b 100644 --- a/kubevirt/models/v1beta1_virtual_machine_clone_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_clone_spec.py @@ -38,7 +38,8 @@ class V1beta1VirtualMachineCloneSpec(object): 'patches': 'list[str]', 'source': 'K8sIoApiCoreV1TypedLocalObjectReference', 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', - 'template': 'V1beta1VirtualMachineCloneTemplateFilters' + 'template': 'V1beta1VirtualMachineCloneTemplateFilters', + 'volume_name_policy': 'str' } attribute_map = { @@ -49,10 +50,11 @@ class V1beta1VirtualMachineCloneSpec(object): 'patches': 'patches', 'source': 'source', 'target': 'target', - 'template': 'template' + 'template': 'template', + 'volume_name_policy': 'volumeNamePolicy' } - def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, patches=None, source=None, target=None, template=None): + def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresses=None, new_sm_bios_serial=None, patches=None, source=None, target=None, template=None, volume_name_policy=None): """ V1beta1VirtualMachineCloneSpec - a model defined in Swagger """ @@ -65,6 +67,7 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self._source = None self._target = None self._template = None + self._volume_name_policy = None if annotation_filters is not None: self.annotation_filters = annotation_filters @@ -81,6 +84,8 @@ def __init__(self, annotation_filters=None, label_filters=None, new_mac_addresse self.target = target if template is not None: self.template = template + if volume_name_policy is not None: + self.volume_name_policy = volume_name_policy @property def annotation_filters(self): @@ -268,6 +273,29 @@ def template(self, template): self._template = template + @property + def volume_name_policy(self): + """ + Gets the volume_name_policy of this V1beta1VirtualMachineCloneSpec. + VolumeNamePolicy defines how to handle volume naming during the clone operation + + :return: The volume_name_policy of this V1beta1VirtualMachineCloneSpec. + :rtype: str + """ + return self._volume_name_policy + + @volume_name_policy.setter + def volume_name_policy(self, volume_name_policy): + """ + Sets the volume_name_policy of this V1beta1VirtualMachineCloneSpec. + VolumeNamePolicy defines how to handle volume naming during the clone operation + + :param volume_name_policy: The volume_name_policy of this V1beta1VirtualMachineCloneSpec. + :type: str + """ + + self._volume_name_policy = volume_name_policy + def to_dict(self): """ Returns the model properties as a dict diff --git a/kubevirt/models/v1_device_status_info.py b/kubevirt/models/v1beta1_virtual_machine_export_backup.py similarity index 59% rename from kubevirt/models/v1_device_status_info.py rename to kubevirt/models/v1beta1_virtual_machine_export_backup.py index 2ff76667..c9980655 100644 --- a/kubevirt/models/v1_device_status_info.py +++ b/kubevirt/models/v1beta1_virtual_machine_export_backup.py @@ -16,7 +16,7 @@ import re -class V1DeviceStatusInfo(object): +class V1beta1VirtualMachineExportBackup(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,57 +31,55 @@ class V1DeviceStatusInfo(object): and the value is json key in definition. """ swagger_types = { - 'device_resource_claim_status': 'V1DeviceResourceClaimStatus', + 'endpoints': 'list[V1beta1VirtualMachineExportBackupEndpoint]', 'name': 'str' } attribute_map = { - 'device_resource_claim_status': 'deviceResourceClaimStatus', + 'endpoints': 'endpoints', 'name': 'name' } - def __init__(self, device_resource_claim_status=None, name=''): + def __init__(self, endpoints=None, name=''): """ - V1DeviceStatusInfo - a model defined in Swagger + V1beta1VirtualMachineExportBackup - a model defined in Swagger """ - self._device_resource_claim_status = None + self._endpoints = None self._name = None - if device_resource_claim_status is not None: - self.device_resource_claim_status = device_resource_claim_status + if endpoints is not None: + self.endpoints = endpoints self.name = name @property - def device_resource_claim_status(self): + def endpoints(self): """ - Gets the device_resource_claim_status of this V1DeviceStatusInfo. - DeviceResourceClaimStatus reflects the DRA related information for the device + Gets the endpoints of this V1beta1VirtualMachineExportBackup. - :return: The device_resource_claim_status of this V1DeviceStatusInfo. - :rtype: V1DeviceResourceClaimStatus + :return: The endpoints of this V1beta1VirtualMachineExportBackup. + :rtype: list[V1beta1VirtualMachineExportBackupEndpoint] """ - return self._device_resource_claim_status + return self._endpoints - @device_resource_claim_status.setter - def device_resource_claim_status(self, device_resource_claim_status): + @endpoints.setter + def endpoints(self, endpoints): """ - Sets the device_resource_claim_status of this V1DeviceStatusInfo. - DeviceResourceClaimStatus reflects the DRA related information for the device + Sets the endpoints of this V1beta1VirtualMachineExportBackup. - :param device_resource_claim_status: The device_resource_claim_status of this V1DeviceStatusInfo. - :type: V1DeviceResourceClaimStatus + :param endpoints: The endpoints of this V1beta1VirtualMachineExportBackup. + :type: list[V1beta1VirtualMachineExportBackupEndpoint] """ - self._device_resource_claim_status = device_resource_claim_status + self._endpoints = endpoints @property def name(self): """ - Gets the name of this V1DeviceStatusInfo. - Name of the device as specified in spec.domain.devices.gpus.name or spec.domain.devices.hostDevices.name + Gets the name of this V1beta1VirtualMachineExportBackup. + Name is the name of the exported volume - :return: The name of this V1DeviceStatusInfo. + :return: The name of this V1beta1VirtualMachineExportBackup. :rtype: str """ return self._name @@ -89,10 +87,10 @@ def name(self): @name.setter def name(self, name): """ - Sets the name of this V1DeviceStatusInfo. - Name of the device as specified in spec.domain.devices.gpus.name or spec.domain.devices.hostDevices.name + Sets the name of this V1beta1VirtualMachineExportBackup. + Name is the name of the exported volume - :param name: The name of this V1DeviceStatusInfo. + :param name: The name of this V1beta1VirtualMachineExportBackup. :type: str """ if name is None: @@ -142,7 +140,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1DeviceStatusInfo): + if not isinstance(other, V1beta1VirtualMachineExportBackup): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1beta1_virtual_machine_export_backup_endpoint.py b/kubevirt/models/v1beta1_virtual_machine_export_backup_endpoint.py new file mode 100644 index 00000000..9681b5c9 --- /dev/null +++ b/kubevirt/models/v1beta1_virtual_machine_export_backup_endpoint.py @@ -0,0 +1,155 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from pprint import pformat +from six import iteritems +import re + + +class V1beta1VirtualMachineExportBackupEndpoint(object): + """ + NOTE: This class is auto generated by the swagger code generator program. + Do not edit the class manually. + """ + + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'endpoint': 'str', + 'url': 'str' + } + + attribute_map = { + 'endpoint': 'endpoint', + 'url': 'url' + } + + def __init__(self, endpoint='', url=''): + """ + V1beta1VirtualMachineExportBackupEndpoint - a model defined in Swagger + """ + + self._endpoint = None + self._url = None + + self.endpoint = endpoint + self.url = url + + @property + def endpoint(self): + """ + Gets the endpoint of this V1beta1VirtualMachineExportBackupEndpoint. + Endpoint is the endpoint of the backup export at the specified URL + + :return: The endpoint of this V1beta1VirtualMachineExportBackupEndpoint. + :rtype: str + """ + return self._endpoint + + @endpoint.setter + def endpoint(self, endpoint): + """ + Sets the endpoint of this V1beta1VirtualMachineExportBackupEndpoint. + Endpoint is the endpoint of the backup export at the specified URL + + :param endpoint: The endpoint of this V1beta1VirtualMachineExportBackupEndpoint. + :type: str + """ + if endpoint is None: + raise ValueError("Invalid value for `endpoint`, must not be `None`") + + self._endpoint = endpoint + + @property + def url(self): + """ + Gets the url of this V1beta1VirtualMachineExportBackupEndpoint. + Url is the url that contains the volume in the format specified + + :return: The url of this V1beta1VirtualMachineExportBackupEndpoint. + :rtype: str + """ + return self._url + + @url.setter + def url(self, url): + """ + Sets the url of this V1beta1VirtualMachineExportBackupEndpoint. + Url is the url that contains the volume in the format specified + + :param url: The url of this V1beta1VirtualMachineExportBackupEndpoint. + :type: str + """ + if url is None: + raise ValueError("Invalid value for `url`, must not be `None`") + + self._url = url + + def to_dict(self): + """ + Returns the model properties as a dict + """ + result = {} + + for attr, _ in iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + + return result + + def to_str(self): + """ + Returns the string representation of the model + """ + return pformat(self.to_dict()) + + def __repr__(self): + """ + For `print` and `pprint` + """ + return self.to_str() + + def __eq__(self, other): + """ + Returns true if both objects are equal + """ + if not isinstance(other, V1beta1VirtualMachineExportBackupEndpoint): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """ + Returns true if both objects are not equal + """ + return not self == other diff --git a/kubevirt/models/v1beta1_virtual_machine_export_link.py b/kubevirt/models/v1beta1_virtual_machine_export_link.py index 4825fc77..a86f7937 100644 --- a/kubevirt/models/v1beta1_virtual_machine_export_link.py +++ b/kubevirt/models/v1beta1_virtual_machine_export_link.py @@ -31,32 +31,60 @@ class V1beta1VirtualMachineExportLink(object): and the value is json key in definition. """ swagger_types = { + 'backups': 'list[V1beta1VirtualMachineExportBackup]', 'cert': 'str', 'manifests': 'list[V1beta1VirtualMachineExportManifest]', 'volumes': 'list[V1beta1VirtualMachineExportVolume]' } attribute_map = { + 'backups': 'backups', 'cert': 'cert', 'manifests': 'manifests', 'volumes': 'volumes' } - def __init__(self, cert='', manifests=None, volumes=None): + def __init__(self, backups=None, cert='', manifests=None, volumes=None): """ V1beta1VirtualMachineExportLink - a model defined in Swagger """ + self._backups = None self._cert = None self._manifests = None self._volumes = None + if backups is not None: + self.backups = backups self.cert = cert if manifests is not None: self.manifests = manifests if volumes is not None: self.volumes = volumes + @property + def backups(self): + """ + Gets the backups of this V1beta1VirtualMachineExportLink. + Backups is a list of available backups for the export + + :return: The backups of this V1beta1VirtualMachineExportLink. + :rtype: list[V1beta1VirtualMachineExportBackup] + """ + return self._backups + + @backups.setter + def backups(self, backups): + """ + Sets the backups of this V1beta1VirtualMachineExportLink. + Backups is a list of available backups for the export + + :param backups: The backups of this V1beta1VirtualMachineExportLink. + :type: list[V1beta1VirtualMachineExportBackup] + """ + + self._backups = backups + @property def cert(self): """ diff --git a/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py b/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py index 54ae8a98..798f0713 100644 --- a/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.py @@ -35,6 +35,7 @@ class V1beta1VirtualMachineInstancetypeSpec(object): 'cpu': 'V1beta1CPUInstancetype', 'gpus': 'list[V1GPU]', 'host_devices': 'list[V1HostDevice]', + 'io_threads': 'V1DiskIOThreads', 'io_threads_policy': 'str', 'launch_security': 'V1LaunchSecurity', 'memory': 'V1beta1MemoryInstancetype', @@ -47,6 +48,7 @@ class V1beta1VirtualMachineInstancetypeSpec(object): 'cpu': 'cpu', 'gpus': 'gpus', 'host_devices': 'hostDevices', + 'io_threads': 'ioThreads', 'io_threads_policy': 'ioThreadsPolicy', 'launch_security': 'launchSecurity', 'memory': 'memory', @@ -54,7 +56,7 @@ class V1beta1VirtualMachineInstancetypeSpec(object): 'scheduler_name': 'schedulerName' } - def __init__(self, annotations=None, cpu=None, gpus=None, host_devices=None, io_threads_policy=None, launch_security=None, memory=None, node_selector=None, scheduler_name=None): + def __init__(self, annotations=None, cpu=None, gpus=None, host_devices=None, io_threads=None, io_threads_policy=None, launch_security=None, memory=None, node_selector=None, scheduler_name=None): """ V1beta1VirtualMachineInstancetypeSpec - a model defined in Swagger """ @@ -63,6 +65,7 @@ def __init__(self, annotations=None, cpu=None, gpus=None, host_devices=None, io_ self._cpu = None self._gpus = None self._host_devices = None + self._io_threads = None self._io_threads_policy = None self._launch_security = None self._memory = None @@ -76,6 +79,8 @@ def __init__(self, annotations=None, cpu=None, gpus=None, host_devices=None, io_ self.gpus = gpus if host_devices is not None: self.host_devices = host_devices + if io_threads is not None: + self.io_threads = io_threads if io_threads_policy is not None: self.io_threads_policy = io_threads_policy if launch_security is not None: @@ -180,6 +185,29 @@ def host_devices(self, host_devices): self._host_devices = host_devices + @property + def io_threads(self): + """ + Gets the io_threads of this V1beta1VirtualMachineInstancetypeSpec. + Optionally specifies the IOThreads options to be used by the instancetype. + + :return: The io_threads of this V1beta1VirtualMachineInstancetypeSpec. + :rtype: V1DiskIOThreads + """ + return self._io_threads + + @io_threads.setter + def io_threads(self, io_threads): + """ + Sets the io_threads of this V1beta1VirtualMachineInstancetypeSpec. + Optionally specifies the IOThreads options to be used by the instancetype. + + :param io_threads: The io_threads of this V1beta1VirtualMachineInstancetypeSpec. + :type: V1DiskIOThreads + """ + + self._io_threads = io_threads + @property def io_threads_policy(self): """ diff --git a/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/v1alpha1_virtual_machine_pool_condition.py b/kubevirt/models/v1beta1_virtual_machine_pool_condition.py similarity index 74% rename from kubevirt/models/v1alpha1_virtual_machine_pool_condition.py rename to kubevirt/models/v1beta1_virtual_machine_pool_condition.py index d43030c2..ba0e106c 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_condition.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_condition.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolCondition(object): +class V1beta1VirtualMachinePoolCondition(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -46,7 +46,7 @@ class V1alpha1VirtualMachinePoolCondition(object): def __init__(self, message=None, reason=None, status='', type=''): """ - V1alpha1VirtualMachinePoolCondition - a model defined in Swagger + V1beta1VirtualMachinePoolCondition - a model defined in Swagger """ self._message = None @@ -64,9 +64,9 @@ def __init__(self, message=None, reason=None, status='', type=''): @property def message(self): """ - Gets the message of this V1alpha1VirtualMachinePoolCondition. + Gets the message of this V1beta1VirtualMachinePoolCondition. - :return: The message of this V1alpha1VirtualMachinePoolCondition. + :return: The message of this V1beta1VirtualMachinePoolCondition. :rtype: str """ return self._message @@ -74,9 +74,9 @@ def message(self): @message.setter def message(self, message): """ - Sets the message of this V1alpha1VirtualMachinePoolCondition. + Sets the message of this V1beta1VirtualMachinePoolCondition. - :param message: The message of this V1alpha1VirtualMachinePoolCondition. + :param message: The message of this V1beta1VirtualMachinePoolCondition. :type: str """ @@ -85,9 +85,9 @@ def message(self, message): @property def reason(self): """ - Gets the reason of this V1alpha1VirtualMachinePoolCondition. + Gets the reason of this V1beta1VirtualMachinePoolCondition. - :return: The reason of this V1alpha1VirtualMachinePoolCondition. + :return: The reason of this V1beta1VirtualMachinePoolCondition. :rtype: str """ return self._reason @@ -95,9 +95,9 @@ def reason(self): @reason.setter def reason(self, reason): """ - Sets the reason of this V1alpha1VirtualMachinePoolCondition. + Sets the reason of this V1beta1VirtualMachinePoolCondition. - :param reason: The reason of this V1alpha1VirtualMachinePoolCondition. + :param reason: The reason of this V1beta1VirtualMachinePoolCondition. :type: str """ @@ -106,9 +106,9 @@ def reason(self, reason): @property def status(self): """ - Gets the status of this V1alpha1VirtualMachinePoolCondition. + Gets the status of this V1beta1VirtualMachinePoolCondition. - :return: The status of this V1alpha1VirtualMachinePoolCondition. + :return: The status of this V1beta1VirtualMachinePoolCondition. :rtype: str """ return self._status @@ -116,9 +116,9 @@ def status(self): @status.setter def status(self, status): """ - Sets the status of this V1alpha1VirtualMachinePoolCondition. + Sets the status of this V1beta1VirtualMachinePoolCondition. - :param status: The status of this V1alpha1VirtualMachinePoolCondition. + :param status: The status of this V1beta1VirtualMachinePoolCondition. :type: str """ if status is None: @@ -129,9 +129,9 @@ def status(self, status): @property def type(self): """ - Gets the type of this V1alpha1VirtualMachinePoolCondition. + Gets the type of this V1beta1VirtualMachinePoolCondition. - :return: The type of this V1alpha1VirtualMachinePoolCondition. + :return: The type of this V1beta1VirtualMachinePoolCondition. :rtype: str """ return self._type @@ -139,9 +139,9 @@ def type(self): @type.setter def type(self, type): """ - Sets the type of this V1alpha1VirtualMachinePoolCondition. + Sets the type of this V1beta1VirtualMachinePoolCondition. - :param type: The type of this V1alpha1VirtualMachinePoolCondition. + :param type: The type of this V1beta1VirtualMachinePoolCondition. :type: str """ if type is None: @@ -191,7 +191,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolCondition): + if not isinstance(other, V1beta1VirtualMachinePoolCondition): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_list.py b/kubevirt/models/v1beta1_virtual_machine_pool_list.py similarity index 78% rename from kubevirt/models/v1alpha1_virtual_machine_pool_list.py rename to kubevirt/models/v1beta1_virtual_machine_pool_list.py index c2ecacdb..40ad453e 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_list.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_list.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolList(object): +class V1beta1VirtualMachinePoolList(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -32,7 +32,7 @@ class V1alpha1VirtualMachinePoolList(object): """ swagger_types = { 'api_version': 'str', - 'items': 'list[V1alpha1VirtualMachinePool]', + 'items': 'list[V1beta1VirtualMachinePool]', 'kind': 'str', 'metadata': 'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -46,7 +46,7 @@ class V1alpha1VirtualMachinePoolList(object): def __init__(self, api_version=None, items=None, kind=None, metadata=None): """ - V1alpha1VirtualMachinePoolList - a model defined in Swagger + V1beta1VirtualMachinePoolList - a model defined in Swagger """ self._api_version = None @@ -65,10 +65,10 @@ def __init__(self, api_version=None, items=None, kind=None, metadata=None): @property def api_version(self): """ - Gets the api_version of this V1alpha1VirtualMachinePoolList. + Gets the api_version of this V1beta1VirtualMachinePoolList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :return: The api_version of this V1alpha1VirtualMachinePoolList. + :return: The api_version of this V1beta1VirtualMachinePoolList. :rtype: str """ return self._api_version @@ -76,10 +76,10 @@ def api_version(self): @api_version.setter def api_version(self, api_version): """ - Sets the api_version of this V1alpha1VirtualMachinePoolList. + Sets the api_version of this V1beta1VirtualMachinePoolList. APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources - :param api_version: The api_version of this V1alpha1VirtualMachinePoolList. + :param api_version: The api_version of this V1beta1VirtualMachinePoolList. :type: str """ @@ -88,20 +88,20 @@ def api_version(self, api_version): @property def items(self): """ - Gets the items of this V1alpha1VirtualMachinePoolList. + Gets the items of this V1beta1VirtualMachinePoolList. - :return: The items of this V1alpha1VirtualMachinePoolList. - :rtype: list[V1alpha1VirtualMachinePool] + :return: The items of this V1beta1VirtualMachinePoolList. + :rtype: list[V1beta1VirtualMachinePool] """ return self._items @items.setter def items(self, items): """ - Sets the items of this V1alpha1VirtualMachinePoolList. + Sets the items of this V1beta1VirtualMachinePoolList. - :param items: The items of this V1alpha1VirtualMachinePoolList. - :type: list[V1alpha1VirtualMachinePool] + :param items: The items of this V1beta1VirtualMachinePoolList. + :type: list[V1beta1VirtualMachinePool] """ if items is None: raise ValueError("Invalid value for `items`, must not be `None`") @@ -111,10 +111,10 @@ def items(self, items): @property def kind(self): """ - Gets the kind of this V1alpha1VirtualMachinePoolList. + Gets the kind of this V1beta1VirtualMachinePoolList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :return: The kind of this V1alpha1VirtualMachinePoolList. + :return: The kind of this V1beta1VirtualMachinePoolList. :rtype: str """ return self._kind @@ -122,10 +122,10 @@ def kind(self): @kind.setter def kind(self, kind): """ - Sets the kind of this V1alpha1VirtualMachinePoolList. + Sets the kind of this V1beta1VirtualMachinePoolList. Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds - :param kind: The kind of this V1alpha1VirtualMachinePoolList. + :param kind: The kind of this V1beta1VirtualMachinePoolList. :type: str """ @@ -134,9 +134,9 @@ def kind(self, kind): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachinePoolList. + Gets the metadata of this V1beta1VirtualMachinePoolList. - :return: The metadata of this V1alpha1VirtualMachinePoolList. + :return: The metadata of this V1beta1VirtualMachinePoolList. :rtype: K8sIoApimachineryPkgApisMetaV1ListMeta """ return self._metadata @@ -144,9 +144,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachinePoolList. + Sets the metadata of this V1beta1VirtualMachinePoolList. - :param metadata: The metadata of this V1alpha1VirtualMachinePoolList. + :param metadata: The metadata of this V1beta1VirtualMachinePoolList. :type: K8sIoApimachineryPkgApisMetaV1ListMeta """ @@ -194,7 +194,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolList): + if not isinstance(other, V1beta1VirtualMachinePoolList): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.py b/kubevirt/models/v1beta1_virtual_machine_pool_name_generation.py similarity index 80% rename from kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.py rename to kubevirt/models/v1beta1_virtual_machine_pool_name_generation.py index 33c346a8..2a28ae87 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_name_generation.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolNameGeneration(object): +class V1beta1VirtualMachinePoolNameGeneration(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1VirtualMachinePoolNameGeneration(object): def __init__(self, append_index_to_config_map_refs=None, append_index_to_secret_refs=None): """ - V1alpha1VirtualMachinePoolNameGeneration - a model defined in Swagger + V1beta1VirtualMachinePoolNameGeneration - a model defined in Swagger """ self._append_index_to_config_map_refs = None @@ -56,9 +56,9 @@ def __init__(self, append_index_to_config_map_refs=None, append_index_to_secret_ @property def append_index_to_config_map_refs(self): """ - Gets the append_index_to_config_map_refs of this V1alpha1VirtualMachinePoolNameGeneration. + Gets the append_index_to_config_map_refs of this V1beta1VirtualMachinePoolNameGeneration. - :return: The append_index_to_config_map_refs of this V1alpha1VirtualMachinePoolNameGeneration. + :return: The append_index_to_config_map_refs of this V1beta1VirtualMachinePoolNameGeneration. :rtype: bool """ return self._append_index_to_config_map_refs @@ -66,9 +66,9 @@ def append_index_to_config_map_refs(self): @append_index_to_config_map_refs.setter def append_index_to_config_map_refs(self, append_index_to_config_map_refs): """ - Sets the append_index_to_config_map_refs of this V1alpha1VirtualMachinePoolNameGeneration. + Sets the append_index_to_config_map_refs of this V1beta1VirtualMachinePoolNameGeneration. - :param append_index_to_config_map_refs: The append_index_to_config_map_refs of this V1alpha1VirtualMachinePoolNameGeneration. + :param append_index_to_config_map_refs: The append_index_to_config_map_refs of this V1beta1VirtualMachinePoolNameGeneration. :type: bool """ @@ -77,9 +77,9 @@ def append_index_to_config_map_refs(self, append_index_to_config_map_refs): @property def append_index_to_secret_refs(self): """ - Gets the append_index_to_secret_refs of this V1alpha1VirtualMachinePoolNameGeneration. + Gets the append_index_to_secret_refs of this V1beta1VirtualMachinePoolNameGeneration. - :return: The append_index_to_secret_refs of this V1alpha1VirtualMachinePoolNameGeneration. + :return: The append_index_to_secret_refs of this V1beta1VirtualMachinePoolNameGeneration. :rtype: bool """ return self._append_index_to_secret_refs @@ -87,9 +87,9 @@ def append_index_to_secret_refs(self): @append_index_to_secret_refs.setter def append_index_to_secret_refs(self, append_index_to_secret_refs): """ - Sets the append_index_to_secret_refs of this V1alpha1VirtualMachinePoolNameGeneration. + Sets the append_index_to_secret_refs of this V1beta1VirtualMachinePoolNameGeneration. - :param append_index_to_secret_refs: The append_index_to_secret_refs of this V1alpha1VirtualMachinePoolNameGeneration. + :param append_index_to_secret_refs: The append_index_to_secret_refs of this V1beta1VirtualMachinePoolNameGeneration. :type: bool """ @@ -137,7 +137,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolNameGeneration): + if not isinstance(other, V1beta1VirtualMachinePoolNameGeneration): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/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/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py b/kubevirt/models/v1beta1_virtual_machine_pool_proactive_update_strategy.py similarity index 74% rename from kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py rename to kubevirt/models/v1beta1_virtual_machine_pool_proactive_update_strategy.py index 797da26f..8e0b8883 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_proactive_update_strategy.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolProactiveScaleInStrategy(object): +class V1beta1VirtualMachinePoolProactiveUpdateStrategy(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1alpha1VirtualMachinePoolProactiveScaleInStrategy(object): and the value is json key in definition. """ swagger_types = { - 'selection_policy': 'V1alpha1VirtualMachinePoolSelectionPolicy' + 'selection_policy': 'V1beta1VirtualMachinePoolSelectionPolicy' } attribute_map = { @@ -40,7 +40,7 @@ class V1alpha1VirtualMachinePoolProactiveScaleInStrategy(object): def __init__(self, selection_policy=None): """ - V1alpha1VirtualMachinePoolProactiveScaleInStrategy - a model defined in Swagger + V1beta1VirtualMachinePoolProactiveUpdateStrategy - a model defined in Swagger """ self._selection_policy = None @@ -51,22 +51,22 @@ def __init__(self, selection_policy=None): @property def selection_policy(self): """ - Gets the selection_policy of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. - SelectionPolicy defines the priority in which VM instances are selected for proactive scale-in Defaults to \"Random\" base policy when no SelectionPolicy is configured + 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 V1alpha1VirtualMachinePoolProactiveScaleInStrategy. - :rtype: V1alpha1VirtualMachinePoolSelectionPolicy + :return: The selection_policy of this V1beta1VirtualMachinePoolProactiveUpdateStrategy. + :rtype: V1beta1VirtualMachinePoolSelectionPolicy """ return self._selection_policy @selection_policy.setter def selection_policy(self, selection_policy): """ - Sets the selection_policy of this V1alpha1VirtualMachinePoolProactiveScaleInStrategy. - SelectionPolicy defines the priority in which VM instances are selected for proactive scale-in Defaults to \"Random\" base policy when no SelectionPolicy is configured + 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 V1alpha1VirtualMachinePoolProactiveScaleInStrategy. - :type: V1alpha1VirtualMachinePoolSelectionPolicy + :param selection_policy: The selection_policy of this V1beta1VirtualMachinePoolProactiveUpdateStrategy. + :type: V1beta1VirtualMachinePoolSelectionPolicy """ self._selection_policy = selection_policy @@ -113,7 +113,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolProactiveScaleInStrategy): + if not isinstance(other, V1beta1VirtualMachinePoolProactiveUpdateStrategy): return False return self.__dict__ == other.__dict__ 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/v1_device_status.py b/kubevirt/models/v1beta1_virtual_machine_pool_selection_policy.py similarity index 52% rename from kubevirt/models/v1_device_status.py rename to kubevirt/models/v1beta1_virtual_machine_pool_selection_policy.py index 9c14822e..055fce8d 100644 --- a/kubevirt/models/v1_device_status.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_selection_policy.py @@ -16,7 +16,7 @@ import re -class V1DeviceStatus(object): +class V1beta1VirtualMachinePoolSelectionPolicy(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,73 +31,73 @@ class V1DeviceStatus(object): and the value is json key in definition. """ swagger_types = { - 'gpu_statuses': 'list[V1DeviceStatusInfo]', - 'host_device_statuses': 'list[V1DeviceStatusInfo]' + 'selectors': 'V1beta1VirtualMachinePoolSelectors', + 'sort_policy': 'str' } attribute_map = { - 'gpu_statuses': 'gpuStatuses', - 'host_device_statuses': 'hostDeviceStatuses' + 'selectors': 'selectors', + 'sort_policy': 'sortPolicy' } - def __init__(self, gpu_statuses=None, host_device_statuses=None): + def __init__(self, selectors=None, sort_policy=None): """ - V1DeviceStatus - a model defined in Swagger + V1beta1VirtualMachinePoolSelectionPolicy - a model defined in Swagger """ - self._gpu_statuses = None - self._host_device_statuses = None + self._selectors = None + self._sort_policy = None - if gpu_statuses is not None: - self.gpu_statuses = gpu_statuses - if host_device_statuses is not None: - self.host_device_statuses = host_device_statuses + if selectors is not None: + self.selectors = selectors + if sort_policy is not None: + self.sort_policy = sort_policy @property - def gpu_statuses(self): + def selectors(self): """ - Gets the gpu_statuses of this V1DeviceStatus. - GPUStatuses reflects the state of GPUs requested in spec.domain.devices.gpus + Gets the selectors of this V1beta1VirtualMachinePoolSelectionPolicy. + Selectors is a list of selection policies. - :return: The gpu_statuses of this V1DeviceStatus. - :rtype: list[V1DeviceStatusInfo] + :return: The selectors of this V1beta1VirtualMachinePoolSelectionPolicy. + :rtype: V1beta1VirtualMachinePoolSelectors """ - return self._gpu_statuses + return self._selectors - @gpu_statuses.setter - def gpu_statuses(self, gpu_statuses): + @selectors.setter + def selectors(self, selectors): """ - Sets the gpu_statuses of this V1DeviceStatus. - GPUStatuses reflects the state of GPUs requested in spec.domain.devices.gpus + Sets the selectors of this V1beta1VirtualMachinePoolSelectionPolicy. + Selectors is a list of selection policies. - :param gpu_statuses: The gpu_statuses of this V1DeviceStatus. - :type: list[V1DeviceStatusInfo] + :param selectors: The selectors of this V1beta1VirtualMachinePoolSelectionPolicy. + :type: V1beta1VirtualMachinePoolSelectors """ - self._gpu_statuses = gpu_statuses + self._selectors = selectors @property - def host_device_statuses(self): + def sort_policy(self): """ - Gets the host_device_statuses of this V1DeviceStatus. - HostDeviceStatuses reflects the state of GPUs requested in spec.domain.devices.hostDevices DRA + Gets the sort_policy of this V1beta1VirtualMachinePoolSelectionPolicy. + SortPolicy is a catch-all policy [AscendingOrder|DescendingOrder|Newest|Oldest|Random] - :return: The host_device_statuses of this V1DeviceStatus. - :rtype: list[V1DeviceStatusInfo] + :return: The sort_policy of this V1beta1VirtualMachinePoolSelectionPolicy. + :rtype: str """ - return self._host_device_statuses + return self._sort_policy - @host_device_statuses.setter - def host_device_statuses(self, host_device_statuses): + @sort_policy.setter + def sort_policy(self, sort_policy): """ - Sets the host_device_statuses of this V1DeviceStatus. - HostDeviceStatuses reflects the state of GPUs requested in spec.domain.devices.hostDevices DRA + Sets the sort_policy of this V1beta1VirtualMachinePoolSelectionPolicy. + SortPolicy is a catch-all policy [AscendingOrder|DescendingOrder|Newest|Oldest|Random] - :param host_device_statuses: The host_device_statuses of this V1DeviceStatus. - :type: list[V1DeviceStatusInfo] + :param sort_policy: The sort_policy of this V1beta1VirtualMachinePoolSelectionPolicy. + :type: str """ - self._host_device_statuses = host_device_statuses + self._sort_policy = sort_policy def to_dict(self): """ @@ -141,7 +141,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1DeviceStatus): + if not isinstance(other, V1beta1VirtualMachinePoolSelectionPolicy): return False return self.__dict__ == other.__dict__ 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/v1alpha1_virtual_machine_pool_spec.py b/kubevirt/models/v1beta1_virtual_machine_pool_spec.py similarity index 59% rename from kubevirt/models/v1alpha1_virtual_machine_pool_spec.py rename to kubevirt/models/v1beta1_virtual_machine_pool_spec.py index 69002599..e1e019f4 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolSpec(object): +class V1beta1VirtualMachinePoolSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,38 +31,46 @@ class V1alpha1VirtualMachinePoolSpec(object): and the value is json key in definition. """ swagger_types = { + 'autohealing': 'V1beta1VirtualMachinePoolAutohealingStrategy', 'max_unavailable': 'K8sIoApimachineryPkgUtilIntstrIntOrString', - 'name_generation': 'V1alpha1VirtualMachinePoolNameGeneration', + 'name_generation': 'V1beta1VirtualMachinePoolNameGeneration', 'paused': 'bool', 'replicas': 'int', - 'scale_in_strategy': 'V1alpha1VirtualMachinePoolScaleInStrategy', + 'scale_in_strategy': 'V1beta1VirtualMachinePoolScaleInStrategy', 'selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector', - 'virtual_machine_template': 'V1alpha1VirtualMachineTemplateSpec' + '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, max_unavailable=None, name_generation=None, paused=None, replicas=None, scale_in_strategy=None, selector=None, virtual_machine_template=None): + def __init__(self, autohealing=None, max_unavailable=None, name_generation=None, paused=None, replicas=None, scale_in_strategy=None, selector=None, update_strategy=None, virtual_machine_template=None): """ - V1alpha1VirtualMachinePoolSpec - a model defined in Swagger + 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: @@ -74,15 +82,40 @@ def __init__(self, max_unavailable=None, name_generation=None, paused=None, repl if scale_in_strategy is not None: self.scale_in_strategy = scale_in_strategy self.selector = selector + if update_strategy is not None: + self.update_strategy = update_strategy self.virtual_machine_template = virtual_machine_template + @property + 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 V1alpha1VirtualMachinePoolSpec. + Gets the max_unavailable of this V1beta1VirtualMachinePoolSpec. (Defaults to 100%) Integer or string pointer, that when set represents either a percentage or number of VMs in a pool that can be unavailable (ready condition false) at a time during automated update. - :return: The max_unavailable of this V1alpha1VirtualMachinePoolSpec. + :return: The max_unavailable of this V1beta1VirtualMachinePoolSpec. :rtype: K8sIoApimachineryPkgUtilIntstrIntOrString """ return self._max_unavailable @@ -90,10 +123,10 @@ def max_unavailable(self): @max_unavailable.setter def max_unavailable(self, max_unavailable): """ - Sets the max_unavailable of this V1alpha1VirtualMachinePoolSpec. + Sets the max_unavailable of this V1beta1VirtualMachinePoolSpec. (Defaults to 100%) Integer or string pointer, that when set represents either a percentage or number of VMs in a pool that can be unavailable (ready condition false) at a time during automated update. - :param max_unavailable: The max_unavailable of this V1alpha1VirtualMachinePoolSpec. + :param max_unavailable: The max_unavailable of this V1beta1VirtualMachinePoolSpec. :type: K8sIoApimachineryPkgUtilIntstrIntOrString """ @@ -102,22 +135,22 @@ def max_unavailable(self, max_unavailable): @property def name_generation(self): """ - Gets the name_generation of this V1alpha1VirtualMachinePoolSpec. + Gets the name_generation of this V1beta1VirtualMachinePoolSpec. Options for the name generation in a pool. - :return: The name_generation of this V1alpha1VirtualMachinePoolSpec. - :rtype: V1alpha1VirtualMachinePoolNameGeneration + :return: The name_generation of this V1beta1VirtualMachinePoolSpec. + :rtype: V1beta1VirtualMachinePoolNameGeneration """ return self._name_generation @name_generation.setter def name_generation(self, name_generation): """ - Sets the name_generation of this V1alpha1VirtualMachinePoolSpec. + Sets the name_generation of this V1beta1VirtualMachinePoolSpec. Options for the name generation in a pool. - :param name_generation: The name_generation of this V1alpha1VirtualMachinePoolSpec. - :type: V1alpha1VirtualMachinePoolNameGeneration + :param name_generation: The name_generation of this V1beta1VirtualMachinePoolSpec. + :type: V1beta1VirtualMachinePoolNameGeneration """ self._name_generation = name_generation @@ -125,10 +158,10 @@ def name_generation(self, name_generation): @property def paused(self): """ - Gets the paused of this V1alpha1VirtualMachinePoolSpec. + Gets the paused of this V1beta1VirtualMachinePoolSpec. Indicates that the pool is paused. - :return: The paused of this V1alpha1VirtualMachinePoolSpec. + :return: The paused of this V1beta1VirtualMachinePoolSpec. :rtype: bool """ return self._paused @@ -136,10 +169,10 @@ def paused(self): @paused.setter def paused(self, paused): """ - Sets the paused of this V1alpha1VirtualMachinePoolSpec. + Sets the paused of this V1beta1VirtualMachinePoolSpec. Indicates that the pool is paused. - :param paused: The paused of this V1alpha1VirtualMachinePoolSpec. + :param paused: The paused of this V1beta1VirtualMachinePoolSpec. :type: bool """ @@ -148,10 +181,10 @@ def paused(self, paused): @property def replicas(self): """ - Gets the replicas of this V1alpha1VirtualMachinePoolSpec. + Gets the replicas of this V1beta1VirtualMachinePoolSpec. Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - :return: The replicas of this V1alpha1VirtualMachinePoolSpec. + :return: The replicas of this V1beta1VirtualMachinePoolSpec. :rtype: int """ return self._replicas @@ -159,10 +192,10 @@ def replicas(self): @replicas.setter def replicas(self, replicas): """ - Sets the replicas of this V1alpha1VirtualMachinePoolSpec. + Sets the replicas of this V1beta1VirtualMachinePoolSpec. Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. - :param replicas: The replicas of this V1alpha1VirtualMachinePoolSpec. + :param replicas: The replicas of this V1beta1VirtualMachinePoolSpec. :type: int """ @@ -171,22 +204,22 @@ def replicas(self, replicas): @property def scale_in_strategy(self): """ - Gets the scale_in_strategy of this V1alpha1VirtualMachinePoolSpec. + Gets the scale_in_strategy of this V1beta1VirtualMachinePoolSpec. ScaleInStrategy specifies how the VMPool controller manages scaling in VMs within a VMPool - :return: The scale_in_strategy of this V1alpha1VirtualMachinePoolSpec. - :rtype: V1alpha1VirtualMachinePoolScaleInStrategy + :return: The scale_in_strategy of this V1beta1VirtualMachinePoolSpec. + :rtype: V1beta1VirtualMachinePoolScaleInStrategy """ return self._scale_in_strategy @scale_in_strategy.setter def scale_in_strategy(self, scale_in_strategy): """ - Sets the scale_in_strategy of this V1alpha1VirtualMachinePoolSpec. + Sets the scale_in_strategy of this V1beta1VirtualMachinePoolSpec. ScaleInStrategy specifies how the VMPool controller manages scaling in VMs within a VMPool - :param scale_in_strategy: The scale_in_strategy of this V1alpha1VirtualMachinePoolSpec. - :type: V1alpha1VirtualMachinePoolScaleInStrategy + :param scale_in_strategy: The scale_in_strategy of this V1beta1VirtualMachinePoolSpec. + :type: V1beta1VirtualMachinePoolScaleInStrategy """ self._scale_in_strategy = scale_in_strategy @@ -194,10 +227,10 @@ def scale_in_strategy(self, scale_in_strategy): @property def selector(self): """ - Gets the selector of this V1alpha1VirtualMachinePoolSpec. + Gets the selector of this V1beta1VirtualMachinePoolSpec. Label selector for pods. Existing Poolss whose pods are selected by this will be the ones affected by this deployment. - :return: The selector of this V1alpha1VirtualMachinePoolSpec. + :return: The selector of this V1beta1VirtualMachinePoolSpec. :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector """ return self._selector @@ -205,10 +238,10 @@ def selector(self): @selector.setter def selector(self, selector): """ - Sets the selector of this V1alpha1VirtualMachinePoolSpec. + Sets the selector of this V1beta1VirtualMachinePoolSpec. Label selector for pods. Existing Poolss whose pods are selected by this will be the ones affected by this deployment. - :param selector: The selector of this V1alpha1VirtualMachinePoolSpec. + :param selector: The selector of this V1beta1VirtualMachinePoolSpec. :type: K8sIoApimachineryPkgApisMetaV1LabelSelector """ if selector is None: @@ -216,25 +249,48 @@ def selector(self, selector): 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 V1alpha1VirtualMachinePoolSpec. + Gets the virtual_machine_template of this V1beta1VirtualMachinePoolSpec. Template describes the VM that will be created. - :return: The virtual_machine_template of this V1alpha1VirtualMachinePoolSpec. - :rtype: V1alpha1VirtualMachineTemplateSpec + :return: The virtual_machine_template of this V1beta1VirtualMachinePoolSpec. + :rtype: V1beta1VirtualMachineTemplateSpec """ return self._virtual_machine_template @virtual_machine_template.setter def virtual_machine_template(self, virtual_machine_template): """ - Sets the virtual_machine_template of this V1alpha1VirtualMachinePoolSpec. + Sets the virtual_machine_template of this V1beta1VirtualMachinePoolSpec. Template describes the VM that will be created. - :param virtual_machine_template: The virtual_machine_template of this V1alpha1VirtualMachinePoolSpec. - :type: V1alpha1VirtualMachineTemplateSpec + :param virtual_machine_template: The virtual_machine_template of this V1beta1VirtualMachinePoolSpec. + :type: V1beta1VirtualMachineTemplateSpec """ if virtual_machine_template is None: raise ValueError("Invalid value for `virtual_machine_template`, must not be `None`") @@ -283,7 +339,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolSpec): + if not isinstance(other, V1beta1VirtualMachinePoolSpec): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/v1alpha1_virtual_machine_pool_status.py b/kubevirt/models/v1beta1_virtual_machine_pool_status.py similarity index 72% rename from kubevirt/models/v1alpha1_virtual_machine_pool_status.py rename to kubevirt/models/v1beta1_virtual_machine_pool_status.py index cd95740c..71f02271 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_pool_status.py +++ b/kubevirt/models/v1beta1_virtual_machine_pool_status.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachinePoolStatus(object): +class V1beta1VirtualMachinePoolStatus(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -31,7 +31,7 @@ class V1alpha1VirtualMachinePoolStatus(object): and the value is json key in definition. """ swagger_types = { - 'conditions': 'list[V1alpha1VirtualMachinePoolCondition]', + 'conditions': 'list[V1beta1VirtualMachinePoolCondition]', 'label_selector': 'str', 'ready_replicas': 'int', 'replicas': 'int' @@ -46,7 +46,7 @@ class V1alpha1VirtualMachinePoolStatus(object): def __init__(self, conditions=None, label_selector=None, ready_replicas=None, replicas=None): """ - V1alpha1VirtualMachinePoolStatus - a model defined in Swagger + V1beta1VirtualMachinePoolStatus - a model defined in Swagger """ self._conditions = None @@ -66,20 +66,20 @@ def __init__(self, conditions=None, label_selector=None, ready_replicas=None, re @property def conditions(self): """ - Gets the conditions of this V1alpha1VirtualMachinePoolStatus. + Gets the conditions of this V1beta1VirtualMachinePoolStatus. - :return: The conditions of this V1alpha1VirtualMachinePoolStatus. - :rtype: list[V1alpha1VirtualMachinePoolCondition] + :return: The conditions of this V1beta1VirtualMachinePoolStatus. + :rtype: list[V1beta1VirtualMachinePoolCondition] """ return self._conditions @conditions.setter def conditions(self, conditions): """ - Sets the conditions of this V1alpha1VirtualMachinePoolStatus. + Sets the conditions of this V1beta1VirtualMachinePoolStatus. - :param conditions: The conditions of this V1alpha1VirtualMachinePoolStatus. - :type: list[V1alpha1VirtualMachinePoolCondition] + :param conditions: The conditions of this V1beta1VirtualMachinePoolStatus. + :type: list[V1beta1VirtualMachinePoolCondition] """ self._conditions = conditions @@ -87,10 +87,10 @@ def conditions(self, conditions): @property def label_selector(self): """ - Gets the label_selector of this V1alpha1VirtualMachinePoolStatus. + Gets the label_selector of this V1beta1VirtualMachinePoolStatus. Canonical form of the label selector for HPA which consumes it through the scale subresource. - :return: The label_selector of this V1alpha1VirtualMachinePoolStatus. + :return: The label_selector of this V1beta1VirtualMachinePoolStatus. :rtype: str """ return self._label_selector @@ -98,10 +98,10 @@ def label_selector(self): @label_selector.setter def label_selector(self, label_selector): """ - Sets the label_selector of this V1alpha1VirtualMachinePoolStatus. + Sets the label_selector of this V1beta1VirtualMachinePoolStatus. Canonical form of the label selector for HPA which consumes it through the scale subresource. - :param label_selector: The label_selector of this V1alpha1VirtualMachinePoolStatus. + :param label_selector: The label_selector of this V1beta1VirtualMachinePoolStatus. :type: str """ @@ -110,9 +110,9 @@ def label_selector(self, label_selector): @property def ready_replicas(self): """ - Gets the ready_replicas of this V1alpha1VirtualMachinePoolStatus. + Gets the ready_replicas of this V1beta1VirtualMachinePoolStatus. - :return: The ready_replicas of this V1alpha1VirtualMachinePoolStatus. + :return: The ready_replicas of this V1beta1VirtualMachinePoolStatus. :rtype: int """ return self._ready_replicas @@ -120,9 +120,9 @@ def ready_replicas(self): @ready_replicas.setter def ready_replicas(self, ready_replicas): """ - Sets the ready_replicas of this V1alpha1VirtualMachinePoolStatus. + Sets the ready_replicas of this V1beta1VirtualMachinePoolStatus. - :param ready_replicas: The ready_replicas of this V1alpha1VirtualMachinePoolStatus. + :param ready_replicas: The ready_replicas of this V1beta1VirtualMachinePoolStatus. :type: int """ @@ -131,9 +131,9 @@ def ready_replicas(self, ready_replicas): @property def replicas(self): """ - Gets the replicas of this V1alpha1VirtualMachinePoolStatus. + Gets the replicas of this V1beta1VirtualMachinePoolStatus. - :return: The replicas of this V1alpha1VirtualMachinePoolStatus. + :return: The replicas of this V1beta1VirtualMachinePoolStatus. :rtype: int """ return self._replicas @@ -141,9 +141,9 @@ def replicas(self): @replicas.setter def replicas(self, replicas): """ - Sets the replicas of this V1alpha1VirtualMachinePoolStatus. + Sets the replicas of this V1beta1VirtualMachinePoolStatus. - :param replicas: The replicas of this V1alpha1VirtualMachinePoolStatus. + :param replicas: The replicas of this V1beta1VirtualMachinePoolStatus. :type: int """ @@ -191,7 +191,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachinePoolStatus): + if not isinstance(other, V1beta1VirtualMachinePoolStatus): return False return self.__dict__ == other.__dict__ diff --git a/kubevirt/models/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_spec.py b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py index c7e3e3ac..c810caf9 100644 --- a/kubevirt/models/v1beta1_virtual_machine_preference_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_preference_spec.py @@ -39,6 +39,7 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'firmware': 'V1beta1FirmwarePreferences', 'machine': 'V1beta1MachinePreferences', 'prefer_spread_socket_to_core_ratio': 'int', + 'preferred_architecture': 'str', 'preferred_subdomain': 'str', 'preferred_termination_grace_period_seconds': 'int', 'requirements': 'V1beta1PreferenceRequirements', @@ -54,13 +55,14 @@ class V1beta1VirtualMachinePreferenceSpec(object): 'firmware': 'firmware', 'machine': 'machine', 'prefer_spread_socket_to_core_ratio': 'preferSpreadSocketToCoreRatio', + 'preferred_architecture': 'preferredArchitecture', 'preferred_subdomain': 'preferredSubdomain', 'preferred_termination_grace_period_seconds': 'preferredTerminationGracePeriodSeconds', 'requirements': 'requirements', 'volumes': 'volumes' } - def __init__(self, annotations=None, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, prefer_spread_socket_to_core_ratio=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, requirements=None, volumes=None): + def __init__(self, annotations=None, clock=None, cpu=None, devices=None, features=None, firmware=None, machine=None, prefer_spread_socket_to_core_ratio=None, preferred_architecture=None, preferred_subdomain=None, preferred_termination_grace_period_seconds=None, requirements=None, volumes=None): """ V1beta1VirtualMachinePreferenceSpec - a model defined in Swagger """ @@ -73,6 +75,7 @@ def __init__(self, annotations=None, clock=None, cpu=None, devices=None, feature self._firmware = None self._machine = None self._prefer_spread_socket_to_core_ratio = None + self._preferred_architecture = None self._preferred_subdomain = None self._preferred_termination_grace_period_seconds = None self._requirements = None @@ -94,6 +97,8 @@ def __init__(self, annotations=None, clock=None, cpu=None, devices=None, feature self.machine = machine if prefer_spread_socket_to_core_ratio is not None: self.prefer_spread_socket_to_core_ratio = prefer_spread_socket_to_core_ratio + if preferred_architecture is not None: + self.preferred_architecture = preferred_architecture if preferred_subdomain is not None: self.preferred_subdomain = preferred_subdomain if preferred_termination_grace_period_seconds is not None: @@ -287,6 +292,29 @@ def prefer_spread_socket_to_core_ratio(self, prefer_spread_socket_to_core_ratio) self._prefer_spread_socket_to_core_ratio = prefer_spread_socket_to_core_ratio + @property + def preferred_architecture(self): + """ + Gets the preferred_architecture of this V1beta1VirtualMachinePreferenceSpec. + PreferredArchitecture defines a prefeerred architecture for the VirtualMachine + + :return: The preferred_architecture of this V1beta1VirtualMachinePreferenceSpec. + :rtype: str + """ + return self._preferred_architecture + + @preferred_architecture.setter + def preferred_architecture(self, preferred_architecture): + """ + Sets the preferred_architecture of this V1beta1VirtualMachinePreferenceSpec. + PreferredArchitecture defines a prefeerred architecture for the VirtualMachine + + :param preferred_architecture: The preferred_architecture of this V1beta1VirtualMachinePreferenceSpec. + :type: str + """ + + self._preferred_architecture = preferred_architecture + @property def preferred_subdomain(self): """ diff --git a/kubevirt/models/v1beta1_virtual_machine_restore_spec.py b/kubevirt/models/v1beta1_virtual_machine_restore_spec.py index 708092cd..46e0c382 100644 --- a/kubevirt/models/v1beta1_virtual_machine_restore_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_restore_spec.py @@ -35,6 +35,7 @@ class V1beta1VirtualMachineRestoreSpec(object): 'target': 'K8sIoApiCoreV1TypedLocalObjectReference', 'target_readiness_policy': 'str', 'virtual_machine_snapshot_name': 'str', + 'volume_ownership_policy': 'str', 'volume_restore_overrides': 'list[V1beta1VolumeRestoreOverride]', 'volume_restore_policy': 'str' } @@ -44,11 +45,12 @@ class V1beta1VirtualMachineRestoreSpec(object): 'target': 'target', 'target_readiness_policy': 'targetReadinessPolicy', 'virtual_machine_snapshot_name': 'virtualMachineSnapshotName', + 'volume_ownership_policy': 'volumeOwnershipPolicy', 'volume_restore_overrides': 'volumeRestoreOverrides', 'volume_restore_policy': 'volumeRestorePolicy' } - def __init__(self, patches=None, target=None, target_readiness_policy=None, virtual_machine_snapshot_name='', volume_restore_overrides=None, volume_restore_policy=None): + def __init__(self, patches=None, target=None, target_readiness_policy=None, virtual_machine_snapshot_name='', volume_ownership_policy=None, volume_restore_overrides=None, volume_restore_policy=None): """ V1beta1VirtualMachineRestoreSpec - a model defined in Swagger """ @@ -57,6 +59,7 @@ def __init__(self, patches=None, target=None, target_readiness_policy=None, virt self._target = None self._target_readiness_policy = None self._virtual_machine_snapshot_name = None + self._volume_ownership_policy = None self._volume_restore_overrides = None self._volume_restore_policy = None @@ -66,6 +69,8 @@ def __init__(self, patches=None, target=None, target_readiness_policy=None, virt if target_readiness_policy is not None: self.target_readiness_policy = target_readiness_policy self.virtual_machine_snapshot_name = virtual_machine_snapshot_name + if volume_ownership_policy is not None: + self.volume_ownership_policy = volume_ownership_policy if volume_restore_overrides is not None: self.volume_restore_overrides = volume_restore_overrides if volume_restore_policy is not None: @@ -163,6 +168,27 @@ def virtual_machine_snapshot_name(self, virtual_machine_snapshot_name): self._virtual_machine_snapshot_name = virtual_machine_snapshot_name + @property + def volume_ownership_policy(self): + """ + Gets the volume_ownership_policy of this V1beta1VirtualMachineRestoreSpec. + + :return: The volume_ownership_policy of this V1beta1VirtualMachineRestoreSpec. + :rtype: str + """ + return self._volume_ownership_policy + + @volume_ownership_policy.setter + def volume_ownership_policy(self, volume_ownership_policy): + """ + Sets the volume_ownership_policy of this V1beta1VirtualMachineRestoreSpec. + + :param volume_ownership_policy: The volume_ownership_policy of this V1beta1VirtualMachineRestoreSpec. + :type: str + """ + + self._volume_ownership_policy = volume_ownership_policy + @property def volume_restore_overrides(self): """ diff --git a/kubevirt/models/v1beta1_virtual_machine_snapshot_status.py b/kubevirt/models/v1beta1_virtual_machine_snapshot_status.py index d7677479..b8231e14 100644 --- a/kubevirt/models/v1beta1_virtual_machine_snapshot_status.py +++ b/kubevirt/models/v1beta1_virtual_machine_snapshot_status.py @@ -38,6 +38,7 @@ class V1beta1VirtualMachineSnapshotStatus(object): 'phase': 'str', 'ready_to_use': 'bool', 'snapshot_volumes': 'V1beta1SnapshotVolumesLists', + 'source_indications': 'list[V1beta1SourceIndication]', 'source_uid': 'str', 'virtual_machine_snapshot_content_name': 'str' } @@ -50,11 +51,12 @@ class V1beta1VirtualMachineSnapshotStatus(object): 'phase': 'phase', 'ready_to_use': 'readyToUse', 'snapshot_volumes': 'snapshotVolumes', + 'source_indications': 'sourceIndications', 'source_uid': 'sourceUID', 'virtual_machine_snapshot_content_name': 'virtualMachineSnapshotContentName' } - def __init__(self, conditions=None, creation_time=None, error=None, indications=None, phase=None, ready_to_use=None, snapshot_volumes=None, source_uid=None, virtual_machine_snapshot_content_name=None): + def __init__(self, conditions=None, creation_time=None, error=None, indications=None, phase=None, ready_to_use=None, snapshot_volumes=None, source_indications=None, source_uid=None, virtual_machine_snapshot_content_name=None): """ V1beta1VirtualMachineSnapshotStatus - a model defined in Swagger """ @@ -66,6 +68,7 @@ def __init__(self, conditions=None, creation_time=None, error=None, indications= self._phase = None self._ready_to_use = None self._snapshot_volumes = None + self._source_indications = None self._source_uid = None self._virtual_machine_snapshot_content_name = None @@ -83,6 +86,8 @@ def __init__(self, conditions=None, creation_time=None, error=None, indications= self.ready_to_use = ready_to_use if snapshot_volumes is not None: self.snapshot_volumes = snapshot_volumes + if source_indications is not None: + self.source_indications = source_indications if source_uid is not None: self.source_uid = source_uid if virtual_machine_snapshot_content_name is not None: @@ -155,6 +160,7 @@ def error(self, error): def indications(self): """ Gets the indications of this V1beta1VirtualMachineSnapshotStatus. + Deprecated: Use SourceIndications instead. This field will be removed in a future version. :return: The indications of this V1beta1VirtualMachineSnapshotStatus. :rtype: list[str] @@ -165,6 +171,7 @@ def indications(self): def indications(self, indications): """ Sets the indications of this V1beta1VirtualMachineSnapshotStatus. + Deprecated: Use SourceIndications instead. This field will be removed in a future version. :param indications: The indications of this V1beta1VirtualMachineSnapshotStatus. :type: list[str] @@ -235,6 +242,27 @@ def snapshot_volumes(self, snapshot_volumes): self._snapshot_volumes = snapshot_volumes + @property + def source_indications(self): + """ + Gets the source_indications of this V1beta1VirtualMachineSnapshotStatus. + + :return: The source_indications of this V1beta1VirtualMachineSnapshotStatus. + :rtype: list[V1beta1SourceIndication] + """ + return self._source_indications + + @source_indications.setter + def source_indications(self, source_indications): + """ + Sets the source_indications of this V1beta1VirtualMachineSnapshotStatus. + + :param source_indications: The source_indications of this V1beta1VirtualMachineSnapshotStatus. + :type: list[V1beta1SourceIndication] + """ + + self._source_indications = source_indications + @property def source_uid(self): """ diff --git a/kubevirt/models/v1alpha1_virtual_machine_template_spec.py b/kubevirt/models/v1beta1_virtual_machine_template_spec.py similarity index 81% rename from kubevirt/models/v1alpha1_virtual_machine_template_spec.py rename to kubevirt/models/v1beta1_virtual_machine_template_spec.py index bb82ef31..9d57ceb2 100644 --- a/kubevirt/models/v1alpha1_virtual_machine_template_spec.py +++ b/kubevirt/models/v1beta1_virtual_machine_template_spec.py @@ -16,7 +16,7 @@ import re -class V1alpha1VirtualMachineTemplateSpec(object): +class V1beta1VirtualMachineTemplateSpec(object): """ NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -42,7 +42,7 @@ class V1alpha1VirtualMachineTemplateSpec(object): def __init__(self, metadata=None, spec=None): """ - V1alpha1VirtualMachineTemplateSpec - a model defined in Swagger + V1beta1VirtualMachineTemplateSpec - a model defined in Swagger """ self._metadata = None @@ -56,9 +56,9 @@ def __init__(self, metadata=None, spec=None): @property def metadata(self): """ - Gets the metadata of this V1alpha1VirtualMachineTemplateSpec. + Gets the metadata of this V1beta1VirtualMachineTemplateSpec. - :return: The metadata of this V1alpha1VirtualMachineTemplateSpec. + :return: The metadata of this V1beta1VirtualMachineTemplateSpec. :rtype: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ return self._metadata @@ -66,9 +66,9 @@ def metadata(self): @metadata.setter def metadata(self, metadata): """ - Sets the metadata of this V1alpha1VirtualMachineTemplateSpec. + Sets the metadata of this V1beta1VirtualMachineTemplateSpec. - :param metadata: The metadata of this V1alpha1VirtualMachineTemplateSpec. + :param metadata: The metadata of this V1beta1VirtualMachineTemplateSpec. :type: K8sIoApimachineryPkgApisMetaV1ObjectMeta """ @@ -77,10 +77,10 @@ def metadata(self, metadata): @property def spec(self): """ - Gets the spec of this V1alpha1VirtualMachineTemplateSpec. + Gets the spec of this V1beta1VirtualMachineTemplateSpec. VirtualMachineSpec contains the VirtualMachine specification. - :return: The spec of this V1alpha1VirtualMachineTemplateSpec. + :return: The spec of this V1beta1VirtualMachineTemplateSpec. :rtype: V1VirtualMachineSpec """ return self._spec @@ -88,10 +88,10 @@ def spec(self): @spec.setter def spec(self, spec): """ - Sets the spec of this V1alpha1VirtualMachineTemplateSpec. + Sets the spec of this V1beta1VirtualMachineTemplateSpec. VirtualMachineSpec contains the VirtualMachine specification. - :param spec: The spec of this V1alpha1VirtualMachineTemplateSpec. + :param spec: The spec of this V1beta1VirtualMachineTemplateSpec. :type: V1VirtualMachineSpec """ @@ -139,7 +139,7 @@ def __eq__(self, other): """ Returns true if both objects are equal """ - if not isinstance(other, V1alpha1VirtualMachineTemplateSpec): + if not isinstance(other, V1beta1VirtualMachineTemplateSpec): return False return self.__dict__ == other.__dict__ diff --git a/setup.py b/setup.py index 05ffad44..07c51b32 100644 --- a/setup.py +++ b/setup.py @@ -15,7 +15,7 @@ from setuptools import setup, find_packages NAME = "kubevirt-py" -VERSION = "v1.6.0-beta.0-869-g12ebd1cfe9" +VERSION = "v1.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 971d5df1..75d5ba55 100644 --- a/swagger-codegen-config.json +++ b/swagger-codegen-config.json @@ -2,5 +2,5 @@ "packageName": "kubevirt", "projectName": "kubevirt-py", "packageUrl": "https://github.com/kubevirt/client-python", -"packageVersion": "v1.6.0-beta.0-869-g12ebd1cfe9" +"packageVersion": "v1.8.0-beta.0-476-ga23a67089c" } diff --git a/test/test_default_api.py b/test/test_default_api.py index d0a5034f..9dd8f915 100644 --- a/test/test_default_api.py +++ b/test/test_default_api.py @@ -52,6 +52,14 @@ def test_create_namespaced_virtual_machine(self): Test case for create_namespaced_virtual_machine + """ + pass + + def test_create_namespaced_virtual_machine_backup(self): + """ + Test case for create_namespaced_virtual_machine_backup + + """ pass @@ -188,6 +196,14 @@ def test_delete_collection_namespaced_virtual_machine(self): Test case for delete_collection_namespaced_virtual_machine + """ + pass + + def test_delete_collection_namespaced_virtual_machine_backup(self): + """ + Test case for delete_collection_namespaced_virtual_machine_backup + + """ pass @@ -324,6 +340,14 @@ def test_delete_namespaced_virtual_machine(self): Test case for delete_namespaced_virtual_machine + """ + pass + + def test_delete_namespaced_virtual_machine_backup(self): + """ + Test case for delete_namespaced_virtual_machine_backup + + """ pass @@ -439,9 +463,9 @@ def test_delete_virtual_machine_cluster_preference(self): """ pass - def test_func13(self): + def test_func15(self): """ - Test case for func13 + Test case for func15 """ @@ -452,6 +476,14 @@ def test_func6(self): Test case for func6 + """ + pass + + def test_get_api_group_backup_kubevirt_io(self): + """ + Test case for get_api_group_backup_kubevirt_io + + """ pass @@ -516,6 +548,14 @@ def test_get_api_group_snapshot_kubevirt_io(self): Test case for get_api_group_snapshot_kubevirt_io + """ + pass + + def test_get_api_resources_backup_kubevirt_io_v1alpha1(self): + """ + Test case for get_api_resources_backup_kubevirt_io_v1alpha1 + + """ pass @@ -559,9 +599,9 @@ def test_get_api_resources_migrations_kubevirt_io_v1alpha1(self): """ pass - def test_get_api_resources_pool_kubevirt_io_v1alpha1(self): + def test_get_api_resources_pool_kubevirt_io_v1beta1(self): """ - Test case for get_api_resources_pool_kubevirt_io_v1alpha1 + Test case for get_api_resources_pool_kubevirt_io_v1beta1 """ @@ -636,6 +676,14 @@ def test_list_namespaced_virtual_machine(self): Test case for list_namespaced_virtual_machine + """ + pass + + def test_list_namespaced_virtual_machine_backup(self): + """ + Test case for list_namespaced_virtual_machine_backup + + """ pass @@ -724,6 +772,14 @@ def test_list_namespaced_virtual_machine_snapshot_content(self): Test case for list_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_list_virtual_machine_backup_for_all_namespaces(self): + """ + Test case for list_virtual_machine_backup_for_all_namespaces + + """ pass @@ -868,6 +924,14 @@ def test_patch_namespaced_virtual_machine(self): Test case for patch_namespaced_virtual_machine + """ + pass + + def test_patch_namespaced_virtual_machine_backup(self): + """ + Test case for patch_namespaced_virtual_machine_backup + + """ pass @@ -1004,6 +1068,14 @@ def test_read_namespaced_virtual_machine(self): Test case for read_namespaced_virtual_machine + """ + pass + + def test_read_namespaced_virtual_machine_backup(self): + """ + Test case for read_namespaced_virtual_machine_backup + + """ pass @@ -1140,6 +1212,14 @@ def test_replace_namespaced_virtual_machine(self): Test case for replace_namespaced_virtual_machine + """ + pass + + def test_replace_namespaced_virtual_machine_backup(self): + """ + Test case for replace_namespaced_virtual_machine_backup + + """ pass @@ -1252,6 +1332,14 @@ def test_replace_virtual_machine_cluster_preference(self): Test case for replace_virtual_machine_cluster_preference + """ + pass + + def test_v1_backup(self): + """ + Test case for v1_backup + + """ pass @@ -1340,6 +1428,14 @@ def test_v1_pause(self): Test case for v1_pause + """ + pass + + def test_v1_redefine_checkpoint(self): + """ + Test case for v1_redefine_checkpoint + + """ pass @@ -1476,6 +1572,14 @@ def test_v1_vsock(self): Test case for v1_vsock + """ + pass + + def test_v1alpha3_backup(self): + """ + Test case for v1alpha3_backup + + """ pass @@ -1556,6 +1660,14 @@ def test_v1alpha3_pause(self): Test case for v1alpha3_pause + """ + pass + + def test_v1alpha3_redefine_checkpoint(self): + """ + Test case for v1alpha3_redefine_checkpoint + + """ pass @@ -1740,6 +1852,14 @@ def test_v1alpha3vm_addvolume(self): Test case for v1alpha3vm_addvolume + """ + pass + + def test_v1alpha3vm_evacuatecancel(self): + """ + Test case for v1alpha3vm_evacuatecancel + + """ pass @@ -1788,6 +1908,14 @@ def test_v1alpha3vmi_addvolume(self): Test case for v1alpha3vmi_addvolume + """ + pass + + def test_v1alpha3vmi_evacuatecancel(self): + """ + Test case for v1alpha3vmi_evacuatecancel + + """ pass @@ -1868,6 +1996,14 @@ def test_v1vm_addvolume(self): Test case for v1vm_addvolume + """ + pass + + def test_v1vm_evacuatecancel(self): + """ + Test case for v1vm_evacuatecancel + + """ pass @@ -1916,6 +2052,14 @@ def test_v1vmi_addvolume(self): Test case for v1vmi_addvolume + """ + pass + + def test_v1vmi_evacuatecancel(self): + """ + Test case for v1vmi_evacuatecancel + + """ pass @@ -1980,6 +2124,14 @@ def test_watch_namespaced_virtual_machine(self): Test case for watch_namespaced_virtual_machine + """ + pass + + def test_watch_namespaced_virtual_machine_backup(self): + """ + Test case for watch_namespaced_virtual_machine_backup + + """ pass @@ -2068,6 +2220,14 @@ def test_watch_namespaced_virtual_machine_snapshot_content(self): Test case for watch_namespaced_virtual_machine_snapshot_content + """ + pass + + def test_watch_virtual_machine_backup_list_for_all_namespaces(self): + """ + Test case for watch_virtual_machine_backup_list_for_all_namespaces + + """ pass diff --git a/test/test_v1_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_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_device_resource_claim_status.py b/test/test_v1_container_path_volume_source.py similarity index 61% rename from test/test_v1_device_resource_claim_status.py rename to test/test_v1_container_path_volume_source.py index 02221ab1..cc90c056 100644 --- a/test/test_v1_device_resource_claim_status.py +++ b/test/test_v1_container_path_volume_source.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_device_resource_claim_status import V1DeviceResourceClaimStatus +from kubevirt.models.v1_container_path_volume_source import V1ContainerPathVolumeSource -class TestV1DeviceResourceClaimStatus(unittest.TestCase): - """ V1DeviceResourceClaimStatus unit test stubs """ +class TestV1ContainerPathVolumeSource(unittest.TestCase): + """ V1ContainerPathVolumeSource unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1DeviceResourceClaimStatus(self): + def testV1ContainerPathVolumeSource(self): """ - Test V1DeviceResourceClaimStatus + Test V1ContainerPathVolumeSource """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_device_resource_claim_status.V1DeviceResourceClaimStatus() + #model = kubevirt.models.v1_container_path_volume_source.V1ContainerPathVolumeSource() pass diff --git a/test/test_v1alpha1_virtual_machine_pool.py b/test/test_v1_evacuate_cancel_options.py similarity index 62% rename from test/test_v1alpha1_virtual_machine_pool.py rename to test/test_v1_evacuate_cancel_options.py index 16cd154b..69d8fe8e 100644 --- a/test/test_v1alpha1_virtual_machine_pool.py +++ b/test/test_v1_evacuate_cancel_options.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool import V1alpha1VirtualMachinePool +from kubevirt.models.v1_evacuate_cancel_options import V1EvacuateCancelOptions -class TestV1alpha1VirtualMachinePool(unittest.TestCase): - """ V1alpha1VirtualMachinePool unit test stubs """ +class TestV1EvacuateCancelOptions(unittest.TestCase): + """ V1EvacuateCancelOptions unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePool(self): + def testV1EvacuateCancelOptions(self): """ - Test V1alpha1VirtualMachinePool + Test V1EvacuateCancelOptions """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool.V1alpha1VirtualMachinePool() + #model = kubevirt.models.v1_evacuate_cancel_options.V1EvacuateCancelOptions() pass 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_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_device_status_info.py b/test/test_v1_reserved_overhead.py similarity index 66% rename from test/test_v1_device_status_info.py rename to test/test_v1_reserved_overhead.py index e8510f6b..7d524cad 100644 --- a/test/test_v1_device_status_info.py +++ b/test/test_v1_reserved_overhead.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_device_status_info import V1DeviceStatusInfo +from kubevirt.models.v1_reserved_overhead import V1ReservedOverhead -class TestV1DeviceStatusInfo(unittest.TestCase): - """ V1DeviceStatusInfo unit test stubs """ +class TestV1ReservedOverhead(unittest.TestCase): + """ V1ReservedOverhead unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1DeviceStatusInfo(self): + def testV1ReservedOverhead(self): """ - Test V1DeviceStatusInfo + Test V1ReservedOverhead """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_device_status_info.V1DeviceStatusInfo() + #model = kubevirt.models.v1_reserved_overhead.V1ReservedOverhead() pass diff --git a/test/test_v1_device_status.py b/test/test_v1_sevsnp.py similarity index 68% rename from test/test_v1_device_status.py rename to test/test_v1_sevsnp.py index b264b5d6..8c4b860c 100644 --- a/test/test_v1_device_status.py +++ b/test/test_v1_sevsnp.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_device_status import V1DeviceStatus +from kubevirt.models.v1_sevsnp import V1SEVSNP -class TestV1DeviceStatus(unittest.TestCase): - """ V1DeviceStatus unit test stubs """ +class TestV1SEVSNP(unittest.TestCase): + """ V1SEVSNP unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1DeviceStatus(self): + def testV1SEVSNP(self): """ - Test V1DeviceStatus + Test V1SEVSNP """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_device_status.V1DeviceStatus() + #model = kubevirt.models.v1_sevsnp.V1SEVSNP() pass diff --git a/test/test_v1_device_attribute.py b/test/test_v1_tdx.py similarity index 67% rename from test/test_v1_device_attribute.py rename to test/test_v1_tdx.py index 0373ef76..a05ed87c 100644 --- a/test/test_v1_device_attribute.py +++ b/test/test_v1_tdx.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1_device_attribute import V1DeviceAttribute +from kubevirt.models.v1_tdx import V1TDX -class TestV1DeviceAttribute(unittest.TestCase): - """ V1DeviceAttribute unit test stubs """ +class TestV1TDX(unittest.TestCase): + """ V1TDX unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1DeviceAttribute(self): + def testV1TDX(self): """ - Test V1DeviceAttribute + Test V1TDX """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_device_attribute.V1DeviceAttribute() + #model = kubevirt.models.v1_tdx.V1TDX() pass 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_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_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_guest_os_load.py b/test/test_v1_virtual_machine_instance_guest_os_load.py deleted file mode 100644 index 2e54ef5f..00000000 --- a/test/test_v1_virtual_machine_instance_guest_os_load.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1_virtual_machine_instance_guest_os_load import V1VirtualMachineInstanceGuestOSLoad - - -class TestV1VirtualMachineInstanceGuestOSLoad(unittest.TestCase): - """ V1VirtualMachineInstanceGuestOSLoad unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1VirtualMachineInstanceGuestOSLoad(self): - """ - Test V1VirtualMachineInstanceGuestOSLoad - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1_virtual_machine_instance_guest_os_load.V1VirtualMachineInstanceGuestOSLoad() - pass - - -if __name__ == '__main__': - unittest.main() 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_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_template_spec.py b/test/test_v1alpha1_virtual_machine_backup_status.py similarity index 58% rename from test/test_v1alpha1_virtual_machine_template_spec.py rename to test/test_v1alpha1_virtual_machine_backup_status.py index 6e6a80d1..62457088 100644 --- a/test/test_v1alpha1_virtual_machine_template_spec.py +++ b/test/test_v1alpha1_virtual_machine_backup_status.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_template_spec import V1alpha1VirtualMachineTemplateSpec +from kubevirt.models.v1alpha1_virtual_machine_backup_status import V1alpha1VirtualMachineBackupStatus -class TestV1alpha1VirtualMachineTemplateSpec(unittest.TestCase): - """ V1alpha1VirtualMachineTemplateSpec unit test stubs """ +class TestV1alpha1VirtualMachineBackupStatus(unittest.TestCase): + """ V1alpha1VirtualMachineBackupStatus unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachineTemplateSpec(self): + def testV1alpha1VirtualMachineBackupStatus(self): """ - Test V1alpha1VirtualMachineTemplateSpec + Test V1alpha1VirtualMachineBackupStatus """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_template_spec.V1alpha1VirtualMachineTemplateSpec() + #model = kubevirt.models.v1alpha1_virtual_machine_backup_status.V1alpha1VirtualMachineBackupStatus() pass diff --git a/test/test_v1alpha1_virtual_machine_pool_condition.py b/test/test_v1alpha1_virtual_machine_pool_condition.py deleted file mode 100644 index de3c864c..00000000 --- a/test/test_v1alpha1_virtual_machine_pool_condition.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_condition import V1alpha1VirtualMachinePoolCondition - - -class TestV1alpha1VirtualMachinePoolCondition(unittest.TestCase): - """ V1alpha1VirtualMachinePoolCondition unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachinePoolCondition(self): - """ - Test V1alpha1VirtualMachinePoolCondition - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_condition.V1alpha1VirtualMachinePoolCondition() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_list.py b/test/test_v1alpha1_virtual_machine_pool_list.py deleted file mode 100644 index af955975..00000000 --- a/test/test_v1alpha1_virtual_machine_pool_list.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_list import V1alpha1VirtualMachinePoolList - - -class TestV1alpha1VirtualMachinePoolList(unittest.TestCase): - """ V1alpha1VirtualMachinePoolList unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachinePoolList(self): - """ - Test V1alpha1VirtualMachinePoolList - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_list.V1alpha1VirtualMachinePoolList() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py b/test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py deleted file mode 100644 index 2d72cf9c..00000000 --- a/test/test_v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_proactive_scale_in_strategy import V1alpha1VirtualMachinePoolProactiveScaleInStrategy - - -class TestV1alpha1VirtualMachinePoolProactiveScaleInStrategy(unittest.TestCase): - """ V1alpha1VirtualMachinePoolProactiveScaleInStrategy unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachinePoolProactiveScaleInStrategy(self): - """ - Test V1alpha1VirtualMachinePoolProactiveScaleInStrategy - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_proactive_scale_in_strategy.V1alpha1VirtualMachinePoolProactiveScaleInStrategy() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py b/test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py deleted file mode 100644 index d0f0dadc..00000000 --- a/test/test_v1alpha1_virtual_machine_pool_scale_in_strategy.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_scale_in_strategy import V1alpha1VirtualMachinePoolScaleInStrategy - - -class TestV1alpha1VirtualMachinePoolScaleInStrategy(unittest.TestCase): - """ V1alpha1VirtualMachinePoolScaleInStrategy unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachinePoolScaleInStrategy(self): - """ - Test V1alpha1VirtualMachinePoolScaleInStrategy - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_scale_in_strategy.V1alpha1VirtualMachinePoolScaleInStrategy() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_spec.py b/test/test_v1alpha1_virtual_machine_pool_spec.py deleted file mode 100644 index 006fb2e4..00000000 --- a/test/test_v1alpha1_virtual_machine_pool_spec.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_spec import V1alpha1VirtualMachinePoolSpec - - -class TestV1alpha1VirtualMachinePoolSpec(unittest.TestCase): - """ V1alpha1VirtualMachinePoolSpec unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachinePoolSpec(self): - """ - Test V1alpha1VirtualMachinePoolSpec - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_spec.V1alpha1VirtualMachinePoolSpec() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_v1alpha1_virtual_machine_pool_status.py b/test/test_v1alpha1_virtual_machine_pool_status.py deleted file mode 100644 index fc6ccdfa..00000000 --- a/test/test_v1alpha1_virtual_machine_pool_status.py +++ /dev/null @@ -1,44 +0,0 @@ -# coding: utf-8 - -""" - KubeVirt API - - This is KubeVirt API an add-on for Kubernetes. - - OpenAPI spec version: 1.0.0 - Contact: kubevirt-dev@googlegroups.com - Generated by: https://github.com/swagger-api/swagger-codegen.git -""" - - -from __future__ import absolute_import - -import os -import sys -import unittest - -import kubevirt -from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_status import V1alpha1VirtualMachinePoolStatus - - -class TestV1alpha1VirtualMachinePoolStatus(unittest.TestCase): - """ V1alpha1VirtualMachinePoolStatus unit test stubs """ - - def setUp(self): - pass - - def tearDown(self): - pass - - def testV1alpha1VirtualMachinePoolStatus(self): - """ - Test V1alpha1VirtualMachinePoolStatus - """ - # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_status.V1alpha1VirtualMachinePoolStatus() - pass - - -if __name__ == '__main__': - unittest.main() diff --git a/test/test_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_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_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_v1alpha1_virtual_machine_pool_selection_policy.py b/test/test_v1beta1_virtual_machine_export_backup_endpoint.py similarity index 56% rename from test/test_v1alpha1_virtual_machine_pool_selection_policy.py rename to test/test_v1beta1_virtual_machine_export_backup_endpoint.py index 1852bb8f..84ed373f 100644 --- a/test/test_v1alpha1_virtual_machine_pool_selection_policy.py +++ b/test/test_v1beta1_virtual_machine_export_backup_endpoint.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_selection_policy import V1alpha1VirtualMachinePoolSelectionPolicy +from kubevirt.models.v1beta1_virtual_machine_export_backup_endpoint import V1beta1VirtualMachineExportBackupEndpoint -class TestV1alpha1VirtualMachinePoolSelectionPolicy(unittest.TestCase): - """ V1alpha1VirtualMachinePoolSelectionPolicy unit test stubs """ +class TestV1beta1VirtualMachineExportBackupEndpoint(unittest.TestCase): + """ V1beta1VirtualMachineExportBackupEndpoint unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePoolSelectionPolicy(self): + def testV1beta1VirtualMachineExportBackupEndpoint(self): """ - Test V1alpha1VirtualMachinePoolSelectionPolicy + Test V1beta1VirtualMachineExportBackupEndpoint """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_selection_policy.V1alpha1VirtualMachinePoolSelectionPolicy() + #model = kubevirt.models.v1beta1_virtual_machine_export_backup_endpoint.V1beta1VirtualMachineExportBackupEndpoint() pass 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_v1alpha1_virtual_machine_pool_name_generation.py b/test/test_v1beta1_virtual_machine_pool_selection_policy.py similarity index 56% rename from test/test_v1alpha1_virtual_machine_pool_name_generation.py rename to test/test_v1beta1_virtual_machine_pool_selection_policy.py index 3b62deda..2ff63da9 100644 --- a/test/test_v1alpha1_virtual_machine_pool_name_generation.py +++ b/test/test_v1beta1_virtual_machine_pool_selection_policy.py @@ -19,11 +19,11 @@ import kubevirt from kubevirt.rest import ApiException -from kubevirt.models.v1alpha1_virtual_machine_pool_name_generation import V1alpha1VirtualMachinePoolNameGeneration +from kubevirt.models.v1beta1_virtual_machine_pool_selection_policy import V1beta1VirtualMachinePoolSelectionPolicy -class TestV1alpha1VirtualMachinePoolNameGeneration(unittest.TestCase): - """ V1alpha1VirtualMachinePoolNameGeneration unit test stubs """ +class TestV1beta1VirtualMachinePoolSelectionPolicy(unittest.TestCase): + """ V1beta1VirtualMachinePoolSelectionPolicy unit test stubs """ def setUp(self): pass @@ -31,12 +31,12 @@ def setUp(self): def tearDown(self): pass - def testV1alpha1VirtualMachinePoolNameGeneration(self): + def testV1beta1VirtualMachinePoolSelectionPolicy(self): """ - Test V1alpha1VirtualMachinePoolNameGeneration + Test V1beta1VirtualMachinePoolSelectionPolicy """ # FIXME: construct object with mandatory attributes with example values - #model = kubevirt.models.v1alpha1_virtual_machine_pool_name_generation.V1alpha1VirtualMachinePoolNameGeneration() + #model = kubevirt.models.v1beta1_virtual_machine_pool_selection_policy.V1beta1VirtualMachinePoolSelectionPolicy() pass diff --git a/test/test_v1beta1_virtual_machine_pool_selectors.py b/test/test_v1beta1_virtual_machine_pool_selectors.py new file mode 100644 index 00000000..73c8dc51 --- /dev/null +++ b/test/test_v1beta1_virtual_machine_pool_selectors.py @@ -0,0 +1,44 @@ +# coding: utf-8 + +""" + KubeVirt API + + This is KubeVirt API an add-on for Kubernetes. + + OpenAPI spec version: 1.0.0 + Contact: kubevirt-dev@googlegroups.com + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import os +import sys +import unittest + +import kubevirt +from kubevirt.rest import ApiException +from kubevirt.models.v1beta1_virtual_machine_pool_selectors import V1beta1VirtualMachinePoolSelectors + + +class TestV1beta1VirtualMachinePoolSelectors(unittest.TestCase): + """ V1beta1VirtualMachinePoolSelectors unit test stubs """ + + def setUp(self): + pass + + def tearDown(self): + pass + + def testV1beta1VirtualMachinePoolSelectors(self): + """ + Test V1beta1VirtualMachinePoolSelectors + """ + # FIXME: construct object with mandatory attributes with example values + #model = kubevirt.models.v1beta1_virtual_machine_pool_selectors.V1beta1VirtualMachinePoolSelectors() + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/test/test_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_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()