diff --git a/.openapi-generator/FILES b/.openapi-generator/FILES index aa14604f..d3d3f450 100644 --- a/.openapi-generator/FILES +++ b/.openapi-generator/FILES @@ -1,9 +1,5 @@ -.gitignore -.gitlab-ci.yml .rspec .rubocop.yml -.travis.yml -Gemfile README.md Rakefile docs/DefaultApi.md @@ -78,6 +74,7 @@ docs/V1ComponentConfig.md docs/V1ConfigMapVolumeSource.md docs/V1ContainerDiskInfo.md docs/V1ContainerDiskSource.md +docs/V1ControllerRevisionRef.md docs/V1CustomBlockSize.md docs/V1CustomProfile.md docs/V1CustomizeComponents.md @@ -89,6 +86,7 @@ docs/V1DataVolumeTemplateSpec.md docs/V1DeveloperConfiguration.md docs/V1Devices.md docs/V1Disk.md +docs/V1DiskIOThreads.md docs/V1DiskTarget.md docs/V1DiskVerification.md docs/V1DomainMemoryDumpInfo.md @@ -124,6 +122,7 @@ docs/V1InitrdInfo.md docs/V1Input.md docs/V1InstancetypeConfiguration.md docs/V1InstancetypeMatcher.md +docs/V1InstancetypeStatusRef.md docs/V1Interface.md docs/V1InterfaceBindingMigration.md docs/V1InterfaceBindingPlugin.md @@ -262,19 +261,14 @@ docs/V1VolumeSnapshotStatus.md docs/V1VolumeStatus.md docs/V1VolumeUpdateState.md docs/V1Watchdog.md -docs/V1alpha1Condition.md docs/V1alpha1MigrationPolicy.md docs/V1alpha1MigrationPolicyList.md docs/V1alpha1MigrationPolicySpec.md docs/V1alpha1Selectors.md -docs/V1alpha1VirtualMachineClone.md -docs/V1alpha1VirtualMachineCloneList.md -docs/V1alpha1VirtualMachineCloneSpec.md -docs/V1alpha1VirtualMachineCloneStatus.md -docs/V1alpha1VirtualMachineCloneTemplateFilters.md docs/V1alpha1VirtualMachinePool.md docs/V1alpha1VirtualMachinePoolCondition.md docs/V1alpha1VirtualMachinePoolList.md +docs/V1alpha1VirtualMachinePoolNameGeneration.md docs/V1alpha1VirtualMachinePoolSpec.md docs/V1alpha1VirtualMachinePoolStatus.md docs/V1alpha1VirtualMachineTemplateSpec.md @@ -309,6 +303,11 @@ docs/V1beta1SourceSpec.md docs/V1beta1SpreadOptions.md docs/V1beta1StorageSpec.md docs/V1beta1VirtualMachine.md +docs/V1beta1VirtualMachineClone.md +docs/V1beta1VirtualMachineCloneList.md +docs/V1beta1VirtualMachineCloneSpec.md +docs/V1beta1VirtualMachineCloneStatus.md +docs/V1beta1VirtualMachineCloneTemplateFilters.md docs/V1beta1VirtualMachineClusterInstancetype.md docs/V1beta1VirtualMachineClusterInstancetypeList.md docs/V1beta1VirtualMachineClusterPreference.md @@ -419,6 +418,7 @@ lib/kubevirt/models/v1_component_config.rb lib/kubevirt/models/v1_config_map_volume_source.rb lib/kubevirt/models/v1_container_disk_info.rb lib/kubevirt/models/v1_container_disk_source.rb +lib/kubevirt/models/v1_controller_revision_ref.rb lib/kubevirt/models/v1_cpu.rb lib/kubevirt/models/v1_cpu_feature.rb lib/kubevirt/models/v1_cpu_topology.rb @@ -433,6 +433,7 @@ lib/kubevirt/models/v1_devices.rb lib/kubevirt/models/v1_dhcp_options.rb lib/kubevirt/models/v1_dhcp_private_options.rb lib/kubevirt/models/v1_disk.rb +lib/kubevirt/models/v1_disk_io_threads.rb lib/kubevirt/models/v1_disk_target.rb lib/kubevirt/models/v1_disk_verification.rb lib/kubevirt/models/v1_domain_memory_dump_info.rb @@ -468,6 +469,7 @@ lib/kubevirt/models/v1_initrd_info.rb lib/kubevirt/models/v1_input.rb lib/kubevirt/models/v1_instancetype_configuration.rb lib/kubevirt/models/v1_instancetype_matcher.rb +lib/kubevirt/models/v1_instancetype_status_ref.rb lib/kubevirt/models/v1_interface.rb lib/kubevirt/models/v1_interface_binding_migration.rb lib/kubevirt/models/v1_interface_binding_plugin.rb @@ -606,19 +608,14 @@ lib/kubevirt/models/v1_volume_snapshot_status.rb lib/kubevirt/models/v1_volume_status.rb lib/kubevirt/models/v1_volume_update_state.rb lib/kubevirt/models/v1_watchdog.rb -lib/kubevirt/models/v1alpha1_condition.rb lib/kubevirt/models/v1alpha1_migration_policy.rb lib/kubevirt/models/v1alpha1_migration_policy_list.rb lib/kubevirt/models/v1alpha1_migration_policy_spec.rb lib/kubevirt/models/v1alpha1_selectors.rb -lib/kubevirt/models/v1alpha1_virtual_machine_clone.rb -lib/kubevirt/models/v1alpha1_virtual_machine_clone_list.rb -lib/kubevirt/models/v1alpha1_virtual_machine_clone_spec.rb -lib/kubevirt/models/v1alpha1_virtual_machine_clone_status.rb -lib/kubevirt/models/v1alpha1_virtual_machine_clone_template_filters.rb lib/kubevirt/models/v1alpha1_virtual_machine_pool.rb lib/kubevirt/models/v1alpha1_virtual_machine_pool_condition.rb lib/kubevirt/models/v1alpha1_virtual_machine_pool_list.rb +lib/kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.rb lib/kubevirt/models/v1alpha1_virtual_machine_pool_spec.rb lib/kubevirt/models/v1alpha1_virtual_machine_pool_status.rb lib/kubevirt/models/v1alpha1_virtual_machine_template_spec.rb @@ -653,6 +650,11 @@ lib/kubevirt/models/v1beta1_source_spec.rb lib/kubevirt/models/v1beta1_spread_options.rb lib/kubevirt/models/v1beta1_storage_spec.rb lib/kubevirt/models/v1beta1_virtual_machine.rb +lib/kubevirt/models/v1beta1_virtual_machine_clone.rb +lib/kubevirt/models/v1beta1_virtual_machine_clone_list.rb +lib/kubevirt/models/v1beta1_virtual_machine_clone_spec.rb +lib/kubevirt/models/v1beta1_virtual_machine_clone_status.rb +lib/kubevirt/models/v1beta1_virtual_machine_clone_template_filters.rb lib/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype.rb lib/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype_list.rb lib/kubevirt/models/v1beta1_virtual_machine_cluster_preference.rb @@ -758,6 +760,7 @@ spec/models/v1_component_config_spec.rb spec/models/v1_config_map_volume_source_spec.rb spec/models/v1_container_disk_info_spec.rb spec/models/v1_container_disk_source_spec.rb +spec/models/v1_controller_revision_ref_spec.rb spec/models/v1_cpu_feature_spec.rb spec/models/v1_cpu_spec.rb spec/models/v1_cpu_topology_spec.rb @@ -771,6 +774,7 @@ spec/models/v1_developer_configuration_spec.rb spec/models/v1_devices_spec.rb spec/models/v1_dhcp_options_spec.rb spec/models/v1_dhcp_private_options_spec.rb +spec/models/v1_disk_io_threads_spec.rb spec/models/v1_disk_spec.rb spec/models/v1_disk_target_spec.rb spec/models/v1_disk_verification_spec.rb @@ -807,6 +811,7 @@ spec/models/v1_initrd_info_spec.rb spec/models/v1_input_spec.rb spec/models/v1_instancetype_configuration_spec.rb spec/models/v1_instancetype_matcher_spec.rb +spec/models/v1_instancetype_status_ref_spec.rb spec/models/v1_interface_binding_migration_spec.rb spec/models/v1_interface_binding_plugin_spec.rb spec/models/v1_interface_spec.rb @@ -945,18 +950,13 @@ spec/models/v1_volume_spec.rb spec/models/v1_volume_status_spec.rb spec/models/v1_volume_update_state_spec.rb spec/models/v1_watchdog_spec.rb -spec/models/v1alpha1_condition_spec.rb spec/models/v1alpha1_migration_policy_list_spec.rb spec/models/v1alpha1_migration_policy_spec.rb spec/models/v1alpha1_migration_policy_spec_spec.rb spec/models/v1alpha1_selectors_spec.rb -spec/models/v1alpha1_virtual_machine_clone_list_spec.rb -spec/models/v1alpha1_virtual_machine_clone_spec.rb -spec/models/v1alpha1_virtual_machine_clone_spec_spec.rb -spec/models/v1alpha1_virtual_machine_clone_status_spec.rb -spec/models/v1alpha1_virtual_machine_clone_template_filters_spec.rb spec/models/v1alpha1_virtual_machine_pool_condition_spec.rb spec/models/v1alpha1_virtual_machine_pool_list_spec.rb +spec/models/v1alpha1_virtual_machine_pool_name_generation_spec.rb spec/models/v1alpha1_virtual_machine_pool_spec.rb spec/models/v1alpha1_virtual_machine_pool_spec_spec.rb spec/models/v1alpha1_virtual_machine_pool_status_spec.rb @@ -991,6 +991,11 @@ spec/models/v1beta1_snapshot_volumes_lists_spec.rb spec/models/v1beta1_source_spec_spec.rb spec/models/v1beta1_spread_options_spec.rb spec/models/v1beta1_storage_spec_spec.rb +spec/models/v1beta1_virtual_machine_clone_list_spec.rb +spec/models/v1beta1_virtual_machine_clone_spec.rb +spec/models/v1beta1_virtual_machine_clone_spec_spec.rb +spec/models/v1beta1_virtual_machine_clone_status_spec.rb +spec/models/v1beta1_virtual_machine_clone_template_filters_spec.rb spec/models/v1beta1_virtual_machine_cluster_instancetype_list_spec.rb spec/models/v1beta1_virtual_machine_cluster_instancetype_spec.rb spec/models/v1beta1_virtual_machine_cluster_preference_list_spec.rb diff --git a/.openapi-generator/VERSION b/.openapi-generator/VERSION index 4bc5d618..5f84a81d 100644 --- a/.openapi-generator/VERSION +++ b/.openapi-generator/VERSION @@ -1 +1 @@ -7.9.0 +7.12.0 diff --git a/README.md b/README.md index b29d97a2..29aae5df 100644 --- a/README.md +++ b/README.md @@ -8,22 +8,10 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g - API version: 1.0.0 - Package version: 0.1.0 -- Generator version: 7.9.0 +- Generator version: 7.12.0 - Build package: org.openapitools.codegen.languages.RubyClientCodegen For more information, please visit [https://github.com/kubevirt/kubevirt](https://github.com/kubevirt/kubevirt) -## Generation - -To autogenerate the gem from the openapi specification you must first download the openapi-generator-cli from https://openapi-generator.tech/docs/installation/ - -For this example we'll be using the `openapi-generator-cli.jar`. - -```bash -java -jar /var/lib/openapi/7.9.0/openapi-generator-cli.jar generate \ - --input-spec https://raw.githubusercontent.com/kubevirt/kubevirt/refs/heads/main/api/openapi-spec/swagger.json \ - --skip-validate-spec --generator-name ruby --config .openapi-config.json -``` - ## Installation ### Build a gem @@ -102,7 +90,7 @@ Class | Method | HTTP request | Description *Kubevirt::DefaultApi* | [**create_namespaced_virtual_machine_restore**](docs/DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | *Kubevirt::DefaultApi* | [**create_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | *Kubevirt::DefaultApi* | [**create_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | -*Kubevirt::DefaultApi* | [**create_virtual_machine_clone**](docs/DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | +*Kubevirt::DefaultApi* | [**create_virtual_machine_clone**](docs/DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones | *Kubevirt::DefaultApi* | [**create_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | *Kubevirt::DefaultApi* | [**create_virtual_machine_cluster_preference**](docs/DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | *Kubevirt::DefaultApi* | [**delete_collection_migration_policy**](docs/DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | @@ -119,7 +107,7 @@ Class | Method | HTTP request | Description *Kubevirt::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 | *Kubevirt::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 | *Kubevirt::DefaultApi* | [**delete_collection_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | -*Kubevirt::DefaultApi* | [**delete_collection_virtual_machine_clone**](docs/DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | +*Kubevirt::DefaultApi* | [**delete_collection_virtual_machine_clone**](docs/DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones | *Kubevirt::DefaultApi* | [**delete_collection_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | *Kubevirt::DefaultApi* | [**delete_collection_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | *Kubevirt::DefaultApi* | [**delete_migration_policy**](docs/DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | @@ -136,7 +124,7 @@ Class | Method | HTTP request | Description *Kubevirt::DefaultApi* | [**delete_namespaced_virtual_machine_restore**](docs/DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *Kubevirt::DefaultApi* | [**delete_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | *Kubevirt::DefaultApi* | [**delete_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | -*Kubevirt::DefaultApi* | [**delete_virtual_machine_clone**](docs/DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +*Kubevirt::DefaultApi* | [**delete_virtual_machine_clone**](docs/DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | *Kubevirt::DefaultApi* | [**delete_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *Kubevirt::DefaultApi* | [**delete_virtual_machine_cluster_preference**](docs/DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | *Kubevirt::DefaultApi* | [**func13**](docs/DefaultApi.md#func13) | **GET** /healthz | @@ -149,7 +137,7 @@ Class | Method | HTTP request | Description *Kubevirt::DefaultApi* | [**get_api_group_migrations_kubevirt_io**](docs/DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | *Kubevirt::DefaultApi* | [**get_api_group_pool_kubevirt_io**](docs/DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | *Kubevirt::DefaultApi* | [**get_api_group_snapshot_kubevirt_io**](docs/DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | -*Kubevirt::DefaultApi* | [**get_api_resources_clone_kubevirt_io_v1alpha1**](docs/DefaultApi.md#get_api_resources_clone_kubevirt_io_v1alpha1) | **GET** /apis/clone.kubevirt.io/v1alpha1/ | +*Kubevirt::DefaultApi* | [**get_api_resources_clone_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_clone_kubevirt_io_v1beta1) | **GET** /apis/clone.kubevirt.io/v1beta1/ | *Kubevirt::DefaultApi* | [**get_api_resources_export_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_export_kubevirt_io_v1beta1) | **GET** /apis/export.kubevirt.io/v1beta1/ | *Kubevirt::DefaultApi* | [**get_api_resources_instancetype_kubevirt_io_v1beta1**](docs/DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1beta1) | **GET** /apis/instancetype.kubevirt.io/v1beta1/ | *Kubevirt::DefaultApi* | [**get_api_resources_kubevirt_io_v1**](docs/DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | @@ -175,7 +163,7 @@ Class | Method | HTTP request | Description *Kubevirt::DefaultApi* | [**list_namespaced_virtual_machine_restore**](docs/DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | *Kubevirt::DefaultApi* | [**list_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | *Kubevirt::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 | -*Kubevirt::DefaultApi* | [**list_virtual_machine_clone**](docs/DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | +*Kubevirt::DefaultApi* | [**list_virtual_machine_clone**](docs/DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones | *Kubevirt::DefaultApi* | [**list_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | *Kubevirt::DefaultApi* | [**list_virtual_machine_cluster_preference**](docs/DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | *Kubevirt::DefaultApi* | [**list_virtual_machine_export_for_all_namespaces**](docs/DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1beta1/virtualmachineexports | @@ -204,7 +192,7 @@ Class | Method | HTTP request | Description *Kubevirt::DefaultApi* | [**patch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *Kubevirt::DefaultApi* | [**patch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | *Kubevirt::DefaultApi* | [**patch_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | -*Kubevirt::DefaultApi* | [**patch_virtual_machine_clone**](docs/DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +*Kubevirt::DefaultApi* | [**patch_virtual_machine_clone**](docs/DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | *Kubevirt::DefaultApi* | [**patch_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *Kubevirt::DefaultApi* | [**patch_virtual_machine_cluster_preference**](docs/DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | *Kubevirt::DefaultApi* | [**read_migration_policy**](docs/DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | @@ -221,7 +209,7 @@ Class | Method | HTTP request | Description *Kubevirt::DefaultApi* | [**read_namespaced_virtual_machine_restore**](docs/DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *Kubevirt::DefaultApi* | [**read_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | *Kubevirt::DefaultApi* | [**read_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | -*Kubevirt::DefaultApi* | [**read_virtual_machine_clone**](docs/DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +*Kubevirt::DefaultApi* | [**read_virtual_machine_clone**](docs/DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | *Kubevirt::DefaultApi* | [**read_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *Kubevirt::DefaultApi* | [**read_virtual_machine_cluster_preference**](docs/DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | *Kubevirt::DefaultApi* | [**replace_migration_policy**](docs/DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | @@ -238,7 +226,7 @@ Class | Method | HTTP request | Description *Kubevirt::DefaultApi* | [**replace_namespaced_virtual_machine_restore**](docs/DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | *Kubevirt::DefaultApi* | [**replace_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | *Kubevirt::DefaultApi* | [**replace_namespaced_virtual_machine_snapshot_content**](docs/DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | -*Kubevirt::DefaultApi* | [**replace_virtual_machine_clone**](docs/DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | +*Kubevirt::DefaultApi* | [**replace_virtual_machine_clone**](docs/DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | *Kubevirt::DefaultApi* | [**replace_virtual_machine_cluster_instancetype**](docs/DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | *Kubevirt::DefaultApi* | [**replace_virtual_machine_cluster_preference**](docs/DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | *Kubevirt::DefaultApi* | [**v1_check_health**](docs/DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | @@ -253,6 +241,7 @@ Class | Method | HTTP request | Description *Kubevirt::DefaultApi* | [**v1_migrate**](docs/DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/migrate | *Kubevirt::DefaultApi* | [**v1_pause**](docs/DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/pause | *Kubevirt::DefaultApi* | [**v1_remove_memory_dump**](docs/DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removememorydump | +*Kubevirt::DefaultApi* | [**v1_reset**](docs/DefaultApi.md#v1_reset) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/reset | *Kubevirt::DefaultApi* | [**v1_restart**](docs/DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/restart | *Kubevirt::DefaultApi* | [**v1_sev_fetch_cert_chain**](docs/DefaultApi.md#v1_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain | *Kubevirt::DefaultApi* | [**v1_sev_inject_launch_secret**](docs/DefaultApi.md#v1_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret | @@ -279,6 +268,7 @@ Class | Method | HTTP request | Description *Kubevirt::DefaultApi* | [**v1alpha3_migrate**](docs/DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate | *Kubevirt::DefaultApi* | [**v1alpha3_pause**](docs/DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause | *Kubevirt::DefaultApi* | [**v1alpha3_remove_memory_dump**](docs/DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removememorydump | +*Kubevirt::DefaultApi* | [**v1alpha3_reset**](docs/DefaultApi.md#v1alpha3_reset) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/reset | *Kubevirt::DefaultApi* | [**v1alpha3_restart**](docs/DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | *Kubevirt::DefaultApi* | [**v1alpha3_sev_fetch_cert_chain**](docs/DefaultApi.md#v1alpha3_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain | *Kubevirt::DefaultApi* | [**v1alpha3_sev_inject_launch_secret**](docs/DefaultApi.md#v1alpha3_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret | @@ -337,7 +327,7 @@ Class | Method | HTTP request | Description *Kubevirt::DefaultApi* | [**watch_namespaced_virtual_machine_restore**](docs/DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinerestores | *Kubevirt::DefaultApi* | [**watch_namespaced_virtual_machine_snapshot**](docs/DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshots | *Kubevirt::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 | -*Kubevirt::DefaultApi* | [**watch_virtual_machine_clone_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | +*Kubevirt::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 | *Kubevirt::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 | *Kubevirt::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 | *Kubevirt::DefaultApi* | [**watch_virtual_machine_export_list_for_all_namespaces**](docs/DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1beta1/watch/virtualmachineexports | @@ -427,6 +417,7 @@ Class | Method | HTTP request | Description - [Kubevirt::V1ConfigMapVolumeSource](docs/V1ConfigMapVolumeSource.md) - [Kubevirt::V1ContainerDiskInfo](docs/V1ContainerDiskInfo.md) - [Kubevirt::V1ContainerDiskSource](docs/V1ContainerDiskSource.md) + - [Kubevirt::V1ControllerRevisionRef](docs/V1ControllerRevisionRef.md) - [Kubevirt::V1CustomBlockSize](docs/V1CustomBlockSize.md) - [Kubevirt::V1CustomProfile](docs/V1CustomProfile.md) - [Kubevirt::V1CustomizeComponents](docs/V1CustomizeComponents.md) @@ -438,6 +429,7 @@ Class | Method | HTTP request | Description - [Kubevirt::V1DeveloperConfiguration](docs/V1DeveloperConfiguration.md) - [Kubevirt::V1Devices](docs/V1Devices.md) - [Kubevirt::V1Disk](docs/V1Disk.md) + - [Kubevirt::V1DiskIOThreads](docs/V1DiskIOThreads.md) - [Kubevirt::V1DiskTarget](docs/V1DiskTarget.md) - [Kubevirt::V1DiskVerification](docs/V1DiskVerification.md) - [Kubevirt::V1DomainMemoryDumpInfo](docs/V1DomainMemoryDumpInfo.md) @@ -473,6 +465,7 @@ Class | Method | HTTP request | Description - [Kubevirt::V1Input](docs/V1Input.md) - [Kubevirt::V1InstancetypeConfiguration](docs/V1InstancetypeConfiguration.md) - [Kubevirt::V1InstancetypeMatcher](docs/V1InstancetypeMatcher.md) + - [Kubevirt::V1InstancetypeStatusRef](docs/V1InstancetypeStatusRef.md) - [Kubevirt::V1Interface](docs/V1Interface.md) - [Kubevirt::V1InterfaceBindingMigration](docs/V1InterfaceBindingMigration.md) - [Kubevirt::V1InterfaceBindingPlugin](docs/V1InterfaceBindingPlugin.md) @@ -611,19 +604,14 @@ Class | Method | HTTP request | Description - [Kubevirt::V1VolumeStatus](docs/V1VolumeStatus.md) - [Kubevirt::V1VolumeUpdateState](docs/V1VolumeUpdateState.md) - [Kubevirt::V1Watchdog](docs/V1Watchdog.md) - - [Kubevirt::V1alpha1Condition](docs/V1alpha1Condition.md) - [Kubevirt::V1alpha1MigrationPolicy](docs/V1alpha1MigrationPolicy.md) - [Kubevirt::V1alpha1MigrationPolicyList](docs/V1alpha1MigrationPolicyList.md) - [Kubevirt::V1alpha1MigrationPolicySpec](docs/V1alpha1MigrationPolicySpec.md) - [Kubevirt::V1alpha1Selectors](docs/V1alpha1Selectors.md) - - [Kubevirt::V1alpha1VirtualMachineClone](docs/V1alpha1VirtualMachineClone.md) - - [Kubevirt::V1alpha1VirtualMachineCloneList](docs/V1alpha1VirtualMachineCloneList.md) - - [Kubevirt::V1alpha1VirtualMachineCloneSpec](docs/V1alpha1VirtualMachineCloneSpec.md) - - [Kubevirt::V1alpha1VirtualMachineCloneStatus](docs/V1alpha1VirtualMachineCloneStatus.md) - - [Kubevirt::V1alpha1VirtualMachineCloneTemplateFilters](docs/V1alpha1VirtualMachineCloneTemplateFilters.md) - [Kubevirt::V1alpha1VirtualMachinePool](docs/V1alpha1VirtualMachinePool.md) - [Kubevirt::V1alpha1VirtualMachinePoolCondition](docs/V1alpha1VirtualMachinePoolCondition.md) - [Kubevirt::V1alpha1VirtualMachinePoolList](docs/V1alpha1VirtualMachinePoolList.md) + - [Kubevirt::V1alpha1VirtualMachinePoolNameGeneration](docs/V1alpha1VirtualMachinePoolNameGeneration.md) - [Kubevirt::V1alpha1VirtualMachinePoolSpec](docs/V1alpha1VirtualMachinePoolSpec.md) - [Kubevirt::V1alpha1VirtualMachinePoolStatus](docs/V1alpha1VirtualMachinePoolStatus.md) - [Kubevirt::V1alpha1VirtualMachineTemplateSpec](docs/V1alpha1VirtualMachineTemplateSpec.md) @@ -658,6 +646,11 @@ Class | Method | HTTP request | Description - [Kubevirt::V1beta1SpreadOptions](docs/V1beta1SpreadOptions.md) - [Kubevirt::V1beta1StorageSpec](docs/V1beta1StorageSpec.md) - [Kubevirt::V1beta1VirtualMachine](docs/V1beta1VirtualMachine.md) + - [Kubevirt::V1beta1VirtualMachineClone](docs/V1beta1VirtualMachineClone.md) + - [Kubevirt::V1beta1VirtualMachineCloneList](docs/V1beta1VirtualMachineCloneList.md) + - [Kubevirt::V1beta1VirtualMachineCloneSpec](docs/V1beta1VirtualMachineCloneSpec.md) + - [Kubevirt::V1beta1VirtualMachineCloneStatus](docs/V1beta1VirtualMachineCloneStatus.md) + - [Kubevirt::V1beta1VirtualMachineCloneTemplateFilters](docs/V1beta1VirtualMachineCloneTemplateFilters.md) - [Kubevirt::V1beta1VirtualMachineClusterInstancetype](docs/V1beta1VirtualMachineClusterInstancetype.md) - [Kubevirt::V1beta1VirtualMachineClusterInstancetypeList](docs/V1beta1VirtualMachineClusterInstancetypeList.md) - [Kubevirt::V1beta1VirtualMachineClusterPreference](docs/V1beta1VirtualMachineClusterPreference.md) diff --git a/docs/DefaultApi.md b/docs/DefaultApi.md index e6c5c364..c89d0215 100644 --- a/docs/DefaultApi.md +++ b/docs/DefaultApi.md @@ -18,7 +18,7 @@ All URIs are relative to *http://localhost* | [**create_namespaced_virtual_machine_restore**](DefaultApi.md#create_namespaced_virtual_machine_restore) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | | | [**create_namespaced_virtual_machine_snapshot**](DefaultApi.md#create_namespaced_virtual_machine_snapshot) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | | | [**create_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#create_namespaced_virtual_machine_snapshot_content) | **POST** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | | -| [**create_virtual_machine_clone**](DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | | +| [**create_virtual_machine_clone**](DefaultApi.md#create_virtual_machine_clone) | **POST** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones | | | [**create_virtual_machine_cluster_instancetype**](DefaultApi.md#create_virtual_machine_cluster_instancetype) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | | | [**create_virtual_machine_cluster_preference**](DefaultApi.md#create_virtual_machine_cluster_preference) | **POST** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | | | [**delete_collection_migration_policy**](DefaultApi.md#delete_collection_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies | | @@ -35,7 +35,7 @@ All URIs are relative to *http://localhost* | [**delete_collection_namespaced_virtual_machine_restore**](DefaultApi.md#delete_collection_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | | | [**delete_collection_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | | | [**delete_collection_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_collection_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | | -| [**delete_collection_virtual_machine_clone**](DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | | +| [**delete_collection_virtual_machine_clone**](DefaultApi.md#delete_collection_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones | | | [**delete_collection_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_collection_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | | | [**delete_collection_virtual_machine_cluster_preference**](DefaultApi.md#delete_collection_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | | | [**delete_migration_policy**](DefaultApi.md#delete_migration_policy) | **DELETE** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | | @@ -52,7 +52,7 @@ All URIs are relative to *http://localhost* | [**delete_namespaced_virtual_machine_restore**](DefaultApi.md#delete_namespaced_virtual_machine_restore) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | | | [**delete_namespaced_virtual_machine_snapshot**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | | | [**delete_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#delete_namespaced_virtual_machine_snapshot_content) | **DELETE** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | | -| [**delete_virtual_machine_clone**](DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | | +| [**delete_virtual_machine_clone**](DefaultApi.md#delete_virtual_machine_clone) | **DELETE** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | | | [**delete_virtual_machine_cluster_instancetype**](DefaultApi.md#delete_virtual_machine_cluster_instancetype) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | | | [**delete_virtual_machine_cluster_preference**](DefaultApi.md#delete_virtual_machine_cluster_preference) | **DELETE** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | | | [**func13**](DefaultApi.md#func13) | **GET** /healthz | | @@ -65,7 +65,7 @@ All URIs are relative to *http://localhost* | [**get_api_group_migrations_kubevirt_io**](DefaultApi.md#get_api_group_migrations_kubevirt_io) | **GET** /apis/migrations.kubevirt.io/ | | | [**get_api_group_pool_kubevirt_io**](DefaultApi.md#get_api_group_pool_kubevirt_io) | **GET** /apis/pool.kubevirt.io/ | | | [**get_api_group_snapshot_kubevirt_io**](DefaultApi.md#get_api_group_snapshot_kubevirt_io) | **GET** /apis/snapshot.kubevirt.io/ | | -| [**get_api_resources_clone_kubevirt_io_v1alpha1**](DefaultApi.md#get_api_resources_clone_kubevirt_io_v1alpha1) | **GET** /apis/clone.kubevirt.io/v1alpha1/ | | +| [**get_api_resources_clone_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_clone_kubevirt_io_v1beta1) | **GET** /apis/clone.kubevirt.io/v1beta1/ | | | [**get_api_resources_export_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_export_kubevirt_io_v1beta1) | **GET** /apis/export.kubevirt.io/v1beta1/ | | | [**get_api_resources_instancetype_kubevirt_io_v1beta1**](DefaultApi.md#get_api_resources_instancetype_kubevirt_io_v1beta1) | **GET** /apis/instancetype.kubevirt.io/v1beta1/ | | | [**get_api_resources_kubevirt_io_v1**](DefaultApi.md#get_api_resources_kubevirt_io_v1) | **GET** /apis/kubevirt.io/v1/ | | @@ -91,7 +91,7 @@ All URIs are relative to *http://localhost* | [**list_namespaced_virtual_machine_restore**](DefaultApi.md#list_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores | | | [**list_namespaced_virtual_machine_snapshot**](DefaultApi.md#list_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots | | | [**list_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#list_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents | | -| [**list_virtual_machine_clone**](DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones | | +| [**list_virtual_machine_clone**](DefaultApi.md#list_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones | | | [**list_virtual_machine_cluster_instancetype**](DefaultApi.md#list_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes | | | [**list_virtual_machine_cluster_preference**](DefaultApi.md#list_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences | | | [**list_virtual_machine_export_for_all_namespaces**](DefaultApi.md#list_virtual_machine_export_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1beta1/virtualmachineexports | | @@ -120,7 +120,7 @@ All URIs are relative to *http://localhost* | [**patch_namespaced_virtual_machine_restore**](DefaultApi.md#patch_namespaced_virtual_machine_restore) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | | | [**patch_namespaced_virtual_machine_snapshot**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | | | [**patch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#patch_namespaced_virtual_machine_snapshot_content) | **PATCH** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | | -| [**patch_virtual_machine_clone**](DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | | +| [**patch_virtual_machine_clone**](DefaultApi.md#patch_virtual_machine_clone) | **PATCH** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | | | [**patch_virtual_machine_cluster_instancetype**](DefaultApi.md#patch_virtual_machine_cluster_instancetype) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | | | [**patch_virtual_machine_cluster_preference**](DefaultApi.md#patch_virtual_machine_cluster_preference) | **PATCH** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | | | [**read_migration_policy**](DefaultApi.md#read_migration_policy) | **GET** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | | @@ -137,7 +137,7 @@ All URIs are relative to *http://localhost* | [**read_namespaced_virtual_machine_restore**](DefaultApi.md#read_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | | | [**read_namespaced_virtual_machine_snapshot**](DefaultApi.md#read_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | | | [**read_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#read_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | | -| [**read_virtual_machine_clone**](DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | | +| [**read_virtual_machine_clone**](DefaultApi.md#read_virtual_machine_clone) | **GET** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | | | [**read_virtual_machine_cluster_instancetype**](DefaultApi.md#read_virtual_machine_cluster_instancetype) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | | | [**read_virtual_machine_cluster_preference**](DefaultApi.md#read_virtual_machine_cluster_preference) | **GET** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | | | [**replace_migration_policy**](DefaultApi.md#replace_migration_policy) | **PUT** /apis/migrations.kubevirt.io/v1alpha1/migrationpolicies/{name} | | @@ -154,7 +154,7 @@ All URIs are relative to *http://localhost* | [**replace_namespaced_virtual_machine_restore**](DefaultApi.md#replace_namespaced_virtual_machine_restore) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinerestores/{name} | | | [**replace_namespaced_virtual_machine_snapshot**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshots/{name} | | | [**replace_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#replace_namespaced_virtual_machine_snapshot_content) | **PUT** /apis/snapshot.kubevirt.io/v1beta1/namespaces/{namespace}/virtualmachinesnapshotcontents/{name} | | -| [**replace_virtual_machine_clone**](DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name} | | +| [**replace_virtual_machine_clone**](DefaultApi.md#replace_virtual_machine_clone) | **PUT** /apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name} | | | [**replace_virtual_machine_cluster_instancetype**](DefaultApi.md#replace_virtual_machine_cluster_instancetype) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterinstancetypes/{name} | | | [**replace_virtual_machine_cluster_preference**](DefaultApi.md#replace_virtual_machine_cluster_preference) | **PUT** /apis/instancetype.kubevirt.io/v1beta1/virtualmachineclusterpreferences/{name} | | | [**v1_check_health**](DefaultApi.md#v1_check_health) | **GET** /apis/subresources.kubevirt.io/v1/healthz | | @@ -169,6 +169,7 @@ All URIs are relative to *http://localhost* | [**v1_migrate**](DefaultApi.md#v1_migrate) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/migrate | | | [**v1_pause**](DefaultApi.md#v1_pause) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/pause | | | [**v1_remove_memory_dump**](DefaultApi.md#v1_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/removememorydump | | +| [**v1_reset**](DefaultApi.md#v1_reset) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/reset | | | [**v1_restart**](DefaultApi.md#v1_restart) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachines/{name}/restart | | | [**v1_sev_fetch_cert_chain**](DefaultApi.md#v1_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain | | | [**v1_sev_inject_launch_secret**](DefaultApi.md#v1_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret | | @@ -195,6 +196,7 @@ All URIs are relative to *http://localhost* | [**v1alpha3_migrate**](DefaultApi.md#v1alpha3_migrate) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/migrate | | | [**v1alpha3_pause**](DefaultApi.md#v1alpha3_pause) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/pause | | | [**v1alpha3_remove_memory_dump**](DefaultApi.md#v1alpha3_remove_memory_dump) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/removememorydump | | +| [**v1alpha3_reset**](DefaultApi.md#v1alpha3_reset) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/reset | | | [**v1alpha3_restart**](DefaultApi.md#v1alpha3_restart) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachines/{name}/restart | | | [**v1alpha3_sev_fetch_cert_chain**](DefaultApi.md#v1alpha3_sev_fetch_cert_chain) | **GET** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/fetchcertchain | | | [**v1alpha3_sev_inject_launch_secret**](DefaultApi.md#v1alpha3_sev_inject_launch_secret) | **PUT** /apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/sev/injectlaunchsecret | | @@ -253,7 +255,7 @@ All URIs are relative to *http://localhost* | [**watch_namespaced_virtual_machine_restore**](DefaultApi.md#watch_namespaced_virtual_machine_restore) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinerestores | | | [**watch_namespaced_virtual_machine_snapshot**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshots | | | [**watch_namespaced_virtual_machine_snapshot_content**](DefaultApi.md#watch_namespaced_virtual_machine_snapshot_content) | **GET** /apis/snapshot.kubevirt.io/v1beta1/watch/namespaces/{namespace}/virtualmachinesnapshotcontents | | -| [**watch_virtual_machine_clone_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones | | +| [**watch_virtual_machine_clone_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_clone_list_for_all_namespaces) | **GET** /apis/clone.kubevirt.io/v1beta1/watch/virtualmachineclones | | | [**watch_virtual_machine_cluster_instancetype_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_instancetype_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterinstancetypes | | | [**watch_virtual_machine_cluster_preference_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_cluster_preference_list_for_all_namespaces) | **GET** /apis/instancetype.kubevirt.io/v1beta1/watch/virtualmachineclusterpreferences | | | [**watch_virtual_machine_export_list_for_all_namespaces**](DefaultApi.md#watch_virtual_machine_export_list_for_all_namespaces) | **GET** /apis/export.kubevirt.io/v1beta1/watch/virtualmachineexports | | @@ -812,7 +814,7 @@ require 'kubevirt' api_instance = Kubevirt::DefaultApi.new namespace = 'namespace_example' # String | Object name and auth scope, such as for teams and projects -body = Kubevirt::V1beta1VirtualMachineInstancetype.new({spec: Kubevirt::V1beta1VirtualMachineInstancetypeSpec.new({cpu: Kubevirt::V1beta1CPUInstancetype.new({guest: 3.56}), memory: Kubevirt::V1beta1MemoryInstancetype.new({guest: 'guest_example'})})}) # V1beta1VirtualMachineInstancetype | +body = Kubevirt::V1beta1VirtualMachineInstancetype.new({spec: Kubevirt::V1beta1VirtualMachineInstancetypeSpec.new({cpu: Kubevirt::V1beta1CPUInstancetype.new({guest: 3.56}), memory: Kubevirt::V1beta1MemoryInstancetype.new({guest: 3.56})})}) # V1beta1VirtualMachineInstancetype | begin @@ -1194,7 +1196,7 @@ No authorization required ## create_virtual_machine_clone -> create_virtual_machine_clone(body) +> create_virtual_machine_clone(body) @@ -1207,7 +1209,7 @@ require 'time' require 'kubevirt' api_instance = Kubevirt::DefaultApi.new -body = Kubevirt::V1alpha1VirtualMachineClone.new({spec: Kubevirt::V1alpha1VirtualMachineCloneSpec.new({source: Kubevirt::K8sIoApiCoreV1TypedLocalObjectReference.new({kind: 'kind_example', name: 'name_example'})})}) # V1alpha1VirtualMachineClone | +body = Kubevirt::V1beta1VirtualMachineClone.new({spec: Kubevirt::V1beta1VirtualMachineCloneSpec.new({source: Kubevirt::K8sIoApiCoreV1TypedLocalObjectReference.new({kind: 'kind_example', name: 'name_example'})})}) # V1beta1VirtualMachineClone | begin @@ -1222,7 +1224,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> create_virtual_machine_clone_with_http_info(body) +> , Integer, Hash)> create_virtual_machine_clone_with_http_info(body) ```ruby begin @@ -1230,7 +1232,7 @@ begin data, status_code, headers = api_instance.create_virtual_machine_clone_with_http_info(body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue Kubevirt::ApiError => e puts "Error when calling DefaultApi->create_virtual_machine_clone_with_http_info: #{e}" end @@ -1240,11 +1242,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **body** | [**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md) | | | +| **body** | [**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md) | | | ### Return type -[**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md) +[**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md) ### Authorization @@ -1271,7 +1273,7 @@ require 'time' require 'kubevirt' api_instance = Kubevirt::DefaultApi.new -body = Kubevirt::V1beta1VirtualMachineClusterInstancetype.new({spec: Kubevirt::V1beta1VirtualMachineInstancetypeSpec.new({cpu: Kubevirt::V1beta1CPUInstancetype.new({guest: 3.56}), memory: Kubevirt::V1beta1MemoryInstancetype.new({guest: 'guest_example'})})}) # V1beta1VirtualMachineClusterInstancetype | +body = Kubevirt::V1beta1VirtualMachineClusterInstancetype.new({spec: Kubevirt::V1beta1VirtualMachineInstancetypeSpec.new({cpu: Kubevirt::V1beta1CPUInstancetype.new({guest: 3.56}), memory: Kubevirt::V1beta1MemoryInstancetype.new({guest: 3.56})})}) # V1beta1VirtualMachineClusterInstancetype | begin @@ -4634,9 +4636,9 @@ No authorization required - **Accept**: application/json -## get_api_resources_clone_kubevirt_io_v1alpha1 +## get_api_resources_clone_kubevirt_io_v1beta1 -> get_api_resources_clone_kubevirt_io_v1alpha1 +> get_api_resources_clone_kubevirt_io_v1beta1 @@ -4652,28 +4654,28 @@ api_instance = Kubevirt::DefaultApi.new begin - result = api_instance.get_api_resources_clone_kubevirt_io_v1alpha1 + result = api_instance.get_api_resources_clone_kubevirt_io_v1beta1 p result rescue Kubevirt::ApiError => e - puts "Error when calling DefaultApi->get_api_resources_clone_kubevirt_io_v1alpha1: #{e}" + puts "Error when calling DefaultApi->get_api_resources_clone_kubevirt_io_v1beta1: #{e}" end ``` -#### Using the get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info variant +#### Using the get_api_resources_clone_kubevirt_io_v1beta1_with_http_info variant This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info +> , Integer, Hash)> get_api_resources_clone_kubevirt_io_v1beta1_with_http_info ```ruby begin - data, status_code, headers = api_instance.get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info + data, status_code, headers = api_instance.get_api_resources_clone_kubevirt_io_v1beta1_with_http_info p status_code # => 2xx p headers # => { ... } p data # => rescue Kubevirt::ApiError => e - puts "Error when calling DefaultApi->get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info: #{e}" + puts "Error when calling DefaultApi->get_api_resources_clone_kubevirt_io_v1beta1_with_http_info: #{e}" end ``` @@ -6530,7 +6532,7 @@ No authorization required ## list_virtual_machine_clone -> list_virtual_machine_clone(opts) +> list_virtual_machine_clone(opts) @@ -6567,7 +6569,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> list_virtual_machine_clone_with_http_info(opts) +> , Integer, Hash)> list_virtual_machine_clone_with_http_info(opts) ```ruby begin @@ -6575,7 +6577,7 @@ begin data, status_code, headers = api_instance.list_virtual_machine_clone_with_http_info(opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue Kubevirt::ApiError => e puts "Error when calling DefaultApi->list_virtual_machine_clone_with_http_info: #{e}" end @@ -6596,7 +6598,7 @@ end ### Return type -[**V1alpha1VirtualMachineCloneList**](V1alpha1VirtualMachineCloneList.md) +[**V1beta1VirtualMachineCloneList**](V1beta1VirtualMachineCloneList.md) ### Authorization @@ -8680,7 +8682,7 @@ No authorization required ## patch_virtual_machine_clone -> patch_virtual_machine_clone(name, body) +> patch_virtual_machine_clone(name, body) @@ -8709,7 +8711,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> patch_virtual_machine_clone_with_http_info(name, body) +> , Integer, Hash)> patch_virtual_machine_clone_with_http_info(name, body) ```ruby begin @@ -8717,7 +8719,7 @@ begin data, status_code, headers = api_instance.patch_virtual_machine_clone_with_http_info(name, body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue Kubevirt::ApiError => e puts "Error when calling DefaultApi->patch_virtual_machine_clone_with_http_info: #{e}" end @@ -8732,7 +8734,7 @@ end ### Return type -[**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md) +[**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md) ### Authorization @@ -9884,7 +9886,7 @@ No authorization required ## read_virtual_machine_clone -> read_virtual_machine_clone(name, opts) +> read_virtual_machine_clone(name, opts) @@ -9916,7 +9918,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> read_virtual_machine_clone_with_http_info(name, opts) +> , Integer, Hash)> read_virtual_machine_clone_with_http_info(name, opts) ```ruby begin @@ -9924,7 +9926,7 @@ begin data, status_code, headers = api_instance.read_virtual_machine_clone_with_http_info(name, opts) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue Kubevirt::ApiError => e puts "Error when calling DefaultApi->read_virtual_machine_clone_with_http_info: #{e}" end @@ -9940,7 +9942,7 @@ end ### Return type -[**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md) +[**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md) ### Authorization @@ -10651,7 +10653,7 @@ require 'kubevirt' api_instance = Kubevirt::DefaultApi.new name = 'name_example' # String | Name of the resource namespace = 'namespace_example' # String | Object name and auth scope, such as for teams and projects -body = Kubevirt::V1beta1VirtualMachineInstancetype.new({spec: Kubevirt::V1beta1VirtualMachineInstancetypeSpec.new({cpu: Kubevirt::V1beta1CPUInstancetype.new({guest: 3.56}), memory: Kubevirt::V1beta1MemoryInstancetype.new({guest: 'guest_example'})})}) # V1beta1VirtualMachineInstancetype | +body = Kubevirt::V1beta1VirtualMachineInstancetype.new({spec: Kubevirt::V1beta1VirtualMachineInstancetypeSpec.new({cpu: Kubevirt::V1beta1CPUInstancetype.new({guest: 3.56}), memory: Kubevirt::V1beta1MemoryInstancetype.new({guest: 3.56})})}) # V1beta1VirtualMachineInstancetype | begin @@ -11044,7 +11046,7 @@ No authorization required ## replace_virtual_machine_clone -> replace_virtual_machine_clone(name, body) +> replace_virtual_machine_clone(name, body) @@ -11058,7 +11060,7 @@ require 'kubevirt' api_instance = Kubevirt::DefaultApi.new name = 'name_example' # String | Name of the resource -body = Kubevirt::V1alpha1VirtualMachineClone.new({spec: Kubevirt::V1alpha1VirtualMachineCloneSpec.new({source: Kubevirt::K8sIoApiCoreV1TypedLocalObjectReference.new({kind: 'kind_example', name: 'name_example'})})}) # V1alpha1VirtualMachineClone | +body = Kubevirt::V1beta1VirtualMachineClone.new({spec: Kubevirt::V1beta1VirtualMachineCloneSpec.new({source: Kubevirt::K8sIoApiCoreV1TypedLocalObjectReference.new({kind: 'kind_example', name: 'name_example'})})}) # V1beta1VirtualMachineClone | begin @@ -11073,7 +11075,7 @@ end This returns an Array which contains the response data, status code and headers. -> , Integer, Hash)> replace_virtual_machine_clone_with_http_info(name, body) +> , Integer, Hash)> replace_virtual_machine_clone_with_http_info(name, body) ```ruby begin @@ -11081,7 +11083,7 @@ begin data, status_code, headers = api_instance.replace_virtual_machine_clone_with_http_info(name, body) p status_code # => 2xx p headers # => { ... } - p data # => + p data # => rescue Kubevirt::ApiError => e puts "Error when calling DefaultApi->replace_virtual_machine_clone_with_http_info: #{e}" end @@ -11092,11 +11094,11 @@ end | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **name** | **String** | Name of the resource | | -| **body** | [**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md) | | | +| **body** | [**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md) | | | ### Return type -[**V1alpha1VirtualMachineClone**](V1alpha1VirtualMachineClone.md) +[**V1beta1VirtualMachineClone**](V1beta1VirtualMachineClone.md) ### Authorization @@ -11124,7 +11126,7 @@ require 'kubevirt' api_instance = Kubevirt::DefaultApi.new name = 'name_example' # String | Name of the resource -body = Kubevirt::V1beta1VirtualMachineClusterInstancetype.new({spec: Kubevirt::V1beta1VirtualMachineInstancetypeSpec.new({cpu: Kubevirt::V1beta1CPUInstancetype.new({guest: 3.56}), memory: Kubevirt::V1beta1MemoryInstancetype.new({guest: 'guest_example'})})}) # V1beta1VirtualMachineClusterInstancetype | +body = Kubevirt::V1beta1VirtualMachineClusterInstancetype.new({spec: Kubevirt::V1beta1VirtualMachineInstancetypeSpec.new({cpu: Kubevirt::V1beta1CPUInstancetype.new({guest: 3.56}), memory: Kubevirt::V1beta1MemoryInstancetype.new({guest: 3.56})})}) # V1beta1VirtualMachineClusterInstancetype | begin @@ -12020,6 +12022,72 @@ No authorization required - **Accept**: */* +## v1_reset + +> String v1_reset(name, namespace) + + + +Reset a VirtualMachineInstance object. + +### Examples + +```ruby +require 'time' +require 'kubevirt' + +api_instance = Kubevirt::DefaultApi.new +name = 'name_example' # String | Name of the resource +namespace = 'namespace_example' # String | Object name and auth scope, such as for teams and projects + +begin + + result = api_instance.v1_reset(name, namespace) + p result +rescue Kubevirt::ApiError => e + puts "Error when calling DefaultApi->v1_reset: #{e}" +end +``` + +#### Using the v1_reset_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> v1_reset_with_http_info(name, namespace) + +```ruby +begin + + data, status_code, headers = api_instance.v1_reset_with_http_info(name, namespace) + p status_code # => 2xx + p headers # => { ... } + p data # => String +rescue Kubevirt::ApiError => e + puts "Error when calling DefaultApi->v1_reset_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | Name of the resource | | +| **namespace** | **String** | Object name and auth scope, such as for teams and projects | | + +### Return type + +**String** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */* + + ## v1_restart > String v1_restart(name, namespace, opts) @@ -13744,6 +13812,72 @@ No authorization required - **Accept**: */* +## v1alpha3_reset + +> String v1alpha3_reset(name, namespace) + + + +Reset a VirtualMachineInstance object. + +### Examples + +```ruby +require 'time' +require 'kubevirt' + +api_instance = Kubevirt::DefaultApi.new +name = 'name_example' # String | Name of the resource +namespace = 'namespace_example' # String | Object name and auth scope, such as for teams and projects + +begin + + result = api_instance.v1alpha3_reset(name, namespace) + p result +rescue Kubevirt::ApiError => e + puts "Error when calling DefaultApi->v1alpha3_reset: #{e}" +end +``` + +#### Using the v1alpha3_reset_with_http_info variant + +This returns an Array which contains the response data, status code and headers. + +> v1alpha3_reset_with_http_info(name, namespace) + +```ruby +begin + + data, status_code, headers = api_instance.v1alpha3_reset_with_http_info(name, namespace) + p status_code # => 2xx + p headers # => { ... } + p data # => String +rescue Kubevirt::ApiError => e + puts "Error when calling DefaultApi->v1alpha3_reset_with_http_info: #{e}" +end +``` + +### Parameters + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | Name of the resource | | +| **namespace** | **String** | Object name and auth scope, such as for teams and projects | | + +### Return type + +**String** + +### Authorization + +No authorization required + +### HTTP request headers + +- **Content-Type**: Not defined +- **Accept**: */* + + ## v1alpha3_restart > String v1alpha3_restart(name, namespace, opts) diff --git a/docs/K8sIoApiCoreV1ResourceFieldSelector.md b/docs/K8sIoApiCoreV1ResourceFieldSelector.md index 43b5e007..31cef725 100644 --- a/docs/K8sIoApiCoreV1ResourceFieldSelector.md +++ b/docs/K8sIoApiCoreV1ResourceFieldSelector.md @@ -5,7 +5,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **container_name** | **String** | Container name: required for volumes, optional for env vars | [optional] | -| **divisor** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +| **divisor** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | | **resource** | **String** | Required: resource to select | [default to ''] | ## Example diff --git a/docs/K8sIoApiCoreV1VolumeResourceRequirements.md b/docs/K8sIoApiCoreV1VolumeResourceRequirements.md index 5dc8ef34..a547f5b8 100644 --- a/docs/K8sIoApiCoreV1VolumeResourceRequirements.md +++ b/docs/K8sIoApiCoreV1VolumeResourceRequirements.md @@ -4,8 +4,8 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **limits** | **Hash<String, String>** | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] | -| **requests** | **Hash<String, String>** | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] | +| **limits** | **Hash<String, Object>** | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] | +| **requests** | **Hash<String, Object>** | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] | ## Example diff --git a/docs/V1ControllerRevisionRef.md b/docs/V1ControllerRevisionRef.md new file mode 100644 index 00000000..a3b4b3a5 --- /dev/null +++ b/docs/V1ControllerRevisionRef.md @@ -0,0 +1,18 @@ +# Kubevirt::V1ControllerRevisionRef + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **name** | **String** | Name of the ControllerRevision | [optional] | + +## Example + +```ruby +require 'kubevirt' + +instance = Kubevirt::V1ControllerRevisionRef.new( + name: null +) +``` + diff --git a/docs/V1DeveloperConfiguration.md b/docs/V1DeveloperConfiguration.md index f0794f91..680d5568 100644 --- a/docs/V1DeveloperConfiguration.md +++ b/docs/V1DeveloperConfiguration.md @@ -4,6 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **cluster_profiler** | **Boolean** | Enable the ability to pprof profile KubeVirt control plane | [optional] | | **cpu_allocation_ratio** | **Integer** | For each requested virtual CPU, CPUAllocationRatio defines how much physical CPU to request per VMI from the hosting node. The value is in fraction of a CPU thread (or core on non-hyperthreaded nodes). For example, a value of 1 means 1 physical CPU thread per VMI CPU thread. A value of 100 would be 1% of a physical thread allocated for each requested VMI thread. This option has no effect on VMIs that request dedicated CPUs. More information at: https://kubevirt.io/user-guide/operations/node_overcommit/#node-cpu-allocation-ratio Defaults to 10 | [optional] | | **disk_verification** | [**V1DiskVerification**](V1DiskVerification.md) | | [optional] | | **feature_gates** | **Array<String>** | FeatureGates is the list of experimental features to enable. Defaults to none | [optional] | @@ -21,6 +22,7 @@ require 'kubevirt' instance = Kubevirt::V1DeveloperConfiguration.new( + cluster_profiler: null, cpu_allocation_ratio: null, disk_verification: null, feature_gates: null, diff --git a/docs/V1DiskIOThreads.md b/docs/V1DiskIOThreads.md new file mode 100644 index 00000000..b7af349c --- /dev/null +++ b/docs/V1DiskIOThreads.md @@ -0,0 +1,18 @@ +# Kubevirt::V1DiskIOThreads + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **supplemental_pool_thread_count** | **Integer** | SupplementalPoolThreadCount specifies how many iothreads are allocated for the supplementalPool policy. | [optional] | + +## Example + +```ruby +require 'kubevirt' + +instance = Kubevirt::V1DiskIOThreads.new( + supplemental_pool_thread_count: null +) +``` + diff --git a/docs/V1DiskVerification.md b/docs/V1DiskVerification.md index 194bf26f..04b88b97 100644 --- a/docs/V1DiskVerification.md +++ b/docs/V1DiskVerification.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **memory_limit** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | | +| **memory_limit** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | | ## Example diff --git a/docs/V1DomainSpec.md b/docs/V1DomainSpec.md index 2f41bf15..83d24dcf 100644 --- a/docs/V1DomainSpec.md +++ b/docs/V1DomainSpec.md @@ -10,6 +10,7 @@ | **devices** | [**V1Devices**](V1Devices.md) | | | | **features** | [**V1Features**](V1Features.md) | | [optional] | | **firmware** | [**V1Firmware**](V1Firmware.md) | | [optional] | +| **io_threads** | [**V1DiskIOThreads**](V1DiskIOThreads.md) | | [optional] | | **io_threads_policy** | **String** | Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto | [optional] | | **launch_security** | [**V1LaunchSecurity**](V1LaunchSecurity.md) | | [optional] | | **machine** | [**V1Machine**](V1Machine.md) | | [optional] | @@ -28,6 +29,7 @@ instance = Kubevirt::V1DomainSpec.new( devices: null, features: null, firmware: null, + io_threads: null, io_threads_policy: null, launch_security: null, machine: null, diff --git a/docs/V1EmptyDiskSource.md b/docs/V1EmptyDiskSource.md index cb7b4c6d..b61a8290 100644 --- a/docs/V1EmptyDiskSource.md +++ b/docs/V1EmptyDiskSource.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **capacity** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | | +| **capacity** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | | ## Example diff --git a/docs/V1HostDisk.md b/docs/V1HostDisk.md index 171b43b0..455b2bd1 100644 --- a/docs/V1HostDisk.md +++ b/docs/V1HostDisk.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **capacity** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +| **capacity** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | | **path** | **String** | The path to HostDisk image located on the cluster | [default to ''] | | **shared** | **Boolean** | Shared indicate whether the path is shared between nodes | [optional] | | **type** | **String** | Contains information if disk.img exists or should be created allowed options are 'Disk' and 'DiskOrCreate' | [default to ''] | diff --git a/docs/V1InstancetypeStatusRef.md b/docs/V1InstancetypeStatusRef.md new file mode 100644 index 00000000..eb29be45 --- /dev/null +++ b/docs/V1InstancetypeStatusRef.md @@ -0,0 +1,26 @@ +# Kubevirt::V1InstancetypeStatusRef + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **controller_revision_ref** | [**V1ControllerRevisionRef**](V1ControllerRevisionRef.md) | | [optional] | +| **infer_from_volume** | **String** | InferFromVolume lists the name of a volume that should be used to infer or discover the resource | [optional] | +| **infer_from_volume_failure_policy** | **String** | InferFromVolumeFailurePolicy controls what should happen on failure when inferring the resource | [optional] | +| **kind** | **String** | Kind specifies the kind of resource | [optional] | +| **name** | **String** | Name is the name of resource | [optional] | + +## Example + +```ruby +require 'kubevirt' + +instance = Kubevirt::V1InstancetypeStatusRef.new( + controller_revision_ref: null, + infer_from_volume: null, + infer_from_volume_failure_policy: null, + kind: null, + name: null +) +``` + diff --git a/docs/V1Interface.md b/docs/V1Interface.md index 1b569f23..639240b3 100644 --- a/docs/V1Interface.md +++ b/docs/V1Interface.md @@ -19,7 +19,7 @@ | **ports** | [**Array<V1Port>**](V1Port.md) | List of ports to be forwarded to the virtual machine. | [optional] | | **slirp** | **Object** | DeprecatedInterfaceSlirp is an alias to the deprecated InterfaceSlirp that connects to a given network using QEMU user networking mode. Deprecated: Removed in v1.3 | [optional] | | **sriov** | **Object** | InterfaceSRIOV connects to a given network by passing-through an SR-IOV PCI device via vfio. | [optional] | -| **state** | **String** | State represents the requested operational state of the interface. The (only) value supported is `absent`, expressing a request to remove the interface. | [optional] | +| **state** | **String** | State represents the requested operational state of the interface. The supported values are: `absent`, expressing a request to remove the interface. `down`, expressing a request to set the link down. `up`, expressing a request to set the link up. Empty value functions as `up`. | [optional] | | **tag** | **String** | If specified, the virtual network interface address and its tag will be provided to the guest via config drive | [optional] | ## Example diff --git a/docs/V1KubeVirtConfiguration.md b/docs/V1KubeVirtConfiguration.md index dbe57020..9e442eae 100644 --- a/docs/V1KubeVirtConfiguration.md +++ b/docs/V1KubeVirtConfiguration.md @@ -11,7 +11,7 @@ | **common_instancetypes_deployment** | [**V1CommonInstancetypesDeployment**](V1CommonInstancetypesDeployment.md) | | [optional] | | **controller_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] | | **cpu_model** | **String** | | [optional] | -| **cpu_request** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +| **cpu_request** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | | **default_runtime_class** | **String** | | [optional] | | **developer_configuration** | [**V1DeveloperConfiguration**](V1DeveloperConfiguration.md) | | [optional] | | **emulated_machines** | **Array<String>** | Deprecated. Use architectureConfiguration instead. | [optional] | @@ -39,7 +39,7 @@ | **virtual_machine_instances_per_node** | **Integer** | | [optional] | | **virtual_machine_options** | [**V1VirtualMachineOptions**](V1VirtualMachineOptions.md) | | [optional] | | **vm_rollout_strategy** | **String** | VMRolloutStrategy defines how live-updatable fields, like CPU sockets, memory, tolerations, and affinity, are propagated from a VM to its VMI. | [optional] | -| **vm_state_storage_class** | **String** | VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode. | [optional] | +| **vm_state_storage_class** | **String** | VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. | [optional] | | **webhook_configuration** | [**V1ReloadableComponentConfiguration**](V1ReloadableComponentConfiguration.md) | | [optional] | ## Example diff --git a/docs/V1LiveUpdateConfiguration.md b/docs/V1LiveUpdateConfiguration.md index ee16a476..d7448133 100644 --- a/docs/V1LiveUpdateConfiguration.md +++ b/docs/V1LiveUpdateConfiguration.md @@ -5,7 +5,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **max_cpu_sockets** | **Integer** | MaxCpuSockets provides a MaxSockets value for VMs that do not provide their own. For VMs with more sockets than maximum the MaxSockets will be set to equal number of sockets. | [optional] | -| **max_guest** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +| **max_guest** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | | **max_hotplug_ratio** | **Integer** | MaxHotplugRatio is the ratio used to define the max amount of a hotplug resource that can be made available to a VM when the specific Max* setting is not defined (MaxCpuSockets, MaxGuest) Example: VM is configured with 512Mi of guest memory, if MaxGuest is not defined and MaxHotplugRatio is 2 then MaxGuest = 1Gi defaults to 4 | [optional] | ## Example diff --git a/docs/V1Memory.md b/docs/V1Memory.md index 64a4daac..113ffbc3 100644 --- a/docs/V1Memory.md +++ b/docs/V1Memory.md @@ -4,9 +4,9 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **guest** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +| **guest** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | | **hugepages** | [**V1Hugepages**](V1Hugepages.md) | | [optional] | -| **max_guest** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +| **max_guest** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | ## Example diff --git a/docs/V1MemoryStatus.md b/docs/V1MemoryStatus.md index 931ec1b0..dc6573ee 100644 --- a/docs/V1MemoryStatus.md +++ b/docs/V1MemoryStatus.md @@ -4,9 +4,9 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **guest_at_boot** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | -| **guest_current** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | -| **guest_requested** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +| **guest_at_boot** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +| **guest_current** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +| **guest_requested** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | ## Example diff --git a/docs/V1MigrateOptions.md b/docs/V1MigrateOptions.md index f85b353f..510693b1 100644 --- a/docs/V1MigrateOptions.md +++ b/docs/V1MigrateOptions.md @@ -4,6 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **added_node_selector** | **Hash<String, String>** | AddedNodeSelector is an additional selector that can be used to complement a NodeSelector or NodeAffinity as set on the VM to restrict the set of allowed target nodes for a migration. In case of key collisions, values set on the VM objects are going to be preserved to ensure that addedNodeSelector can only restrict but not bypass constraints already set on the VM object. | [optional] | | **api_version** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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** | **Array<String>** | When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed | [optional] | | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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] | @@ -14,6 +15,7 @@ require 'kubevirt' instance = Kubevirt::V1MigrateOptions.new( + added_node_selector: null, api_version: null, dry_run: null, kind: null diff --git a/docs/V1MigrationConfiguration.md b/docs/V1MigrationConfiguration.md index d3f72030..5c1cce99 100644 --- a/docs/V1MigrationConfiguration.md +++ b/docs/V1MigrationConfiguration.md @@ -7,7 +7,7 @@ | **allow_auto_converge** | **Boolean** | AllowAutoConverge allows the platform to compromise performance/availability of VMIs to guarantee successful VMI live migrations. Defaults to false | [optional] | | **allow_post_copy** | **Boolean** | AllowPostCopy enables post-copy live migrations. Such migrations allow even the busiest VMIs to successfully live-migrate. However, events like a network failure can cause a VMI crash. If set to true, migrations will still start in pre-copy, but switch to post-copy when CompletionTimeoutPerGiB triggers. Defaults to false | [optional] | | **allow_workload_disruption** | **Boolean** | AllowWorkloadDisruption indicates that the migration shouldn't be canceled after acceptableCompletionTime is exceeded. Instead, if permitted, migration will be switched to post-copy or the VMI will be paused to allow the migration to complete | [optional] | -| **bandwidth_per_migration** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +| **bandwidth_per_migration** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | | **completion_timeout_per_gi_b** | **Integer** | CompletionTimeoutPerGiB is the maximum number of seconds per GiB a migration is allowed to take. If the timeout is reached, the migration will be either paused, switched to post-copy or cancelled depending on other settings. Defaults to 150 | [optional] | | **disable_tls** | **Boolean** | When set to true, DisableTLS will disable the additional layer of live migration encryption provided by KubeVirt. This is usually a bad idea. Defaults to false | [optional] | | **match_se_linux_level_on_migration** | **Boolean** | By default, the SELinux level of target virt-launcher pods is forced to the level of the source virt-launcher. When set to true, MatchSELinuxLevelOnMigration lets the CRI auto-assign a random level to the target. That will ensure the target virt-launcher doesn't share categories with another pod on the node. However, migrations will fail when using RWX volumes that don't automatically deal with SELinux levels. | [optional] | diff --git a/docs/V1PersistentVolumeClaimInfo.md b/docs/V1PersistentVolumeClaimInfo.md index d7954643..ee10c651 100644 --- a/docs/V1PersistentVolumeClaimInfo.md +++ b/docs/V1PersistentVolumeClaimInfo.md @@ -5,11 +5,11 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **access_modes** | **Array<String>** | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 | [optional] | -| **capacity** | **Hash<String, String>** | Capacity represents the capacity set on the corresponding PVC status | [optional] | +| **capacity** | **Hash<String, Object>** | Capacity represents the capacity set on the corresponding PVC status | [optional] | | **claim_name** | **String** | ClaimName is the name of the PVC | [optional] | | **filesystem_overhead** | **String** | Percentage of filesystem's size to be reserved when resizing the PVC | [optional] | | **preallocated** | **Boolean** | Preallocated indicates if the PVC's storage is preallocated or not | [optional] | -| **requests** | **Hash<String, String>** | Requests represents the resources requested by the corresponding PVC spec | [optional] | +| **requests** | **Hash<String, Object>** | Requests represents the resources requested by the corresponding PVC spec | [optional] | | **volume_mode** | **String** | 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] | ## Example diff --git a/docs/V1ResourceRequirements.md b/docs/V1ResourceRequirements.md index 2d691b82..4065de2b 100644 --- a/docs/V1ResourceRequirements.md +++ b/docs/V1ResourceRequirements.md @@ -4,9 +4,9 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **limits** | **Object** | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". | [optional] | +| **limits** | **Hash<String, Object>** | Limits describes the maximum amount of compute resources allowed. Valid resource keys are \"memory\" and \"cpu\". | [optional] | | **overcommit_guest_overhead** | **Boolean** | Don't ask the scheduler to take the guest-management overhead into account. Instead put the overhead only into the container's memory limit. This can lead to crashes if all memory is in use on a node. Defaults to false. | [optional] | -| **requests** | **Object** | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". | [optional] | +| **requests** | **Hash<String, Object>** | Requests is a description of the initial vmi resources. Valid resource keys are \"memory\" and \"cpu\". | [optional] | ## Example diff --git a/docs/V1ResourceRequirementsWithoutClaims.md b/docs/V1ResourceRequirementsWithoutClaims.md index 6830bfc2..59bf92c3 100644 --- a/docs/V1ResourceRequirementsWithoutClaims.md +++ b/docs/V1ResourceRequirementsWithoutClaims.md @@ -4,8 +4,8 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **limits** | **Hash<String, String>** | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] | -| **requests** | **Hash<String, String>** | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] | +| **limits** | **Hash<String, Object>** | Limits describes the maximum amount of compute resources allowed. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] | +| **requests** | **Hash<String, Object>** | Requests describes the minimum amount of compute resources required. If Requests is omitted for a container, it defaults to Limits if that is explicitly specified, otherwise to an implementation-defined value. Requests cannot exceed Limits. More info: https://kubernetes.io/docs/concepts/configuration/manage-resources-containers/ | [optional] | ## Example diff --git a/docs/V1VirtualMachineInstanceMigrationSpec.md b/docs/V1VirtualMachineInstanceMigrationSpec.md index ef97bf4d..01902289 100644 --- a/docs/V1VirtualMachineInstanceMigrationSpec.md +++ b/docs/V1VirtualMachineInstanceMigrationSpec.md @@ -4,6 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **added_node_selector** | **Hash<String, String>** | AddedNodeSelector is an additional selector that can be used to complement a NodeSelector or NodeAffinity as set on the VM to restrict the set of allowed target nodes for a migration. In case of key collisions, values set on the VM objects are going to be preserved to ensure that addedNodeSelector can only restrict but not bypass constraints already set on the VM object. | [optional] | | **vmi_name** | **String** | The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace | [optional] | ## Example @@ -12,6 +13,7 @@ require 'kubevirt' instance = Kubevirt::V1VirtualMachineInstanceMigrationSpec.new( + added_node_selector: null, vmi_name: null ) ``` diff --git a/docs/V1VirtualMachineInstanceNetworkInterface.md b/docs/V1VirtualMachineInstanceNetworkInterface.md index dee385eb..13141bff 100644 --- a/docs/V1VirtualMachineInstanceNetworkInterface.md +++ b/docs/V1VirtualMachineInstanceNetworkInterface.md @@ -8,6 +8,7 @@ | **interface_name** | **String** | The interface name inside the Virtual Machine | [optional] | | **ip_address** | **String** | IP address of a Virtual Machine interface. It is always the first item of IPs | [optional] | | **ip_addresses** | **Array<String>** | List of all IP addresses of a Virtual Machine interface | [optional] | +| **link_state** | **String** | LinkState Reports the current operational link state`. values: up, down. | [optional] | | **mac** | **String** | Hardware address of a Virtual Machine interface | [optional] | | **name** | **String** | Name of the interface, corresponds to name of the network assigned to the interface | [optional] | | **pod_interface_name** | **String** | PodInterfaceName represents the name of the pod network interface | [optional] | @@ -23,6 +24,7 @@ instance = Kubevirt::V1VirtualMachineInstanceNetworkInterface.new( interface_name: null, ip_address: null, ip_addresses: null, + link_state: null, mac: null, name: null, pod_interface_name: null, diff --git a/docs/V1VirtualMachineStatus.md b/docs/V1VirtualMachineStatus.md index ef5f7e26..589423d6 100644 --- a/docs/V1VirtualMachineStatus.md +++ b/docs/V1VirtualMachineStatus.md @@ -7,8 +7,10 @@ | **conditions** | [**Array<V1VirtualMachineCondition>**](V1VirtualMachineCondition.md) | Hold the state information of the VirtualMachine and its VirtualMachineInstance | [optional] | | **created** | **Boolean** | Created indicates if the virtual machine is created in the cluster | [optional] | | **desired_generation** | **Integer** | DesiredGeneration is the generation which is desired for the VMI. This will be used in comparisons with ObservedGeneration to understand when the VMI is out of sync. This will be changed at the same time as ObservedGeneration to remove errors which could occur if Generation is updated through an Update() before ObservedGeneration in Status. | [optional] | +| **instancetype_ref** | [**V1InstancetypeStatusRef**](V1InstancetypeStatusRef.md) | | [optional] | | **memory_dump_request** | [**V1VirtualMachineMemoryDumpRequest**](V1VirtualMachineMemoryDumpRequest.md) | | [optional] | | **observed_generation** | **Integer** | ObservedGeneration is the generation observed by the vmi when started. | [optional] | +| **preference_ref** | [**V1InstancetypeStatusRef**](V1InstancetypeStatusRef.md) | | [optional] | | **printable_status** | **String** | PrintableStatus is a human readable, high-level representation of the status of the virtual machine | [optional] | | **ready** | **Boolean** | Ready indicates if the virtual machine is running and ready | [optional] | | **restore_in_progress** | **String** | RestoreInProgress is the name of the VirtualMachineRestore currently executing | [optional] | @@ -29,8 +31,10 @@ instance = Kubevirt::V1VirtualMachineStatus.new( conditions: null, created: null, desired_generation: null, + instancetype_ref: null, memory_dump_request: null, observed_generation: null, + preference_ref: null, printable_status: null, ready: null, restore_in_progress: null, diff --git a/docs/V1alpha1Condition.md b/docs/V1alpha1Condition.md deleted file mode 100644 index 9961620e..00000000 --- a/docs/V1alpha1Condition.md +++ /dev/null @@ -1,24 +0,0 @@ -# Kubevirt::V1alpha1Condition - -## Properties - -| Name | Type | Description | Notes | -| ---- | ---- | ----------- | ----- | -| **message** | **String** | | [optional] | -| **reason** | **String** | | [optional] | -| **status** | **String** | | [default to ''] | -| **type** | **String** | | [default to ''] | - -## Example - -```ruby -require 'kubevirt' - -instance = Kubevirt::V1alpha1Condition.new( - message: null, - reason: null, - status: null, - type: null -) -``` - diff --git a/docs/V1alpha1MigrationPolicySpec.md b/docs/V1alpha1MigrationPolicySpec.md index 3659c332..ef40c764 100644 --- a/docs/V1alpha1MigrationPolicySpec.md +++ b/docs/V1alpha1MigrationPolicySpec.md @@ -7,7 +7,7 @@ | **allow_auto_converge** | **Boolean** | | [optional] | | **allow_post_copy** | **Boolean** | | [optional] | | **allow_workload_disruption** | **Boolean** | | [optional] | -| **bandwidth_per_migration** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +| **bandwidth_per_migration** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | | **completion_timeout_per_gi_b** | **Integer** | | [optional] | | **selectors** | [**V1alpha1Selectors**](V1alpha1Selectors.md) | | | diff --git a/docs/V1alpha1VirtualMachinePoolNameGeneration.md b/docs/V1alpha1VirtualMachinePoolNameGeneration.md new file mode 100644 index 00000000..be0baac7 --- /dev/null +++ b/docs/V1alpha1VirtualMachinePoolNameGeneration.md @@ -0,0 +1,20 @@ +# Kubevirt::V1alpha1VirtualMachinePoolNameGeneration + +## Properties + +| Name | Type | Description | Notes | +| ---- | ---- | ----------- | ----- | +| **append_index_to_config_map_refs** | **Boolean** | | [optional] | +| **append_index_to_secret_refs** | **Boolean** | | [optional] | + +## Example + +```ruby +require 'kubevirt' + +instance = Kubevirt::V1alpha1VirtualMachinePoolNameGeneration.new( + append_index_to_config_map_refs: null, + append_index_to_secret_refs: null +) +``` + diff --git a/docs/V1alpha1VirtualMachinePoolSpec.md b/docs/V1alpha1VirtualMachinePoolSpec.md index f4cb7d6a..981c7bf1 100644 --- a/docs/V1alpha1VirtualMachinePoolSpec.md +++ b/docs/V1alpha1VirtualMachinePoolSpec.md @@ -4,6 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | +| **name_generation** | [**V1alpha1VirtualMachinePoolNameGeneration**](V1alpha1VirtualMachinePoolNameGeneration.md) | | [optional] | | **paused** | **Boolean** | Indicates that the pool is paused. | [optional] | | **replicas** | **Integer** | Number of desired pods. This is a pointer to distinguish between explicit zero and not specified. Defaults to 1. | [optional] | | **selector** | [**K8sIoApimachineryPkgApisMetaV1LabelSelector**](K8sIoApimachineryPkgApisMetaV1LabelSelector.md) | | | @@ -15,6 +16,7 @@ require 'kubevirt' instance = Kubevirt::V1alpha1VirtualMachinePoolSpec.new( + name_generation: null, paused: null, replicas: null, selector: null, diff --git a/docs/V1beta1MemoryInstancetype.md b/docs/V1beta1MemoryInstancetype.md index 42fb7217..83f392f2 100644 --- a/docs/V1beta1MemoryInstancetype.md +++ b/docs/V1beta1MemoryInstancetype.md @@ -4,9 +4,9 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **guest** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | | +| **guest** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | | | **hugepages** | [**V1Hugepages**](V1Hugepages.md) | | [optional] | -| **max_guest** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | +| **max_guest** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | [optional] | | **overcommit_percent** | **Integer** | OvercommitPercent is the percentage of the guest memory which will be overcommitted. This means that the VMIs parent pod (virt-launcher) will request less physical memory by a factor specified by the OvercommitPercent. Overcommits can lead to memory exhaustion, which in turn can lead to crashes. Use carefully. Defaults to 0 | [optional] | ## Example diff --git a/docs/V1beta1MemoryPreferenceRequirement.md b/docs/V1beta1MemoryPreferenceRequirement.md index 6c628079..c0c2a258 100644 --- a/docs/V1beta1MemoryPreferenceRequirement.md +++ b/docs/V1beta1MemoryPreferenceRequirement.md @@ -4,7 +4,7 @@ | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **guest** | **String** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | | +| **guest** | **Object** | Quantity is a fixed-point representation of a number. It provides convenient marshaling/unmarshaling in JSON and YAML, in addition to String() and AsInt64() accessors. The serialization format is: ``` <quantity> ::= <signedNumber><suffix> (Note that <suffix> may be empty, from the \"\" case in <decimalSI>.) <digit> ::= 0 | 1 | ... | 9 <digits> ::= <digit> | <digit><digits> <number> ::= <digits> | <digits>.<digits> | <digits>. | .<digits> <sign> ::= \"+\" | \"-\" <signedNumber> ::= <number> | <sign><number> <suffix> ::= <binarySI> | <decimalExponent> | <decimalSI> <binarySI> ::= Ki | Mi | Gi | Ti | Pi | Ei (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) <decimalSI> ::= m | \"\" | k | M | G | T | P | E (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) <decimalExponent> ::= \"e\" <signedNumber> | \"E\" <signedNumber> ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal places. Numbers larger or more precise will be capped or rounded up. (E.g.: 0.1m will rounded up to 1m.) This may be extended in the future if we require larger or smaller quantities. When a Quantity is parsed from a string, it will remember the type of suffix it had, and will use the same type again when it is serialized. Before serializing, Quantity will be put in \"canonical form\". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - No precision is lost - No fractional digits will be emitted - The exponent (or suffix) is as large as possible. The sign will be omitted unless the number is negative. Examples: - 1.5 will be serialized as \"1500m\" - 1.5Gi will be serialized as \"1536Mi\" Note that the quantity will NEVER be internally represented by a floating point number. That is the whole point of this exercise. Non-canonical values will still parse as long as they are well formed, but will be re-emitted in their canonical form. (So always use canonical form, or don't diff.) This format is intended to make it difficult to use these numbers without writing some sort of special handling code in the hopes that that will cause implementors to also use a fixed point implementation. | | ## Example diff --git a/docs/V1alpha1VirtualMachineClone.md b/docs/V1beta1VirtualMachineClone.md similarity index 77% rename from docs/V1alpha1VirtualMachineClone.md rename to docs/V1beta1VirtualMachineClone.md index 4000a909..8ef51d8a 100644 --- a/docs/V1alpha1VirtualMachineClone.md +++ b/docs/V1beta1VirtualMachineClone.md @@ -1,4 +1,4 @@ -# Kubevirt::V1alpha1VirtualMachineClone +# Kubevirt::V1beta1VirtualMachineClone ## Properties @@ -7,15 +7,15 @@ | **api_version** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] | | **metadata** | [**K8sIoApimachineryPkgApisMetaV1ObjectMeta**](K8sIoApimachineryPkgApisMetaV1ObjectMeta.md) | | [optional] | -| **spec** | [**V1alpha1VirtualMachineCloneSpec**](V1alpha1VirtualMachineCloneSpec.md) | | | -| **status** | [**V1alpha1VirtualMachineCloneStatus**](V1alpha1VirtualMachineCloneStatus.md) | | [optional] | +| **spec** | [**V1beta1VirtualMachineCloneSpec**](V1beta1VirtualMachineCloneSpec.md) | | | +| **status** | [**V1beta1VirtualMachineCloneStatus**](V1beta1VirtualMachineCloneStatus.md) | | [optional] | ## Example ```ruby require 'kubevirt' -instance = Kubevirt::V1alpha1VirtualMachineClone.new( +instance = Kubevirt::V1beta1VirtualMachineClone.new( api_version: null, kind: null, metadata: null, diff --git a/docs/V1alpha1VirtualMachineCloneList.md b/docs/V1beta1VirtualMachineCloneList.md similarity index 83% rename from docs/V1alpha1VirtualMachineCloneList.md rename to docs/V1beta1VirtualMachineCloneList.md index 70f05cad..65b3f7da 100644 --- a/docs/V1alpha1VirtualMachineCloneList.md +++ b/docs/V1beta1VirtualMachineCloneList.md @@ -1,11 +1,11 @@ -# Kubevirt::V1alpha1VirtualMachineCloneList +# Kubevirt::V1beta1VirtualMachineCloneList ## Properties | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | | **api_version** | **String** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to 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** | [**Array<V1alpha1VirtualMachineClone>**](V1alpha1VirtualMachineClone.md) | | | +| **items** | [**Array<V1beta1VirtualMachineClone>**](V1beta1VirtualMachineClone.md) | | | | **kind** | **String** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client 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] | @@ -14,7 +14,7 @@ ```ruby require 'kubevirt' -instance = Kubevirt::V1alpha1VirtualMachineCloneList.new( +instance = Kubevirt::V1beta1VirtualMachineCloneList.new( api_version: null, items: null, kind: null, diff --git a/docs/V1alpha1VirtualMachineCloneSpec.md b/docs/V1beta1VirtualMachineCloneSpec.md similarity index 86% rename from docs/V1alpha1VirtualMachineCloneSpec.md rename to docs/V1beta1VirtualMachineCloneSpec.md index a4d3da60..35927e7b 100644 --- a/docs/V1alpha1VirtualMachineCloneSpec.md +++ b/docs/V1beta1VirtualMachineCloneSpec.md @@ -1,4 +1,4 @@ -# Kubevirt::V1alpha1VirtualMachineCloneSpec +# Kubevirt::V1beta1VirtualMachineCloneSpec ## Properties @@ -10,14 +10,14 @@ | **new_sm_bios_serial** | **String** | NewSMBiosSerial manually sets that target's SMbios serial. If this field is not specified, a new serial will be generated automatically. | [optional] | | **source** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | | | | **target** | [**K8sIoApiCoreV1TypedLocalObjectReference**](K8sIoApiCoreV1TypedLocalObjectReference.md) | | [optional] | -| **template** | [**V1alpha1VirtualMachineCloneTemplateFilters**](V1alpha1VirtualMachineCloneTemplateFilters.md) | | [optional] | +| **template** | [**V1beta1VirtualMachineCloneTemplateFilters**](V1beta1VirtualMachineCloneTemplateFilters.md) | | [optional] | ## Example ```ruby require 'kubevirt' -instance = Kubevirt::V1alpha1VirtualMachineCloneSpec.new( +instance = Kubevirt::V1beta1VirtualMachineCloneSpec.new( annotation_filters: null, label_filters: null, new_mac_addresses: null, diff --git a/docs/V1alpha1VirtualMachineCloneStatus.md b/docs/V1beta1VirtualMachineCloneStatus.md similarity index 76% rename from docs/V1alpha1VirtualMachineCloneStatus.md rename to docs/V1beta1VirtualMachineCloneStatus.md index f0b39569..b3a27680 100644 --- a/docs/V1alpha1VirtualMachineCloneStatus.md +++ b/docs/V1beta1VirtualMachineCloneStatus.md @@ -1,10 +1,10 @@ -# Kubevirt::V1alpha1VirtualMachineCloneStatus +# Kubevirt::V1beta1VirtualMachineCloneStatus ## Properties | Name | Type | Description | Notes | | ---- | ---- | ----------- | ----- | -| **conditions** | [**Array<V1alpha1Condition>**](V1alpha1Condition.md) | | [optional] | +| **conditions** | [**Array<V1beta1Condition>**](V1beta1Condition.md) | | [optional] | | **creation_time** | **Time** | Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. | [optional] | | **phase** | **String** | | [optional] | | **restore_name** | **String** | | [optional] | @@ -16,7 +16,7 @@ ```ruby require 'kubevirt' -instance = Kubevirt::V1alpha1VirtualMachineCloneStatus.new( +instance = Kubevirt::V1beta1VirtualMachineCloneStatus.new( conditions: null, creation_time: null, phase: null, diff --git a/docs/V1alpha1VirtualMachineCloneTemplateFilters.md b/docs/V1beta1VirtualMachineCloneTemplateFilters.md similarity index 83% rename from docs/V1alpha1VirtualMachineCloneTemplateFilters.md rename to docs/V1beta1VirtualMachineCloneTemplateFilters.md index 0633a5ef..7fa9e8e8 100644 --- a/docs/V1alpha1VirtualMachineCloneTemplateFilters.md +++ b/docs/V1beta1VirtualMachineCloneTemplateFilters.md @@ -1,4 +1,4 @@ -# Kubevirt::V1alpha1VirtualMachineCloneTemplateFilters +# Kubevirt::V1beta1VirtualMachineCloneTemplateFilters ## Properties @@ -12,7 +12,7 @@ ```ruby require 'kubevirt' -instance = Kubevirt::V1alpha1VirtualMachineCloneTemplateFilters.new( +instance = Kubevirt::V1beta1VirtualMachineCloneTemplateFilters.new( annotation_filters: null, label_filters: null ) diff --git a/lib/kubevirt.rb b/lib/kubevirt.rb index 1b6a7adf..a7292058 100644 --- a/lib/kubevirt.rb +++ b/lib/kubevirt.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -88,6 +88,7 @@ require 'kubevirt/models/v1_config_map_volume_source' require 'kubevirt/models/v1_container_disk_info' require 'kubevirt/models/v1_container_disk_source' +require 'kubevirt/models/v1_controller_revision_ref' require 'kubevirt/models/v1_custom_block_size' require 'kubevirt/models/v1_custom_profile' require 'kubevirt/models/v1_customize_components' @@ -99,6 +100,7 @@ require 'kubevirt/models/v1_developer_configuration' require 'kubevirt/models/v1_devices' require 'kubevirt/models/v1_disk' +require 'kubevirt/models/v1_disk_io_threads' require 'kubevirt/models/v1_disk_target' require 'kubevirt/models/v1_disk_verification' require 'kubevirt/models/v1_domain_memory_dump_info' @@ -134,6 +136,7 @@ require 'kubevirt/models/v1_input' require 'kubevirt/models/v1_instancetype_configuration' require 'kubevirt/models/v1_instancetype_matcher' +require 'kubevirt/models/v1_instancetype_status_ref' require 'kubevirt/models/v1_interface' require 'kubevirt/models/v1_interface_binding_migration' require 'kubevirt/models/v1_interface_binding_plugin' @@ -272,19 +275,14 @@ require 'kubevirt/models/v1_volume_status' require 'kubevirt/models/v1_volume_update_state' require 'kubevirt/models/v1_watchdog' -require 'kubevirt/models/v1alpha1_condition' require 'kubevirt/models/v1alpha1_migration_policy' require 'kubevirt/models/v1alpha1_migration_policy_list' require 'kubevirt/models/v1alpha1_migration_policy_spec' require 'kubevirt/models/v1alpha1_selectors' -require 'kubevirt/models/v1alpha1_virtual_machine_clone' -require 'kubevirt/models/v1alpha1_virtual_machine_clone_list' -require 'kubevirt/models/v1alpha1_virtual_machine_clone_spec' -require 'kubevirt/models/v1alpha1_virtual_machine_clone_status' -require 'kubevirt/models/v1alpha1_virtual_machine_clone_template_filters' require 'kubevirt/models/v1alpha1_virtual_machine_pool' require 'kubevirt/models/v1alpha1_virtual_machine_pool_condition' require 'kubevirt/models/v1alpha1_virtual_machine_pool_list' +require 'kubevirt/models/v1alpha1_virtual_machine_pool_name_generation' require 'kubevirt/models/v1alpha1_virtual_machine_pool_spec' require 'kubevirt/models/v1alpha1_virtual_machine_pool_status' require 'kubevirt/models/v1alpha1_virtual_machine_template_spec' @@ -319,6 +317,11 @@ require 'kubevirt/models/v1beta1_spread_options' require 'kubevirt/models/v1beta1_storage_spec' require 'kubevirt/models/v1beta1_virtual_machine' +require 'kubevirt/models/v1beta1_virtual_machine_clone' +require 'kubevirt/models/v1beta1_virtual_machine_clone_list' +require 'kubevirt/models/v1beta1_virtual_machine_clone_spec' +require 'kubevirt/models/v1beta1_virtual_machine_clone_status' +require 'kubevirt/models/v1beta1_virtual_machine_clone_template_filters' require 'kubevirt/models/v1beta1_virtual_machine_cluster_instancetype' require 'kubevirt/models/v1beta1_virtual_machine_cluster_instancetype_list' require 'kubevirt/models/v1beta1_virtual_machine_cluster_preference' diff --git a/lib/kubevirt/api/default_api.rb b/lib/kubevirt/api/default_api.rb index f5d81e16..57f358fa 100644 --- a/lib/kubevirt/api/default_api.rb +++ b/lib/kubevirt/api/default_api.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -1022,18 +1022,18 @@ def create_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, end # Create a VirtualMachineClone object. - # @param body [V1alpha1VirtualMachineClone] + # @param body [V1beta1VirtualMachineClone] # @param [Hash] opts the optional parameters - # @return [V1alpha1VirtualMachineClone] + # @return [V1beta1VirtualMachineClone] def create_virtual_machine_clone(body, opts = {}) data, _status_code, _headers = create_virtual_machine_clone_with_http_info(body, opts) data end # Create a VirtualMachineClone object. - # @param body [V1alpha1VirtualMachineClone] + # @param body [V1beta1VirtualMachineClone] # @param [Hash] opts the optional parameters - # @return [Array<(V1alpha1VirtualMachineClone, Integer, Hash)>] V1alpha1VirtualMachineClone data, response status code and response headers + # @return [Array<(V1beta1VirtualMachineClone, Integer, Hash)>] V1beta1VirtualMachineClone data, response status code and response headers def create_virtual_machine_clone_with_http_info(body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.create_virtual_machine_clone ...' @@ -1043,7 +1043,7 @@ def create_virtual_machine_clone_with_http_info(body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.create_virtual_machine_clone" end # resource path - local_var_path = '/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones' + local_var_path = '/apis/clone.kubevirt.io/v1beta1/virtualmachineclones' # query parameters query_params = opts[:query_params] || {} @@ -1065,7 +1065,7 @@ def create_virtual_machine_clone_with_http_info(body, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type - return_type = opts[:debug_return_type] || 'V1alpha1VirtualMachineClone' + return_type = opts[:debug_return_type] || 'V1beta1VirtualMachineClone' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -2357,7 +2357,7 @@ def delete_collection_virtual_machine_clone_with_http_info(opts = {}) @api_client.config.logger.debug 'Calling API: DefaultApi.delete_collection_virtual_machine_clone ...' end # resource path - local_var_path = '/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones' + local_var_path = '/apis/clone.kubevirt.io/v1beta1/virtualmachineclones' # query parameters query_params = opts[:query_params] || {} @@ -3808,7 +3808,7 @@ def delete_virtual_machine_clone_with_http_info(name, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.delete_virtual_machine_clone" end # resource path - local_var_path = '/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)) + local_var_path = '/apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -4564,20 +4564,20 @@ def get_api_group_snapshot_kubevirt_io_with_http_info(opts = {}) # Get KubeVirt API Resources # @param [Hash] opts the optional parameters # @return [K8sIoApimachineryPkgApisMetaV1APIResourceList] - def get_api_resources_clone_kubevirt_io_v1alpha1(opts = {}) - data, _status_code, _headers = get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(opts) + def get_api_resources_clone_kubevirt_io_v1beta1(opts = {}) + data, _status_code, _headers = get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(opts) data end # Get KubeVirt API Resources # @param [Hash] opts the optional parameters # @return [Array<(K8sIoApimachineryPkgApisMetaV1APIResourceList, Integer, Hash)>] K8sIoApimachineryPkgApisMetaV1APIResourceList data, response status code and response headers - def get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(opts = {}) + def get_api_resources_clone_kubevirt_io_v1beta1_with_http_info(opts = {}) if @api_client.config.debugging - @api_client.config.logger.debug 'Calling API: DefaultApi.get_api_resources_clone_kubevirt_io_v1alpha1 ...' + @api_client.config.logger.debug 'Calling API: DefaultApi.get_api_resources_clone_kubevirt_io_v1beta1 ...' end # resource path - local_var_path = '/apis/clone.kubevirt.io/v1alpha1/' + local_var_path = '/apis/clone.kubevirt.io/v1beta1/' # query parameters query_params = opts[:query_params] || {} @@ -4600,7 +4600,7 @@ def get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(opts = {}) auth_names = opts[:debug_auth_names] || [] new_options = opts.merge( - :operation => :"DefaultApi.get_api_resources_clone_kubevirt_io_v1alpha1", + :operation => :"DefaultApi.get_api_resources_clone_kubevirt_io_v1beta1", :header_params => header_params, :query_params => query_params, :form_params => form_params, @@ -4611,7 +4611,7 @@ def get_api_resources_clone_kubevirt_io_v1alpha1_with_http_info(opts = {}) data, status_code, headers = @api_client.call_api(:GET, local_var_path, new_options) if @api_client.config.debugging - @api_client.config.logger.debug "API called: DefaultApi#get_api_resources_clone_kubevirt_io_v1alpha1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + @api_client.config.logger.debug "API called: DefaultApi#get_api_resources_clone_kubevirt_io_v1beta1\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" end return data, status_code, headers end @@ -6433,7 +6433,7 @@ def list_namespaced_virtual_machine_snapshot_content_with_http_info(namespace, o # @option opts [String] :resource_version When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. # @option opts [Integer] :timeout_seconds TimeoutSeconds for the list/watch call. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - # @return [V1alpha1VirtualMachineCloneList] + # @return [V1beta1VirtualMachineCloneList] def list_virtual_machine_clone(opts = {}) data, _status_code, _headers = list_virtual_machine_clone_with_http_info(opts) data @@ -6449,13 +6449,13 @@ def list_virtual_machine_clone(opts = {}) # @option opts [String] :resource_version When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. # @option opts [Integer] :timeout_seconds TimeoutSeconds for the list/watch call. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - # @return [Array<(V1alpha1VirtualMachineCloneList, Integer, Hash)>] V1alpha1VirtualMachineCloneList data, response status code and response headers + # @return [Array<(V1beta1VirtualMachineCloneList, Integer, Hash)>] V1beta1VirtualMachineCloneList data, response status code and response headers def list_virtual_machine_clone_with_http_info(opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.list_virtual_machine_clone ...' end # resource path - local_var_path = '/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones' + local_var_path = '/apis/clone.kubevirt.io/v1beta1/virtualmachineclones' # query parameters query_params = opts[:query_params] || {} @@ -6480,7 +6480,7 @@ def list_virtual_machine_clone_with_http_info(opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'V1alpha1VirtualMachineCloneList' + return_type = opts[:debug_return_type] || 'V1beta1VirtualMachineCloneList' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -8698,7 +8698,7 @@ def patch_namespaced_virtual_machine_snapshot_content_with_http_info(name, names # @param name [String] Name of the resource # @param body [Object] # @param [Hash] opts the optional parameters - # @return [V1alpha1VirtualMachineClone] + # @return [V1beta1VirtualMachineClone] def patch_virtual_machine_clone(name, body, opts = {}) data, _status_code, _headers = patch_virtual_machine_clone_with_http_info(name, body, opts) data @@ -8708,7 +8708,7 @@ def patch_virtual_machine_clone(name, body, opts = {}) # @param name [String] Name of the resource # @param body [Object] # @param [Hash] opts the optional parameters - # @return [Array<(V1alpha1VirtualMachineClone, Integer, Hash)>] V1alpha1VirtualMachineClone data, response status code and response headers + # @return [Array<(V1beta1VirtualMachineClone, Integer, Hash)>] V1beta1VirtualMachineClone data, response status code and response headers def patch_virtual_machine_clone_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.patch_virtual_machine_clone ...' @@ -8722,7 +8722,7 @@ def patch_virtual_machine_clone_with_http_info(name, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.patch_virtual_machine_clone" end # resource path - local_var_path = '/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)) + local_var_path = '/apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -8744,7 +8744,7 @@ def patch_virtual_machine_clone_with_http_info(name, body, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type - return_type = opts[:debug_return_type] || 'V1alpha1VirtualMachineClone' + return_type = opts[:debug_return_type] || 'V1beta1VirtualMachineClone' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -9931,7 +9931,7 @@ def read_namespaced_virtual_machine_snapshot_content_with_http_info(name, namesp # @param [Hash] opts the optional parameters # @option opts [Boolean] :exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. # @option opts [Boolean] :export Should this value be exported. Export strips fields that a user can not specify. - # @return [V1alpha1VirtualMachineClone] + # @return [V1beta1VirtualMachineClone] def read_virtual_machine_clone(name, opts = {}) data, _status_code, _headers = read_virtual_machine_clone_with_http_info(name, opts) data @@ -9942,7 +9942,7 @@ def read_virtual_machine_clone(name, opts = {}) # @param [Hash] opts the optional parameters # @option opts [Boolean] :exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. # @option opts [Boolean] :export Should this value be exported. Export strips fields that a user can not specify. - # @return [Array<(V1alpha1VirtualMachineClone, Integer, Hash)>] V1alpha1VirtualMachineClone data, response status code and response headers + # @return [Array<(V1beta1VirtualMachineClone, Integer, Hash)>] V1beta1VirtualMachineClone data, response status code and response headers def read_virtual_machine_clone_with_http_info(name, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.read_virtual_machine_clone ...' @@ -9952,7 +9952,7 @@ def read_virtual_machine_clone_with_http_info(name, opts = {}) fail ArgumentError, "Missing the required parameter 'name' when calling DefaultApi.read_virtual_machine_clone" end # resource path - local_var_path = '/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)) + local_var_path = '/apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -9971,7 +9971,7 @@ def read_virtual_machine_clone_with_http_info(name, opts = {}) post_body = opts[:debug_body] # return_type - return_type = opts[:debug_return_type] || 'V1alpha1VirtualMachineClone' + return_type = opts[:debug_return_type] || 'V1beta1VirtualMachineClone' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -11215,9 +11215,9 @@ def replace_namespaced_virtual_machine_snapshot_content_with_http_info(name, nam # Update a VirtualMachineClone object. # @param name [String] Name of the resource - # @param body [V1alpha1VirtualMachineClone] + # @param body [V1beta1VirtualMachineClone] # @param [Hash] opts the optional parameters - # @return [V1alpha1VirtualMachineClone] + # @return [V1beta1VirtualMachineClone] def replace_virtual_machine_clone(name, body, opts = {}) data, _status_code, _headers = replace_virtual_machine_clone_with_http_info(name, body, opts) data @@ -11225,9 +11225,9 @@ def replace_virtual_machine_clone(name, body, opts = {}) # Update a VirtualMachineClone object. # @param name [String] Name of the resource - # @param body [V1alpha1VirtualMachineClone] + # @param body [V1beta1VirtualMachineClone] # @param [Hash] opts the optional parameters - # @return [Array<(V1alpha1VirtualMachineClone, Integer, Hash)>] V1alpha1VirtualMachineClone data, response status code and response headers + # @return [Array<(V1beta1VirtualMachineClone, Integer, Hash)>] V1beta1VirtualMachineClone data, response status code and response headers def replace_virtual_machine_clone_with_http_info(name, body, opts = {}) if @api_client.config.debugging @api_client.config.logger.debug 'Calling API: DefaultApi.replace_virtual_machine_clone ...' @@ -11241,7 +11241,7 @@ def replace_virtual_machine_clone_with_http_info(name, body, opts = {}) fail ArgumentError, "Missing the required parameter 'body' when calling DefaultApi.replace_virtual_machine_clone" end # resource path - local_var_path = '/apis/clone.kubevirt.io/v1alpha1/virtualmachineclones/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)) + local_var_path = '/apis/clone.kubevirt.io/v1beta1/virtualmachineclones/{name}'.sub('{' + 'name' + '}', CGI.escape(name.to_s)) # query parameters query_params = opts[:query_params] || {} @@ -11263,7 +11263,7 @@ def replace_virtual_machine_clone_with_http_info(name, body, opts = {}) post_body = opts[:debug_body] || @api_client.object_to_http_body(body) # return_type - return_type = opts[:debug_return_type] || 'V1alpha1VirtualMachineClone' + return_type = opts[:debug_return_type] || 'V1beta1VirtualMachineClone' # auth_names auth_names = opts[:debug_auth_names] || [] @@ -12211,6 +12211,73 @@ def v1_remove_memory_dump_with_http_info(name, namespace, opts = {}) return data, status_code, headers end + # Reset a VirtualMachineInstance object. + # @param name [String] Name of the resource + # @param namespace [String] Object name and auth scope, such as for teams and projects + # @param [Hash] opts the optional parameters + # @return [String] + def v1_reset(name, namespace, opts = {}) + data, _status_code, _headers = v1_reset_with_http_info(name, namespace, opts) + data + end + + # Reset a VirtualMachineInstance object. + # @param name [String] Name of the resource + # @param namespace [String] Object name and auth scope, such as for teams and projects + # @param [Hash] opts the optional parameters + # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers + def v1_reset_with_http_info(name, namespace, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: DefaultApi.v1_reset ...' + end + # verify the required parameter 'name' is set + if @api_client.config.client_side_validation && name.nil? + fail ArgumentError, "Missing the required parameter 'name' when calling DefaultApi.v1_reset" + end + # verify the required parameter 'namespace' is set + if @api_client.config.client_side_validation && namespace.nil? + fail ArgumentError, "Missing the required parameter 'namespace' when calling DefaultApi.v1_reset" + end + # resource path + local_var_path = '/apis/subresources.kubevirt.io/v1/namespaces/{namespace}/virtualmachineinstances/{name}/reset'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'String' + + # auth_names + auth_names = opts[:debug_auth_names] || [] + + new_options = opts.merge( + :operation => :"DefaultApi.v1_reset", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#v1_reset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Restart a VirtualMachine object. # @param name [String] Name of the resource # @param namespace [String] Object name and auth scope, such as for teams and projects @@ -13962,6 +14029,73 @@ def v1alpha3_remove_memory_dump_with_http_info(name, namespace, opts = {}) return data, status_code, headers end + # Reset a VirtualMachineInstance object. + # @param name [String] Name of the resource + # @param namespace [String] Object name and auth scope, such as for teams and projects + # @param [Hash] opts the optional parameters + # @return [String] + def v1alpha3_reset(name, namespace, opts = {}) + data, _status_code, _headers = v1alpha3_reset_with_http_info(name, namespace, opts) + data + end + + # Reset a VirtualMachineInstance object. + # @param name [String] Name of the resource + # @param namespace [String] Object name and auth scope, such as for teams and projects + # @param [Hash] opts the optional parameters + # @return [Array<(String, Integer, Hash)>] String data, response status code and response headers + def v1alpha3_reset_with_http_info(name, namespace, opts = {}) + if @api_client.config.debugging + @api_client.config.logger.debug 'Calling API: DefaultApi.v1alpha3_reset ...' + end + # verify the required parameter 'name' is set + if @api_client.config.client_side_validation && name.nil? + fail ArgumentError, "Missing the required parameter 'name' when calling DefaultApi.v1alpha3_reset" + end + # verify the required parameter 'namespace' is set + if @api_client.config.client_side_validation && namespace.nil? + fail ArgumentError, "Missing the required parameter 'namespace' when calling DefaultApi.v1alpha3_reset" + end + # resource path + local_var_path = '/apis/subresources.kubevirt.io/v1alpha3/namespaces/{namespace}/virtualmachineinstances/{name}/reset'.sub('{' + 'name' + '}', CGI.escape(name.to_s)).sub('{' + 'namespace' + '}', CGI.escape(namespace.to_s)) + + # query parameters + query_params = opts[:query_params] || {} + + # header parameters + header_params = opts[:header_params] || {} + # HTTP header 'Accept' (if needed) + header_params['Accept'] = @api_client.select_header_accept(['*/*']) unless header_params['Accept'] + + # form parameters + form_params = opts[:form_params] || {} + + # http body (model) + post_body = opts[:debug_body] + + # return_type + return_type = opts[:debug_return_type] || 'String' + + # auth_names + auth_names = opts[:debug_auth_names] || [] + + new_options = opts.merge( + :operation => :"DefaultApi.v1alpha3_reset", + :header_params => header_params, + :query_params => query_params, + :form_params => form_params, + :body => post_body, + :auth_names => auth_names, + :return_type => return_type + ) + + data, status_code, headers = @api_client.call_api(:PUT, local_var_path, new_options) + if @api_client.config.debugging + @api_client.config.logger.debug "API called: DefaultApi#v1alpha3_reset\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}" + end + return data, status_code, headers + end + # Restart a VirtualMachine object. # @param name [String] Name of the resource # @param namespace [String] Object name and auth scope, such as for teams and projects @@ -18137,7 +18271,7 @@ def watch_virtual_machine_clone_list_for_all_namespaces_with_http_info(opts = {} @api_client.config.logger.debug 'Calling API: DefaultApi.watch_virtual_machine_clone_list_for_all_namespaces ...' end # resource path - local_var_path = '/apis/clone.kubevirt.io/v1alpha1/watch/virtualmachineclones' + local_var_path = '/apis/clone.kubevirt.io/v1beta1/watch/virtualmachineclones' # query parameters query_params = opts[:query_params] || {} diff --git a/lib/kubevirt/api_client.rb b/lib/kubevirt/api_client.rb index dfe8b963..32d4ae21 100644 --- a/lib/kubevirt/api_client.rb +++ b/lib/kubevirt/api_client.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -49,7 +49,8 @@ def self.default # the data deserialized from response body (may be a Tempfile or nil), response status code and response headers. def call_api(http_method, path, opts = {}) request = build_request(http_method, path, opts) - tempfile = download_file(request) if opts[:return_type] == 'File' + tempfile = nil + (download_file(request) { tempfile = _1 }) if opts[:return_type] == 'File' response = request.run if @config.debugging @@ -188,19 +189,17 @@ def download_file(request) chunk.force_encoding(encoding) tempfile.write(chunk) end - # run the request to ensure the tempfile is created successfully before returning it - request.run - if tempfile + request.on_complete do + if !tempfile + fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}") + end tempfile.close @config.logger.info "Temp file written to #{tempfile.path}, please copy the file to a proper folder "\ "with e.g. `FileUtils.cp(tempfile.path, '/new/file/path')` otherwise the temp file "\ "will be deleted automatically with GC. It's also recommended to delete the temp file "\ "explicitly with `tempfile.delete`" - else - fail ApiError.new("Failed to create the tempfile based on the HTTP response from the server: #{request.inspect}") + yield tempfile if block_given? end - - tempfile end # Check if the given MIME is a JSON MIME. diff --git a/lib/kubevirt/api_error.rb b/lib/kubevirt/api_error.rb index 981de236..b552fefe 100644 --- a/lib/kubevirt/api_error.rb +++ b/lib/kubevirt/api_error.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/lib/kubevirt/configuration.rb b/lib/kubevirt/configuration.rb index a30ac07d..73db3707 100644 --- a/lib/kubevirt/configuration.rb +++ b/lib/kubevirt/configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_affinity.rb b/lib/kubevirt/models/k8s_io_api_core_v1_affinity.rb index be6776bf..ab9601fa 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_affinity.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_affinity.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -31,9 +31,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -59,9 +64,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1Affinity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1Affinity`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.rb b/lib/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.rb index 3fdb64ac..1e0da1cf 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_downward_api_volume_file.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1DownwardAPIVolumeFile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1DownwardAPIVolumeFile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -111,6 +117,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] path Value to be assigned + def path=(path) + if path.nil? + fail ArgumentError, 'path cannot be nil' + end + + @path = path + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_exec_action.rb b/lib/kubevirt/models/k8s_io_api_core_v1_exec_action.rb index 719b092b..6a29caad 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_exec_action.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_exec_action.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1ExecAction`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1ExecAction`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_http_get_action.rb b/lib/kubevirt/models/k8s_io_api_core_v1_http_get_action.rb index 16763c5b..7d7d2cc2 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_http_get_action.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_http_get_action.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -60,9 +60,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -89,9 +94,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1HTTPGetAction`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1HTTPGetAction`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_http_header.rb b/lib/kubevirt/models/k8s_io_api_core_v1_http_header.rb index c60ba6e2..31173f35 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_http_header.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_http_header.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1HTTPHeader`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1HTTPHeader`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -102,6 +108,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] value Value to be assigned + def value=(value) + if value.nil? + fail ArgumentError, 'value cannot be nil' + end + + @value = value + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_local_object_reference.rb b/lib/kubevirt/models/k8s_io_api_core_v1_local_object_reference.rb index 6cd24df2..4d870cc6 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_local_object_reference.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_local_object_reference.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1LocalObjectReference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1LocalObjectReference`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_node_affinity.rb b/lib/kubevirt/models/k8s_io_api_core_v1_node_affinity.rb index c0c0bc1d..290fa061 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_node_affinity.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_node_affinity.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1NodeAffinity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1NodeAffinity`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_node_selector.rb b/lib/kubevirt/models/k8s_io_api_core_v1_node_selector.rb index d30a77fa..294a2106 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_node_selector.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_node_selector.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1NodeSelector`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1NodeSelector`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -88,6 +94,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] node_selector_terms Value to be assigned + def node_selector_terms=(node_selector_terms) + if node_selector_terms.nil? + fail ArgumentError, 'node_selector_terms cannot be nil' + end + + @node_selector_terms = node_selector_terms + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_node_selector_requirement.rb b/lib/kubevirt/models/k8s_io_api_core_v1_node_selector_requirement.rb index f5ee1f87..a6123368 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_node_selector_requirement.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_node_selector_requirement.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -56,9 +56,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -84,9 +89,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1NodeSelectorRequirement`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1NodeSelectorRequirement`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -137,6 +143,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] key Value to be assigned + def key=(key) + if key.nil? + fail ArgumentError, 'key cannot be nil' + end + + @key = key + end + # Custom attribute writer method checking allowed values (enum). # @param [Object] operator Object to be assigned def operator=(operator) diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_node_selector_term.rb b/lib/kubevirt/models/k8s_io_api_core_v1_node_selector_term.rb index 1b6dbc6a..e56f9c5c 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_node_selector_term.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_node_selector_term.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1NodeSelectorTerm`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1NodeSelectorTerm`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_object_field_selector.rb b/lib/kubevirt/models/k8s_io_api_core_v1_object_field_selector.rb index 3ff90009..708ea9cd 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_object_field_selector.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_object_field_selector.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1ObjectFieldSelector`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1ObjectFieldSelector`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -95,6 +101,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] field_path Value to be assigned + def field_path=(field_path) + if field_path.nil? + fail ArgumentError, 'field_path cannot be nil' + end + + @field_path = field_path + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.rb b/lib/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.rb index c39dd164..a7ed925e 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -76,9 +76,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -110,9 +115,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PersistentVolumeClaimSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PersistentVolumeClaimSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source.rb b/lib/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source.rb index 5e5c9b7b..4700f84a 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PersistentVolumeClaimVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PersistentVolumeClaimVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -95,6 +101,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] claim_name Value to be assigned + def claim_name=(claim_name) + if claim_name.nil? + fail ArgumentError, 'claim_name cannot be nil' + end + + @claim_name = claim_name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_pod_affinity.rb b/lib/kubevirt/models/k8s_io_api_core_v1_pod_affinity.rb index 5baa8e64..d7c875b4 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_pod_affinity.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_pod_affinity.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PodAffinity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PodAffinity`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.rb b/lib/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.rb index af29bd52..3d804d92 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_pod_affinity_term.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -44,9 +44,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -75,9 +80,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PodAffinityTerm`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PodAffinityTerm`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -135,6 +141,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] topology_key Value to be assigned + def topology_key=(topology_key) + if topology_key.nil? + fail ArgumentError, 'topology_key cannot be nil' + end + + @topology_key = topology_key + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.rb b/lib/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.rb index 550d2cde..dc7db3ad 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_pod_anti_affinity.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PodAntiAffinity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PodAntiAffinity`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_pod_dns_config.rb b/lib/kubevirt/models/k8s_io_api_core_v1_pod_dns_config.rb index 0d26a7b5..41029571 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_pod_dns_config.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_pod_dns_config.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PodDNSConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PodDNSConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.rb b/lib/kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.rb index 89a3b140..fce468eb 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_pod_dns_config_option.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PodDNSConfigOption`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PodDNSConfigOption`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.rb b/lib/kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.rb index a3ddc6d3..a893687d 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_preferred_scheduling_term.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PreferredSchedulingTerm`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1PreferredSchedulingTerm`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -101,6 +107,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] preference Value to be assigned + def preference=(preference) + if preference.nil? + fail ArgumentError, 'preference cannot be nil' + end + + @preference = preference + end + + # Custom attribute writer method with validation + # @param [Object] weight Value to be assigned + def weight=(weight) + if weight.nil? + fail ArgumentError, 'weight cannot be nil' + end + + @weight = weight + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.rb b/lib/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.rb index e602a603..da263d03 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_resource_field_selector.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,16 +34,21 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { :'container_name' => :'String', - :'divisor' => :'String', + :'divisor' => :'Object', :'resource' => :'String' } end @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1ResourceFieldSelector`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1ResourceFieldSelector`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -104,6 +110,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] resource Value to be assigned + def resource=(resource) + if resource.nil? + fail ArgumentError, 'resource cannot be nil' + end + + @resource = resource + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_tcp_socket_action.rb b/lib/kubevirt/models/k8s_io_api_core_v1_tcp_socket_action.rb index 97b22a2e..bd5ee4c1 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_tcp_socket_action.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_tcp_socket_action.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1TCPSocketAction`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1TCPSocketAction`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_toleration.rb b/lib/kubevirt/models/k8s_io_api_core_v1_toleration.rb index 4086ae75..3db7b935 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_toleration.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_toleration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -64,9 +64,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -94,9 +99,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1Toleration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1Toleration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.rb b/lib/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.rb index 614ca6dc..0db0bd91 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_topology_spread_constraint.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -75,9 +75,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -108,9 +113,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1TopologySpreadConstraint`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1TopologySpreadConstraint`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -192,6 +198,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] max_skew Value to be assigned + def max_skew=(max_skew) + if max_skew.nil? + fail ArgumentError, 'max_skew cannot be nil' + end + + @max_skew = max_skew + end + # Custom attribute writer method checking allowed values (enum). # @param [Object] node_affinity_policy Object to be assigned def node_affinity_policy=(node_affinity_policy) @@ -212,6 +228,16 @@ def node_taints_policy=(node_taints_policy) @node_taints_policy = node_taints_policy end + # Custom attribute writer method with validation + # @param [Object] topology_key Value to be assigned + def topology_key=(topology_key) + if topology_key.nil? + fail ArgumentError, 'topology_key cannot be nil' + end + + @topology_key = topology_key + end + # Custom attribute writer method checking allowed values (enum). # @param [Object] when_unsatisfiable Object to be assigned def when_unsatisfiable=(when_unsatisfiable) diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.rb b/lib/kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.rb index 27571596..7e15284c 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_typed_local_object_reference.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1TypedLocalObjectReference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1TypedLocalObjectReference`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -111,6 +117,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] kind Value to be assigned + def kind=(kind) + if kind.nil? + fail ArgumentError, 'kind cannot be nil' + end + + @kind = kind + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_typed_object_reference.rb b/lib/kubevirt/models/k8s_io_api_core_v1_typed_object_reference.rb index 39136a07..f3ec70ab 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_typed_object_reference.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_typed_object_reference.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -37,9 +37,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -66,9 +71,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1TypedObjectReference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1TypedObjectReference`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -119,6 +125,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] kind Value to be assigned + def kind=(kind) + if kind.nil? + fail ArgumentError, 'kind cannot be nil' + end + + @kind = kind + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_volume_resource_requirements.rb b/lib/kubevirt/models/k8s_io_api_core_v1_volume_resource_requirements.rb index 1bdf2cc2..75ec395e 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_volume_resource_requirements.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_volume_resource_requirements.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,16 +30,21 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { - :'limits' => :'Hash', - :'requests' => :'Hash' + :'limits' => :'Hash', + :'requests' => :'Hash' } end @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1VolumeResourceRequirements`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1VolumeResourceRequirements`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.rb b/lib/kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.rb index d8397d9f..c64bda4d 100644 --- a/lib/kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.rb +++ b/lib/kubevirt/models/k8s_io_api_core_v1_weighted_pod_affinity_term.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1WeightedPodAffinityTerm`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApiCoreV1WeightedPodAffinityTerm`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -101,6 +107,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] pod_affinity_term Value to be assigned + def pod_affinity_term=(pod_affinity_term) + if pod_affinity_term.nil? + fail ArgumentError, 'pod_affinity_term cannot be nil' + end + + @pod_affinity_term = pod_affinity_term + end + + # Custom attribute writer method with validation + # @param [Object] weight Value to be assigned + def weight=(weight) + if weight.nil? + fail ArgumentError, 'weight cannot be nil' + end + + @weight = weight + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.rb index 0f27496a..0c97e412 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -45,9 +45,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -76,9 +81,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1APIGroup`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1APIGroup`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -141,6 +147,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] versions Value to be assigned + def versions=(versions) + if versions.nil? + fail ArgumentError, 'versions cannot be nil' + end + + @versions = versions + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.rb index 7fce6da0..20247322 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1APIGroupList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1APIGroupList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -106,6 +112,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] groups Value to be assigned + def groups=(groups) + if groups.nil? + fail ArgumentError, 'groups cannot be nil' + end + + @groups = groups + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.rb index 569828eb..8ba6820a 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -62,9 +62,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -97,9 +102,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1APIResource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1APIResource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -201,6 +207,56 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] kind Value to be assigned + def kind=(kind) + if kind.nil? + fail ArgumentError, 'kind cannot be nil' + end + + @kind = kind + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] namespaced Value to be assigned + def namespaced=(namespaced) + if namespaced.nil? + fail ArgumentError, 'namespaced cannot be nil' + end + + @namespaced = namespaced + end + + # Custom attribute writer method with validation + # @param [Object] singular_name Value to be assigned + def singular_name=(singular_name) + if singular_name.nil? + fail ArgumentError, 'singular_name cannot be nil' + end + + @singular_name = singular_name + end + + # Custom attribute writer method with validation + # @param [Object] verbs Value to be assigned + def verbs=(verbs) + if verbs.nil? + fail ArgumentError, 'verbs cannot be nil' + end + + @verbs = verbs + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.rb index 37de8e12..5a349e3b 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -38,9 +38,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -67,9 +72,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1APIResourceList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1APIResourceList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -122,6 +128,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] group_version Value to be assigned + def group_version=(group_version) + if group_version.nil? + fail ArgumentError, 'group_version cannot be nil' + end + + @group_version = group_version + end + + # Custom attribute writer method with validation + # @param [Object] resources Value to be assigned + def resources=(resources) + if resources.nil? + fail ArgumentError, 'resources cannot be nil' + end + + @resources = resources + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.rb index 3c98399a..64b46de1 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -49,9 +49,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -81,9 +86,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1DeleteOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1DeleteOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.rb index 42922665..d4b46199 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1GroupVersionForDiscovery`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -102,6 +108,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] group_version Value to be assigned + def group_version=(group_version) + if group_version.nil? + fail ArgumentError, 'group_version cannot be nil' + end + + @group_version = group_version + end + + # Custom attribute writer method with validation + # @param [Object] version Value to be assigned + def version=(version) + if version.nil? + fail ArgumentError, 'version cannot be nil' + end + + @version = version + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.rb index ce1b866a..ef6a729d 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1LabelSelector`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1LabelSelector`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.rb index 4039a3eb..cfe8d72e 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1LabelSelectorRequirement`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] key Value to be assigned + def key=(key) + if key.nil? + fail ArgumentError, 'key cannot be nil' + end + + @key = key + end + + # Custom attribute writer method with validation + # @param [Object] operator Value to be assigned + def operator=(operator) + if operator.nil? + fail ArgumentError, 'operator cannot be nil' + end + + @operator = operator + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.rb index e9822699..fe3b3f69 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -38,9 +38,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -67,9 +72,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1ListMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1ListMeta`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.rb index 844286b3..1e4ac659 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -50,9 +50,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -82,9 +87,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1ManagedFieldsEntry`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.rb index be627352..2ac3f1e9 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -78,9 +78,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -117,9 +122,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1ObjectMeta`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1ObjectMeta`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.rb index b5288510..3916fb5b 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -46,9 +46,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -77,9 +82,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1OwnerReference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1OwnerReference`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -152,6 +158,46 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] api_version Value to be assigned + def api_version=(api_version) + if api_version.nil? + fail ArgumentError, 'api_version cannot be nil' + end + + @api_version = api_version + end + + # Custom attribute writer method with validation + # @param [Object] kind Value to be assigned + def kind=(kind) + if kind.nil? + fail ArgumentError, 'kind cannot be nil' + end + + @kind = kind + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] uid Value to be assigned + def uid=(uid) + if uid.nil? + fail ArgumentError, 'uid cannot be nil' + end + + @uid = uid + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.rb index e3b99267..3a693d82 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_preconditions.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1Preconditions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1Preconditions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.rb index ee102433..cac73288 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_root_paths.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1RootPaths`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1RootPaths`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -88,6 +94,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] paths Value to be assigned + def paths=(paths) + if paths.nil? + fail ArgumentError, 'paths cannot be nil' + end + + @paths = paths + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.rb index e9796c81..bf0d6cc9 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1ServerAddressByClientCIDR`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -102,6 +108,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] client_cidr Value to be assigned + def client_cidr=(client_cidr) + if client_cidr.nil? + fail ArgumentError, 'client_cidr cannot be nil' + end + + @client_cidr = client_cidr + end + + # Custom attribute writer method with validation + # @param [Object] server_address Value to be assigned + def server_address=(server_address) + if server_address.nil? + fail ArgumentError, 'server_address cannot be nil' + end + + @server_address = server_address + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status.rb index cbbf43d9..a43b4d1c 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -52,9 +52,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -85,9 +90,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1Status`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1Status`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.rb index f8166bf5..53d84a3c 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_cause.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1StatusCause`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1StatusCause`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details.rb index f791ee38..703b104c 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -46,9 +46,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -77,9 +82,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1StatusDetails`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1StatusDetails`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.rb b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.rb index f18a17f0..8c752fbb 100644 --- a/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.rb +++ b/lib/kubevirt/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1WatchEvent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::K8sIoApimachineryPkgApisMetaV1WatchEvent`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -101,6 +107,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] object Value to be assigned + def object=(object) + if object.nil? + fail ArgumentError, 'object cannot be nil' + end + + @object = object + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_access_credential.rb b/lib/kubevirt/models/v1_access_credential.rb index 854550c5..7ee1b7c2 100644 --- a/lib/kubevirt/models/v1_access_credential.rb +++ b/lib/kubevirt/models/v1_access_credential.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1AccessCredential`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1AccessCredential`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_access_credential_secret_source.rb b/lib/kubevirt/models/v1_access_credential_secret_source.rb index 87e4d2da..1ca2305c 100644 --- a/lib/kubevirt/models/v1_access_credential_secret_source.rb +++ b/lib/kubevirt/models/v1_access_credential_secret_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1AccessCredentialSecretSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1AccessCredentialSecretSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -85,6 +91,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] secret_name Value to be assigned + def secret_name=(secret_name) + if secret_name.nil? + fail ArgumentError, 'secret_name cannot be nil' + end + + @secret_name = secret_name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_acpi.rb b/lib/kubevirt/models/v1_acpi.rb index e17b147b..4ceafa98 100644 --- a/lib/kubevirt/models/v1_acpi.rb +++ b/lib/kubevirt/models/v1_acpi.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ACPI`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ACPI`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_add_volume_options.rb b/lib/kubevirt/models/v1_add_volume_options.rb index 51445c81..9e107017 100644 --- a/lib/kubevirt/models/v1_add_volume_options.rb +++ b/lib/kubevirt/models/v1_add_volume_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1AddVolumeOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1AddVolumeOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -127,6 +133,36 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] disk Value to be assigned + def disk=(disk) + if disk.nil? + fail ArgumentError, 'disk cannot be nil' + end + + @disk = disk + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] volume_source Value to be assigned + def volume_source=(volume_source) + if volume_source.nil? + fail ArgumentError, 'volume_source cannot be nil' + end + + @volume_source = volume_source + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_arch_configuration.rb b/lib/kubevirt/models/v1_arch_configuration.rb index 8ae70f4d..4d96ef21 100644 --- a/lib/kubevirt/models/v1_arch_configuration.rb +++ b/lib/kubevirt/models/v1_arch_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ArchConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ArchConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_arch_specific_configuration.rb b/lib/kubevirt/models/v1_arch_specific_configuration.rb index bcf1a10c..09d2a6e0 100644 --- a/lib/kubevirt/models/v1_arch_specific_configuration.rb +++ b/lib/kubevirt/models/v1_arch_specific_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -58,9 +63,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ArchSpecificConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ArchSpecificConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_bios.rb b/lib/kubevirt/models/v1_bios.rb index eacc89ce..bacbb8c6 100644 --- a/lib/kubevirt/models/v1_bios.rb +++ b/lib/kubevirt/models/v1_bios.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1BIOS`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1BIOS`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_block_size.rb b/lib/kubevirt/models/v1_block_size.rb index eaef0712..51cb806e 100644 --- a/lib/kubevirt/models/v1_block_size.rb +++ b/lib/kubevirt/models/v1_block_size.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1BlockSize`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1BlockSize`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_bootloader.rb b/lib/kubevirt/models/v1_bootloader.rb index 7ea34d20..9ea86a6a 100644 --- a/lib/kubevirt/models/v1_bootloader.rb +++ b/lib/kubevirt/models/v1_bootloader.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Bootloader`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Bootloader`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_cd_rom_target.rb b/lib/kubevirt/models/v1_cd_rom_target.rb index edf7cdd7..edd9079c 100644 --- a/lib/kubevirt/models/v1_cd_rom_target.rb +++ b/lib/kubevirt/models/v1_cd_rom_target.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CDRomTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CDRomTarget`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_cert_config.rb b/lib/kubevirt/models/v1_cert_config.rb index 0edc1155..97430d82 100644 --- a/lib/kubevirt/models/v1_cert_config.rb +++ b/lib/kubevirt/models/v1_cert_config.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CertConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CertConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_chassis.rb b/lib/kubevirt/models/v1_chassis.rb index 5cb243e0..6f33152d 100644 --- a/lib/kubevirt/models/v1_chassis.rb +++ b/lib/kubevirt/models/v1_chassis.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -37,9 +37,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -67,9 +72,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Chassis`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Chassis`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_clock.rb b/lib/kubevirt/models/v1_clock.rb index adfe4b06..8a6d7262 100644 --- a/lib/kubevirt/models/v1_clock.rb +++ b/lib/kubevirt/models/v1_clock.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -32,9 +32,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -60,9 +65,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Clock`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Clock`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_clock_offset.rb b/lib/kubevirt/models/v1_clock_offset.rb index 4010ff75..da1f43e6 100644 --- a/lib/kubevirt/models/v1_clock_offset.rb +++ b/lib/kubevirt/models/v1_clock_offset.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ClockOffset`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ClockOffset`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_clock_offset_utc.rb b/lib/kubevirt/models/v1_clock_offset_utc.rb index c9894696..8e3bf58b 100644 --- a/lib/kubevirt/models/v1_clock_offset_utc.rb +++ b/lib/kubevirt/models/v1_clock_offset_utc.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ClockOffsetUTC`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ClockOffsetUTC`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_cloud_init_config_drive_source.rb b/lib/kubevirt/models/v1_cloud_init_config_drive_source.rb index 03fb5a61..137f247f 100644 --- a/lib/kubevirt/models/v1_cloud_init_config_drive_source.rb +++ b/lib/kubevirt/models/v1_cloud_init_config_drive_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -44,9 +44,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -75,9 +80,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CloudInitConfigDriveSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CloudInitConfigDriveSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_cloud_init_no_cloud_source.rb b/lib/kubevirt/models/v1_cloud_init_no_cloud_source.rb index 8d437225..fb831fce 100644 --- a/lib/kubevirt/models/v1_cloud_init_no_cloud_source.rb +++ b/lib/kubevirt/models/v1_cloud_init_no_cloud_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -44,9 +44,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -75,9 +80,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CloudInitNoCloudSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CloudInitNoCloudSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_common_instancetypes_deployment.rb b/lib/kubevirt/models/v1_common_instancetypes_deployment.rb index 7b54cfc4..cf44a73b 100644 --- a/lib/kubevirt/models/v1_common_instancetypes_deployment.rb +++ b/lib/kubevirt/models/v1_common_instancetypes_deployment.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CommonInstancetypesDeployment`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CommonInstancetypesDeployment`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_component_config.rb b/lib/kubevirt/models/v1_component_config.rb index 67219651..253e3a2f 100644 --- a/lib/kubevirt/models/v1_component_config.rb +++ b/lib/kubevirt/models/v1_component_config.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ComponentConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ComponentConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_config_map_volume_source.rb b/lib/kubevirt/models/v1_config_map_volume_source.rb index 847138ed..cebaa97a 100644 --- a/lib/kubevirt/models/v1_config_map_volume_source.rb +++ b/lib/kubevirt/models/v1_config_map_volume_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ConfigMapVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ConfigMapVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_container_disk_info.rb b/lib/kubevirt/models/v1_container_disk_info.rb index caf777f2..dfb4e205 100644 --- a/lib/kubevirt/models/v1_container_disk_info.rb +++ b/lib/kubevirt/models/v1_container_disk_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ContainerDiskInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ContainerDiskInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_container_disk_source.rb b/lib/kubevirt/models/v1_container_disk_source.rb index 57eb589c..bf26179c 100644 --- a/lib/kubevirt/models/v1_container_disk_source.rb +++ b/lib/kubevirt/models/v1_container_disk_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -60,9 +60,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -89,9 +94,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ContainerDiskSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ContainerDiskSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -137,6 +143,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] image Value to be assigned + def image=(image) + if image.nil? + fail ArgumentError, 'image cannot be nil' + end + + @image = image + end + # Custom attribute writer method checking allowed values (enum). # @param [Object] image_pull_policy Object to be assigned def image_pull_policy=(image_pull_policy) diff --git a/lib/kubevirt/models/v1_controller_revision_ref.rb b/lib/kubevirt/models/v1_controller_revision_ref.rb new file mode 100644 index 00000000..c3dd8199 --- /dev/null +++ b/lib/kubevirt/models/v1_controller_revision_ref.rb @@ -0,0 +1,221 @@ +=begin +#KubeVirt API + +#This is KubeVirt API an add-on for Kubernetes. + +The version of the OpenAPI document: 1.0.0 +Contact: kubevirt-dev@googlegroups.com +Generated by: https://openapi-generator.tech +Generator version: 7.12.0 + +=end + +require 'date' +require 'time' + +module Kubevirt + class V1ControllerRevisionRef + # Name of the ControllerRevision + attr_accessor :name + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'name' => :'name' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'name' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1ControllerRevisionRef` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ControllerRevisionRef`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + name == o.name + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [name].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = Kubevirt.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/kubevirt/models/v1_cpu.rb b/lib/kubevirt/models/v1_cpu.rb index 265d9192..d54244a8 100644 --- a/lib/kubevirt/models/v1_cpu.rb +++ b/lib/kubevirt/models/v1_cpu.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -60,9 +60,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -95,9 +100,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CPU`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CPU`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_cpu_feature.rb b/lib/kubevirt/models/v1_cpu_feature.rb index 35e51519..4310810a 100644 --- a/lib/kubevirt/models/v1_cpu_feature.rb +++ b/lib/kubevirt/models/v1_cpu_feature.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CPUFeature`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CPUFeature`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -95,6 +101,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_cpu_topology.rb b/lib/kubevirt/models/v1_cpu_topology.rb index 8e2c73fa..439db469 100644 --- a/lib/kubevirt/models/v1_cpu_topology.rb +++ b/lib/kubevirt/models/v1_cpu_topology.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CPUTopology`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CPUTopology`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_custom_block_size.rb b/lib/kubevirt/models/v1_custom_block_size.rb index 88522468..c3e1fc11 100644 --- a/lib/kubevirt/models/v1_custom_block_size.rb +++ b/lib/kubevirt/models/v1_custom_block_size.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CustomBlockSize`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CustomBlockSize`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -100,6 +106,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] logical Value to be assigned + def logical=(logical) + if logical.nil? + fail ArgumentError, 'logical cannot be nil' + end + + @logical = logical + end + + # Custom attribute writer method with validation + # @param [Object] physical Value to be assigned + def physical=(physical) + if physical.nil? + fail ArgumentError, 'physical cannot be nil' + end + + @physical = physical + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_custom_profile.rb b/lib/kubevirt/models/v1_custom_profile.rb index dae6478f..8f27f8b9 100644 --- a/lib/kubevirt/models/v1_custom_profile.rb +++ b/lib/kubevirt/models/v1_custom_profile.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,9 +27,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -54,9 +59,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CustomProfile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CustomProfile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_customize_components.rb b/lib/kubevirt/models/v1_customize_components.rb index 399e8a64..79af73be 100644 --- a/lib/kubevirt/models/v1_customize_components.rb +++ b/lib/kubevirt/models/v1_customize_components.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,9 +27,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -54,9 +59,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CustomizeComponents`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CustomizeComponents`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_customize_components_patch.rb b/lib/kubevirt/models/v1_customize_components_patch.rb index e47bcc34..7df4643f 100644 --- a/lib/kubevirt/models/v1_customize_components_patch.rb +++ b/lib/kubevirt/models/v1_customize_components_patch.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CustomizeComponentsPatch`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1CustomizeComponentsPatch`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -129,6 +135,46 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] patch Value to be assigned + def patch=(patch) + if patch.nil? + fail ArgumentError, 'patch cannot be nil' + end + + @patch = patch + end + + # Custom attribute writer method with validation + # @param [Object] resource_name Value to be assigned + def resource_name=(resource_name) + if resource_name.nil? + fail ArgumentError, 'resource_name cannot be nil' + end + + @resource_name = resource_name + end + + # Custom attribute writer method with validation + # @param [Object] resource_type Value to be assigned + def resource_type=(resource_type) + if resource_type.nil? + fail ArgumentError, 'resource_type cannot be nil' + end + + @resource_type = resource_type + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_data_volume_source.rb b/lib/kubevirt/models/v1_data_volume_source.rb index 1f4a7a32..834240b2 100644 --- a/lib/kubevirt/models/v1_data_volume_source.rb +++ b/lib/kubevirt/models/v1_data_volume_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DataVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DataVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -94,6 +100,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_data_volume_template_spec.rb b/lib/kubevirt/models/v1_data_volume_template_spec.rb index e15237e6..d2f204af 100644 --- a/lib/kubevirt/models/v1_data_volume_template_spec.rb +++ b/lib/kubevirt/models/v1_data_volume_template_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -38,9 +38,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -68,9 +73,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DataVolumeTemplateSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DataVolumeTemplateSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -118,6 +124,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_developer_configuration.rb b/lib/kubevirt/models/v1_developer_configuration.rb index 18d90635..e8236180 100644 --- a/lib/kubevirt/models/v1_developer_configuration.rb +++ b/lib/kubevirt/models/v1_developer_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -16,6 +16,9 @@ module Kubevirt # DeveloperConfiguration holds developer options class V1DeveloperConfiguration + # Enable the ability to pprof profile KubeVirt control plane + attr_accessor :cluster_profiler + # 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 attr_accessor :cpu_allocation_ratio @@ -47,6 +50,7 @@ class V1DeveloperConfiguration # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'cluster_profiler' => :'clusterProfiler', :'cpu_allocation_ratio' => :'cpuAllocationRatio', :'disk_verification' => :'diskVerification', :'feature_gates' => :'featureGates', @@ -60,14 +64,20 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { + :'cluster_profiler' => :'Boolean', :'cpu_allocation_ratio' => :'Integer', :'disk_verification' => :'V1DiskVerification', :'feature_gates' => :'Array', @@ -95,13 +105,18 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DeveloperConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DeveloperConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } + if attributes.key?(:'cluster_profiler') + self.cluster_profiler = attributes[:'cluster_profiler'] + end + if attributes.key?(:'cpu_allocation_ratio') self.cpu_allocation_ratio = attributes[:'cpu_allocation_ratio'] end @@ -167,6 +182,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + cluster_profiler == o.cluster_profiler && cpu_allocation_ratio == o.cpu_allocation_ratio && disk_verification == o.disk_verification && feature_gates == o.feature_gates && @@ -188,7 +204,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [cpu_allocation_ratio, disk_verification, feature_gates, log_verbosity, memory_overcommit, minimum_cluster_tsc_frequency, minimum_reserve_pvc_bytes, node_selectors, pvc_tolerate_less_space_up_to_percent, use_emulation].hash + [cluster_profiler, cpu_allocation_ratio, disk_verification, feature_gates, log_verbosity, memory_overcommit, minimum_cluster_tsc_frequency, minimum_reserve_pvc_bytes, node_selectors, pvc_tolerate_less_space_up_to_percent, use_emulation].hash end # Builds the object from hash diff --git a/lib/kubevirt/models/v1_devices.rb b/lib/kubevirt/models/v1_devices.rb index be15e698..17492ced 100644 --- a/lib/kubevirt/models/v1_devices.rb +++ b/lib/kubevirt/models/v1_devices.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -109,9 +109,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -157,9 +162,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Devices`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Devices`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_dhcp_options.rb b/lib/kubevirt/models/v1_dhcp_options.rb index a2c18e26..3961cec6 100644 --- a/lib/kubevirt/models/v1_dhcp_options.rb +++ b/lib/kubevirt/models/v1_dhcp_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -38,9 +38,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -67,9 +72,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DHCPOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DHCPOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_dhcp_private_options.rb b/lib/kubevirt/models/v1_dhcp_private_options.rb index 196a6f60..11848bbf 100644 --- a/lib/kubevirt/models/v1_dhcp_private_options.rb +++ b/lib/kubevirt/models/v1_dhcp_private_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DHCPPrivateOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DHCPPrivateOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -102,6 +108,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] option Value to be assigned + def option=(option) + if option.nil? + fail ArgumentError, 'option cannot be nil' + end + + @option = option + end + + # Custom attribute writer method with validation + # @param [Object] value Value to be assigned + def value=(value) + if value.nil? + fail ArgumentError, 'value cannot be nil' + end + + @value = value + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_disk.rb b/lib/kubevirt/models/v1_disk.rb index d5d01255..9d24a8c7 100644 --- a/lib/kubevirt/models/v1_disk.rb +++ b/lib/kubevirt/models/v1_disk.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -69,9 +69,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -107,9 +112,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Disk`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Disk`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -189,6 +195,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_disk_io_threads.rb b/lib/kubevirt/models/v1_disk_io_threads.rb new file mode 100644 index 00000000..5e5c1b98 --- /dev/null +++ b/lib/kubevirt/models/v1_disk_io_threads.rb @@ -0,0 +1,221 @@ +=begin +#KubeVirt API + +#This is KubeVirt API an add-on for Kubernetes. + +The version of the OpenAPI document: 1.0.0 +Contact: kubevirt-dev@googlegroups.com +Generated by: https://openapi-generator.tech +Generator version: 7.12.0 + +=end + +require 'date' +require 'time' + +module Kubevirt + class V1DiskIOThreads + # SupplementalPoolThreadCount specifies how many iothreads are allocated for the supplementalPool policy. + attr_accessor :supplemental_pool_thread_count + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'supplemental_pool_thread_count' => :'supplementalPoolThreadCount' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'supplemental_pool_thread_count' => :'Integer' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1DiskIOThreads` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DiskIOThreads`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'supplemental_pool_thread_count') + self.supplemental_pool_thread_count = attributes[:'supplemental_pool_thread_count'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + supplemental_pool_thread_count == o.supplemental_pool_thread_count + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [supplemental_pool_thread_count].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = Kubevirt.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/kubevirt/models/v1_disk_target.rb b/lib/kubevirt/models/v1_disk_target.rb index 7b8ac579..7c863ef0 100644 --- a/lib/kubevirt/models/v1_disk_target.rb +++ b/lib/kubevirt/models/v1_disk_target.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DiskTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DiskTarget`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_disk_verification.rb b/lib/kubevirt/models/v1_disk_verification.rb index 80c71fc9..b9cc82bb 100644 --- a/lib/kubevirt/models/v1_disk_verification.rb +++ b/lib/kubevirt/models/v1_disk_verification.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,15 +26,20 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { - :'memory_limit' => :'String' + :'memory_limit' => :'Object' } end @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DiskVerification`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DiskVerification`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -86,6 +92,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] memory_limit Value to be assigned + def memory_limit=(memory_limit) + if memory_limit.nil? + fail ArgumentError, 'memory_limit cannot be nil' + end + + @memory_limit = memory_limit + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_domain_memory_dump_info.rb b/lib/kubevirt/models/v1_domain_memory_dump_info.rb index 7de37301..8d41c437 100644 --- a/lib/kubevirt/models/v1_domain_memory_dump_info.rb +++ b/lib/kubevirt/models/v1_domain_memory_dump_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -38,9 +38,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -67,9 +72,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DomainMemoryDumpInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DomainMemoryDumpInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_domain_spec.rb b/lib/kubevirt/models/v1_domain_spec.rb index f37cb46c..f1839c36 100644 --- a/lib/kubevirt/models/v1_domain_spec.rb +++ b/lib/kubevirt/models/v1_domain_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,6 +27,8 @@ class V1DomainSpec attr_accessor :firmware + attr_accessor :io_threads + # Controls whether or not disks will share IOThreads. Omitting IOThreadsPolicy disables use of IOThreads. One of: shared, auto attr_accessor :io_threads_policy @@ -47,6 +49,7 @@ def self.attribute_map :'devices' => :'devices', :'features' => :'features', :'firmware' => :'firmware', + :'io_threads' => :'ioThreads', :'io_threads_policy' => :'ioThreadsPolicy', :'launch_security' => :'launchSecurity', :'machine' => :'machine', @@ -55,9 +58,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -69,6 +77,7 @@ def self.openapi_types :'devices' => :'V1Devices', :'features' => :'V1Features', :'firmware' => :'V1Firmware', + :'io_threads' => :'V1DiskIOThreads', :'io_threads_policy' => :'String', :'launch_security' => :'V1LaunchSecurity', :'machine' => :'V1Machine', @@ -91,9 +100,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DomainSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DomainSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -124,6 +134,10 @@ def initialize(attributes = {}) self.firmware = attributes[:'firmware'] end + if attributes.key?(:'io_threads') + self.io_threads = attributes[:'io_threads'] + end + if attributes.key?(:'io_threads_policy') self.io_threads_policy = attributes[:'io_threads_policy'] end @@ -165,6 +179,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] devices Value to be assigned + def devices=(devices) + if devices.nil? + fail ArgumentError, 'devices cannot be nil' + end + + @devices = devices + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) @@ -176,6 +200,7 @@ def ==(o) devices == o.devices && features == o.features && firmware == o.firmware && + io_threads == o.io_threads && io_threads_policy == o.io_threads_policy && launch_security == o.launch_security && machine == o.machine && @@ -192,7 +217,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [chassis, clock, cpu, devices, features, firmware, io_threads_policy, launch_security, machine, memory, resources].hash + [chassis, clock, cpu, devices, features, firmware, io_threads, io_threads_policy, launch_security, machine, memory, resources].hash end # Builds the object from hash diff --git a/lib/kubevirt/models/v1_downward_api_volume_source.rb b/lib/kubevirt/models/v1_downward_api_volume_source.rb index 6f64221c..f3bf82b8 100644 --- a/lib/kubevirt/models/v1_downward_api_volume_source.rb +++ b/lib/kubevirt/models/v1_downward_api_volume_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DownwardAPIVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1DownwardAPIVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_efi.rb b/lib/kubevirt/models/v1_efi.rb index 5d03b088..390e5349 100644 --- a/lib/kubevirt/models/v1_efi.rb +++ b/lib/kubevirt/models/v1_efi.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1EFI`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1EFI`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_empty_disk_source.rb b/lib/kubevirt/models/v1_empty_disk_source.rb index b89314e5..d5e6598c 100644 --- a/lib/kubevirt/models/v1_empty_disk_source.rb +++ b/lib/kubevirt/models/v1_empty_disk_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,15 +26,20 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { - :'capacity' => :'String' + :'capacity' => :'Object' } end @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1EmptyDiskSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1EmptyDiskSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -86,6 +92,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] capacity Value to be assigned + def capacity=(capacity) + if capacity.nil? + fail ArgumentError, 'capacity cannot be nil' + end + + @capacity = capacity + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_ephemeral_volume_source.rb b/lib/kubevirt/models/v1_ephemeral_volume_source.rb index 17c87406..fa9a4a22 100644 --- a/lib/kubevirt/models/v1_ephemeral_volume_source.rb +++ b/lib/kubevirt/models/v1_ephemeral_volume_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -24,9 +24,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -50,9 +55,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1EphemeralVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1EphemeralVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_feature_apic.rb b/lib/kubevirt/models/v1_feature_apic.rb index 2f40c88d..a64e5e44 100644 --- a/lib/kubevirt/models/v1_feature_apic.rb +++ b/lib/kubevirt/models/v1_feature_apic.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1FeatureAPIC`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1FeatureAPIC`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_feature_hyperv.rb b/lib/kubevirt/models/v1_feature_hyperv.rb index c15b3b80..cb7eac27 100644 --- a/lib/kubevirt/models/v1_feature_hyperv.rb +++ b/lib/kubevirt/models/v1_feature_hyperv.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -64,9 +64,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -103,9 +108,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1FeatureHyperv`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1FeatureHyperv`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_feature_kvm.rb b/lib/kubevirt/models/v1_feature_kvm.rb index ee2aa4cc..ac2f9491 100644 --- a/lib/kubevirt/models/v1_feature_kvm.rb +++ b/lib/kubevirt/models/v1_feature_kvm.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1FeatureKVM`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1FeatureKVM`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_feature_spinlocks.rb b/lib/kubevirt/models/v1_feature_spinlocks.rb index 404c02d0..7cbd16ef 100644 --- a/lib/kubevirt/models/v1_feature_spinlocks.rb +++ b/lib/kubevirt/models/v1_feature_spinlocks.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1FeatureSpinlocks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1FeatureSpinlocks`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_feature_state.rb b/lib/kubevirt/models/v1_feature_state.rb index fab084e6..608f3ad2 100644 --- a/lib/kubevirt/models/v1_feature_state.rb +++ b/lib/kubevirt/models/v1_feature_state.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1FeatureState`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1FeatureState`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_feature_vendor_id.rb b/lib/kubevirt/models/v1_feature_vendor_id.rb index 7be42e3f..6daa773c 100644 --- a/lib/kubevirt/models/v1_feature_vendor_id.rb +++ b/lib/kubevirt/models/v1_feature_vendor_id.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1FeatureVendorID`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1FeatureVendorID`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_features.rb b/lib/kubevirt/models/v1_features.rb index 5991b989..9bb2dbe2 100644 --- a/lib/kubevirt/models/v1_features.rb +++ b/lib/kubevirt/models/v1_features.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -42,9 +42,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -74,9 +79,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Features`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Features`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_filesystem.rb b/lib/kubevirt/models/v1_filesystem.rb index c6a198d7..34cd5b3b 100644 --- a/lib/kubevirt/models/v1_filesystem.rb +++ b/lib/kubevirt/models/v1_filesystem.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Filesystem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Filesystem`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -100,6 +106,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] virtiofs Value to be assigned + def virtiofs=(virtiofs) + if virtiofs.nil? + fail ArgumentError, 'virtiofs cannot be nil' + end + + @virtiofs = virtiofs + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_firmware.rb b/lib/kubevirt/models/v1_firmware.rb index 16fb4529..99f4524c 100644 --- a/lib/kubevirt/models/v1_firmware.rb +++ b/lib/kubevirt/models/v1_firmware.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -38,9 +38,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -68,9 +73,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Firmware`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Firmware`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_flags.rb b/lib/kubevirt/models/v1_flags.rb index e573ea2a..fe327da2 100644 --- a/lib/kubevirt/models/v1_flags.rb +++ b/lib/kubevirt/models/v1_flags.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -31,9 +31,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -59,9 +64,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Flags`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Flags`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_freeze_unfreeze_timeout.rb b/lib/kubevirt/models/v1_freeze_unfreeze_timeout.rb index 01efa0e1..2c0b2bf5 100644 --- a/lib/kubevirt/models/v1_freeze_unfreeze_timeout.rb +++ b/lib/kubevirt/models/v1_freeze_unfreeze_timeout.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1FreezeUnfreezeTimeout`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1FreezeUnfreezeTimeout`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -86,6 +92,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] unfreeze_timeout Value to be assigned + def unfreeze_timeout=(unfreeze_timeout) + if unfreeze_timeout.nil? + fail ArgumentError, 'unfreeze_timeout cannot be nil' + end + + @unfreeze_timeout = unfreeze_timeout + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_generation_status.rb b/lib/kubevirt/models/v1_generation_status.rb index 28577e06..07912509 100644 --- a/lib/kubevirt/models/v1_generation_status.rb +++ b/lib/kubevirt/models/v1_generation_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -46,9 +46,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -77,9 +82,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1GenerationStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1GenerationStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -152,6 +158,46 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] group Value to be assigned + def group=(group) + if group.nil? + fail ArgumentError, 'group cannot be nil' + end + + @group = group + end + + # Custom attribute writer method with validation + # @param [Object] last_generation Value to be assigned + def last_generation=(last_generation) + if last_generation.nil? + fail ArgumentError, 'last_generation cannot be nil' + end + + @last_generation = last_generation + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] resource Value to be assigned + def resource=(resource) + if resource.nil? + fail ArgumentError, 'resource cannot be nil' + end + + @resource = resource + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_gpu.rb b/lib/kubevirt/models/v1_gpu.rb index 5d5e2c33..ba0b7048 100644 --- a/lib/kubevirt/models/v1_gpu.rb +++ b/lib/kubevirt/models/v1_gpu.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -35,9 +35,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -64,9 +69,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1GPU`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1GPU`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -117,6 +123,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] device_name Value to be assigned + def device_name=(device_name) + if device_name.nil? + fail ArgumentError, 'device_name cannot be nil' + end + + @device_name = device_name + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_guest_agent_command_info.rb b/lib/kubevirt/models/v1_guest_agent_command_info.rb index c1e00ee7..fdbcc46f 100644 --- a/lib/kubevirt/models/v1_guest_agent_command_info.rb +++ b/lib/kubevirt/models/v1_guest_agent_command_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1GuestAgentCommandInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1GuestAgentCommandInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -93,6 +99,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_host_device.rb b/lib/kubevirt/models/v1_host_device.rb index e8ef815b..9c1428d1 100644 --- a/lib/kubevirt/models/v1_host_device.rb +++ b/lib/kubevirt/models/v1_host_device.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -32,9 +32,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -60,9 +65,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1HostDevice`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1HostDevice`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -109,6 +115,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] device_name Value to be assigned + def device_name=(device_name) + if device_name.nil? + fail ArgumentError, 'device_name cannot be nil' + end + + @device_name = device_name + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_host_disk.rb b/lib/kubevirt/models/v1_host_disk.rb index 0ca59f8f..50570189 100644 --- a/lib/kubevirt/models/v1_host_disk.rb +++ b/lib/kubevirt/models/v1_host_disk.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -38,15 +38,20 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { - :'capacity' => :'String', + :'capacity' => :'Object', :'path' => :'String', :'shared' => :'Boolean', :'type' => :'String' @@ -67,9 +72,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1HostDisk`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1HostDisk`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -120,6 +126,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] path Value to be assigned + def path=(path) + if path.nil? + fail ArgumentError, 'path cannot be nil' + end + + @path = path + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_hotplug_volume_source.rb b/lib/kubevirt/models/v1_hotplug_volume_source.rb index 68823575..916c45a2 100644 --- a/lib/kubevirt/models/v1_hotplug_volume_source.rb +++ b/lib/kubevirt/models/v1_hotplug_volume_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1HotplugVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1HotplugVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_hotplug_volume_status.rb b/lib/kubevirt/models/v1_hotplug_volume_status.rb index 6033fe4e..45f479cb 100644 --- a/lib/kubevirt/models/v1_hotplug_volume_status.rb +++ b/lib/kubevirt/models/v1_hotplug_volume_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1HotplugVolumeStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1HotplugVolumeStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_hpet_timer.rb b/lib/kubevirt/models/v1_hpet_timer.rb index ee9dd168..bd12f0d8 100644 --- a/lib/kubevirt/models/v1_hpet_timer.rb +++ b/lib/kubevirt/models/v1_hpet_timer.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1HPETTimer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1HPETTimer`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_hugepages.rb b/lib/kubevirt/models/v1_hugepages.rb index d2e46cd3..df9d1a49 100644 --- a/lib/kubevirt/models/v1_hugepages.rb +++ b/lib/kubevirt/models/v1_hugepages.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Hugepages`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Hugepages`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_hyper_v_passthrough.rb b/lib/kubevirt/models/v1_hyper_v_passthrough.rb index 9dedcd53..0c13fd2e 100644 --- a/lib/kubevirt/models/v1_hyper_v_passthrough.rb +++ b/lib/kubevirt/models/v1_hyper_v_passthrough.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -24,9 +24,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -50,9 +55,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1HyperVPassthrough`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1HyperVPassthrough`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_hyperv_timer.rb b/lib/kubevirt/models/v1_hyperv_timer.rb index 48fc36d8..9d16834e 100644 --- a/lib/kubevirt/models/v1_hyperv_timer.rb +++ b/lib/kubevirt/models/v1_hyperv_timer.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1HypervTimer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1HypervTimer`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_i6300_esb_watchdog.rb b/lib/kubevirt/models/v1_i6300_esb_watchdog.rb index b865e9b7..74d4f222 100644 --- a/lib/kubevirt/models/v1_i6300_esb_watchdog.rb +++ b/lib/kubevirt/models/v1_i6300_esb_watchdog.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1I6300ESBWatchdog`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1I6300ESBWatchdog`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_initrd_info.rb b/lib/kubevirt/models/v1_initrd_info.rb index 3fa34c31..0d436fdf 100644 --- a/lib/kubevirt/models/v1_initrd_info.rb +++ b/lib/kubevirt/models/v1_initrd_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1InitrdInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1InitrdInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_input.rb b/lib/kubevirt/models/v1_input.rb index f91bdc4c..ee0c41f4 100644 --- a/lib/kubevirt/models/v1_input.rb +++ b/lib/kubevirt/models/v1_input.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Input`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Input`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -110,6 +116,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_instancetype_configuration.rb b/lib/kubevirt/models/v1_instancetype_configuration.rb index efdba94f..4402a130 100644 --- a/lib/kubevirt/models/v1_instancetype_configuration.rb +++ b/lib/kubevirt/models/v1_instancetype_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1InstancetypeConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1InstancetypeConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_instancetype_matcher.rb b/lib/kubevirt/models/v1_instancetype_matcher.rb index 00e3b7c6..202c9125 100644 --- a/lib/kubevirt/models/v1_instancetype_matcher.rb +++ b/lib/kubevirt/models/v1_instancetype_matcher.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -42,9 +42,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -72,9 +77,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1InstancetypeMatcher`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1InstancetypeMatcher`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_instancetype_status_ref.rb b/lib/kubevirt/models/v1_instancetype_status_ref.rb new file mode 100644 index 00000000..5c099d83 --- /dev/null +++ b/lib/kubevirt/models/v1_instancetype_status_ref.rb @@ -0,0 +1,260 @@ +=begin +#KubeVirt API + +#This is KubeVirt API an add-on for Kubernetes. + +The version of the OpenAPI document: 1.0.0 +Contact: kubevirt-dev@googlegroups.com +Generated by: https://openapi-generator.tech +Generator version: 7.12.0 + +=end + +require 'date' +require 'time' + +module Kubevirt + class V1InstancetypeStatusRef + attr_accessor :controller_revision_ref + + # InferFromVolume lists the name of a volume that should be used to infer or discover the resource + attr_accessor :infer_from_volume + + # InferFromVolumeFailurePolicy controls what should happen on failure when inferring the resource + attr_accessor :infer_from_volume_failure_policy + + # Kind specifies the kind of resource + attr_accessor :kind + + # Name is the name of resource + attr_accessor :name + + # Attribute mapping from ruby-style variable name to JSON key. + def self.attribute_map + { + :'controller_revision_ref' => :'controllerRevisionRef', + :'infer_from_volume' => :'inferFromVolume', + :'infer_from_volume_failure_policy' => :'inferFromVolumeFailurePolicy', + :'kind' => :'kind', + :'name' => :'name' + } + end + + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + + # Returns all the JSON keys this model knows about + def self.acceptable_attributes + acceptable_attribute_map.values + end + + # Attribute type mapping. + def self.openapi_types + { + :'controller_revision_ref' => :'V1ControllerRevisionRef', + :'infer_from_volume' => :'String', + :'infer_from_volume_failure_policy' => :'String', + :'kind' => :'String', + :'name' => :'String' + } + end + + # List of attributes with nullable: true + def self.openapi_nullable + Set.new([ + ]) + end + + # Initializes the object + # @param [Hash] attributes Model attributes in the form of hash + def initialize(attributes = {}) + if (!attributes.is_a?(Hash)) + fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1InstancetypeStatusRef` initialize method" + end + + # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map + attributes = attributes.each_with_object({}) { |(k, v), h| + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1InstancetypeStatusRef`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect + end + h[k.to_sym] = v + } + + if attributes.key?(:'controller_revision_ref') + self.controller_revision_ref = attributes[:'controller_revision_ref'] + end + + if attributes.key?(:'infer_from_volume') + self.infer_from_volume = attributes[:'infer_from_volume'] + end + + if attributes.key?(:'infer_from_volume_failure_policy') + self.infer_from_volume_failure_policy = attributes[:'infer_from_volume_failure_policy'] + end + + if attributes.key?(:'kind') + self.kind = attributes[:'kind'] + end + + if attributes.key?(:'name') + self.name = attributes[:'name'] + end + end + + # Show invalid properties with the reasons. Usually used together with valid? + # @return Array for valid properties with the reasons + def list_invalid_properties + warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' + invalid_properties = Array.new + invalid_properties + end + + # Check to see if the all the properties in the model are valid + # @return true if the model is valid + def valid? + warn '[DEPRECATED] the `valid?` method is obsolete' + true + end + + # Checks equality by comparing each attribute. + # @param [Object] Object to be compared + def ==(o) + return true if self.equal?(o) + self.class == o.class && + controller_revision_ref == o.controller_revision_ref && + infer_from_volume == o.infer_from_volume && + infer_from_volume_failure_policy == o.infer_from_volume_failure_policy && + kind == o.kind && + name == o.name + end + + # @see the `==` method + # @param [Object] Object to be compared + def eql?(o) + self == o + end + + # Calculates hash code according to all attributes. + # @return [Integer] Hash code + def hash + [controller_revision_ref, infer_from_volume, infer_from_volume_failure_policy, kind, name].hash + end + + # Builds the object from hash + # @param [Hash] attributes Model attributes in the form of hash + # @return [Object] Returns the model itself + def self.build_from_hash(attributes) + return nil unless attributes.is_a?(Hash) + attributes = attributes.transform_keys(&:to_sym) + transformed_hash = {} + openapi_types.each_pair do |key, type| + if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = nil + elsif type =~ /\AArray<(.*)>/i + # check to ensure the input is an array given that the attribute + # is documented as an array but the input is not + if attributes[attribute_map[key]].is_a?(Array) + transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) } + end + elsif !attributes[attribute_map[key]].nil? + transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]]) + end + end + new(transformed_hash) + end + + # Deserializes the data based on type + # @param string type Data type + # @param string value Value to be deserialized + # @return [Object] Deserialized data + def self._deserialize(type, value) + case type.to_sym + when :Time + Time.parse(value) + when :Date + Date.parse(value) + when :String + value.to_s + when :Integer + value.to_i + when :Float + value.to_f + when :Boolean + if value.to_s =~ /\A(true|t|yes|y|1)\z/i + true + else + false + end + when :Object + # generic object (usually a Hash), return directly + value + when /\AArray<(?.+)>\z/ + inner_type = Regexp.last_match[:inner_type] + value.map { |v| _deserialize(inner_type, v) } + when /\AHash<(?.+?), (?.+)>\z/ + k_type = Regexp.last_match[:k_type] + v_type = Regexp.last_match[:v_type] + {}.tap do |hash| + value.each do |k, v| + hash[_deserialize(k_type, k)] = _deserialize(v_type, v) + end + end + else # model + # models (e.g. Pet) or oneOf + klass = Kubevirt.const_get(type) + klass.respond_to?(:openapi_any_of) || klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value) + end + end + + # Returns the string representation of the object + # @return [String] String presentation of the object + def to_s + to_hash.to_s + end + + # to_body is an alias to to_hash (backward compatibility) + # @return [Hash] Returns the object in the form of hash + def to_body + to_hash + end + + # Returns the object in the form of hash + # @return [Hash] Returns the object in the form of hash + def to_hash + hash = {} + self.class.attribute_map.each_pair do |attr, param| + value = self.send(attr) + if value.nil? + is_nullable = self.class.openapi_nullable.include?(attr) + next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}")) + end + + hash[param] = _to_hash(value) + end + hash + end + + # Outputs non-array value in the form of hash + # For object, use to_hash. Otherwise, just return the value + # @param [Object] value Any valid value + # @return [Hash] Returns the value in the form of hash + def _to_hash(value) + if value.is_a?(Array) + value.compact.map { |v| _to_hash(v) } + elsif value.is_a?(Hash) + {}.tap do |hash| + value.each { |k, v| hash[k] = _to_hash(v) } + end + elsif value.respond_to? :to_hash + value.to_hash + else + value + end + end + + end + +end diff --git a/lib/kubevirt/models/v1_interface.rb b/lib/kubevirt/models/v1_interface.rb index 3d1c05bd..130a8ef3 100644 --- a/lib/kubevirt/models/v1_interface.rb +++ b/lib/kubevirt/models/v1_interface.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -58,7 +58,7 @@ class V1Interface # InterfaceSRIOV connects to a given network by passing-through an SR-IOV PCI device via vfio. attr_accessor :sriov - # State represents the requested operational state of the interface. The (only) value supported is `absent`, expressing a request to remove the interface. + # State represents the requested operational state of the interface. The supported values are: `absent`, expressing a request to remove the interface. `down`, expressing a request to set the link down. `up`, expressing a request to set the link up. Empty value functions as `up`. attr_accessor :state # If specified, the virtual network interface address and its tag will be provided to the guest via config drive @@ -87,9 +87,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -129,9 +134,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Interface`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Interface`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -229,6 +235,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_interface_binding_migration.rb b/lib/kubevirt/models/v1_interface_binding_migration.rb index 2379716e..4839ea0d 100644 --- a/lib/kubevirt/models/v1_interface_binding_migration.rb +++ b/lib/kubevirt/models/v1_interface_binding_migration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1InterfaceBindingMigration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1InterfaceBindingMigration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_interface_binding_plugin.rb b/lib/kubevirt/models/v1_interface_binding_plugin.rb index 70025683..a4fb9e6c 100644 --- a/lib/kubevirt/models/v1_interface_binding_plugin.rb +++ b/lib/kubevirt/models/v1_interface_binding_plugin.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -43,9 +43,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -74,9 +79,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1InterfaceBindingPlugin`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1InterfaceBindingPlugin`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_kernel_boot.rb b/lib/kubevirt/models/v1_kernel_boot.rb index 67c429ec..2efe15f3 100644 --- a/lib/kubevirt/models/v1_kernel_boot.rb +++ b/lib/kubevirt/models/v1_kernel_boot.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KernelBoot`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KernelBoot`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_kernel_boot_container.rb b/lib/kubevirt/models/v1_kernel_boot_container.rb index f0d85081..d8dbd0cc 100644 --- a/lib/kubevirt/models/v1_kernel_boot_container.rb +++ b/lib/kubevirt/models/v1_kernel_boot_container.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -64,9 +64,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -94,9 +99,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KernelBootContainer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KernelBootContainer`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -146,6 +152,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] image Value to be assigned + def image=(image) + if image.nil? + fail ArgumentError, 'image cannot be nil' + end + + @image = image + end + # Custom attribute writer method checking allowed values (enum). # @param [Object] image_pull_policy Object to be assigned def image_pull_policy=(image_pull_policy) diff --git a/lib/kubevirt/models/v1_kernel_boot_status.rb b/lib/kubevirt/models/v1_kernel_boot_status.rb index fdd2084f..db1db270 100644 --- a/lib/kubevirt/models/v1_kernel_boot_status.rb +++ b/lib/kubevirt/models/v1_kernel_boot_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KernelBootStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KernelBootStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_kernel_info.rb b/lib/kubevirt/models/v1_kernel_info.rb index 3b386737..487a4821 100644 --- a/lib/kubevirt/models/v1_kernel_info.rb +++ b/lib/kubevirt/models/v1_kernel_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KernelInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KernelInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_ksm_configuration.rb b/lib/kubevirt/models/v1_ksm_configuration.rb index 69f1d81b..242af5e8 100644 --- a/lib/kubevirt/models/v1_ksm_configuration.rb +++ b/lib/kubevirt/models/v1_ksm_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KSMConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KSMConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_kube_virt.rb b/lib/kubevirt/models/v1_kube_virt.rb index 625579f7..de9617af 100644 --- a/lib/kubevirt/models/v1_kube_virt.rb +++ b/lib/kubevirt/models/v1_kube_virt.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -39,9 +39,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -69,9 +74,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirt`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirt`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -119,6 +125,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_kube_virt_certificate_rotate_strategy.rb b/lib/kubevirt/models/v1_kube_virt_certificate_rotate_strategy.rb index bb43e587..eed48867 100644 --- a/lib/kubevirt/models/v1_kube_virt_certificate_rotate_strategy.rb +++ b/lib/kubevirt/models/v1_kube_virt_certificate_rotate_strategy.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -24,9 +24,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -50,9 +55,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtCertificateRotateStrategy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtCertificateRotateStrategy`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_kube_virt_condition.rb b/lib/kubevirt/models/v1_kube_virt_condition.rb index 1ecff0f9..3a041ef4 100644 --- a/lib/kubevirt/models/v1_kube_virt_condition.rb +++ b/lib/kubevirt/models/v1_kube_virt_condition.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -63,9 +68,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtCondition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtCondition`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -116,6 +122,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] status Value to be assigned + def status=(status) + if status.nil? + fail ArgumentError, 'status cannot be nil' + end + + @status = status + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_kube_virt_configuration.rb b/lib/kubevirt/models/v1_kube_virt_configuration.rb index 4f25af4d..9d206a5c 100644 --- a/lib/kubevirt/models/v1_kube_virt_configuration.rb +++ b/lib/kubevirt/models/v1_kube_virt_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -96,7 +96,7 @@ class V1KubeVirtConfiguration # VMRolloutStrategy defines how live-updatable fields, like CPU sockets, memory, tolerations, and affinity, are propagated from a VM to its VMI. attr_accessor :vm_rollout_strategy - # VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. The storage class must support RWX in filesystem mode. + # VMStateStorageClass is the name of the storage class to use for the PVCs created to preserve VM state, like TPM. attr_accessor :vm_state_storage_class attr_accessor :webhook_configuration @@ -166,9 +166,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -181,7 +186,7 @@ def self.openapi_types :'common_instancetypes_deployment' => :'V1CommonInstancetypesDeployment', :'controller_configuration' => :'V1ReloadableComponentConfiguration', :'cpu_model' => :'String', - :'cpu_request' => :'String', + :'cpu_request' => :'Object', :'default_runtime_class' => :'String', :'developer_configuration' => :'V1DeveloperConfiguration', :'emulated_machines' => :'Array', @@ -228,9 +233,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_kube_virt_list.rb b/lib/kubevirt/models/v1_kube_virt_list.rb index a78f4715..4b32f0dd 100644 --- a/lib/kubevirt/models/v1_kube_virt_list.rb +++ b/lib/kubevirt/models/v1_kube_virt_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_kube_virt_self_sign_configuration.rb b/lib/kubevirt/models/v1_kube_virt_self_sign_configuration.rb index 1a020c9d..c534bde4 100644 --- a/lib/kubevirt/models/v1_kube_virt_self_sign_configuration.rb +++ b/lib/kubevirt/models/v1_kube_virt_self_sign_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -39,9 +39,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -69,9 +74,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtSelfSignConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtSelfSignConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_kube_virt_spec.rb b/lib/kubevirt/models/v1_kube_virt_spec.rb index c5cfde36..59ef32b3 100644 --- a/lib/kubevirt/models/v1_kube_virt_spec.rb +++ b/lib/kubevirt/models/v1_kube_virt_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -105,9 +105,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -147,9 +152,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_kube_virt_status.rb b/lib/kubevirt/models/v1_kube_virt_status.rb index 073d6103..81562a8f 100644 --- a/lib/kubevirt/models/v1_kube_virt_status.rb +++ b/lib/kubevirt/models/v1_kube_virt_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -67,9 +67,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -107,9 +112,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_kube_virt_workload_update_strategy.rb b/lib/kubevirt/models/v1_kube_virt_workload_update_strategy.rb index 97b3555e..82e53a9e 100644 --- a/lib/kubevirt/models/v1_kube_virt_workload_update_strategy.rb +++ b/lib/kubevirt/models/v1_kube_virt_workload_update_strategy.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtWorkloadUpdateStrategy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KubeVirtWorkloadUpdateStrategy`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_kvm_timer.rb b/lib/kubevirt/models/v1_kvm_timer.rb index e87c8c2f..31b68cb7 100644 --- a/lib/kubevirt/models/v1_kvm_timer.rb +++ b/lib/kubevirt/models/v1_kvm_timer.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KVMTimer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1KVMTimer`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_launch_security.rb b/lib/kubevirt/models/v1_launch_security.rb index e4a8fae9..fb2bbc79 100644 --- a/lib/kubevirt/models/v1_launch_security.rb +++ b/lib/kubevirt/models/v1_launch_security.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -24,9 +24,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -50,9 +55,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1LaunchSecurity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1LaunchSecurity`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_live_update_configuration.rb b/lib/kubevirt/models/v1_live_update_configuration.rb index 9c92e901..6f07e318 100644 --- a/lib/kubevirt/models/v1_live_update_configuration.rb +++ b/lib/kubevirt/models/v1_live_update_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,16 +33,21 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { :'max_cpu_sockets' => :'Integer', - :'max_guest' => :'String', + :'max_guest' => :'Object', :'max_hotplug_ratio' => :'Integer' } end @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1LiveUpdateConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1LiveUpdateConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_log_verbosity.rb b/lib/kubevirt/models/v1_log_verbosity.rb index 0e5a48f9..35254ffe 100644 --- a/lib/kubevirt/models/v1_log_verbosity.rb +++ b/lib/kubevirt/models/v1_log_verbosity.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -41,9 +41,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -72,9 +77,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1LogVerbosity`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1LogVerbosity`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_lun_target.rb b/lib/kubevirt/models/v1_lun_target.rb index db35b6cb..be425776 100644 --- a/lib/kubevirt/models/v1_lun_target.rb +++ b/lib/kubevirt/models/v1_lun_target.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1LunTarget`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1LunTarget`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_machine.rb b/lib/kubevirt/models/v1_machine.rb index 0b78cec9..e602a610 100644 --- a/lib/kubevirt/models/v1_machine.rb +++ b/lib/kubevirt/models/v1_machine.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Machine`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Machine`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_mediated_devices_configuration.rb b/lib/kubevirt/models/v1_mediated_devices_configuration.rb index 99113b9c..d643e218 100644 --- a/lib/kubevirt/models/v1_mediated_devices_configuration.rb +++ b/lib/kubevirt/models/v1_mediated_devices_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -32,9 +32,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -60,9 +65,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1MediatedDevicesConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1MediatedDevicesConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_mediated_host_device.rb b/lib/kubevirt/models/v1_mediated_host_device.rb index abffb693..42ab1a09 100644 --- a/lib/kubevirt/models/v1_mediated_host_device.rb +++ b/lib/kubevirt/models/v1_mediated_host_device.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -31,9 +31,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -59,9 +64,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1MediatedHostDevice`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1MediatedHostDevice`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -108,6 +114,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] mdev_name_selector Value to be assigned + def mdev_name_selector=(mdev_name_selector) + if mdev_name_selector.nil? + fail ArgumentError, 'mdev_name_selector cannot be nil' + end + + @mdev_name_selector = mdev_name_selector + end + + # Custom attribute writer method with validation + # @param [Object] resource_name Value to be assigned + def resource_name=(resource_name) + if resource_name.nil? + fail ArgumentError, 'resource_name cannot be nil' + end + + @resource_name = resource_name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_memory.rb b/lib/kubevirt/models/v1_memory.rb index ace11b80..cd413953 100644 --- a/lib/kubevirt/models/v1_memory.rb +++ b/lib/kubevirt/models/v1_memory.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,17 +33,22 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { - :'guest' => :'String', + :'guest' => :'Object', :'hugepages' => :'V1Hugepages', - :'max_guest' => :'String' + :'max_guest' => :'Object' } end @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Memory`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Memory`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_memory_dump_volume_source.rb b/lib/kubevirt/models/v1_memory_dump_volume_source.rb index b5c26eca..51cd5b22 100644 --- a/lib/kubevirt/models/v1_memory_dump_volume_source.rb +++ b/lib/kubevirt/models/v1_memory_dump_volume_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1MemoryDumpVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1MemoryDumpVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -103,6 +109,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] claim_name Value to be assigned + def claim_name=(claim_name) + if claim_name.nil? + fail ArgumentError, 'claim_name cannot be nil' + end + + @claim_name = claim_name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_memory_status.rb b/lib/kubevirt/models/v1_memory_status.rb index 6882b48d..d7d253b7 100644 --- a/lib/kubevirt/models/v1_memory_status.rb +++ b/lib/kubevirt/models/v1_memory_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,17 +33,22 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { - :'guest_at_boot' => :'String', - :'guest_current' => :'String', - :'guest_requested' => :'String' + :'guest_at_boot' => :'Object', + :'guest_current' => :'Object', + :'guest_requested' => :'Object' } end @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1MemoryStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1MemoryStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_migrate_options.rb b/lib/kubevirt/models/v1_migrate_options.rb index f75616cb..b047a519 100644 --- a/lib/kubevirt/models/v1_migrate_options.rb +++ b/lib/kubevirt/models/v1_migrate_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -16,6 +16,9 @@ module Kubevirt # MigrateOptions may be provided on migrate request. class V1MigrateOptions + # AddedNodeSelector is an additional selector that can be used to complement a NodeSelector or NodeAffinity as set on the VM to restrict the set of allowed target nodes for a migration. In case of key collisions, values set on the VM objects are going to be preserved to ensure that addedNodeSelector can only restrict but not bypass constraints already set on the VM object. + attr_accessor :added_node_selector + # APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources attr_accessor :api_version @@ -28,20 +31,27 @@ class V1MigrateOptions # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'added_node_selector' => :'addedNodeSelector', :'api_version' => :'apiVersion', :'dry_run' => :'dryRun', :'kind' => :'kind' } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { + :'added_node_selector' => :'Hash', :'api_version' => :'String', :'dry_run' => :'Array', :'kind' => :'String' @@ -62,13 +72,20 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1MigrateOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1MigrateOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } + if attributes.key?(:'added_node_selector') + if (value = attributes[:'added_node_selector']).is_a?(Hash) + self.added_node_selector = value + end + end + if attributes.key?(:'api_version') self.api_version = attributes[:'api_version'] end @@ -104,6 +121,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + added_node_selector == o.added_node_selector && api_version == o.api_version && dry_run == o.dry_run && kind == o.kind @@ -118,7 +136,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [api_version, dry_run, kind].hash + [added_node_selector, api_version, dry_run, kind].hash end # Builds the object from hash diff --git a/lib/kubevirt/models/v1_migration_configuration.rb b/lib/kubevirt/models/v1_migration_configuration.rb index 3c50e7d8..bdb12f88 100644 --- a/lib/kubevirt/models/v1_migration_configuration.rb +++ b/lib/kubevirt/models/v1_migration_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -74,9 +74,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -85,7 +90,7 @@ def self.openapi_types :'allow_auto_converge' => :'Boolean', :'allow_post_copy' => :'Boolean', :'allow_workload_disruption' => :'Boolean', - :'bandwidth_per_migration' => :'String', + :'bandwidth_per_migration' => :'Object', :'completion_timeout_per_gi_b' => :'Integer', :'disable_tls' => :'Boolean', :'match_se_linux_level_on_migration' => :'Boolean', @@ -112,9 +117,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1MigrationConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1MigrationConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_multus_network.rb b/lib/kubevirt/models/v1_multus_network.rb index 73b68a43..bfd3cfce 100644 --- a/lib/kubevirt/models/v1_multus_network.rb +++ b/lib/kubevirt/models/v1_multus_network.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1MultusNetwork`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1MultusNetwork`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -95,6 +101,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] network_name Value to be assigned + def network_name=(network_name) + if network_name.nil? + fail ArgumentError, 'network_name cannot be nil' + end + + @network_name = network_name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_network.rb b/lib/kubevirt/models/v1_network.rb index 0aece915..cd245f6f 100644 --- a/lib/kubevirt/models/v1_network.rb +++ b/lib/kubevirt/models/v1_network.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -32,9 +32,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -60,9 +65,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Network`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Network`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -102,6 +108,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_network_configuration.rb b/lib/kubevirt/models/v1_network_configuration.rb index dd951a90..87535be1 100644 --- a/lib/kubevirt/models/v1_network_configuration.rb +++ b/lib/kubevirt/models/v1_network_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -35,9 +35,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -64,9 +69,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1NetworkConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1NetworkConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_node_mediated_device_types_config.rb b/lib/kubevirt/models/v1_node_mediated_device_types_config.rb index db3f0b0c..4bbd431d 100644 --- a/lib/kubevirt/models/v1_node_mediated_device_types_config.rb +++ b/lib/kubevirt/models/v1_node_mediated_device_types_config.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1NodeMediatedDeviceTypesConfig`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1NodeMediatedDeviceTypesConfig`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -109,6 +115,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] node_selector Value to be assigned + def node_selector=(node_selector) + if node_selector.nil? + fail ArgumentError, 'node_selector cannot be nil' + end + + @node_selector = node_selector + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_node_placement.rb b/lib/kubevirt/models/v1_node_placement.rb index c9c483f0..304438fe 100644 --- a/lib/kubevirt/models/v1_node_placement.rb +++ b/lib/kubevirt/models/v1_node_placement.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1NodePlacement`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1NodePlacement`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_numa.rb b/lib/kubevirt/models/v1_numa.rb index b62ba413..2af20a1e 100644 --- a/lib/kubevirt/models/v1_numa.rb +++ b/lib/kubevirt/models/v1_numa.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1NUMA`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1NUMA`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_pause_options.rb b/lib/kubevirt/models/v1_pause_options.rb index cff3954b..63f4d8ec 100644 --- a/lib/kubevirt/models/v1_pause_options.rb +++ b/lib/kubevirt/models/v1_pause_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PauseOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PauseOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_pci_host_device.rb b/lib/kubevirt/models/v1_pci_host_device.rb index 880ca84d..bfb0cd8a 100644 --- a/lib/kubevirt/models/v1_pci_host_device.rb +++ b/lib/kubevirt/models/v1_pci_host_device.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PciHostDevice`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PciHostDevice`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -111,6 +117,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] pci_vendor_selector Value to be assigned + def pci_vendor_selector=(pci_vendor_selector) + if pci_vendor_selector.nil? + fail ArgumentError, 'pci_vendor_selector cannot be nil' + end + + @pci_vendor_selector = pci_vendor_selector + end + + # Custom attribute writer method with validation + # @param [Object] resource_name Value to be assigned + def resource_name=(resource_name) + if resource_name.nil? + fail ArgumentError, 'resource_name cannot be nil' + end + + @resource_name = resource_name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_permitted_host_devices.rb b/lib/kubevirt/models/v1_permitted_host_devices.rb index 257d02f2..1c1d06ba 100644 --- a/lib/kubevirt/models/v1_permitted_host_devices.rb +++ b/lib/kubevirt/models/v1_permitted_host_devices.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -31,9 +31,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -59,9 +64,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PermittedHostDevices`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PermittedHostDevices`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_persistent_volume_claim_info.rb b/lib/kubevirt/models/v1_persistent_volume_claim_info.rb index 54a91b1f..5436b843 100644 --- a/lib/kubevirt/models/v1_persistent_volume_claim_info.rb +++ b/lib/kubevirt/models/v1_persistent_volume_claim_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -72,20 +72,25 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { :'access_modes' => :'Array', - :'capacity' => :'Hash', + :'capacity' => :'Hash', :'claim_name' => :'String', :'filesystem_overhead' => :'String', :'preallocated' => :'Boolean', - :'requests' => :'Hash', + :'requests' => :'Hash', :'volume_mode' => :'String' } end @@ -104,9 +109,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PersistentVolumeClaimInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PersistentVolumeClaimInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_persistent_volume_claim_volume_source.rb b/lib/kubevirt/models/v1_persistent_volume_claim_volume_source.rb index 70a12df8..4a9bc369 100644 --- a/lib/kubevirt/models/v1_persistent_volume_claim_volume_source.rb +++ b/lib/kubevirt/models/v1_persistent_volume_claim_volume_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PersistentVolumeClaimVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PersistentVolumeClaimVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -104,6 +110,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] claim_name Value to be assigned + def claim_name=(claim_name) + if claim_name.nil? + fail ArgumentError, 'claim_name cannot be nil' + end + + @claim_name = claim_name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_pit_timer.rb b/lib/kubevirt/models/v1_pit_timer.rb index 6960c132..19773147 100644 --- a/lib/kubevirt/models/v1_pit_timer.rb +++ b/lib/kubevirt/models/v1_pit_timer.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PITTimer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PITTimer`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_plugin_binding.rb b/lib/kubevirt/models/v1_plugin_binding.rb index 86cb0f93..981a1748 100644 --- a/lib/kubevirt/models/v1_plugin_binding.rb +++ b/lib/kubevirt/models/v1_plugin_binding.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PluginBinding`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PluginBinding`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -86,6 +92,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_pod_network.rb b/lib/kubevirt/models/v1_pod_network.rb index bf29bcb8..2279eca0 100644 --- a/lib/kubevirt/models/v1_pod_network.rb +++ b/lib/kubevirt/models/v1_pod_network.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PodNetwork`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PodNetwork`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_port.rb b/lib/kubevirt/models/v1_port.rb index e9a836d7..151e0ee9 100644 --- a/lib/kubevirt/models/v1_port.rb +++ b/lib/kubevirt/models/v1_port.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Port`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Port`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -104,6 +110,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] port Value to be assigned + def port=(port) + if port.nil? + fail ArgumentError, 'port cannot be nil' + end + + @port = port + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_preference_matcher.rb b/lib/kubevirt/models/v1_preference_matcher.rb index ffceb421..a07a96ac 100644 --- a/lib/kubevirt/models/v1_preference_matcher.rb +++ b/lib/kubevirt/models/v1_preference_matcher.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -42,9 +42,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -72,9 +77,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PreferenceMatcher`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1PreferenceMatcher`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_probe.rb b/lib/kubevirt/models/v1_probe.rb index e53ab662..6f21e144 100644 --- a/lib/kubevirt/models/v1_probe.rb +++ b/lib/kubevirt/models/v1_probe.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -55,9 +55,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -89,9 +94,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Probe`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Probe`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.rb b/lib/kubevirt/models/v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.rb index e80aa3d4..99f1ef75 100644 --- a/lib/kubevirt/models/v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.rb +++ b/lib/kubevirt/models/v1_qemu_guest_agent_ssh_public_key_access_credential_propagation.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1QemuGuestAgentSSHPublicKeyAccessCredentialPropagation`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -87,6 +93,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] users Value to be assigned + def users=(users) + if users.nil? + fail ArgumentError, 'users cannot be nil' + end + + @users = users + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_rate_limiter.rb b/lib/kubevirt/models/v1_rate_limiter.rb index 80a6929c..89e83de2 100644 --- a/lib/kubevirt/models/v1_rate_limiter.rb +++ b/lib/kubevirt/models/v1_rate_limiter.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -24,9 +24,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -50,9 +55,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1RateLimiter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1RateLimiter`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_realtime.rb b/lib/kubevirt/models/v1_realtime.rb index 337e86f5..09b1d0bd 100644 --- a/lib/kubevirt/models/v1_realtime.rb +++ b/lib/kubevirt/models/v1_realtime.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Realtime`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Realtime`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_reloadable_component_configuration.rb b/lib/kubevirt/models/v1_reloadable_component_configuration.rb index 77226f0b..6a5539aa 100644 --- a/lib/kubevirt/models/v1_reloadable_component_configuration.rb +++ b/lib/kubevirt/models/v1_reloadable_component_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ReloadableComponentConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ReloadableComponentConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_remove_volume_options.rb b/lib/kubevirt/models/v1_remove_volume_options.rb index 438303f8..0842812a 100644 --- a/lib/kubevirt/models/v1_remove_volume_options.rb +++ b/lib/kubevirt/models/v1_remove_volume_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1RemoveVolumeOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1RemoveVolumeOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -97,6 +103,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_resource_requirements.rb b/lib/kubevirt/models/v1_resource_requirements.rb index 61e1f3f9..4db2be1b 100644 --- a/lib/kubevirt/models/v1_resource_requirements.rb +++ b/lib/kubevirt/models/v1_resource_requirements.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,17 +33,22 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { - :'limits' => :'Object', + :'limits' => :'Hash', :'overcommit_guest_overhead' => :'Boolean', - :'requests' => :'Object' + :'requests' => :'Hash' } end @@ -61,15 +66,18 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ResourceRequirements`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ResourceRequirements`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } if attributes.key?(:'limits') - self.limits = attributes[:'limits'] + if (value = attributes[:'limits']).is_a?(Hash) + self.limits = value + end end if attributes.key?(:'overcommit_guest_overhead') @@ -77,7 +85,9 @@ def initialize(attributes = {}) end if attributes.key?(:'requests') - self.requests = attributes[:'requests'] + if (value = attributes[:'requests']).is_a?(Hash) + self.requests = value + end end end diff --git a/lib/kubevirt/models/v1_resource_requirements_without_claims.rb b/lib/kubevirt/models/v1_resource_requirements_without_claims.rb index 22667778..83740205 100644 --- a/lib/kubevirt/models/v1_resource_requirements_without_claims.rb +++ b/lib/kubevirt/models/v1_resource_requirements_without_claims.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,16 +30,21 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { - :'limits' => :'Hash', - :'requests' => :'Hash' + :'limits' => :'Hash', + :'requests' => :'Hash' } end @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ResourceRequirementsWithoutClaims`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ResourceRequirementsWithoutClaims`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_rest_client_configuration.rb b/lib/kubevirt/models/v1_rest_client_configuration.rb index e48e3ecb..16eab497 100644 --- a/lib/kubevirt/models/v1_rest_client_configuration.rb +++ b/lib/kubevirt/models/v1_rest_client_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1RESTClientConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1RESTClientConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_restart_options.rb b/lib/kubevirt/models/v1_restart_options.rb index baf98713..4b3f80a0 100644 --- a/lib/kubevirt/models/v1_restart_options.rb +++ b/lib/kubevirt/models/v1_restart_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -38,9 +38,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -67,9 +72,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1RestartOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1RestartOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_rtc_timer.rb b/lib/kubevirt/models/v1_rtc_timer.rb index a85cc765..ac93730b 100644 --- a/lib/kubevirt/models/v1_rtc_timer.rb +++ b/lib/kubevirt/models/v1_rtc_timer.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1RTCTimer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1RTCTimer`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_seccomp_configuration.rb b/lib/kubevirt/models/v1_seccomp_configuration.rb index c84dcd9a..45e4902f 100644 --- a/lib/kubevirt/models/v1_seccomp_configuration.rb +++ b/lib/kubevirt/models/v1_seccomp_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SeccompConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SeccompConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_secret_volume_source.rb b/lib/kubevirt/models/v1_secret_volume_source.rb index e785c84d..07a76060 100644 --- a/lib/kubevirt/models/v1_secret_volume_source.rb +++ b/lib/kubevirt/models/v1_secret_volume_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SecretVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SecretVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_service_account_volume_source.rb b/lib/kubevirt/models/v1_service_account_volume_source.rb index ebe875a6..b491523e 100644 --- a/lib/kubevirt/models/v1_service_account_volume_source.rb +++ b/lib/kubevirt/models/v1_service_account_volume_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ServiceAccountVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1ServiceAccountVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_sev.rb b/lib/kubevirt/models/v1_sev.rb index 1f1f178a..ffa4fa96 100644 --- a/lib/kubevirt/models/v1_sev.rb +++ b/lib/kubevirt/models/v1_sev.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -35,9 +35,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -64,9 +69,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SEV`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SEV`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_sev_measurement_info.rb b/lib/kubevirt/models/v1_sev_measurement_info.rb index 73b0dc55..69d1d59c 100644 --- a/lib/kubevirt/models/v1_sev_measurement_info.rb +++ b/lib/kubevirt/models/v1_sev_measurement_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -54,9 +54,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -87,9 +92,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SEVMeasurementInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SEVMeasurementInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_sev_platform_info.rb b/lib/kubevirt/models/v1_sev_platform_info.rb index 424a96fa..485e0309 100644 --- a/lib/kubevirt/models/v1_sev_platform_info.rb +++ b/lib/kubevirt/models/v1_sev_platform_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -38,9 +38,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -67,9 +72,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SEVPlatformInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SEVPlatformInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_sev_policy.rb b/lib/kubevirt/models/v1_sev_policy.rb index 22677524..4cdecce7 100644 --- a/lib/kubevirt/models/v1_sev_policy.rb +++ b/lib/kubevirt/models/v1_sev_policy.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SEVPolicy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SEVPolicy`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_sev_secret_options.rb b/lib/kubevirt/models/v1_sev_secret_options.rb index 2baf75c0..3b5bd04f 100644 --- a/lib/kubevirt/models/v1_sev_secret_options.rb +++ b/lib/kubevirt/models/v1_sev_secret_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SEVSecretOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SEVSecretOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_sev_session_options.rb b/lib/kubevirt/models/v1_sev_session_options.rb index c5973e8f..a850010b 100644 --- a/lib/kubevirt/models/v1_sev_session_options.rb +++ b/lib/kubevirt/models/v1_sev_session_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SEVSessionOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SEVSessionOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_sm_bios_configuration.rb b/lib/kubevirt/models/v1_sm_bios_configuration.rb index bfc973c7..fdd54b1c 100644 --- a/lib/kubevirt/models/v1_sm_bios_configuration.rb +++ b/lib/kubevirt/models/v1_sm_bios_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -66,9 +71,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SMBiosConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SMBiosConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_sound_device.rb b/lib/kubevirt/models/v1_sound_device.rb index 34c1480d..d8751c5e 100644 --- a/lib/kubevirt/models/v1_sound_device.rb +++ b/lib/kubevirt/models/v1_sound_device.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SoundDevice`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SoundDevice`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -95,6 +101,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_ssh_public_key_access_credential.rb b/lib/kubevirt/models/v1_ssh_public_key_access_credential.rb index 79ab9be2..43bf6eb9 100644 --- a/lib/kubevirt/models/v1_ssh_public_key_access_credential.rb +++ b/lib/kubevirt/models/v1_ssh_public_key_access_credential.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SSHPublicKeyAccessCredential`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SSHPublicKeyAccessCredential`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -100,6 +106,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] propagation_method Value to be assigned + def propagation_method=(propagation_method) + if propagation_method.nil? + fail ArgumentError, 'propagation_method cannot be nil' + end + + @propagation_method = propagation_method + end + + # Custom attribute writer method with validation + # @param [Object] source Value to be assigned + def source=(source) + if source.nil? + fail ArgumentError, 'source cannot be nil' + end + + @source = source + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_ssh_public_key_access_credential_propagation_method.rb b/lib/kubevirt/models/v1_ssh_public_key_access_credential_propagation_method.rb index d760cbf1..de85667c 100644 --- a/lib/kubevirt/models/v1_ssh_public_key_access_credential_propagation_method.rb +++ b/lib/kubevirt/models/v1_ssh_public_key_access_credential_propagation_method.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -31,9 +31,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -59,9 +64,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SSHPublicKeyAccessCredentialPropagationMethod`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SSHPublicKeyAccessCredentialPropagationMethod`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_ssh_public_key_access_credential_source.rb b/lib/kubevirt/models/v1_ssh_public_key_access_credential_source.rb index cabc8c91..bf65ac11 100644 --- a/lib/kubevirt/models/v1_ssh_public_key_access_credential_source.rb +++ b/lib/kubevirt/models/v1_ssh_public_key_access_credential_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SSHPublicKeyAccessCredentialSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SSHPublicKeyAccessCredentialSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_start_options.rb b/lib/kubevirt/models/v1_start_options.rb index 8f069562..324a8f1b 100644 --- a/lib/kubevirt/models/v1_start_options.rb +++ b/lib/kubevirt/models/v1_start_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -38,9 +38,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -67,9 +72,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1StartOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1StartOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_stop_options.rb b/lib/kubevirt/models/v1_stop_options.rb index 622b4013..d0340bac 100644 --- a/lib/kubevirt/models/v1_stop_options.rb +++ b/lib/kubevirt/models/v1_stop_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -38,9 +38,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -67,9 +72,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1StopOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1StopOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_storage_migrated_volume_info.rb b/lib/kubevirt/models/v1_storage_migrated_volume_info.rb index 8acd8d34..6d560a6b 100644 --- a/lib/kubevirt/models/v1_storage_migrated_volume_info.rb +++ b/lib/kubevirt/models/v1_storage_migrated_volume_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -32,9 +32,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -60,9 +65,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1StorageMigratedVolumeInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1StorageMigratedVolumeInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -102,6 +108,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] volume_name Value to be assigned + def volume_name=(volume_name) + if volume_name.nil? + fail ArgumentError, 'volume_name cannot be nil' + end + + @volume_name = volume_name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_support_container_resources.rb b/lib/kubevirt/models/v1_support_container_resources.rb index 941eca37..ed805b61 100644 --- a/lib/kubevirt/models/v1_support_container_resources.rb +++ b/lib/kubevirt/models/v1_support_container_resources.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SupportContainerResources`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SupportContainerResources`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -100,6 +106,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] resources Value to be assigned + def resources=(resources) + if resources.nil? + fail ArgumentError, 'resources cannot be nil' + end + + @resources = resources + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_sy_nic_timer.rb b/lib/kubevirt/models/v1_sy_nic_timer.rb index 87d46666..bb56ab6e 100644 --- a/lib/kubevirt/models/v1_sy_nic_timer.rb +++ b/lib/kubevirt/models/v1_sy_nic_timer.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,9 +27,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -54,9 +59,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SyNICTimer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SyNICTimer`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_sysprep_source.rb b/lib/kubevirt/models/v1_sysprep_source.rb index 442045dd..a0d37e98 100644 --- a/lib/kubevirt/models/v1_sysprep_source.rb +++ b/lib/kubevirt/models/v1_sysprep_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SysprepSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1SysprepSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_timer.rb b/lib/kubevirt/models/v1_timer.rb index b1725e2b..1100bc40 100644 --- a/lib/kubevirt/models/v1_timer.rb +++ b/lib/kubevirt/models/v1_timer.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -37,9 +37,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -67,9 +72,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Timer`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Timer`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_tls_configuration.rb b/lib/kubevirt/models/v1_tls_configuration.rb index 4096013d..dea347d7 100644 --- a/lib/kubevirt/models/v1_tls_configuration.rb +++ b/lib/kubevirt/models/v1_tls_configuration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1TLSConfiguration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1TLSConfiguration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_token_bucket_rate_limiter.rb b/lib/kubevirt/models/v1_token_bucket_rate_limiter.rb index bc443c73..53a7980a 100644 --- a/lib/kubevirt/models/v1_token_bucket_rate_limiter.rb +++ b/lib/kubevirt/models/v1_token_bucket_rate_limiter.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1TokenBucketRateLimiter`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1TokenBucketRateLimiter`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -101,6 +107,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] burst Value to be assigned + def burst=(burst) + if burst.nil? + fail ArgumentError, 'burst cannot be nil' + end + + @burst = burst + end + + # Custom attribute writer method with validation + # @param [Object] qps Value to be assigned + def qps=(qps) + if qps.nil? + fail ArgumentError, 'qps cannot be nil' + end + + @qps = qps + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_topology_hints.rb b/lib/kubevirt/models/v1_topology_hints.rb index b91130d7..6b9e328d 100644 --- a/lib/kubevirt/models/v1_topology_hints.rb +++ b/lib/kubevirt/models/v1_topology_hints.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -24,9 +24,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -50,9 +55,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1TopologyHints`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1TopologyHints`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_tpm_device.rb b/lib/kubevirt/models/v1_tpm_device.rb index f1b07650..65de440a 100644 --- a/lib/kubevirt/models/v1_tpm_device.rb +++ b/lib/kubevirt/models/v1_tpm_device.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1TPMDevice`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1TPMDevice`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_unpause_options.rb b/lib/kubevirt/models/v1_unpause_options.rb index c11981a8..4a9cf1bd 100644 --- a/lib/kubevirt/models/v1_unpause_options.rb +++ b/lib/kubevirt/models/v1_unpause_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1UnpauseOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1UnpauseOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_usb_host_device.rb b/lib/kubevirt/models/v1_usb_host_device.rb index 369edd7b..dfd30ae6 100644 --- a/lib/kubevirt/models/v1_usb_host_device.rb +++ b/lib/kubevirt/models/v1_usb_host_device.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -32,9 +32,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -60,9 +65,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1USBHostDevice`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1USBHostDevice`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -104,6 +110,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] resource_name Value to be assigned + def resource_name=(resource_name) + if resource_name.nil? + fail ArgumentError, 'resource_name cannot be nil' + end + + @resource_name = resource_name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_usb_selector.rb b/lib/kubevirt/models/v1_usb_selector.rb index aec30f1f..ad084523 100644 --- a/lib/kubevirt/models/v1_usb_selector.rb +++ b/lib/kubevirt/models/v1_usb_selector.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,9 +27,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -54,9 +59,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1USBSelector`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1USBSelector`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -99,6 +105,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] product Value to be assigned + def product=(product) + if product.nil? + fail ArgumentError, 'product cannot be nil' + end + + @product = product + end + + # Custom attribute writer method with validation + # @param [Object] vendor Value to be assigned + def vendor=(vendor) + if vendor.nil? + fail ArgumentError, 'vendor cannot be nil' + end + + @vendor = vendor + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_user_password_access_credential.rb b/lib/kubevirt/models/v1_user_password_access_credential.rb index 4312a792..0a8e56d4 100644 --- a/lib/kubevirt/models/v1_user_password_access_credential.rb +++ b/lib/kubevirt/models/v1_user_password_access_credential.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1UserPasswordAccessCredential`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1UserPasswordAccessCredential`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -100,6 +106,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] propagation_method Value to be assigned + def propagation_method=(propagation_method) + if propagation_method.nil? + fail ArgumentError, 'propagation_method cannot be nil' + end + + @propagation_method = propagation_method + end + + # Custom attribute writer method with validation + # @param [Object] source Value to be assigned + def source=(source) + if source.nil? + fail ArgumentError, 'source cannot be nil' + end + + @source = source + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_user_password_access_credential_propagation_method.rb b/lib/kubevirt/models/v1_user_password_access_credential_propagation_method.rb index f17216ee..a85d306f 100644 --- a/lib/kubevirt/models/v1_user_password_access_credential_propagation_method.rb +++ b/lib/kubevirt/models/v1_user_password_access_credential_propagation_method.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1UserPasswordAccessCredentialPropagationMethod`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1UserPasswordAccessCredentialPropagationMethod`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_user_password_access_credential_source.rb b/lib/kubevirt/models/v1_user_password_access_credential_source.rb index bb238b00..127645cb 100644 --- a/lib/kubevirt/models/v1_user_password_access_credential_source.rb +++ b/lib/kubevirt/models/v1_user_password_access_credential_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1UserPasswordAccessCredentialSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1UserPasswordAccessCredentialSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_vgpu_display_options.rb b/lib/kubevirt/models/v1_vgpu_display_options.rb index 8df4a51d..041e9b00 100644 --- a/lib/kubevirt/models/v1_vgpu_display_options.rb +++ b/lib/kubevirt/models/v1_vgpu_display_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VGPUDisplayOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VGPUDisplayOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_vgpu_options.rb b/lib/kubevirt/models/v1_vgpu_options.rb index ec1ece31..546c13ff 100644 --- a/lib/kubevirt/models/v1_vgpu_options.rb +++ b/lib/kubevirt/models/v1_vgpu_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -24,9 +24,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -50,9 +55,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VGPUOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VGPUOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_virtual_machine.rb b/lib/kubevirt/models/v1_virtual_machine.rb index 4d2726a2..7a5b1f68 100644 --- a/lib/kubevirt/models/v1_virtual_machine.rb +++ b/lib/kubevirt/models/v1_virtual_machine.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -39,9 +39,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -69,9 +74,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachine`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachine`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -119,6 +125,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_condition.rb b/lib/kubevirt/models/v1_virtual_machine_condition.rb index 5611fdd1..e5be2108 100644 --- a/lib/kubevirt/models/v1_virtual_machine_condition.rb +++ b/lib/kubevirt/models/v1_virtual_machine_condition.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -63,9 +68,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineCondition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineCondition`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -116,6 +122,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] status Value to be assigned + def status=(status) + if status.nil? + fail ArgumentError, 'status cannot be nil' + end + + @status = status + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance.rb b/lib/kubevirt/models/v1_virtual_machine_instance.rb index 21fed434..9fd70bfb 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -39,9 +39,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -69,9 +74,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstance`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstance`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -119,6 +125,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_condition.rb b/lib/kubevirt/models/v1_virtual_machine_instance_condition.rb index 7f296062..b527df9f 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_condition.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_condition.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceCondition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceCondition`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -115,6 +121,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] status Value to be assigned + def status=(status) + if status.nil? + fail ArgumentError, 'status cannot be nil' + end + + @status = status + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_file_system.rb b/lib/kubevirt/models/v1_virtual_machine_instance_file_system.rb index e20f7052..8d6a36f0 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_file_system.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_file_system.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -40,9 +40,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -71,9 +76,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceFileSystem`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceFileSystem`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -155,6 +161,56 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] disk_name Value to be assigned + def disk_name=(disk_name) + if disk_name.nil? + fail ArgumentError, 'disk_name cannot be nil' + end + + @disk_name = disk_name + end + + # Custom attribute writer method with validation + # @param [Object] file_system_type Value to be assigned + def file_system_type=(file_system_type) + if file_system_type.nil? + fail ArgumentError, 'file_system_type cannot be nil' + end + + @file_system_type = file_system_type + end + + # Custom attribute writer method with validation + # @param [Object] mount_point Value to be assigned + def mount_point=(mount_point) + if mount_point.nil? + fail ArgumentError, 'mount_point cannot be nil' + end + + @mount_point = mount_point + end + + # Custom attribute writer method with validation + # @param [Object] total_bytes Value to be assigned + def total_bytes=(total_bytes) + if total_bytes.nil? + fail ArgumentError, 'total_bytes cannot be nil' + end + + @total_bytes = total_bytes + end + + # Custom attribute writer method with validation + # @param [Object] used_bytes Value to be assigned + def used_bytes=(used_bytes) + if used_bytes.nil? + fail ArgumentError, 'used_bytes cannot be nil' + end + + @used_bytes = used_bytes + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_file_system_disk.rb b/lib/kubevirt/models/v1_virtual_machine_instance_file_system_disk.rb index 6f20569b..4231381a 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_file_system_disk.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_file_system_disk.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceFileSystemDisk`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceFileSystemDisk`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -93,6 +99,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] bus_type Value to be assigned + def bus_type=(bus_type) + if bus_type.nil? + fail ArgumentError, 'bus_type cannot be nil' + end + + @bus_type = bus_type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_file_system_info.rb b/lib/kubevirt/models/v1_virtual_machine_instance_file_system_info.rb index cdc6d23b..4208aebe 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_file_system_info.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_file_system_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceFileSystemInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceFileSystemInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -87,6 +93,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] disks Value to be assigned + def disks=(disks) + if disks.nil? + fail ArgumentError, 'disks cannot be nil' + end + + @disks = disks + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_file_system_list.rb b/lib/kubevirt/models/v1_virtual_machine_instance_file_system_list.rb index b449e064..c98d5eb4 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_file_system_list.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_file_system_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceFileSystemList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceFileSystemList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.rb b/lib/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.rb index c7574762..9ad6d056 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_guest_agent_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -60,9 +60,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -95,9 +100,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceGuestAgentInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceGuestAgentInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_guest_os_info.rb b/lib/kubevirt/models/v1_virtual_machine_instance_guest_os_info.rb index c793411b..8f0ea9f8 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_guest_os_info.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_guest_os_info.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -53,9 +53,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -86,9 +91,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceGuestOSInfo`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceGuestOSInfo`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_guest_os_user.rb b/lib/kubevirt/models/v1_virtual_machine_instance_guest_os_user.rb index 9a8987d0..e77c3d3a 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_guest_os_user.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_guest_os_user.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -31,9 +31,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -59,9 +64,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceGuestOSUser`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceGuestOSUser`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -101,6 +107,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] user_name Value to be assigned + def user_name=(user_name) + if user_name.nil? + fail ArgumentError, 'user_name cannot be nil' + end + + @user_name = user_name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_guest_os_user_list.rb b/lib/kubevirt/models/v1_virtual_machine_instance_guest_os_user_list.rb index 6b95a834..b6dded17 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_guest_os_user_list.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_guest_os_user_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceGuestOSUserList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceGuestOSUserList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_list.rb b/lib/kubevirt/models/v1_virtual_machine_instance_list.rb index 3cbbc705..37dc3c5c 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_list.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_migration.rb b/lib/kubevirt/models/v1_virtual_machine_instance_migration.rb index 37f22728..39f75bfb 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_migration.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_migration.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -39,9 +39,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -69,9 +74,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceMigration`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceMigration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -119,6 +125,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_migration_condition.rb b/lib/kubevirt/models/v1_virtual_machine_instance_migration_condition.rb index e0684ef7..0b18cbb6 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_migration_condition.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_migration_condition.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceMigrationCondition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceMigrationCondition`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -115,6 +121,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] status Value to be assigned + def status=(status) + if status.nil? + fail ArgumentError, 'status cannot be nil' + end + + @status = status + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_migration_list.rb b/lib/kubevirt/models/v1_virtual_machine_instance_migration_list.rb index c136408b..1c821bcd 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_migration_list.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_migration_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceMigrationList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceMigrationList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_migration_phase_transition_timestamp.rb b/lib/kubevirt/models/v1_virtual_machine_instance_migration_phase_transition_timestamp.rb index 5efa79fd..d1e7734e 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_migration_phase_transition_timestamp.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_migration_phase_transition_timestamp.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceMigrationPhaseTransitionTimestamp`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_migration_spec.rb b/lib/kubevirt/models/v1_virtual_machine_instance_migration_spec.rb index dd863aa4..592f8fec 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_migration_spec.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_migration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -15,24 +15,34 @@ module Kubevirt class V1VirtualMachineInstanceMigrationSpec + # AddedNodeSelector is an additional selector that can be used to complement a NodeSelector or NodeAffinity as set on the VM to restrict the set of allowed target nodes for a migration. In case of key collisions, values set on the VM objects are going to be preserved to ensure that addedNodeSelector can only restrict but not bypass constraints already set on the VM object. + attr_accessor :added_node_selector + # The name of the VMI to perform the migration on. VMI must exist in the migration objects namespace attr_accessor :vmi_name # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'added_node_selector' => :'addedNodeSelector', :'vmi_name' => :'vmiName' } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { + :'added_node_selector' => :'Hash', :'vmi_name' => :'String' } end @@ -51,13 +61,20 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceMigrationSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceMigrationSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } + if attributes.key?(:'added_node_selector') + if (value = attributes[:'added_node_selector']).is_a?(Hash) + self.added_node_selector = value + end + end + if attributes.key?(:'vmi_name') self.vmi_name = attributes[:'vmi_name'] end @@ -83,6 +100,7 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && + added_node_selector == o.added_node_selector && vmi_name == o.vmi_name end @@ -95,7 +113,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [vmi_name].hash + [added_node_selector, vmi_name].hash end # Builds the object from hash diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_migration_state.rb b/lib/kubevirt/models/v1_virtual_machine_instance_migration_state.rb index f996a0e5..f9574fab 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_migration_state.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_migration_state.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -115,9 +115,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -164,9 +169,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceMigrationState`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceMigrationState`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_migration_status.rb b/lib/kubevirt/models/v1_virtual_machine_instance_migration_status.rb index 89303933..ff3cdd04 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_migration_status.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_migration_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -35,9 +35,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -64,9 +69,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceMigrationStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceMigrationStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_network_interface.rb b/lib/kubevirt/models/v1_virtual_machine_instance_network_interface.rb index d0602b11..d88bd309 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_network_interface.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_network_interface.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,6 +27,9 @@ class V1VirtualMachineInstanceNetworkInterface # List of all IP addresses of a Virtual Machine interface attr_accessor :ip_addresses + # LinkState Reports the current operational link state`. values: up, down. + attr_accessor :link_state + # Hardware address of a Virtual Machine interface attr_accessor :mac @@ -46,6 +49,7 @@ def self.attribute_map :'interface_name' => :'interfaceName', :'ip_address' => :'ipAddress', :'ip_addresses' => :'ipAddresses', + :'link_state' => :'linkState', :'mac' => :'mac', :'name' => :'name', :'pod_interface_name' => :'podInterfaceName', @@ -53,9 +57,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,6 +74,7 @@ def self.openapi_types :'interface_name' => :'String', :'ip_address' => :'String', :'ip_addresses' => :'Array', + :'link_state' => :'String', :'mac' => :'String', :'name' => :'String', :'pod_interface_name' => :'String', @@ -86,9 +96,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceNetworkInterface`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceNetworkInterface`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -111,6 +122,10 @@ def initialize(attributes = {}) end end + if attributes.key?(:'link_state') + self.link_state = attributes[:'link_state'] + end + if attributes.key?(:'mac') self.mac = attributes[:'mac'] end @@ -152,6 +167,7 @@ def ==(o) interface_name == o.interface_name && ip_address == o.ip_address && ip_addresses == o.ip_addresses && + link_state == o.link_state && mac == o.mac && name == o.name && pod_interface_name == o.pod_interface_name && @@ -167,7 +183,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [info_source, interface_name, ip_address, ip_addresses, mac, name, pod_interface_name, queue_count].hash + [info_source, interface_name, ip_address, ip_addresses, link_state, mac, name, pod_interface_name, queue_count].hash end # Builds the object from hash diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_phase_transition_timestamp.rb b/lib/kubevirt/models/v1_virtual_machine_instance_phase_transition_timestamp.rb index ceedec6b..162c4f99 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_phase_transition_timestamp.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_phase_transition_timestamp.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstancePhaseTransitionTimestamp`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstancePhaseTransitionTimestamp`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_preset.rb b/lib/kubevirt/models/v1_virtual_machine_instance_preset.rb index 7f8b85fe..1db1d15c 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_preset.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_preset.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstancePreset`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstancePreset`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_preset_list.rb b/lib/kubevirt/models/v1_virtual_machine_instance_preset_list.rb index 0e9097aa..19f0414e 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_preset_list.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_preset_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstancePresetList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstancePresetList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_preset_spec.rb b/lib/kubevirt/models/v1_virtual_machine_instance_preset_spec.rb index 1d2190ca..e197da06 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_preset_spec.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_preset_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,9 +27,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -54,9 +59,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstancePresetSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstancePresetSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -92,6 +98,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] selector Value to be assigned + def selector=(selector) + if selector.nil? + fail ArgumentError, 'selector cannot be nil' + end + + @selector = selector + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_profile.rb b/lib/kubevirt/models/v1_virtual_machine_instance_profile.rb index db84a2ff..0de7dbb1 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_profile.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_profile.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -24,9 +24,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -50,9 +55,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceProfile`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceProfile`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_replica_set.rb b/lib/kubevirt/models/v1_virtual_machine_instance_replica_set.rb index 86d33fd8..de358280 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_replica_set.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_replica_set.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -39,9 +39,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -69,9 +74,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceReplicaSet`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceReplicaSet`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -119,6 +125,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.rb b/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.rb index 168fcef0..b552524a 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_condition.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceReplicaSetCondition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceReplicaSetCondition`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -115,6 +121,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] status Value to be assigned + def status=(status) + if status.nil? + fail ArgumentError, 'status cannot be nil' + end + + @status = status + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_list.rb b/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_list.rb index eb1a4dd1..2f3ec116 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_list.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceReplicaSetList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceReplicaSetList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.rb b/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.rb index 845fda54..e3354d17 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -35,9 +35,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -64,9 +69,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceReplicaSetSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceReplicaSetSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -117,6 +123,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] selector Value to be assigned + def selector=(selector) + if selector.nil? + fail ArgumentError, 'selector cannot be nil' + end + + @selector = selector + end + + # Custom attribute writer method with validation + # @param [Object] template Value to be assigned + def template=(template) + if template.nil? + fail ArgumentError, 'template cannot be nil' + end + + @template = template + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_status.rb b/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_status.rb index d5f73dd8..c51983cf 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_status.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_replica_set_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceReplicaSetStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceReplicaSetStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_spec.rb b/lib/kubevirt/models/v1_virtual_machine_instance_spec.rb index 3a18ee5b..ee4569aa 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_spec.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -119,9 +119,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -164,9 +169,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -298,6 +304,16 @@ def dns_policy=(dns_policy) @dns_policy = dns_policy end + # Custom attribute writer method with validation + # @param [Object] domain Value to be assigned + def domain=(domain) + if domain.nil? + fail ArgumentError, 'domain cannot be nil' + end + + @domain = domain + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_status.rb b/lib/kubevirt/models/v1_virtual_machine_instance_status.rb index b1c066ac..e8a28951 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_status.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -141,9 +141,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -192,9 +197,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_virtual_machine_instance_template_spec.rb b/lib/kubevirt/models/v1_virtual_machine_instance_template_spec.rb index ebf003f9..1c4f1bf1 100644 --- a/lib/kubevirt/models/v1_virtual_machine_instance_template_spec.rb +++ b/lib/kubevirt/models/v1_virtual_machine_instance_template_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,9 +27,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -54,9 +59,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceTemplateSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineInstanceTemplateSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_virtual_machine_list.rb b/lib/kubevirt/models/v1_virtual_machine_list.rb index a26391ab..5e0ecc12 100644 --- a/lib/kubevirt/models/v1_virtual_machine_list.rb +++ b/lib/kubevirt/models/v1_virtual_machine_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_memory_dump_request.rb b/lib/kubevirt/models/v1_virtual_machine_memory_dump_request.rb index 135987bf..832e1835 100644 --- a/lib/kubevirt/models/v1_virtual_machine_memory_dump_request.rb +++ b/lib/kubevirt/models/v1_virtual_machine_memory_dump_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -50,9 +50,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -82,9 +87,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineMemoryDumpRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineMemoryDumpRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -147,6 +153,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] claim_name Value to be assigned + def claim_name=(claim_name) + if claim_name.nil? + fail ArgumentError, 'claim_name cannot be nil' + end + + @claim_name = claim_name + end + + # Custom attribute writer method with validation + # @param [Object] phase Value to be assigned + def phase=(phase) + if phase.nil? + fail ArgumentError, 'phase cannot be nil' + end + + @phase = phase + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_options.rb b/lib/kubevirt/models/v1_virtual_machine_options.rb index 877a43d7..89ff09b9 100644 --- a/lib/kubevirt/models/v1_virtual_machine_options.rb +++ b/lib/kubevirt/models/v1_virtual_machine_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_virtual_machine_spec.rb b/lib/kubevirt/models/v1_virtual_machine_spec.rb index 9f736348..abf7501f 100644 --- a/lib/kubevirt/models/v1_virtual_machine_spec.rb +++ b/lib/kubevirt/models/v1_virtual_machine_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -47,9 +47,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -79,9 +84,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -139,6 +145,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] template Value to be assigned + def template=(template) + if template.nil? + fail ArgumentError, 'template cannot be nil' + end + + @template = template + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_start_failure.rb b/lib/kubevirt/models/v1_virtual_machine_start_failure.rb index 0376453f..c500faac 100644 --- a/lib/kubevirt/models/v1_virtual_machine_start_failure.rb +++ b/lib/kubevirt/models/v1_virtual_machine_start_failure.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -32,9 +32,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -60,9 +65,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineStartFailure`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineStartFailure`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_virtual_machine_state_change_request.rb b/lib/kubevirt/models/v1_virtual_machine_state_change_request.rb index a11cabaf..041f8061 100644 --- a/lib/kubevirt/models/v1_virtual_machine_state_change_request.rb +++ b/lib/kubevirt/models/v1_virtual_machine_state_change_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineStateChangeRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineStateChangeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -105,6 +111,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] action Value to be assigned + def action=(action) + if action.nil? + fail ArgumentError, 'action cannot be nil' + end + + @action = action + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_virtual_machine_status.rb b/lib/kubevirt/models/v1_virtual_machine_status.rb index 6ba76803..90d2ce67 100644 --- a/lib/kubevirt/models/v1_virtual_machine_status.rb +++ b/lib/kubevirt/models/v1_virtual_machine_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,11 +25,15 @@ class V1VirtualMachineStatus # DesiredGeneration is the generation which is desired for the VMI. This will be used in comparisons with ObservedGeneration to understand when the VMI is out of sync. This will be changed at the same time as ObservedGeneration to remove errors which could occur if Generation is updated through an Update() before ObservedGeneration in Status. attr_accessor :desired_generation + attr_accessor :instancetype_ref + attr_accessor :memory_dump_request # ObservedGeneration is the generation observed by the vmi when started. attr_accessor :observed_generation + attr_accessor :preference_ref + # PrintableStatus is a human readable, high-level representation of the status of the virtual machine attr_accessor :printable_status @@ -64,8 +68,10 @@ def self.attribute_map :'conditions' => :'conditions', :'created' => :'created', :'desired_generation' => :'desiredGeneration', + :'instancetype_ref' => :'instancetypeRef', :'memory_dump_request' => :'memoryDumpRequest', :'observed_generation' => :'observedGeneration', + :'preference_ref' => :'preferenceRef', :'printable_status' => :'printableStatus', :'ready' => :'ready', :'restore_in_progress' => :'restoreInProgress', @@ -79,9 +85,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -90,8 +101,10 @@ def self.openapi_types :'conditions' => :'Array', :'created' => :'Boolean', :'desired_generation' => :'Integer', + :'instancetype_ref' => :'V1InstancetypeStatusRef', :'memory_dump_request' => :'V1VirtualMachineMemoryDumpRequest', :'observed_generation' => :'Integer', + :'preference_ref' => :'V1InstancetypeStatusRef', :'printable_status' => :'String', :'ready' => :'Boolean', :'restore_in_progress' => :'String', @@ -119,9 +132,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -140,6 +154,10 @@ def initialize(attributes = {}) self.desired_generation = attributes[:'desired_generation'] end + if attributes.key?(:'instancetype_ref') + self.instancetype_ref = attributes[:'instancetype_ref'] + end + if attributes.key?(:'memory_dump_request') self.memory_dump_request = attributes[:'memory_dump_request'] end @@ -148,6 +166,10 @@ def initialize(attributes = {}) self.observed_generation = attributes[:'observed_generation'] end + if attributes.key?(:'preference_ref') + self.preference_ref = attributes[:'preference_ref'] + end + if attributes.key?(:'printable_status') self.printable_status = attributes[:'printable_status'] end @@ -218,8 +240,10 @@ def ==(o) conditions == o.conditions && created == o.created && desired_generation == o.desired_generation && + instancetype_ref == o.instancetype_ref && memory_dump_request == o.memory_dump_request && observed_generation == o.observed_generation && + preference_ref == o.preference_ref && printable_status == o.printable_status && ready == o.ready && restore_in_progress == o.restore_in_progress && @@ -241,7 +265,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [conditions, created, desired_generation, memory_dump_request, observed_generation, printable_status, ready, restore_in_progress, run_strategy, snapshot_in_progress, start_failure, state_change_requests, volume_requests, volume_snapshot_statuses, volume_update_state].hash + [conditions, created, desired_generation, instancetype_ref, memory_dump_request, observed_generation, preference_ref, printable_status, ready, restore_in_progress, run_strategy, snapshot_in_progress, start_failure, state_change_requests, volume_requests, volume_snapshot_statuses, volume_update_state].hash end # Builds the object from hash diff --git a/lib/kubevirt/models/v1_virtual_machine_volume_request.rb b/lib/kubevirt/models/v1_virtual_machine_volume_request.rb index 7fc75404..a3585a67 100644 --- a/lib/kubevirt/models/v1_virtual_machine_volume_request.rb +++ b/lib/kubevirt/models/v1_virtual_machine_volume_request.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,9 +27,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -54,9 +59,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineVolumeRequest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VirtualMachineVolumeRequest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_volume.rb b/lib/kubevirt/models/v1_volume.rb index 96800fd4..87d85673 100644 --- a/lib/kubevirt/models/v1_volume.rb +++ b/lib/kubevirt/models/v1_volume.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -72,9 +72,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -113,9 +118,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Volume`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Volume`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -207,6 +213,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_volume_migration_state.rb b/lib/kubevirt/models/v1_volume_migration_state.rb index c31034ac..ac25dcb9 100644 --- a/lib/kubevirt/models/v1_volume_migration_state.rb +++ b/lib/kubevirt/models/v1_volume_migration_state.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VolumeMigrationState`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VolumeMigrationState`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_volume_snapshot_status.rb b/lib/kubevirt/models/v1_volume_snapshot_status.rb index 9690b9aa..66a7dcb8 100644 --- a/lib/kubevirt/models/v1_volume_snapshot_status.rb +++ b/lib/kubevirt/models/v1_volume_snapshot_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VolumeSnapshotStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VolumeSnapshotStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -110,6 +116,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] enabled Value to be assigned + def enabled=(enabled) + if enabled.nil? + fail ArgumentError, 'enabled cannot be nil' + end + + @enabled = enabled + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_volume_status.rb b/lib/kubevirt/models/v1_volume_status.rb index 761c82c5..9e017d2f 100644 --- a/lib/kubevirt/models/v1_volume_status.rb +++ b/lib/kubevirt/models/v1_volume_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -58,9 +58,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -93,9 +98,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VolumeStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VolumeStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -170,6 +176,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] target Value to be assigned + def target=(target) + if target.nil? + fail ArgumentError, 'target cannot be nil' + end + + @target = target + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1_volume_update_state.rb b/lib/kubevirt/models/v1_volume_update_state.rb index 5ef3525f..62a8e27d 100644 --- a/lib/kubevirt/models/v1_volume_update_state.rb +++ b/lib/kubevirt/models/v1_volume_update_state.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -24,9 +24,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -50,9 +55,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VolumeUpdateState`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1VolumeUpdateState`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1_watchdog.rb b/lib/kubevirt/models/v1_watchdog.rb index 2292cf56..7cd1fe4d 100644 --- a/lib/kubevirt/models/v1_watchdog.rb +++ b/lib/kubevirt/models/v1_watchdog.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Watchdog`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1Watchdog`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -94,6 +100,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1alpha1_migration_policy.rb b/lib/kubevirt/models/v1alpha1_migration_policy.rb index 92f8d382..f3ccbde3 100644 --- a/lib/kubevirt/models/v1alpha1_migration_policy.rb +++ b/lib/kubevirt/models/v1alpha1_migration_policy.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -39,9 +39,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -69,9 +74,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1MigrationPolicy`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1MigrationPolicy`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -119,6 +125,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1alpha1_migration_policy_list.rb b/lib/kubevirt/models/v1alpha1_migration_policy_list.rb index ace326f0..7cc8c447 100644 --- a/lib/kubevirt/models/v1alpha1_migration_policy_list.rb +++ b/lib/kubevirt/models/v1alpha1_migration_policy_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1MigrationPolicyList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1MigrationPolicyList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1alpha1_migration_policy_spec.rb b/lib/kubevirt/models/v1alpha1_migration_policy_spec.rb index c7898d89..e4898e6f 100644 --- a/lib/kubevirt/models/v1alpha1_migration_policy_spec.rb +++ b/lib/kubevirt/models/v1alpha1_migration_policy_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -40,9 +40,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,7 +56,7 @@ def self.openapi_types :'allow_auto_converge' => :'Boolean', :'allow_post_copy' => :'Boolean', :'allow_workload_disruption' => :'Boolean', - :'bandwidth_per_migration' => :'String', + :'bandwidth_per_migration' => :'Object', :'completion_timeout_per_gi_b' => :'Integer', :'selectors' => :'V1alpha1Selectors' } @@ -71,9 +76,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1MigrationPolicySpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1MigrationPolicySpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -125,6 +131,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] selectors Value to be assigned + def selectors=(selectors) + if selectors.nil? + fail ArgumentError, 'selectors cannot be nil' + end + + @selectors = selectors + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1alpha1_selectors.rb b/lib/kubevirt/models/v1alpha1_selectors.rb index dfe23e6d..a7b997cd 100644 --- a/lib/kubevirt/models/v1alpha1_selectors.rb +++ b/lib/kubevirt/models/v1alpha1_selectors.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,9 +27,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -54,9 +59,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1Selectors`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1Selectors`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1alpha1_virtual_machine_pool.rb b/lib/kubevirt/models/v1alpha1_virtual_machine_pool.rb index 4907259c..ee17ab50 100644 --- a/lib/kubevirt/models/v1alpha1_virtual_machine_pool.rb +++ b/lib/kubevirt/models/v1alpha1_virtual_machine_pool.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -39,9 +39,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -69,9 +74,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachinePool`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachinePool`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -119,6 +125,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1alpha1_virtual_machine_pool_condition.rb b/lib/kubevirt/models/v1alpha1_virtual_machine_pool_condition.rb index d5015df5..b73e233b 100644 --- a/lib/kubevirt/models/v1alpha1_virtual_machine_pool_condition.rb +++ b/lib/kubevirt/models/v1alpha1_virtual_machine_pool_condition.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachinePoolCondition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachinePoolCondition`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -115,6 +121,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] status Value to be assigned + def status=(status) + if status.nil? + fail ArgumentError, 'status cannot be nil' + end + + @status = status + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1alpha1_virtual_machine_pool_list.rb b/lib/kubevirt/models/v1alpha1_virtual_machine_pool_list.rb index 1cb264db..5423dab4 100644 --- a/lib/kubevirt/models/v1alpha1_virtual_machine_pool_list.rb +++ b/lib/kubevirt/models/v1alpha1_virtual_machine_pool_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachinePoolList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachinePoolList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1alpha1_condition.rb b/lib/kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.rb similarity index 78% rename from lib/kubevirt/models/v1alpha1_condition.rb rename to lib/kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.rb index 5fac57f1..f285e350 100644 --- a/lib/kubevirt/models/v1alpha1_condition.rb +++ b/lib/kubevirt/models/v1alpha1_virtual_machine_pool_name_generation.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -14,38 +14,34 @@ require 'time' module Kubevirt - # Condition defines conditions - class V1alpha1Condition - attr_accessor :message + class V1alpha1VirtualMachinePoolNameGeneration + attr_accessor :append_index_to_config_map_refs - attr_accessor :reason - - attr_accessor :status - - attr_accessor :type + attr_accessor :append_index_to_secret_refs # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { - :'message' => :'message', - :'reason' => :'reason', - :'status' => :'status', - :'type' => :'type' + :'append_index_to_config_map_refs' => :'appendIndexToConfigMapRefs', + :'append_index_to_secret_refs' => :'appendIndexToSecretRefs' } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { - :'message' => :'String', - :'reason' => :'String', - :'status' => :'String', - :'type' => :'String' + :'append_index_to_config_map_refs' => :'Boolean', + :'append_index_to_secret_refs' => :'Boolean' } end @@ -59,35 +55,24 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1alpha1Condition` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1alpha1VirtualMachinePoolNameGeneration` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1Condition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachinePoolNameGeneration`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } - if attributes.key?(:'message') - self.message = attributes[:'message'] - end - - if attributes.key?(:'reason') - self.reason = attributes[:'reason'] - end - - if attributes.key?(:'status') - self.status = attributes[:'status'] - else - self.status = '' + if attributes.key?(:'append_index_to_config_map_refs') + self.append_index_to_config_map_refs = attributes[:'append_index_to_config_map_refs'] end - if attributes.key?(:'type') - self.type = attributes[:'type'] - else - self.type = '' + if attributes.key?(:'append_index_to_secret_refs') + self.append_index_to_secret_refs = attributes[:'append_index_to_secret_refs'] end end @@ -96,14 +81,6 @@ def initialize(attributes = {}) def list_invalid_properties warn '[DEPRECATED] the `list_invalid_properties` method is obsolete' invalid_properties = Array.new - if @status.nil? - invalid_properties.push('invalid value for "status", status cannot be nil.') - end - - if @type.nil? - invalid_properties.push('invalid value for "type", type cannot be nil.') - end - invalid_properties end @@ -111,8 +88,6 @@ def list_invalid_properties # @return true if the model is valid def valid? warn '[DEPRECATED] the `valid?` method is obsolete' - return false if @status.nil? - return false if @type.nil? true end @@ -121,10 +96,8 @@ def valid? def ==(o) return true if self.equal?(o) self.class == o.class && - message == o.message && - reason == o.reason && - status == o.status && - type == o.type + append_index_to_config_map_refs == o.append_index_to_config_map_refs && + append_index_to_secret_refs == o.append_index_to_secret_refs end # @see the `==` method @@ -136,7 +109,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [message, reason, status, type].hash + [append_index_to_config_map_refs, append_index_to_secret_refs].hash end # Builds the object from hash diff --git a/lib/kubevirt/models/v1alpha1_virtual_machine_pool_spec.rb b/lib/kubevirt/models/v1alpha1_virtual_machine_pool_spec.rb index fe31f1de..e14bc29b 100644 --- a/lib/kubevirt/models/v1alpha1_virtual_machine_pool_spec.rb +++ b/lib/kubevirt/models/v1alpha1_virtual_machine_pool_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -15,6 +15,8 @@ module Kubevirt class V1alpha1VirtualMachinePoolSpec + attr_accessor :name_generation + # Indicates that the pool is paused. attr_accessor :paused @@ -28,6 +30,7 @@ class V1alpha1VirtualMachinePoolSpec # Attribute mapping from ruby-style variable name to JSON key. def self.attribute_map { + :'name_generation' => :'nameGeneration', :'paused' => :'paused', :'replicas' => :'replicas', :'selector' => :'selector', @@ -35,14 +38,20 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { + :'name_generation' => :'V1alpha1VirtualMachinePoolNameGeneration', :'paused' => :'Boolean', :'replicas' => :'Integer', :'selector' => :'K8sIoApimachineryPkgApisMetaV1LabelSelector', @@ -64,13 +73,18 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachinePoolSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachinePoolSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } + if attributes.key?(:'name_generation') + self.name_generation = attributes[:'name_generation'] + end + if attributes.key?(:'paused') self.paused = attributes[:'paused'] end @@ -117,11 +131,32 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] selector Value to be assigned + def selector=(selector) + if selector.nil? + fail ArgumentError, 'selector cannot be nil' + end + + @selector = selector + end + + # Custom attribute writer method with validation + # @param [Object] virtual_machine_template Value to be assigned + def virtual_machine_template=(virtual_machine_template) + if virtual_machine_template.nil? + fail ArgumentError, 'virtual_machine_template cannot be nil' + end + + @virtual_machine_template = virtual_machine_template + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) return true if self.equal?(o) self.class == o.class && + name_generation == o.name_generation && paused == o.paused && replicas == o.replicas && selector == o.selector && @@ -137,7 +172,7 @@ def eql?(o) # Calculates hash code according to all attributes. # @return [Integer] Hash code def hash - [paused, replicas, selector, virtual_machine_template].hash + [name_generation, paused, replicas, selector, virtual_machine_template].hash end # Builds the object from hash diff --git a/lib/kubevirt/models/v1alpha1_virtual_machine_pool_status.rb b/lib/kubevirt/models/v1alpha1_virtual_machine_pool_status.rb index 689d36c8..042da95d 100644 --- a/lib/kubevirt/models/v1alpha1_virtual_machine_pool_status.rb +++ b/lib/kubevirt/models/v1alpha1_virtual_machine_pool_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -63,9 +68,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachinePoolStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachinePoolStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1alpha1_virtual_machine_template_spec.rb b/lib/kubevirt/models/v1alpha1_virtual_machine_template_spec.rb index 6822a987..79f0f9e7 100644 --- a/lib/kubevirt/models/v1alpha1_virtual_machine_template_spec.rb +++ b/lib/kubevirt/models/v1alpha1_virtual_machine_template_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,9 +27,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -54,9 +59,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachineTemplateSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachineTemplateSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_clock_preferences.rb b/lib/kubevirt/models/v1beta1_clock_preferences.rb index 61a92c94..4850027b 100644 --- a/lib/kubevirt/models/v1beta1_clock_preferences.rb +++ b/lib/kubevirt/models/v1beta1_clock_preferences.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1ClockPreferences`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1ClockPreferences`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_condition.rb b/lib/kubevirt/models/v1beta1_condition.rb index b3c40dc8..ab95266d 100644 --- a/lib/kubevirt/models/v1beta1_condition.rb +++ b/lib/kubevirt/models/v1beta1_condition.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -63,9 +68,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1Condition`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1Condition`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -116,6 +122,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] status Value to be assigned + def status=(status) + if status.nil? + fail ArgumentError, 'status cannot be nil' + end + + @status = status + end + + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_cpu_instancetype.rb b/lib/kubevirt/models/v1beta1_cpu_instancetype.rb index b645c4e6..b9424552 100644 --- a/lib/kubevirt/models/v1beta1_cpu_instancetype.rb +++ b/lib/kubevirt/models/v1beta1_cpu_instancetype.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -48,9 +48,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -80,9 +85,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1CPUInstancetype`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1CPUInstancetype`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -138,6 +144,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] guest Value to be assigned + def guest=(guest) + if guest.nil? + fail ArgumentError, 'guest cannot be nil' + end + + @guest = guest + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_cpu_preference_requirement.rb b/lib/kubevirt/models/v1beta1_cpu_preference_requirement.rb index e519727d..c22d0dd7 100644 --- a/lib/kubevirt/models/v1beta1_cpu_preference_requirement.rb +++ b/lib/kubevirt/models/v1beta1_cpu_preference_requirement.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1CPUPreferenceRequirement`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1CPUPreferenceRequirement`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -85,6 +91,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] guest Value to be assigned + def guest=(guest) + if guest.nil? + fail ArgumentError, 'guest cannot be nil' + end + + @guest = guest + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_cpu_preferences.rb b/lib/kubevirt/models/v1beta1_cpu_preferences.rb index ae69fd3f..78184bc4 100644 --- a/lib/kubevirt/models/v1beta1_cpu_preferences.rb +++ b/lib/kubevirt/models/v1beta1_cpu_preferences.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1CPUPreferences`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1CPUPreferences`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_data_volume_checkpoint.rb b/lib/kubevirt/models/v1beta1_data_volume_checkpoint.rb index 0206814a..f55364dc 100644 --- a/lib/kubevirt/models/v1beta1_data_volume_checkpoint.rb +++ b/lib/kubevirt/models/v1beta1_data_volume_checkpoint.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeCheckpoint`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeCheckpoint`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -102,6 +108,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] current Value to be assigned + def current=(current) + if current.nil? + fail ArgumentError, 'current cannot be nil' + end + + @current = current + end + + # Custom attribute writer method with validation + # @param [Object] previous Value to be assigned + def previous=(previous) + if previous.nil? + fail ArgumentError, 'previous cannot be nil' + end + + @previous = previous + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_data_volume_source.rb b/lib/kubevirt/models/v1beta1_data_volume_source.rb index 225c18fa..f55fc0d4 100644 --- a/lib/kubevirt/models/v1beta1_data_volume_source.rb +++ b/lib/kubevirt/models/v1beta1_data_volume_source.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -54,9 +54,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -89,9 +94,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSource`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_data_volume_source_gcs.rb b/lib/kubevirt/models/v1beta1_data_volume_source_gcs.rb index 47592e7f..ea8553ad 100644 --- a/lib/kubevirt/models/v1beta1_data_volume_source_gcs.rb +++ b/lib/kubevirt/models/v1beta1_data_volume_source_gcs.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceGCS`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceGCS`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -95,6 +101,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] url Value to be assigned + def url=(url) + if url.nil? + fail ArgumentError, 'url cannot be nil' + end + + @url = url + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_data_volume_source_http.rb b/lib/kubevirt/models/v1beta1_data_volume_source_http.rb index b86d40c2..3ac403ba 100644 --- a/lib/kubevirt/models/v1beta1_data_volume_source_http.rb +++ b/lib/kubevirt/models/v1beta1_data_volume_source_http.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -42,9 +42,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -72,9 +77,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceHTTP`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceHTTP`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -126,6 +132,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] url Value to be assigned + def url=(url) + if url.nil? + fail ArgumentError, 'url cannot be nil' + end + + @url = url + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_data_volume_source_image_io.rb b/lib/kubevirt/models/v1beta1_data_volume_source_image_io.rb index fe84bd7c..50d1a1d8 100644 --- a/lib/kubevirt/models/v1beta1_data_volume_source_image_io.rb +++ b/lib/kubevirt/models/v1beta1_data_volume_source_image_io.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -38,9 +38,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -67,9 +72,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceImageIO`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceImageIO`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -120,6 +126,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] disk_id Value to be assigned + def disk_id=(disk_id) + if disk_id.nil? + fail ArgumentError, 'disk_id cannot be nil' + end + + @disk_id = disk_id + end + + # Custom attribute writer method with validation + # @param [Object] url Value to be assigned + def url=(url) + if url.nil? + fail ArgumentError, 'url cannot be nil' + end + + @url = url + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_data_volume_source_pvc.rb b/lib/kubevirt/models/v1beta1_data_volume_source_pvc.rb index 642fe23b..5c77acbb 100644 --- a/lib/kubevirt/models/v1beta1_data_volume_source_pvc.rb +++ b/lib/kubevirt/models/v1beta1_data_volume_source_pvc.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourcePVC`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourcePVC`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -102,6 +108,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] namespace Value to be assigned + def namespace=(namespace) + if namespace.nil? + fail ArgumentError, 'namespace cannot be nil' + end + + @namespace = namespace + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_data_volume_source_ref.rb b/lib/kubevirt/models/v1beta1_data_volume_source_ref.rb index 922cf6ad..05290681 100644 --- a/lib/kubevirt/models/v1beta1_data_volume_source_ref.rb +++ b/lib/kubevirt/models/v1beta1_data_volume_source_ref.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceRef`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceRef`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -111,6 +117,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] kind Value to be assigned + def kind=(kind) + if kind.nil? + fail ArgumentError, 'kind cannot be nil' + end + + @kind = kind + end + + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_data_volume_source_registry.rb b/lib/kubevirt/models/v1beta1_data_volume_source_registry.rb index 0abcf3b5..43d49d79 100644 --- a/lib/kubevirt/models/v1beta1_data_volume_source_registry.rb +++ b/lib/kubevirt/models/v1beta1_data_volume_source_registry.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -42,9 +42,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -72,9 +77,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceRegistry`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceRegistry`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_data_volume_source_s3.rb b/lib/kubevirt/models/v1beta1_data_volume_source_s3.rb index e4ba51d6..1e8fc6ec 100644 --- a/lib/kubevirt/models/v1beta1_data_volume_source_s3.rb +++ b/lib/kubevirt/models/v1beta1_data_volume_source_s3.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceS3`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceS3`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -104,6 +110,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] url Value to be assigned + def url=(url) + if url.nil? + fail ArgumentError, 'url cannot be nil' + end + + @url = url + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_data_volume_source_snapshot.rb b/lib/kubevirt/models/v1beta1_data_volume_source_snapshot.rb index a634a9f6..5515508a 100644 --- a/lib/kubevirt/models/v1beta1_data_volume_source_snapshot.rb +++ b/lib/kubevirt/models/v1beta1_data_volume_source_snapshot.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceSnapshot`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceSnapshot`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -102,6 +108,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + + # Custom attribute writer method with validation + # @param [Object] namespace Value to be assigned + def namespace=(namespace) + if namespace.nil? + fail ArgumentError, 'namespace cannot be nil' + end + + @namespace = namespace + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_data_volume_source_vddk.rb b/lib/kubevirt/models/v1beta1_data_volume_source_vddk.rb index 903bd51a..8bfb65e3 100644 --- a/lib/kubevirt/models/v1beta1_data_volume_source_vddk.rb +++ b/lib/kubevirt/models/v1beta1_data_volume_source_vddk.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -46,9 +46,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -77,9 +82,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceVDDK`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSourceVDDK`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_data_volume_spec.rb b/lib/kubevirt/models/v1beta1_data_volume_spec.rb index 5c013d69..7b88d577 100644 --- a/lib/kubevirt/models/v1beta1_data_volume_spec.rb +++ b/lib/kubevirt/models/v1beta1_data_volume_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -54,9 +54,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -88,9 +93,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DataVolumeSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_device_preferences.rb b/lib/kubevirt/models/v1beta1_device_preferences.rb index dad8d0cf..977b5524 100644 --- a/lib/kubevirt/models/v1beta1_device_preferences.rb +++ b/lib/kubevirt/models/v1beta1_device_preferences.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -115,9 +115,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -164,9 +169,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DevicePreferences`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1DevicePreferences`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_error.rb b/lib/kubevirt/models/v1beta1_error.rb index fa90fe9f..adecb6ef 100644 --- a/lib/kubevirt/models/v1beta1_error.rb +++ b/lib/kubevirt/models/v1beta1_error.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1Error`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1Error`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_feature_preferences.rb b/lib/kubevirt/models/v1beta1_feature_preferences.rb index b48744f7..ac4fe2cc 100644 --- a/lib/kubevirt/models/v1beta1_feature_preferences.rb +++ b/lib/kubevirt/models/v1beta1_feature_preferences.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -40,9 +40,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -71,9 +76,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1FeaturePreferences`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1FeaturePreferences`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_firmware_preferences.rb b/lib/kubevirt/models/v1beta1_firmware_preferences.rb index 443f69a0..ba7d3eae 100644 --- a/lib/kubevirt/models/v1beta1_firmware_preferences.rb +++ b/lib/kubevirt/models/v1beta1_firmware_preferences.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -41,9 +41,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -71,9 +76,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1FirmwarePreferences`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1FirmwarePreferences`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_machine_preferences.rb b/lib/kubevirt/models/v1beta1_machine_preferences.rb index 509e7b0b..f186068c 100644 --- a/lib/kubevirt/models/v1beta1_machine_preferences.rb +++ b/lib/kubevirt/models/v1beta1_machine_preferences.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -26,9 +26,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,9 +57,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1MachinePreferences`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1MachinePreferences`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_memory_instancetype.rb b/lib/kubevirt/models/v1beta1_memory_instancetype.rb index 6168ef42..9b0ee0ee 100644 --- a/lib/kubevirt/models/v1beta1_memory_instancetype.rb +++ b/lib/kubevirt/models/v1beta1_memory_instancetype.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -37,17 +37,22 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { - :'guest' => :'String', + :'guest' => :'Object', :'hugepages' => :'V1Hugepages', - :'max_guest' => :'String', + :'max_guest' => :'Object', :'overcommit_percent' => :'Integer' } end @@ -66,9 +71,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1MemoryInstancetype`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1MemoryInstancetype`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -112,6 +118,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] guest Value to be assigned + def guest=(guest) + if guest.nil? + fail ArgumentError, 'guest cannot be nil' + end + + @guest = guest + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_memory_preference_requirement.rb b/lib/kubevirt/models/v1beta1_memory_preference_requirement.rb index 2d8bafe6..ac2d597c 100644 --- a/lib/kubevirt/models/v1beta1_memory_preference_requirement.rb +++ b/lib/kubevirt/models/v1beta1_memory_preference_requirement.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,15 +25,20 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { - :'guest' => :'String' + :'guest' => :'Object' } end @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1MemoryPreferenceRequirement`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1MemoryPreferenceRequirement`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -85,6 +91,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] guest Value to be assigned + def guest=(guest) + if guest.nil? + fail ArgumentError, 'guest cannot be nil' + end + + @guest = guest + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_persistent_volume_claim.rb b/lib/kubevirt/models/v1beta1_persistent_volume_claim.rb index 658b47af..fa6e7a4d 100644 --- a/lib/kubevirt/models/v1beta1_persistent_volume_claim.rb +++ b/lib/kubevirt/models/v1beta1_persistent_volume_claim.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,9 +27,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -54,9 +59,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1PersistentVolumeClaim`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1PersistentVolumeClaim`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_preference_requirements.rb b/lib/kubevirt/models/v1beta1_preference_requirements.rb index cd705f12..ee878ad6 100644 --- a/lib/kubevirt/models/v1beta1_preference_requirements.rb +++ b/lib/kubevirt/models/v1beta1_preference_requirements.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,9 +27,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -54,9 +59,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1PreferenceRequirements`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1PreferenceRequirements`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_snapshot_volumes_lists.rb b/lib/kubevirt/models/v1beta1_snapshot_volumes_lists.rb index fabda58b..975c6f4a 100644 --- a/lib/kubevirt/models/v1beta1_snapshot_volumes_lists.rb +++ b/lib/kubevirt/models/v1beta1_snapshot_volumes_lists.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1SnapshotVolumesLists`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1SnapshotVolumesLists`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_source_spec.rb b/lib/kubevirt/models/v1beta1_source_spec.rb index 26ae33f4..df217d6a 100644 --- a/lib/kubevirt/models/v1beta1_source_spec.rb +++ b/lib/kubevirt/models/v1beta1_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1SourceSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1SourceSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_spread_options.rb b/lib/kubevirt/models/v1beta1_spread_options.rb index 22e969c5..a39f7996 100644 --- a/lib/kubevirt/models/v1beta1_spread_options.rb +++ b/lib/kubevirt/models/v1beta1_spread_options.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1SpreadOptions`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1SpreadOptions`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_storage_spec.rb b/lib/kubevirt/models/v1beta1_storage_spec.rb index 689c6cc6..97366168 100644 --- a/lib/kubevirt/models/v1beta1_storage_spec.rb +++ b/lib/kubevirt/models/v1beta1_storage_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -72,9 +72,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -105,9 +110,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1StorageSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1StorageSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_virtual_machine.rb b/lib/kubevirt/models/v1beta1_virtual_machine.rb index c8a01ec9..1e9f8b09 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -58,9 +63,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachine`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachine`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1alpha1_virtual_machine_clone.rb b/lib/kubevirt/models/v1beta1_virtual_machine_clone.rb similarity index 89% rename from lib/kubevirt/models/v1alpha1_virtual_machine_clone.rb rename to lib/kubevirt/models/v1beta1_virtual_machine_clone.rb index 54987e7a..08df364c 100644 --- a/lib/kubevirt/models/v1alpha1_virtual_machine_clone.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_clone.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -15,7 +15,7 @@ module Kubevirt # VirtualMachineClone is a CRD that clones one VM into another. - class V1alpha1VirtualMachineClone + class V1beta1VirtualMachineClone # APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources attr_accessor :api_version @@ -39,9 +39,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -50,8 +55,8 @@ def self.openapi_types :'api_version' => :'String', :'kind' => :'String', :'metadata' => :'K8sIoApimachineryPkgApisMetaV1ObjectMeta', - :'spec' => :'V1alpha1VirtualMachineCloneSpec', - :'status' => :'V1alpha1VirtualMachineCloneStatus' + :'spec' => :'V1beta1VirtualMachineCloneSpec', + :'status' => :'V1beta1VirtualMachineCloneStatus' } end @@ -65,13 +70,14 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1alpha1VirtualMachineClone` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1beta1VirtualMachineClone` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachineClone`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineClone`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -119,6 +125,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1alpha1_virtual_machine_clone_list.rb b/lib/kubevirt/models/v1beta1_virtual_machine_clone_list.rb similarity index 89% rename from lib/kubevirt/models/v1alpha1_virtual_machine_clone_list.rb rename to lib/kubevirt/models/v1beta1_virtual_machine_clone_list.rb index 8e39e16f..385b23f1 100644 --- a/lib/kubevirt/models/v1alpha1_virtual_machine_clone_list.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_clone_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -15,7 +15,7 @@ module Kubevirt # VirtualMachineCloneList is a list of MigrationPolicy - class V1alpha1VirtualMachineCloneList + class V1beta1VirtualMachineCloneList # APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources attr_accessor :api_version @@ -36,16 +36,21 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { :'api_version' => :'String', - :'items' => :'Array', + :'items' => :'Array', :'kind' => :'String', :'metadata' => :'K8sIoApimachineryPkgApisMetaV1ListMeta' } @@ -61,13 +66,14 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1alpha1VirtualMachineCloneList` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1beta1VirtualMachineCloneList` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachineCloneList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineCloneList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1alpha1_virtual_machine_clone_spec.rb b/lib/kubevirt/models/v1beta1_virtual_machine_clone_spec.rb similarity index 90% rename from lib/kubevirt/models/v1alpha1_virtual_machine_clone_spec.rb rename to lib/kubevirt/models/v1beta1_virtual_machine_clone_spec.rb index 407ea170..4bed3458 100644 --- a/lib/kubevirt/models/v1alpha1_virtual_machine_clone_spec.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_clone_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -14,7 +14,7 @@ require 'time' module Kubevirt - class V1alpha1VirtualMachineCloneSpec + class V1beta1VirtualMachineCloneSpec # Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. attr_accessor :annotation_filters @@ -46,9 +46,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -60,7 +65,7 @@ def self.openapi_types :'new_sm_bios_serial' => :'String', :'source' => :'K8sIoApiCoreV1TypedLocalObjectReference', :'target' => :'K8sIoApiCoreV1TypedLocalObjectReference', - :'template' => :'V1alpha1VirtualMachineCloneTemplateFilters' + :'template' => :'V1beta1VirtualMachineCloneTemplateFilters' } end @@ -74,13 +79,14 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1alpha1VirtualMachineCloneSpec` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1beta1VirtualMachineCloneSpec` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachineCloneSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineCloneSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -142,6 +148,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] source Value to be assigned + def source=(source) + if source.nil? + fail ArgumentError, 'source cannot be nil' + end + + @source = source + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1alpha1_virtual_machine_clone_status.rb b/lib/kubevirt/models/v1beta1_virtual_machine_clone_status.rb similarity index 92% rename from lib/kubevirt/models/v1alpha1_virtual_machine_clone_status.rb rename to lib/kubevirt/models/v1beta1_virtual_machine_clone_status.rb index 4e92f930..80f918c6 100644 --- a/lib/kubevirt/models/v1alpha1_virtual_machine_clone_status.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_clone_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -14,7 +14,7 @@ require 'time' module Kubevirt - class V1alpha1VirtualMachineCloneStatus + class V1beta1VirtualMachineCloneStatus attr_accessor :conditions # Time is a wrapper around time.Time which supports correct marshaling to YAML and JSON. Wrappers are provided for many of the factory methods that the time package offers. @@ -40,15 +40,20 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. def self.openapi_types { - :'conditions' => :'Array', + :'conditions' => :'Array', :'creation_time' => :'Time', :'phase' => :'String', :'restore_name' => :'String', @@ -67,13 +72,14 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1alpha1VirtualMachineCloneStatus` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1beta1VirtualMachineCloneStatus` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachineCloneStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineCloneStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1alpha1_virtual_machine_clone_template_filters.rb b/lib/kubevirt/models/v1beta1_virtual_machine_clone_template_filters.rb similarity index 91% rename from lib/kubevirt/models/v1alpha1_virtual_machine_clone_template_filters.rb rename to lib/kubevirt/models/v1beta1_virtual_machine_clone_template_filters.rb index e3fb5ac7..157dc9b3 100644 --- a/lib/kubevirt/models/v1alpha1_virtual_machine_clone_template_filters.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_clone_template_filters.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -14,7 +14,7 @@ require 'time' module Kubevirt - class V1alpha1VirtualMachineCloneTemplateFilters + class V1beta1VirtualMachineCloneTemplateFilters # Example use: \"!some/key*\". For a detailed description, please refer to https://kubevirt.io/user-guide/operations/clone_api/#label-annotation-filters. attr_accessor :annotation_filters @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -52,13 +57,14 @@ def self.openapi_nullable # @param [Hash] attributes Model attributes in the form of hash def initialize(attributes = {}) if (!attributes.is_a?(Hash)) - fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1alpha1VirtualMachineCloneTemplateFilters` initialize method" + fail ArgumentError, "The input argument (attributes) must be a hash in `Kubevirt::V1beta1VirtualMachineCloneTemplateFilters` initialize method" end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1alpha1VirtualMachineCloneTemplateFilters`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineCloneTemplateFilters`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype.rb b/lib/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype.rb index 6862ffc0..d9690214 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineClusterInstancetype`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineClusterInstancetype`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -111,6 +117,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype_list.rb b/lib/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype_list.rb index bdca62e1..01dea83d 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype_list.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_cluster_instancetype_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineClusterInstancetypeList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineClusterInstancetypeList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_cluster_preference.rb b/lib/kubevirt/models/v1beta1_virtual_machine_cluster_preference.rb index 86d22be9..a9996be4 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_cluster_preference.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_cluster_preference.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineClusterPreference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineClusterPreference`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -111,6 +117,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_cluster_preference_list.rb b/lib/kubevirt/models/v1beta1_virtual_machine_cluster_preference_list.rb index d323374f..af618958 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_cluster_preference_list.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_cluster_preference_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineClusterPreferenceList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineClusterPreferenceList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_export.rb b/lib/kubevirt/models/v1beta1_virtual_machine_export.rb index 8cf7991c..7ef28047 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_export.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_export.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -39,9 +39,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -69,9 +74,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExport`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExport`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -119,6 +125,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_export_link.rb b/lib/kubevirt/models/v1beta1_virtual_machine_export_link.rb index 4fb5632e..6bf5789a 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_export_link.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_export_link.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -62,9 +67,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportLink`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportLink`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -108,6 +114,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] cert Value to be assigned + def cert=(cert) + if cert.nil? + fail ArgumentError, 'cert cannot be nil' + end + + @cert = cert + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_export_links.rb b/lib/kubevirt/models/v1beta1_virtual_machine_export_links.rb index 470a8f78..24f2259b 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_export_links.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_export_links.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -28,9 +28,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -55,9 +60,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportLinks`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportLinks`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_export_list.rb b/lib/kubevirt/models/v1beta1_virtual_machine_export_list.rb index 67900eb3..989f4a4f 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_export_list.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_export_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -120,6 +126,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + + # Custom attribute writer method with validation + # @param [Object] metadata Value to be assigned + def metadata=(metadata) + if metadata.nil? + fail ArgumentError, 'metadata cannot be nil' + end + + @metadata = metadata + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_export_manifest.rb b/lib/kubevirt/models/v1beta1_virtual_machine_export_manifest.rb index e1553203..3f777d22 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_export_manifest.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_export_manifest.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportManifest`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportManifest`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -102,6 +108,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] type Value to be assigned + def type=(type) + if type.nil? + fail ArgumentError, 'type cannot be nil' + end + + @type = type + end + + # Custom attribute writer method with validation + # @param [Object] url Value to be assigned + def url=(url) + if url.nil? + fail ArgumentError, 'url cannot be nil' + end + + @url = url + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_export_spec.rb b/lib/kubevirt/models/v1beta1_virtual_machine_export_spec.rb index e154c78f..d3d7f403 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_export_spec.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_export_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -33,9 +33,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -61,9 +66,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -103,6 +109,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] source Value to be assigned + def source=(source) + if source.nil? + fail ArgumentError, 'source cannot be nil' + end + + @source = source + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_export_status.rb b/lib/kubevirt/models/v1beta1_virtual_machine_export_status.rb index efcd8d0a..d105d26d 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_export_status.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_export_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -47,9 +47,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -79,9 +84,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_export_volume.rb b/lib/kubevirt/models/v1beta1_virtual_machine_export_volume.rb index c6cae8e0..2ea101a5 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_export_volume.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_export_volume.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -29,9 +29,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -56,9 +61,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportVolume`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportVolume`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -96,6 +102,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] name Value to be assigned + def name=(name) + if name.nil? + fail ArgumentError, 'name cannot be nil' + end + + @name = name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_export_volume_format.rb b/lib/kubevirt/models/v1beta1_virtual_machine_export_volume_format.rb index 35100c3c..0c1e9c14 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_export_volume_format.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_export_volume_format.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -30,9 +30,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -57,9 +62,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportVolumeFormat`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineExportVolumeFormat`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -102,6 +108,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] format Value to be assigned + def format=(format) + if format.nil? + fail ArgumentError, 'format cannot be nil' + end + + @format = format + end + + # Custom attribute writer method with validation + # @param [Object] url Value to be assigned + def url=(url) + if url.nil? + fail ArgumentError, 'url cannot be nil' + end + + @url = url + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_instancetype.rb b/lib/kubevirt/models/v1beta1_virtual_machine_instancetype.rb index 614eb426..bdf0a339 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_instancetype.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_instancetype.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineInstancetype`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineInstancetype`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -111,6 +117,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_instancetype_list.rb b/lib/kubevirt/models/v1beta1_virtual_machine_instancetype_list.rb index 9344d940..877ecc1e 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_instancetype_list.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_instancetype_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineInstancetypeList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineInstancetypeList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.rb b/lib/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.rb index 9f141262..d4797ae7 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_instancetype_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -55,9 +55,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -89,9 +94,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineInstancetypeSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineInstancetypeSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -170,6 +176,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] cpu Value to be assigned + def cpu=(cpu) + if cpu.nil? + fail ArgumentError, 'cpu cannot be nil' + end + + @cpu = cpu + end + + # Custom attribute writer method with validation + # @param [Object] memory Value to be assigned + def memory=(memory) + if memory.nil? + fail ArgumentError, 'memory cannot be nil' + end + + @memory = memory + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_preference.rb b/lib/kubevirt/models/v1beta1_virtual_machine_preference.rb index aac497f8..107b8e6e 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_preference.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_preference.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachinePreference`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachinePreference`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -111,6 +117,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_preference_list.rb b/lib/kubevirt/models/v1beta1_virtual_machine_preference_list.rb index 37462969..8d3adb6b 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_preference_list.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_preference_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachinePreferenceList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachinePreferenceList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -113,6 +119,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_preference_spec.rb b/lib/kubevirt/models/v1beta1_virtual_machine_preference_spec.rb index d015a9a7..a25f7063 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_preference_spec.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_preference_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -62,9 +62,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -99,9 +104,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachinePreferenceSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachinePreferenceSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_restore.rb b/lib/kubevirt/models/v1beta1_virtual_machine_restore.rb index 1019e82b..2ad49140 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_restore.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_restore.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -39,9 +39,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -69,9 +74,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineRestore`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineRestore`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -119,6 +125,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_restore_list.rb b/lib/kubevirt/models/v1beta1_virtual_machine_restore_list.rb index feab2d29..06d21f3c 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_restore_list.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_restore_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineRestoreList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineRestoreList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -120,6 +126,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + + # Custom attribute writer method with validation + # @param [Object] metadata Value to be assigned + def metadata=(metadata) + if metadata.nil? + fail ArgumentError, 'metadata cannot be nil' + end + + @metadata = metadata + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_restore_spec.rb b/lib/kubevirt/models/v1beta1_virtual_machine_restore_spec.rb index 11454e48..c3be4be0 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_restore_spec.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_restore_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -35,9 +35,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -64,9 +69,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineRestoreSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineRestoreSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -119,6 +125,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] target Value to be assigned + def target=(target) + if target.nil? + fail ArgumentError, 'target cannot be nil' + end + + @target = target + end + + # Custom attribute writer method with validation + # @param [Object] virtual_machine_snapshot_name Value to be assigned + def virtual_machine_snapshot_name=(virtual_machine_snapshot_name) + if virtual_machine_snapshot_name.nil? + fail ArgumentError, 'virtual_machine_snapshot_name cannot be nil' + end + + @virtual_machine_snapshot_name = virtual_machine_snapshot_name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_restore_status.rb b/lib/kubevirt/models/v1beta1_virtual_machine_restore_status.rb index 723dbf43..428c604b 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_restore_status.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_restore_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -38,9 +38,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -68,9 +73,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineRestoreStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineRestoreStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot.rb b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot.rb index 03362d98..e44f259f 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -39,9 +39,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -69,9 +74,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshot`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshot`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -119,6 +125,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content.rb b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content.rb index c24ce018..436b1488 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -39,9 +39,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -69,9 +74,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshotContent`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshotContent`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -119,6 +125,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] spec Value to be assigned + def spec=(spec) + if spec.nil? + fail ArgumentError, 'spec cannot be nil' + end + + @spec = spec + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content_list.rb b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content_list.rb index 03a6b8c5..22722eb0 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content_list.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshotContentList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshotContentList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -120,6 +126,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + + # Custom attribute writer method with validation + # @param [Object] metadata Value to be assigned + def metadata=(metadata) + if metadata.nil? + fail ArgumentError, 'metadata cannot be nil' + end + + @metadata = metadata + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content_spec.rb b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content_spec.rb index 98ccb35b..b3672368 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content_spec.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -31,9 +31,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -59,9 +64,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshotContentSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshotContentSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -103,6 +109,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] source Value to be assigned + def source=(source) + if source.nil? + fail ArgumentError, 'source cannot be nil' + end + + @source = source + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content_status.rb b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content_status.rb index f274faf8..8cb0326a 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content_status.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_content_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -35,9 +35,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -64,9 +69,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshotContentStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshotContentStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_list.rb b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_list.rb index 4588335a..5d274d7e 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_list.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_list.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -36,9 +36,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -65,9 +70,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshotList`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshotList`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -120,6 +126,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] items Value to be assigned + def items=(items) + if items.nil? + fail ArgumentError, 'items cannot be nil' + end + + @items = items + end + + # Custom attribute writer method with validation + # @param [Object] metadata Value to be assigned + def metadata=(metadata) + if metadata.nil? + fail ArgumentError, 'metadata cannot be nil' + end + + @metadata = metadata + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_spec.rb b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_spec.rb index 633ee6ee..d326fa9b 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_spec.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -32,9 +32,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -60,9 +65,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshotSpec`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshotSpec`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -102,6 +108,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] source Value to be assigned + def source=(source) + if source.nil? + fail ArgumentError, 'source cannot be nil' + end + + @source = source + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_status.rb b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_status.rb index 554f50c4..dac2548c 100644 --- a/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_status.rb +++ b/lib/kubevirt/models/v1beta1_virtual_machine_snapshot_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -50,9 +50,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -84,9 +89,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshotStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VirtualMachineSnapshotStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_volume_backup.rb b/lib/kubevirt/models/v1beta1_volume_backup.rb index 25a0b2d1..c3663dff 100644 --- a/lib/kubevirt/models/v1beta1_volume_backup.rb +++ b/lib/kubevirt/models/v1beta1_volume_backup.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -31,9 +31,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -59,9 +64,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VolumeBackup`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VolumeBackup`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -108,6 +114,26 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] persistent_volume_claim Value to be assigned + def persistent_volume_claim=(persistent_volume_claim) + if persistent_volume_claim.nil? + fail ArgumentError, 'persistent_volume_claim cannot be nil' + end + + @persistent_volume_claim = persistent_volume_claim + end + + # Custom attribute writer method with validation + # @param [Object] volume_name Value to be assigned + def volume_name=(volume_name) + if volume_name.nil? + fail ArgumentError, 'volume_name cannot be nil' + end + + @volume_name = volume_name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_volume_preferences.rb b/lib/kubevirt/models/v1beta1_volume_preferences.rb index 47004258..4f3e7285 100644 --- a/lib/kubevirt/models/v1beta1_volume_preferences.rb +++ b/lib/kubevirt/models/v1beta1_volume_preferences.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -25,9 +25,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -51,9 +56,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VolumePreferences`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VolumePreferences`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } diff --git a/lib/kubevirt/models/v1beta1_volume_restore.rb b/lib/kubevirt/models/v1beta1_volume_restore.rb index 1a50c65c..73f010f1 100644 --- a/lib/kubevirt/models/v1beta1_volume_restore.rb +++ b/lib/kubevirt/models/v1beta1_volume_restore.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -34,9 +34,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -63,9 +68,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VolumeRestore`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VolumeRestore`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -123,6 +129,36 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] persistent_volume_claim Value to be assigned + def persistent_volume_claim=(persistent_volume_claim) + if persistent_volume_claim.nil? + fail ArgumentError, 'persistent_volume_claim cannot be nil' + end + + @persistent_volume_claim = persistent_volume_claim + end + + # Custom attribute writer method with validation + # @param [Object] volume_name Value to be assigned + def volume_name=(volume_name) + if volume_name.nil? + fail ArgumentError, 'volume_name cannot be nil' + end + + @volume_name = volume_name + end + + # Custom attribute writer method with validation + # @param [Object] volume_snapshot_name Value to be assigned + def volume_snapshot_name=(volume_snapshot_name) + if volume_snapshot_name.nil? + fail ArgumentError, 'volume_snapshot_name cannot be nil' + end + + @volume_snapshot_name = volume_snapshot_name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/models/v1beta1_volume_snapshot_status.rb b/lib/kubevirt/models/v1beta1_volume_snapshot_status.rb index 09136754..c2d06a11 100644 --- a/lib/kubevirt/models/v1beta1_volume_snapshot_status.rb +++ b/lib/kubevirt/models/v1beta1_volume_snapshot_status.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -35,9 +35,14 @@ def self.attribute_map } end + # Returns attribute mapping this model knows about + def self.acceptable_attribute_map + attribute_map + end + # Returns all the JSON keys this model knows about def self.acceptable_attributes - attribute_map.values + acceptable_attribute_map.values end # Attribute type mapping. @@ -64,9 +69,10 @@ def initialize(attributes = {}) end # check to see if the attribute exists and convert string to symbol for hash key + acceptable_attribute_map = self.class.acceptable_attribute_map attributes = attributes.each_with_object({}) { |(k, v), h| - if (!self.class.attribute_map.key?(k.to_sym)) - fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VolumeSnapshotStatus`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect + if (!acceptable_attribute_map.key?(k.to_sym)) + fail ArgumentError, "`#{k}` is not a valid attribute in `Kubevirt::V1beta1VolumeSnapshotStatus`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect end h[k.to_sym] = v } @@ -110,6 +116,16 @@ def valid? true end + # Custom attribute writer method with validation + # @param [Object] volume_snapshot_name Value to be assigned + def volume_snapshot_name=(volume_snapshot_name) + if volume_snapshot_name.nil? + fail ArgumentError, 'volume_snapshot_name cannot be nil' + end + + @volume_snapshot_name = volume_snapshot_name + end + # Checks equality by comparing each attribute. # @param [Object] Object to be compared def ==(o) diff --git a/lib/kubevirt/version.rb b/lib/kubevirt/version.rb index 3db6449b..cdf55841 100644 --- a/lib/kubevirt/version.rb +++ b/lib/kubevirt/version.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/api/default_api_spec.rb b/spec/api/default_api_spec.rb index 9f32e11b..cac82938 100644 --- a/spec/api/default_api_spec.rb +++ b/spec/api/default_api_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -203,7 +203,7 @@ # Create a VirtualMachineClone object. # @param body # @param [Hash] opts the optional parameters - # @return [V1alpha1VirtualMachineClone] + # @return [V1beta1VirtualMachineClone] describe 'create_virtual_machine_clone test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -905,11 +905,11 @@ end end - # unit tests for get_api_resources_clone_kubevirt_io_v1alpha1 + # unit tests for get_api_resources_clone_kubevirt_io_v1beta1 # Get KubeVirt API Resources # @param [Hash] opts the optional parameters # @return [K8sIoApimachineryPkgApisMetaV1APIResourceList] - describe 'get_api_resources_clone_kubevirt_io_v1alpha1 test' do + describe 'get_api_resources_clone_kubevirt_io_v1beta1 test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end @@ -1309,7 +1309,7 @@ # @option opts [String] :resource_version When specified with a watch call, shows changes that occur after that particular version of a resource. Defaults to changes from the beginning of history. # @option opts [Integer] :timeout_seconds TimeoutSeconds for the list/watch call. # @option opts [Boolean] :watch Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion. - # @return [V1alpha1VirtualMachineCloneList] + # @return [V1beta1VirtualMachineCloneList] describe 'list_virtual_machine_clone test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1754,7 +1754,7 @@ # @param name Name of the resource # @param body # @param [Hash] opts the optional parameters - # @return [V1alpha1VirtualMachineClone] + # @return [V1beta1VirtualMachineClone] describe 'patch_virtual_machine_clone test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -1986,7 +1986,7 @@ # @param [Hash] opts the optional parameters # @option opts [Boolean] :exact Should the export be exact. Exact export maintains cluster-specific fields like 'Namespace'. # @option opts [Boolean] :export Should this value be exported. Export strips fields that a user can not specify. - # @return [V1alpha1VirtualMachineClone] + # @return [V1beta1VirtualMachineClone] describe 'read_virtual_machine_clone test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -2205,7 +2205,7 @@ # @param name Name of the resource # @param body # @param [Hash] opts the optional parameters - # @return [V1alpha1VirtualMachineClone] + # @return [V1beta1VirtualMachineClone] describe 'replace_virtual_machine_clone test' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -2376,6 +2376,18 @@ end end + # unit tests for v1_reset + # Reset a VirtualMachineInstance object. + # @param name Name of the resource + # @param namespace Object name and auth scope, such as for teams and projects + # @param [Hash] opts the optional parameters + # @return [String] + describe 'v1_reset test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for v1_restart # Restart a VirtualMachine object. # @param name Name of the resource @@ -2692,6 +2704,18 @@ end end + # unit tests for v1alpha3_reset + # Reset a VirtualMachineInstance object. + # @param name Name of the resource + # @param namespace Object name and auth scope, such as for teams and projects + # @param [Hash] opts the optional parameters + # @return [String] + describe 'v1alpha3_reset test' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + # unit tests for v1alpha3_restart # Restart a VirtualMachine object. # @param name Name of the resource diff --git a/spec/models/k8s_io_api_core_v1_affinity_spec.rb b/spec/models/k8s_io_api_core_v1_affinity_spec.rb index 8e8ed1b4..cd92972f 100644 --- a/spec/models/k8s_io_api_core_v1_affinity_spec.rb +++ b/spec/models/k8s_io_api_core_v1_affinity_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_downward_api_volume_file_spec.rb b/spec/models/k8s_io_api_core_v1_downward_api_volume_file_spec.rb index 9a9bfd75..5fd99033 100644 --- a/spec/models/k8s_io_api_core_v1_downward_api_volume_file_spec.rb +++ b/spec/models/k8s_io_api_core_v1_downward_api_volume_file_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_exec_action_spec.rb b/spec/models/k8s_io_api_core_v1_exec_action_spec.rb index 53b3ef00..ff73c010 100644 --- a/spec/models/k8s_io_api_core_v1_exec_action_spec.rb +++ b/spec/models/k8s_io_api_core_v1_exec_action_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_http_get_action_spec.rb b/spec/models/k8s_io_api_core_v1_http_get_action_spec.rb index 7ab80184..60923833 100644 --- a/spec/models/k8s_io_api_core_v1_http_get_action_spec.rb +++ b/spec/models/k8s_io_api_core_v1_http_get_action_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_http_header_spec.rb b/spec/models/k8s_io_api_core_v1_http_header_spec.rb index cce728e3..cc114bba 100644 --- a/spec/models/k8s_io_api_core_v1_http_header_spec.rb +++ b/spec/models/k8s_io_api_core_v1_http_header_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_local_object_reference_spec.rb b/spec/models/k8s_io_api_core_v1_local_object_reference_spec.rb index db388725..1ff54444 100644 --- a/spec/models/k8s_io_api_core_v1_local_object_reference_spec.rb +++ b/spec/models/k8s_io_api_core_v1_local_object_reference_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_node_affinity_spec.rb b/spec/models/k8s_io_api_core_v1_node_affinity_spec.rb index 9756c8b3..2811b1b3 100644 --- a/spec/models/k8s_io_api_core_v1_node_affinity_spec.rb +++ b/spec/models/k8s_io_api_core_v1_node_affinity_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_node_selector_requirement_spec.rb b/spec/models/k8s_io_api_core_v1_node_selector_requirement_spec.rb index 85c36463..a77bc027 100644 --- a/spec/models/k8s_io_api_core_v1_node_selector_requirement_spec.rb +++ b/spec/models/k8s_io_api_core_v1_node_selector_requirement_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_node_selector_spec.rb b/spec/models/k8s_io_api_core_v1_node_selector_spec.rb index fcadff6e..c7f94f78 100644 --- a/spec/models/k8s_io_api_core_v1_node_selector_spec.rb +++ b/spec/models/k8s_io_api_core_v1_node_selector_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_node_selector_term_spec.rb b/spec/models/k8s_io_api_core_v1_node_selector_term_spec.rb index edf53493..0990fe89 100644 --- a/spec/models/k8s_io_api_core_v1_node_selector_term_spec.rb +++ b/spec/models/k8s_io_api_core_v1_node_selector_term_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_object_field_selector_spec.rb b/spec/models/k8s_io_api_core_v1_object_field_selector_spec.rb index 2f41b40b..f1076997 100644 --- a/spec/models/k8s_io_api_core_v1_object_field_selector_spec.rb +++ b/spec/models/k8s_io_api_core_v1_object_field_selector_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_persistent_volume_claim_spec_spec.rb b/spec/models/k8s_io_api_core_v1_persistent_volume_claim_spec_spec.rb index 395478e7..63ecce21 100644 --- a/spec/models/k8s_io_api_core_v1_persistent_volume_claim_spec_spec.rb +++ b/spec/models/k8s_io_api_core_v1_persistent_volume_claim_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source_spec.rb b/spec/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source_spec.rb index 8c8c2caa..61c54f61 100644 --- a/spec/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source_spec.rb +++ b/spec/models/k8s_io_api_core_v1_persistent_volume_claim_volume_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_pod_affinity_spec.rb b/spec/models/k8s_io_api_core_v1_pod_affinity_spec.rb index 1b91eec1..b1e0218f 100644 --- a/spec/models/k8s_io_api_core_v1_pod_affinity_spec.rb +++ b/spec/models/k8s_io_api_core_v1_pod_affinity_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_pod_affinity_term_spec.rb b/spec/models/k8s_io_api_core_v1_pod_affinity_term_spec.rb index 0023953f..ba921c95 100644 --- a/spec/models/k8s_io_api_core_v1_pod_affinity_term_spec.rb +++ b/spec/models/k8s_io_api_core_v1_pod_affinity_term_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_pod_anti_affinity_spec.rb b/spec/models/k8s_io_api_core_v1_pod_anti_affinity_spec.rb index 6bf35b10..efc932eb 100644 --- a/spec/models/k8s_io_api_core_v1_pod_anti_affinity_spec.rb +++ b/spec/models/k8s_io_api_core_v1_pod_anti_affinity_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_pod_dns_config_option_spec.rb b/spec/models/k8s_io_api_core_v1_pod_dns_config_option_spec.rb index 13115bf5..688f9fac 100644 --- a/spec/models/k8s_io_api_core_v1_pod_dns_config_option_spec.rb +++ b/spec/models/k8s_io_api_core_v1_pod_dns_config_option_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_pod_dns_config_spec.rb b/spec/models/k8s_io_api_core_v1_pod_dns_config_spec.rb index caf5bd9f..5f91986d 100644 --- a/spec/models/k8s_io_api_core_v1_pod_dns_config_spec.rb +++ b/spec/models/k8s_io_api_core_v1_pod_dns_config_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_preferred_scheduling_term_spec.rb b/spec/models/k8s_io_api_core_v1_preferred_scheduling_term_spec.rb index 13314478..0ae943e3 100644 --- a/spec/models/k8s_io_api_core_v1_preferred_scheduling_term_spec.rb +++ b/spec/models/k8s_io_api_core_v1_preferred_scheduling_term_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_resource_field_selector_spec.rb b/spec/models/k8s_io_api_core_v1_resource_field_selector_spec.rb index d52e3622..59baaa53 100644 --- a/spec/models/k8s_io_api_core_v1_resource_field_selector_spec.rb +++ b/spec/models/k8s_io_api_core_v1_resource_field_selector_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_tcp_socket_action_spec.rb b/spec/models/k8s_io_api_core_v1_tcp_socket_action_spec.rb index 93af60ba..d0cddca4 100644 --- a/spec/models/k8s_io_api_core_v1_tcp_socket_action_spec.rb +++ b/spec/models/k8s_io_api_core_v1_tcp_socket_action_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_toleration_spec.rb b/spec/models/k8s_io_api_core_v1_toleration_spec.rb index 8108fe24..7913ab2c 100644 --- a/spec/models/k8s_io_api_core_v1_toleration_spec.rb +++ b/spec/models/k8s_io_api_core_v1_toleration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_topology_spread_constraint_spec.rb b/spec/models/k8s_io_api_core_v1_topology_spread_constraint_spec.rb index fbf22526..130c6640 100644 --- a/spec/models/k8s_io_api_core_v1_topology_spread_constraint_spec.rb +++ b/spec/models/k8s_io_api_core_v1_topology_spread_constraint_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_typed_local_object_reference_spec.rb b/spec/models/k8s_io_api_core_v1_typed_local_object_reference_spec.rb index 6398ca9e..a0cbde59 100644 --- a/spec/models/k8s_io_api_core_v1_typed_local_object_reference_spec.rb +++ b/spec/models/k8s_io_api_core_v1_typed_local_object_reference_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_typed_object_reference_spec.rb b/spec/models/k8s_io_api_core_v1_typed_object_reference_spec.rb index 7fd52e92..a5fd1c1f 100644 --- a/spec/models/k8s_io_api_core_v1_typed_object_reference_spec.rb +++ b/spec/models/k8s_io_api_core_v1_typed_object_reference_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_volume_resource_requirements_spec.rb b/spec/models/k8s_io_api_core_v1_volume_resource_requirements_spec.rb index 62b38915..1723a107 100644 --- a/spec/models/k8s_io_api_core_v1_volume_resource_requirements_spec.rb +++ b/spec/models/k8s_io_api_core_v1_volume_resource_requirements_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_api_core_v1_weighted_pod_affinity_term_spec.rb b/spec/models/k8s_io_api_core_v1_weighted_pod_affinity_term_spec.rb index 8357f41d..4be9d092 100644 --- a/spec/models/k8s_io_api_core_v1_weighted_pod_affinity_term_spec.rb +++ b/spec/models/k8s_io_api_core_v1_weighted_pod_affinity_term_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list_spec.rb index a587c095..1d228790 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_spec.rb index 9eda257e..2d13cfec 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_group_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list_spec.rb index db5dcbdc..2025838b 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_spec.rb index 347f2c0a..6dda5790 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_api_resource_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options_spec.rb index 0c83a220..ffd17a5c 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_delete_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery_spec.rb index 65e0942c..e736be95 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_group_version_for_discovery_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement_spec.rb index 832ed744..c3b4e308 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_requirement_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_spec.rb index 6aeaf1c2..4bb47252 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_label_selector_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta_spec.rb index 97074bfc..139860bd 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_list_meta_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry_spec.rb index 62c23cc8..be347366 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_managed_fields_entry_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta_spec.rb index d06f4fdf..d6fa78c2 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_object_meta_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference_spec.rb index 98403773..34e4c484 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_owner_reference_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_preconditions_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_preconditions_spec.rb index 278752c8..33984fbc 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_preconditions_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_preconditions_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_root_paths_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_root_paths_spec.rb index 9c8bd542..19e5fcb0 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_root_paths_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_root_paths_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr_spec.rb index 7a5b5e37..b5f1aff4 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_server_address_by_client_cidr_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_cause_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_cause_spec.rb index 971486e2..54e9a7e3 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_cause_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_cause_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details_spec.rb index f31b70a8..4329bf25 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_details_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_spec.rb index afb01f01..4def0fda 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event_spec.rb b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event_spec.rb index d6129528..c7a0598c 100644 --- a/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event_spec.rb +++ b/spec/models/k8s_io_apimachinery_pkg_apis_meta_v1_watch_event_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_access_credential_secret_source_spec.rb b/spec/models/v1_access_credential_secret_source_spec.rb index 641ece71..b42b23fb 100644 --- a/spec/models/v1_access_credential_secret_source_spec.rb +++ b/spec/models/v1_access_credential_secret_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_access_credential_spec.rb b/spec/models/v1_access_credential_spec.rb index 8a77eab7..79f6d9ce 100644 --- a/spec/models/v1_access_credential_spec.rb +++ b/spec/models/v1_access_credential_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_acpi_spec.rb b/spec/models/v1_acpi_spec.rb index 829a7b85..8a018159 100644 --- a/spec/models/v1_acpi_spec.rb +++ b/spec/models/v1_acpi_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_add_volume_options_spec.rb b/spec/models/v1_add_volume_options_spec.rb index 0b6c0d29..e5a8dc90 100644 --- a/spec/models/v1_add_volume_options_spec.rb +++ b/spec/models/v1_add_volume_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_arch_configuration_spec.rb b/spec/models/v1_arch_configuration_spec.rb index e58700ab..b950ad6e 100644 --- a/spec/models/v1_arch_configuration_spec.rb +++ b/spec/models/v1_arch_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_arch_specific_configuration_spec.rb b/spec/models/v1_arch_specific_configuration_spec.rb index cf05e07c..53c23027 100644 --- a/spec/models/v1_arch_specific_configuration_spec.rb +++ b/spec/models/v1_arch_specific_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_bios_spec.rb b/spec/models/v1_bios_spec.rb index e5485ec3..6f48a89a 100644 --- a/spec/models/v1_bios_spec.rb +++ b/spec/models/v1_bios_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_block_size_spec.rb b/spec/models/v1_block_size_spec.rb index 35268fb6..8bd5df08 100644 --- a/spec/models/v1_block_size_spec.rb +++ b/spec/models/v1_block_size_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_bootloader_spec.rb b/spec/models/v1_bootloader_spec.rb index 47a84cbd..659ab9a9 100644 --- a/spec/models/v1_bootloader_spec.rb +++ b/spec/models/v1_bootloader_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_cd_rom_target_spec.rb b/spec/models/v1_cd_rom_target_spec.rb index 8f056515..e87a0612 100644 --- a/spec/models/v1_cd_rom_target_spec.rb +++ b/spec/models/v1_cd_rom_target_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_cert_config_spec.rb b/spec/models/v1_cert_config_spec.rb index e1fd6a3a..1546828f 100644 --- a/spec/models/v1_cert_config_spec.rb +++ b/spec/models/v1_cert_config_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_chassis_spec.rb b/spec/models/v1_chassis_spec.rb index 40325ca2..501b50fb 100644 --- a/spec/models/v1_chassis_spec.rb +++ b/spec/models/v1_chassis_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_clock_offset_spec.rb b/spec/models/v1_clock_offset_spec.rb index 68980327..25e6ff92 100644 --- a/spec/models/v1_clock_offset_spec.rb +++ b/spec/models/v1_clock_offset_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_clock_offset_utc_spec.rb b/spec/models/v1_clock_offset_utc_spec.rb index c13847fc..95a9d86f 100644 --- a/spec/models/v1_clock_offset_utc_spec.rb +++ b/spec/models/v1_clock_offset_utc_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_clock_spec.rb b/spec/models/v1_clock_spec.rb index 250f7c9a..facf6825 100644 --- a/spec/models/v1_clock_spec.rb +++ b/spec/models/v1_clock_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_cloud_init_config_drive_source_spec.rb b/spec/models/v1_cloud_init_config_drive_source_spec.rb index 1cc27107..61348b82 100644 --- a/spec/models/v1_cloud_init_config_drive_source_spec.rb +++ b/spec/models/v1_cloud_init_config_drive_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_cloud_init_no_cloud_source_spec.rb b/spec/models/v1_cloud_init_no_cloud_source_spec.rb index e410a28a..fbef3232 100644 --- a/spec/models/v1_cloud_init_no_cloud_source_spec.rb +++ b/spec/models/v1_cloud_init_no_cloud_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_common_instancetypes_deployment_spec.rb b/spec/models/v1_common_instancetypes_deployment_spec.rb index 9cbc9b70..80d83dec 100644 --- a/spec/models/v1_common_instancetypes_deployment_spec.rb +++ b/spec/models/v1_common_instancetypes_deployment_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_component_config_spec.rb b/spec/models/v1_component_config_spec.rb index 9577d9ab..eb7d57f3 100644 --- a/spec/models/v1_component_config_spec.rb +++ b/spec/models/v1_component_config_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_config_map_volume_source_spec.rb b/spec/models/v1_config_map_volume_source_spec.rb index 25510866..5dfdea19 100644 --- a/spec/models/v1_config_map_volume_source_spec.rb +++ b/spec/models/v1_config_map_volume_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_container_disk_info_spec.rb b/spec/models/v1_container_disk_info_spec.rb index 7389a2f0..d474689b 100644 --- a/spec/models/v1_container_disk_info_spec.rb +++ b/spec/models/v1_container_disk_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_container_disk_source_spec.rb b/spec/models/v1_container_disk_source_spec.rb index 141f3ca9..f3330a14 100644 --- a/spec/models/v1_container_disk_source_spec.rb +++ b/spec/models/v1_container_disk_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_controller_revision_ref_spec.rb b/spec/models/v1_controller_revision_ref_spec.rb new file mode 100644 index 00000000..2c07c0ef --- /dev/null +++ b/spec/models/v1_controller_revision_ref_spec.rb @@ -0,0 +1,36 @@ +=begin +#KubeVirt API + +#This is KubeVirt API an add-on for Kubernetes. + +The version of the OpenAPI document: 1.0.0 +Contact: kubevirt-dev@googlegroups.com +Generated by: https://openapi-generator.tech +Generator version: 7.12.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for Kubevirt::V1ControllerRevisionRef +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe Kubevirt::V1ControllerRevisionRef do + let(:instance) { Kubevirt::V1ControllerRevisionRef.new } + + describe 'test an instance of V1ControllerRevisionRef' do + it 'should create an instance of V1ControllerRevisionRef' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Kubevirt::V1ControllerRevisionRef) + end + end + + describe 'test attribute "name"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/spec/models/v1_cpu_feature_spec.rb b/spec/models/v1_cpu_feature_spec.rb index 7e80a140..c354dd68 100644 --- a/spec/models/v1_cpu_feature_spec.rb +++ b/spec/models/v1_cpu_feature_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_cpu_spec.rb b/spec/models/v1_cpu_spec.rb index 36b8e33b..e6d106ab 100644 --- a/spec/models/v1_cpu_spec.rb +++ b/spec/models/v1_cpu_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_cpu_topology_spec.rb b/spec/models/v1_cpu_topology_spec.rb index 76b3d9b2..9e799856 100644 --- a/spec/models/v1_cpu_topology_spec.rb +++ b/spec/models/v1_cpu_topology_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_custom_block_size_spec.rb b/spec/models/v1_custom_block_size_spec.rb index 5cdae979..23cd351c 100644 --- a/spec/models/v1_custom_block_size_spec.rb +++ b/spec/models/v1_custom_block_size_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_custom_profile_spec.rb b/spec/models/v1_custom_profile_spec.rb index 4e846a22..5a696b25 100644 --- a/spec/models/v1_custom_profile_spec.rb +++ b/spec/models/v1_custom_profile_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_customize_components_patch_spec.rb b/spec/models/v1_customize_components_patch_spec.rb index 78c27f16..32bcd320 100644 --- a/spec/models/v1_customize_components_patch_spec.rb +++ b/spec/models/v1_customize_components_patch_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_customize_components_spec.rb b/spec/models/v1_customize_components_spec.rb index db66f1ee..5fc003a2 100644 --- a/spec/models/v1_customize_components_spec.rb +++ b/spec/models/v1_customize_components_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_data_volume_source_spec.rb b/spec/models/v1_data_volume_source_spec.rb index 63ebbaf6..2e92c889 100644 --- a/spec/models/v1_data_volume_source_spec.rb +++ b/spec/models/v1_data_volume_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_data_volume_template_spec_spec.rb b/spec/models/v1_data_volume_template_spec_spec.rb index 8611b4da..729c4512 100644 --- a/spec/models/v1_data_volume_template_spec_spec.rb +++ b/spec/models/v1_data_volume_template_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_developer_configuration_spec.rb b/spec/models/v1_developer_configuration_spec.rb index 987dd69b..3b707ae0 100644 --- a/spec/models/v1_developer_configuration_spec.rb +++ b/spec/models/v1_developer_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,6 +27,12 @@ end end + describe 'test attribute "cluster_profiler"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + describe 'test attribute "cpu_allocation_ratio"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/spec/models/v1_devices_spec.rb b/spec/models/v1_devices_spec.rb index 1c34916a..d63d34bf 100644 --- a/spec/models/v1_devices_spec.rb +++ b/spec/models/v1_devices_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_dhcp_options_spec.rb b/spec/models/v1_dhcp_options_spec.rb index fdf5bcb2..a2ab5e20 100644 --- a/spec/models/v1_dhcp_options_spec.rb +++ b/spec/models/v1_dhcp_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_dhcp_private_options_spec.rb b/spec/models/v1_dhcp_private_options_spec.rb index 8ed9caf7..b444b88a 100644 --- a/spec/models/v1_dhcp_private_options_spec.rb +++ b/spec/models/v1_dhcp_private_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_disk_io_threads_spec.rb b/spec/models/v1_disk_io_threads_spec.rb new file mode 100644 index 00000000..298ad538 --- /dev/null +++ b/spec/models/v1_disk_io_threads_spec.rb @@ -0,0 +1,36 @@ +=begin +#KubeVirt API + +#This is KubeVirt API an add-on for Kubernetes. + +The version of the OpenAPI document: 1.0.0 +Contact: kubevirt-dev@googlegroups.com +Generated by: https://openapi-generator.tech +Generator version: 7.12.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for Kubevirt::V1DiskIOThreads +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe Kubevirt::V1DiskIOThreads do + let(:instance) { Kubevirt::V1DiskIOThreads.new } + + describe 'test an instance of V1DiskIOThreads' do + it 'should create an instance of V1DiskIOThreads' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Kubevirt::V1DiskIOThreads) + end + end + + describe 'test attribute "supplemental_pool_thread_count"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/spec/models/v1_disk_spec.rb b/spec/models/v1_disk_spec.rb index 6f59175e..65290e7f 100644 --- a/spec/models/v1_disk_spec.rb +++ b/spec/models/v1_disk_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_disk_target_spec.rb b/spec/models/v1_disk_target_spec.rb index f63a15fd..a135fba2 100644 --- a/spec/models/v1_disk_target_spec.rb +++ b/spec/models/v1_disk_target_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_disk_verification_spec.rb b/spec/models/v1_disk_verification_spec.rb index 0cd9fe3d..4609e1ac 100644 --- a/spec/models/v1_disk_verification_spec.rb +++ b/spec/models/v1_disk_verification_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_domain_memory_dump_info_spec.rb b/spec/models/v1_domain_memory_dump_info_spec.rb index d504fb93..efe039a7 100644 --- a/spec/models/v1_domain_memory_dump_info_spec.rb +++ b/spec/models/v1_domain_memory_dump_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_domain_spec_spec.rb b/spec/models/v1_domain_spec_spec.rb index 49e9fe75..0271f646 100644 --- a/spec/models/v1_domain_spec_spec.rb +++ b/spec/models/v1_domain_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -63,6 +63,12 @@ end end + describe 'test attribute "io_threads"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + describe 'test attribute "io_threads_policy"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/spec/models/v1_downward_api_volume_source_spec.rb b/spec/models/v1_downward_api_volume_source_spec.rb index 4f4f02c3..b0eb7a31 100644 --- a/spec/models/v1_downward_api_volume_source_spec.rb +++ b/spec/models/v1_downward_api_volume_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_efi_spec.rb b/spec/models/v1_efi_spec.rb index f55718e3..759e1a62 100644 --- a/spec/models/v1_efi_spec.rb +++ b/spec/models/v1_efi_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_empty_disk_source_spec.rb b/spec/models/v1_empty_disk_source_spec.rb index a3d0f96f..d0e5e244 100644 --- a/spec/models/v1_empty_disk_source_spec.rb +++ b/spec/models/v1_empty_disk_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_ephemeral_volume_source_spec.rb b/spec/models/v1_ephemeral_volume_source_spec.rb index 88ed01ef..657a645d 100644 --- a/spec/models/v1_ephemeral_volume_source_spec.rb +++ b/spec/models/v1_ephemeral_volume_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_feature_apic_spec.rb b/spec/models/v1_feature_apic_spec.rb index 24e08843..de4d5fd7 100644 --- a/spec/models/v1_feature_apic_spec.rb +++ b/spec/models/v1_feature_apic_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_feature_hyperv_spec.rb b/spec/models/v1_feature_hyperv_spec.rb index 9b837c70..81c0576b 100644 --- a/spec/models/v1_feature_hyperv_spec.rb +++ b/spec/models/v1_feature_hyperv_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_feature_kvm_spec.rb b/spec/models/v1_feature_kvm_spec.rb index 57523458..2196708c 100644 --- a/spec/models/v1_feature_kvm_spec.rb +++ b/spec/models/v1_feature_kvm_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_feature_spinlocks_spec.rb b/spec/models/v1_feature_spinlocks_spec.rb index 6c98c7a8..fcc2212a 100644 --- a/spec/models/v1_feature_spinlocks_spec.rb +++ b/spec/models/v1_feature_spinlocks_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_feature_state_spec.rb b/spec/models/v1_feature_state_spec.rb index e81f7342..e5d07dce 100644 --- a/spec/models/v1_feature_state_spec.rb +++ b/spec/models/v1_feature_state_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_feature_vendor_id_spec.rb b/spec/models/v1_feature_vendor_id_spec.rb index cfceecc3..26d1fb50 100644 --- a/spec/models/v1_feature_vendor_id_spec.rb +++ b/spec/models/v1_feature_vendor_id_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_features_spec.rb b/spec/models/v1_features_spec.rb index 21e0a440..cad73b8e 100644 --- a/spec/models/v1_features_spec.rb +++ b/spec/models/v1_features_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_filesystem_spec.rb b/spec/models/v1_filesystem_spec.rb index 5985ca6f..e3924976 100644 --- a/spec/models/v1_filesystem_spec.rb +++ b/spec/models/v1_filesystem_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_firmware_spec.rb b/spec/models/v1_firmware_spec.rb index eb920579..092e9bea 100644 --- a/spec/models/v1_firmware_spec.rb +++ b/spec/models/v1_firmware_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_flags_spec.rb b/spec/models/v1_flags_spec.rb index 320d0747..cb7d23c7 100644 --- a/spec/models/v1_flags_spec.rb +++ b/spec/models/v1_flags_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_freeze_unfreeze_timeout_spec.rb b/spec/models/v1_freeze_unfreeze_timeout_spec.rb index 7795b8a0..7bc5c4f6 100644 --- a/spec/models/v1_freeze_unfreeze_timeout_spec.rb +++ b/spec/models/v1_freeze_unfreeze_timeout_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_generation_status_spec.rb b/spec/models/v1_generation_status_spec.rb index 3fc65b46..2385e8d1 100644 --- a/spec/models/v1_generation_status_spec.rb +++ b/spec/models/v1_generation_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_gpu_spec.rb b/spec/models/v1_gpu_spec.rb index c6bdc773..2acb7edb 100644 --- a/spec/models/v1_gpu_spec.rb +++ b/spec/models/v1_gpu_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_guest_agent_command_info_spec.rb b/spec/models/v1_guest_agent_command_info_spec.rb index 28271b15..591067a6 100644 --- a/spec/models/v1_guest_agent_command_info_spec.rb +++ b/spec/models/v1_guest_agent_command_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_host_device_spec.rb b/spec/models/v1_host_device_spec.rb index 305f4daf..895a7728 100644 --- a/spec/models/v1_host_device_spec.rb +++ b/spec/models/v1_host_device_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_host_disk_spec.rb b/spec/models/v1_host_disk_spec.rb index a64f5f3c..a0d7cced 100644 --- a/spec/models/v1_host_disk_spec.rb +++ b/spec/models/v1_host_disk_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_hotplug_volume_source_spec.rb b/spec/models/v1_hotplug_volume_source_spec.rb index 80a8230f..e89107db 100644 --- a/spec/models/v1_hotplug_volume_source_spec.rb +++ b/spec/models/v1_hotplug_volume_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_hotplug_volume_status_spec.rb b/spec/models/v1_hotplug_volume_status_spec.rb index f3e7561c..c80d1ed7 100644 --- a/spec/models/v1_hotplug_volume_status_spec.rb +++ b/spec/models/v1_hotplug_volume_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_hpet_timer_spec.rb b/spec/models/v1_hpet_timer_spec.rb index 91e0f918..469b05a3 100644 --- a/spec/models/v1_hpet_timer_spec.rb +++ b/spec/models/v1_hpet_timer_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_hugepages_spec.rb b/spec/models/v1_hugepages_spec.rb index 360384c3..2d413b3d 100644 --- a/spec/models/v1_hugepages_spec.rb +++ b/spec/models/v1_hugepages_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_hyper_v_passthrough_spec.rb b/spec/models/v1_hyper_v_passthrough_spec.rb index c71e965f..d116f675 100644 --- a/spec/models/v1_hyper_v_passthrough_spec.rb +++ b/spec/models/v1_hyper_v_passthrough_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_hyperv_timer_spec.rb b/spec/models/v1_hyperv_timer_spec.rb index 03bbc4da..3099984b 100644 --- a/spec/models/v1_hyperv_timer_spec.rb +++ b/spec/models/v1_hyperv_timer_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_i6300_esb_watchdog_spec.rb b/spec/models/v1_i6300_esb_watchdog_spec.rb index 178abe18..f11c466e 100644 --- a/spec/models/v1_i6300_esb_watchdog_spec.rb +++ b/spec/models/v1_i6300_esb_watchdog_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_initrd_info_spec.rb b/spec/models/v1_initrd_info_spec.rb index 12cc9228..3f442af1 100644 --- a/spec/models/v1_initrd_info_spec.rb +++ b/spec/models/v1_initrd_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_input_spec.rb b/spec/models/v1_input_spec.rb index 3df0ce27..934e355b 100644 --- a/spec/models/v1_input_spec.rb +++ b/spec/models/v1_input_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_instancetype_configuration_spec.rb b/spec/models/v1_instancetype_configuration_spec.rb index 83808347..8172f711 100644 --- a/spec/models/v1_instancetype_configuration_spec.rb +++ b/spec/models/v1_instancetype_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_instancetype_matcher_spec.rb b/spec/models/v1_instancetype_matcher_spec.rb index c02c68fa..7afcec67 100644 --- a/spec/models/v1_instancetype_matcher_spec.rb +++ b/spec/models/v1_instancetype_matcher_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1alpha1_condition_spec.rb b/spec/models/v1_instancetype_status_ref_spec.rb similarity index 56% rename from spec/models/v1alpha1_condition_spec.rb rename to spec/models/v1_instancetype_status_ref_spec.rb index 234afc34..e63cf29d 100644 --- a/spec/models/v1alpha1_condition_spec.rb +++ b/spec/models/v1_instancetype_status_ref_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -14,38 +14,44 @@ require 'json' require 'date' -# Unit tests for Kubevirt::V1alpha1Condition +# Unit tests for Kubevirt::V1InstancetypeStatusRef # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe Kubevirt::V1alpha1Condition do - let(:instance) { Kubevirt::V1alpha1Condition.new } +describe Kubevirt::V1InstancetypeStatusRef do + let(:instance) { Kubevirt::V1InstancetypeStatusRef.new } - describe 'test an instance of V1alpha1Condition' do - it 'should create an instance of V1alpha1Condition' do + describe 'test an instance of V1InstancetypeStatusRef' do + it 'should create an instance of V1InstancetypeStatusRef' do # uncomment below to test the instance creation - #expect(instance).to be_instance_of(Kubevirt::V1alpha1Condition) + #expect(instance).to be_instance_of(Kubevirt::V1InstancetypeStatusRef) end end - describe 'test attribute "message"' do + describe 'test attribute "controller_revision_ref"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end - describe 'test attribute "reason"' do + describe 'test attribute "infer_from_volume"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end - describe 'test attribute "status"' do + describe 'test attribute "infer_from_volume_failure_policy"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end end - describe 'test attribute "type"' do + describe 'test attribute "kind"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ end diff --git a/spec/models/v1_interface_binding_migration_spec.rb b/spec/models/v1_interface_binding_migration_spec.rb index a88acab8..dd2fc6e0 100644 --- a/spec/models/v1_interface_binding_migration_spec.rb +++ b/spec/models/v1_interface_binding_migration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_interface_binding_plugin_spec.rb b/spec/models/v1_interface_binding_plugin_spec.rb index bf0f738f..15d774e9 100644 --- a/spec/models/v1_interface_binding_plugin_spec.rb +++ b/spec/models/v1_interface_binding_plugin_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_interface_spec.rb b/spec/models/v1_interface_spec.rb index 61f5ae05..dbfd3fcf 100644 --- a/spec/models/v1_interface_spec.rb +++ b/spec/models/v1_interface_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_kernel_boot_container_spec.rb b/spec/models/v1_kernel_boot_container_spec.rb index c6145151..51ecc2e7 100644 --- a/spec/models/v1_kernel_boot_container_spec.rb +++ b/spec/models/v1_kernel_boot_container_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_kernel_boot_spec.rb b/spec/models/v1_kernel_boot_spec.rb index 4a9421b4..31b2818c 100644 --- a/spec/models/v1_kernel_boot_spec.rb +++ b/spec/models/v1_kernel_boot_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_kernel_boot_status_spec.rb b/spec/models/v1_kernel_boot_status_spec.rb index 2067b931..611592fd 100644 --- a/spec/models/v1_kernel_boot_status_spec.rb +++ b/spec/models/v1_kernel_boot_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_kernel_info_spec.rb b/spec/models/v1_kernel_info_spec.rb index bb3f79ae..59fab82c 100644 --- a/spec/models/v1_kernel_info_spec.rb +++ b/spec/models/v1_kernel_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_ksm_configuration_spec.rb b/spec/models/v1_ksm_configuration_spec.rb index 32e4f5f9..7d7f669a 100644 --- a/spec/models/v1_ksm_configuration_spec.rb +++ b/spec/models/v1_ksm_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_kube_virt_certificate_rotate_strategy_spec.rb b/spec/models/v1_kube_virt_certificate_rotate_strategy_spec.rb index 3e61d870..61bfd524 100644 --- a/spec/models/v1_kube_virt_certificate_rotate_strategy_spec.rb +++ b/spec/models/v1_kube_virt_certificate_rotate_strategy_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_kube_virt_condition_spec.rb b/spec/models/v1_kube_virt_condition_spec.rb index 72e6f2db..6c4d2bc3 100644 --- a/spec/models/v1_kube_virt_condition_spec.rb +++ b/spec/models/v1_kube_virt_condition_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_kube_virt_configuration_spec.rb b/spec/models/v1_kube_virt_configuration_spec.rb index 1f1f1896..3c761fdb 100644 --- a/spec/models/v1_kube_virt_configuration_spec.rb +++ b/spec/models/v1_kube_virt_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_kube_virt_list_spec.rb b/spec/models/v1_kube_virt_list_spec.rb index 51992ada..75cc6640 100644 --- a/spec/models/v1_kube_virt_list_spec.rb +++ b/spec/models/v1_kube_virt_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_kube_virt_self_sign_configuration_spec.rb b/spec/models/v1_kube_virt_self_sign_configuration_spec.rb index 8a91800c..d4b5dfa6 100644 --- a/spec/models/v1_kube_virt_self_sign_configuration_spec.rb +++ b/spec/models/v1_kube_virt_self_sign_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_kube_virt_spec.rb b/spec/models/v1_kube_virt_spec.rb index 112b1be2..2965c180 100644 --- a/spec/models/v1_kube_virt_spec.rb +++ b/spec/models/v1_kube_virt_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_kube_virt_spec_spec.rb b/spec/models/v1_kube_virt_spec_spec.rb index 07c01d53..09b42780 100644 --- a/spec/models/v1_kube_virt_spec_spec.rb +++ b/spec/models/v1_kube_virt_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_kube_virt_status_spec.rb b/spec/models/v1_kube_virt_status_spec.rb index bcf248a9..704cf308 100644 --- a/spec/models/v1_kube_virt_status_spec.rb +++ b/spec/models/v1_kube_virt_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_kube_virt_workload_update_strategy_spec.rb b/spec/models/v1_kube_virt_workload_update_strategy_spec.rb index d9896b05..b3823cac 100644 --- a/spec/models/v1_kube_virt_workload_update_strategy_spec.rb +++ b/spec/models/v1_kube_virt_workload_update_strategy_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_kvm_timer_spec.rb b/spec/models/v1_kvm_timer_spec.rb index d809764d..dab09853 100644 --- a/spec/models/v1_kvm_timer_spec.rb +++ b/spec/models/v1_kvm_timer_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_launch_security_spec.rb b/spec/models/v1_launch_security_spec.rb index 2701567a..0cac9070 100644 --- a/spec/models/v1_launch_security_spec.rb +++ b/spec/models/v1_launch_security_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_live_update_configuration_spec.rb b/spec/models/v1_live_update_configuration_spec.rb index e3c9505e..2ec9300f 100644 --- a/spec/models/v1_live_update_configuration_spec.rb +++ b/spec/models/v1_live_update_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_log_verbosity_spec.rb b/spec/models/v1_log_verbosity_spec.rb index 26cb780f..15458f67 100644 --- a/spec/models/v1_log_verbosity_spec.rb +++ b/spec/models/v1_log_verbosity_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_lun_target_spec.rb b/spec/models/v1_lun_target_spec.rb index d645095e..2d66dfdf 100644 --- a/spec/models/v1_lun_target_spec.rb +++ b/spec/models/v1_lun_target_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_machine_spec.rb b/spec/models/v1_machine_spec.rb index 70e6803a..570f5b02 100644 --- a/spec/models/v1_machine_spec.rb +++ b/spec/models/v1_machine_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_mediated_devices_configuration_spec.rb b/spec/models/v1_mediated_devices_configuration_spec.rb index 7ef8c8ff..52d58da8 100644 --- a/spec/models/v1_mediated_devices_configuration_spec.rb +++ b/spec/models/v1_mediated_devices_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_mediated_host_device_spec.rb b/spec/models/v1_mediated_host_device_spec.rb index 1a93641c..fb37e739 100644 --- a/spec/models/v1_mediated_host_device_spec.rb +++ b/spec/models/v1_mediated_host_device_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_memory_dump_volume_source_spec.rb b/spec/models/v1_memory_dump_volume_source_spec.rb index ed7222c9..3c4d6ab1 100644 --- a/spec/models/v1_memory_dump_volume_source_spec.rb +++ b/spec/models/v1_memory_dump_volume_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_memory_spec.rb b/spec/models/v1_memory_spec.rb index f9f9aafc..0f137d30 100644 --- a/spec/models/v1_memory_spec.rb +++ b/spec/models/v1_memory_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_memory_status_spec.rb b/spec/models/v1_memory_status_spec.rb index 4376c3bc..8bf99fa2 100644 --- a/spec/models/v1_memory_status_spec.rb +++ b/spec/models/v1_memory_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_migrate_options_spec.rb b/spec/models/v1_migrate_options_spec.rb index 39c10610..e588f9b6 100644 --- a/spec/models/v1_migrate_options_spec.rb +++ b/spec/models/v1_migrate_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,6 +27,12 @@ end end + describe 'test attribute "added_node_selector"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + describe 'test attribute "api_version"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/spec/models/v1_migration_configuration_spec.rb b/spec/models/v1_migration_configuration_spec.rb index f2e0fbfb..b1a0e777 100644 --- a/spec/models/v1_migration_configuration_spec.rb +++ b/spec/models/v1_migration_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_multus_network_spec.rb b/spec/models/v1_multus_network_spec.rb index e5a47ee1..8a2fb6cb 100644 --- a/spec/models/v1_multus_network_spec.rb +++ b/spec/models/v1_multus_network_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_network_configuration_spec.rb b/spec/models/v1_network_configuration_spec.rb index c2ae6b8b..fcd3f3e0 100644 --- a/spec/models/v1_network_configuration_spec.rb +++ b/spec/models/v1_network_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_network_spec.rb b/spec/models/v1_network_spec.rb index 8e95851a..9a90261c 100644 --- a/spec/models/v1_network_spec.rb +++ b/spec/models/v1_network_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_node_mediated_device_types_config_spec.rb b/spec/models/v1_node_mediated_device_types_config_spec.rb index 3ff74ba0..d8ed539e 100644 --- a/spec/models/v1_node_mediated_device_types_config_spec.rb +++ b/spec/models/v1_node_mediated_device_types_config_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_node_placement_spec.rb b/spec/models/v1_node_placement_spec.rb index 49a5e3a9..3defcfdd 100644 --- a/spec/models/v1_node_placement_spec.rb +++ b/spec/models/v1_node_placement_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_numa_spec.rb b/spec/models/v1_numa_spec.rb index 2cf9eba4..9c55eca0 100644 --- a/spec/models/v1_numa_spec.rb +++ b/spec/models/v1_numa_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_pause_options_spec.rb b/spec/models/v1_pause_options_spec.rb index 67d0fe60..8945dbd1 100644 --- a/spec/models/v1_pause_options_spec.rb +++ b/spec/models/v1_pause_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_pci_host_device_spec.rb b/spec/models/v1_pci_host_device_spec.rb index 032d70c0..838b488d 100644 --- a/spec/models/v1_pci_host_device_spec.rb +++ b/spec/models/v1_pci_host_device_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_permitted_host_devices_spec.rb b/spec/models/v1_permitted_host_devices_spec.rb index 5c0d0670..83ca8ead 100644 --- a/spec/models/v1_permitted_host_devices_spec.rb +++ b/spec/models/v1_permitted_host_devices_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_persistent_volume_claim_info_spec.rb b/spec/models/v1_persistent_volume_claim_info_spec.rb index 4ff5ec88..3dca7738 100644 --- a/spec/models/v1_persistent_volume_claim_info_spec.rb +++ b/spec/models/v1_persistent_volume_claim_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_persistent_volume_claim_volume_source_spec.rb b/spec/models/v1_persistent_volume_claim_volume_source_spec.rb index 5d219512..54204362 100644 --- a/spec/models/v1_persistent_volume_claim_volume_source_spec.rb +++ b/spec/models/v1_persistent_volume_claim_volume_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_pit_timer_spec.rb b/spec/models/v1_pit_timer_spec.rb index 40bf6f51..842881e6 100644 --- a/spec/models/v1_pit_timer_spec.rb +++ b/spec/models/v1_pit_timer_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_plugin_binding_spec.rb b/spec/models/v1_plugin_binding_spec.rb index 8606e265..1030133e 100644 --- a/spec/models/v1_plugin_binding_spec.rb +++ b/spec/models/v1_plugin_binding_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_pod_network_spec.rb b/spec/models/v1_pod_network_spec.rb index f0350382..df44b20a 100644 --- a/spec/models/v1_pod_network_spec.rb +++ b/spec/models/v1_pod_network_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_port_spec.rb b/spec/models/v1_port_spec.rb index 4f88f258..4a2d768b 100644 --- a/spec/models/v1_port_spec.rb +++ b/spec/models/v1_port_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_preference_matcher_spec.rb b/spec/models/v1_preference_matcher_spec.rb index 00ed9963..4e9e5f4c 100644 --- a/spec/models/v1_preference_matcher_spec.rb +++ b/spec/models/v1_preference_matcher_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_probe_spec.rb b/spec/models/v1_probe_spec.rb index a3462d2e..bfc501c5 100644 --- a/spec/models/v1_probe_spec.rb +++ b/spec/models/v1_probe_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_qemu_guest_agent_ssh_public_key_access_credential_propagation_spec.rb b/spec/models/v1_qemu_guest_agent_ssh_public_key_access_credential_propagation_spec.rb index 0f9f8b32..b7b7ba36 100644 --- a/spec/models/v1_qemu_guest_agent_ssh_public_key_access_credential_propagation_spec.rb +++ b/spec/models/v1_qemu_guest_agent_ssh_public_key_access_credential_propagation_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_rate_limiter_spec.rb b/spec/models/v1_rate_limiter_spec.rb index 319a82d8..634aecb1 100644 --- a/spec/models/v1_rate_limiter_spec.rb +++ b/spec/models/v1_rate_limiter_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_realtime_spec.rb b/spec/models/v1_realtime_spec.rb index 6211bf25..1b9c9677 100644 --- a/spec/models/v1_realtime_spec.rb +++ b/spec/models/v1_realtime_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_reloadable_component_configuration_spec.rb b/spec/models/v1_reloadable_component_configuration_spec.rb index 60b49e0e..981f679a 100644 --- a/spec/models/v1_reloadable_component_configuration_spec.rb +++ b/spec/models/v1_reloadable_component_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_remove_volume_options_spec.rb b/spec/models/v1_remove_volume_options_spec.rb index e43876fc..cf67437f 100644 --- a/spec/models/v1_remove_volume_options_spec.rb +++ b/spec/models/v1_remove_volume_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_resource_requirements_spec.rb b/spec/models/v1_resource_requirements_spec.rb index 60e9e041..503e6926 100644 --- a/spec/models/v1_resource_requirements_spec.rb +++ b/spec/models/v1_resource_requirements_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_resource_requirements_without_claims_spec.rb b/spec/models/v1_resource_requirements_without_claims_spec.rb index 1333fe52..f8f0b15f 100644 --- a/spec/models/v1_resource_requirements_without_claims_spec.rb +++ b/spec/models/v1_resource_requirements_without_claims_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_rest_client_configuration_spec.rb b/spec/models/v1_rest_client_configuration_spec.rb index 462e7a8d..749b9fe3 100644 --- a/spec/models/v1_rest_client_configuration_spec.rb +++ b/spec/models/v1_rest_client_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_restart_options_spec.rb b/spec/models/v1_restart_options_spec.rb index e1eae51d..dd0855de 100644 --- a/spec/models/v1_restart_options_spec.rb +++ b/spec/models/v1_restart_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_rtc_timer_spec.rb b/spec/models/v1_rtc_timer_spec.rb index a7ab4d3f..2cb00730 100644 --- a/spec/models/v1_rtc_timer_spec.rb +++ b/spec/models/v1_rtc_timer_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_seccomp_configuration_spec.rb b/spec/models/v1_seccomp_configuration_spec.rb index 47f8bfc1..9a0a8135 100644 --- a/spec/models/v1_seccomp_configuration_spec.rb +++ b/spec/models/v1_seccomp_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_secret_volume_source_spec.rb b/spec/models/v1_secret_volume_source_spec.rb index d2855119..7b05e048 100644 --- a/spec/models/v1_secret_volume_source_spec.rb +++ b/spec/models/v1_secret_volume_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_service_account_volume_source_spec.rb b/spec/models/v1_service_account_volume_source_spec.rb index 36871369..7ce774c7 100644 --- a/spec/models/v1_service_account_volume_source_spec.rb +++ b/spec/models/v1_service_account_volume_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_sev_measurement_info_spec.rb b/spec/models/v1_sev_measurement_info_spec.rb index c45dcd32..79310d78 100644 --- a/spec/models/v1_sev_measurement_info_spec.rb +++ b/spec/models/v1_sev_measurement_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_sev_platform_info_spec.rb b/spec/models/v1_sev_platform_info_spec.rb index 0e662215..07c46774 100644 --- a/spec/models/v1_sev_platform_info_spec.rb +++ b/spec/models/v1_sev_platform_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_sev_policy_spec.rb b/spec/models/v1_sev_policy_spec.rb index 52e70d2a..ac6ee3fb 100644 --- a/spec/models/v1_sev_policy_spec.rb +++ b/spec/models/v1_sev_policy_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_sev_secret_options_spec.rb b/spec/models/v1_sev_secret_options_spec.rb index b66b2018..6e48622c 100644 --- a/spec/models/v1_sev_secret_options_spec.rb +++ b/spec/models/v1_sev_secret_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_sev_session_options_spec.rb b/spec/models/v1_sev_session_options_spec.rb index 416f22f1..16e27b73 100644 --- a/spec/models/v1_sev_session_options_spec.rb +++ b/spec/models/v1_sev_session_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_sev_spec.rb b/spec/models/v1_sev_spec.rb index 2d5a9c0f..f53a3836 100644 --- a/spec/models/v1_sev_spec.rb +++ b/spec/models/v1_sev_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_sm_bios_configuration_spec.rb b/spec/models/v1_sm_bios_configuration_spec.rb index 3240bc45..52d167f3 100644 --- a/spec/models/v1_sm_bios_configuration_spec.rb +++ b/spec/models/v1_sm_bios_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_sound_device_spec.rb b/spec/models/v1_sound_device_spec.rb index 1e719c20..f6375eef 100644 --- a/spec/models/v1_sound_device_spec.rb +++ b/spec/models/v1_sound_device_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_ssh_public_key_access_credential_propagation_method_spec.rb b/spec/models/v1_ssh_public_key_access_credential_propagation_method_spec.rb index bac45e85..e909688a 100644 --- a/spec/models/v1_ssh_public_key_access_credential_propagation_method_spec.rb +++ b/spec/models/v1_ssh_public_key_access_credential_propagation_method_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_ssh_public_key_access_credential_source_spec.rb b/spec/models/v1_ssh_public_key_access_credential_source_spec.rb index 8c93af9d..1805b404 100644 --- a/spec/models/v1_ssh_public_key_access_credential_source_spec.rb +++ b/spec/models/v1_ssh_public_key_access_credential_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_ssh_public_key_access_credential_spec.rb b/spec/models/v1_ssh_public_key_access_credential_spec.rb index 6e9c44a8..2d017e7b 100644 --- a/spec/models/v1_ssh_public_key_access_credential_spec.rb +++ b/spec/models/v1_ssh_public_key_access_credential_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_start_options_spec.rb b/spec/models/v1_start_options_spec.rb index 26c80114..82fe02a9 100644 --- a/spec/models/v1_start_options_spec.rb +++ b/spec/models/v1_start_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_stop_options_spec.rb b/spec/models/v1_stop_options_spec.rb index cb37fceb..845725a5 100644 --- a/spec/models/v1_stop_options_spec.rb +++ b/spec/models/v1_stop_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_storage_migrated_volume_info_spec.rb b/spec/models/v1_storage_migrated_volume_info_spec.rb index b97d4c48..bdc83987 100644 --- a/spec/models/v1_storage_migrated_volume_info_spec.rb +++ b/spec/models/v1_storage_migrated_volume_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_support_container_resources_spec.rb b/spec/models/v1_support_container_resources_spec.rb index 430af65d..57f9633b 100644 --- a/spec/models/v1_support_container_resources_spec.rb +++ b/spec/models/v1_support_container_resources_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_sy_nic_timer_spec.rb b/spec/models/v1_sy_nic_timer_spec.rb index 8d761839..14d9ce47 100644 --- a/spec/models/v1_sy_nic_timer_spec.rb +++ b/spec/models/v1_sy_nic_timer_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_sysprep_source_spec.rb b/spec/models/v1_sysprep_source_spec.rb index d2eece68..fc25f65c 100644 --- a/spec/models/v1_sysprep_source_spec.rb +++ b/spec/models/v1_sysprep_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_timer_spec.rb b/spec/models/v1_timer_spec.rb index a01a6497..91d2a474 100644 --- a/spec/models/v1_timer_spec.rb +++ b/spec/models/v1_timer_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_tls_configuration_spec.rb b/spec/models/v1_tls_configuration_spec.rb index 051d4e23..c37d1e84 100644 --- a/spec/models/v1_tls_configuration_spec.rb +++ b/spec/models/v1_tls_configuration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_token_bucket_rate_limiter_spec.rb b/spec/models/v1_token_bucket_rate_limiter_spec.rb index e432054f..52ea4d64 100644 --- a/spec/models/v1_token_bucket_rate_limiter_spec.rb +++ b/spec/models/v1_token_bucket_rate_limiter_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_topology_hints_spec.rb b/spec/models/v1_topology_hints_spec.rb index b768f239..d546ffbb 100644 --- a/spec/models/v1_topology_hints_spec.rb +++ b/spec/models/v1_topology_hints_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_tpm_device_spec.rb b/spec/models/v1_tpm_device_spec.rb index b2699d72..488b1e32 100644 --- a/spec/models/v1_tpm_device_spec.rb +++ b/spec/models/v1_tpm_device_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_unpause_options_spec.rb b/spec/models/v1_unpause_options_spec.rb index e0e2d735..fdbfe21e 100644 --- a/spec/models/v1_unpause_options_spec.rb +++ b/spec/models/v1_unpause_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_usb_host_device_spec.rb b/spec/models/v1_usb_host_device_spec.rb index 1b9bbb29..98632520 100644 --- a/spec/models/v1_usb_host_device_spec.rb +++ b/spec/models/v1_usb_host_device_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_usb_selector_spec.rb b/spec/models/v1_usb_selector_spec.rb index f3bdd2fd..5604e164 100644 --- a/spec/models/v1_usb_selector_spec.rb +++ b/spec/models/v1_usb_selector_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_user_password_access_credential_propagation_method_spec.rb b/spec/models/v1_user_password_access_credential_propagation_method_spec.rb index 4aae1ad4..c84aefa6 100644 --- a/spec/models/v1_user_password_access_credential_propagation_method_spec.rb +++ b/spec/models/v1_user_password_access_credential_propagation_method_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_user_password_access_credential_source_spec.rb b/spec/models/v1_user_password_access_credential_source_spec.rb index 181f9ad6..a6207d22 100644 --- a/spec/models/v1_user_password_access_credential_source_spec.rb +++ b/spec/models/v1_user_password_access_credential_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_user_password_access_credential_spec.rb b/spec/models/v1_user_password_access_credential_spec.rb index 9c939279..814bd20e 100644 --- a/spec/models/v1_user_password_access_credential_spec.rb +++ b/spec/models/v1_user_password_access_credential_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_vgpu_display_options_spec.rb b/spec/models/v1_vgpu_display_options_spec.rb index 525260c7..1dba053e 100644 --- a/spec/models/v1_vgpu_display_options_spec.rb +++ b/spec/models/v1_vgpu_display_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_vgpu_options_spec.rb b/spec/models/v1_vgpu_options_spec.rb index d18c5bc6..596ec5aa 100644 --- a/spec/models/v1_vgpu_options_spec.rb +++ b/spec/models/v1_vgpu_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_condition_spec.rb b/spec/models/v1_virtual_machine_condition_spec.rb index 2aadfa7d..c4ea6be2 100644 --- a/spec/models/v1_virtual_machine_condition_spec.rb +++ b/spec/models/v1_virtual_machine_condition_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_condition_spec.rb b/spec/models/v1_virtual_machine_instance_condition_spec.rb index 4bc4685e..712755ab 100644 --- a/spec/models/v1_virtual_machine_instance_condition_spec.rb +++ b/spec/models/v1_virtual_machine_instance_condition_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_file_system_disk_spec.rb b/spec/models/v1_virtual_machine_instance_file_system_disk_spec.rb index 483e137f..63f7416d 100644 --- a/spec/models/v1_virtual_machine_instance_file_system_disk_spec.rb +++ b/spec/models/v1_virtual_machine_instance_file_system_disk_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_file_system_info_spec.rb b/spec/models/v1_virtual_machine_instance_file_system_info_spec.rb index 44a3385c..2804d00e 100644 --- a/spec/models/v1_virtual_machine_instance_file_system_info_spec.rb +++ b/spec/models/v1_virtual_machine_instance_file_system_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_file_system_list_spec.rb b/spec/models/v1_virtual_machine_instance_file_system_list_spec.rb index 80434b3a..54503b90 100644 --- a/spec/models/v1_virtual_machine_instance_file_system_list_spec.rb +++ b/spec/models/v1_virtual_machine_instance_file_system_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_file_system_spec.rb b/spec/models/v1_virtual_machine_instance_file_system_spec.rb index 47ef575f..1e9dace9 100644 --- a/spec/models/v1_virtual_machine_instance_file_system_spec.rb +++ b/spec/models/v1_virtual_machine_instance_file_system_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_guest_agent_info_spec.rb b/spec/models/v1_virtual_machine_instance_guest_agent_info_spec.rb index a5ade0d8..73778e3c 100644 --- a/spec/models/v1_virtual_machine_instance_guest_agent_info_spec.rb +++ b/spec/models/v1_virtual_machine_instance_guest_agent_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_guest_os_info_spec.rb b/spec/models/v1_virtual_machine_instance_guest_os_info_spec.rb index 8ceba2b0..ede4f826 100644 --- a/spec/models/v1_virtual_machine_instance_guest_os_info_spec.rb +++ b/spec/models/v1_virtual_machine_instance_guest_os_info_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_guest_os_user_list_spec.rb b/spec/models/v1_virtual_machine_instance_guest_os_user_list_spec.rb index 1403a293..257a9a87 100644 --- a/spec/models/v1_virtual_machine_instance_guest_os_user_list_spec.rb +++ b/spec/models/v1_virtual_machine_instance_guest_os_user_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_guest_os_user_spec.rb b/spec/models/v1_virtual_machine_instance_guest_os_user_spec.rb index 2e61785d..3fbc350f 100644 --- a/spec/models/v1_virtual_machine_instance_guest_os_user_spec.rb +++ b/spec/models/v1_virtual_machine_instance_guest_os_user_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_list_spec.rb b/spec/models/v1_virtual_machine_instance_list_spec.rb index acd310f3..48ebc7fb 100644 --- a/spec/models/v1_virtual_machine_instance_list_spec.rb +++ b/spec/models/v1_virtual_machine_instance_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_migration_condition_spec.rb b/spec/models/v1_virtual_machine_instance_migration_condition_spec.rb index 7fcbb8c1..3de10129 100644 --- a/spec/models/v1_virtual_machine_instance_migration_condition_spec.rb +++ b/spec/models/v1_virtual_machine_instance_migration_condition_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_migration_list_spec.rb b/spec/models/v1_virtual_machine_instance_migration_list_spec.rb index 8e7edeaf..f5868039 100644 --- a/spec/models/v1_virtual_machine_instance_migration_list_spec.rb +++ b/spec/models/v1_virtual_machine_instance_migration_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_migration_phase_transition_timestamp_spec.rb b/spec/models/v1_virtual_machine_instance_migration_phase_transition_timestamp_spec.rb index 8aa29f1f..c4cdd890 100644 --- a/spec/models/v1_virtual_machine_instance_migration_phase_transition_timestamp_spec.rb +++ b/spec/models/v1_virtual_machine_instance_migration_phase_transition_timestamp_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_migration_spec.rb b/spec/models/v1_virtual_machine_instance_migration_spec.rb index 68cfa165..1bf9350d 100644 --- a/spec/models/v1_virtual_machine_instance_migration_spec.rb +++ b/spec/models/v1_virtual_machine_instance_migration_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_migration_spec_spec.rb b/spec/models/v1_virtual_machine_instance_migration_spec_spec.rb index 9ef25acc..876ce4f2 100644 --- a/spec/models/v1_virtual_machine_instance_migration_spec_spec.rb +++ b/spec/models/v1_virtual_machine_instance_migration_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,6 +27,12 @@ end end + describe 'test attribute "added_node_selector"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + describe 'test attribute "vmi_name"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/spec/models/v1_virtual_machine_instance_migration_state_spec.rb b/spec/models/v1_virtual_machine_instance_migration_state_spec.rb index 70a7366a..8c99a796 100644 --- a/spec/models/v1_virtual_machine_instance_migration_state_spec.rb +++ b/spec/models/v1_virtual_machine_instance_migration_state_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_migration_status_spec.rb b/spec/models/v1_virtual_machine_instance_migration_status_spec.rb index 9d770dd1..087083ad 100644 --- a/spec/models/v1_virtual_machine_instance_migration_status_spec.rb +++ b/spec/models/v1_virtual_machine_instance_migration_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_network_interface_spec.rb b/spec/models/v1_virtual_machine_instance_network_interface_spec.rb index ffbd5dff..cecf930f 100644 --- a/spec/models/v1_virtual_machine_instance_network_interface_spec.rb +++ b/spec/models/v1_virtual_machine_instance_network_interface_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -51,6 +51,12 @@ end end + describe 'test attribute "link_state"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + describe 'test attribute "mac"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/spec/models/v1_virtual_machine_instance_phase_transition_timestamp_spec.rb b/spec/models/v1_virtual_machine_instance_phase_transition_timestamp_spec.rb index 29a829c8..1f52055b 100644 --- a/spec/models/v1_virtual_machine_instance_phase_transition_timestamp_spec.rb +++ b/spec/models/v1_virtual_machine_instance_phase_transition_timestamp_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_preset_list_spec.rb b/spec/models/v1_virtual_machine_instance_preset_list_spec.rb index f11b995d..1d4a1629 100644 --- a/spec/models/v1_virtual_machine_instance_preset_list_spec.rb +++ b/spec/models/v1_virtual_machine_instance_preset_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_preset_spec.rb b/spec/models/v1_virtual_machine_instance_preset_spec.rb index 1a81219f..4e9f9032 100644 --- a/spec/models/v1_virtual_machine_instance_preset_spec.rb +++ b/spec/models/v1_virtual_machine_instance_preset_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_preset_spec_spec.rb b/spec/models/v1_virtual_machine_instance_preset_spec_spec.rb index 552cee59..4fa4025e 100644 --- a/spec/models/v1_virtual_machine_instance_preset_spec_spec.rb +++ b/spec/models/v1_virtual_machine_instance_preset_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_profile_spec.rb b/spec/models/v1_virtual_machine_instance_profile_spec.rb index f36baa5b..d7971fd1 100644 --- a/spec/models/v1_virtual_machine_instance_profile_spec.rb +++ b/spec/models/v1_virtual_machine_instance_profile_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_replica_set_condition_spec.rb b/spec/models/v1_virtual_machine_instance_replica_set_condition_spec.rb index 16403c3d..f7f57400 100644 --- a/spec/models/v1_virtual_machine_instance_replica_set_condition_spec.rb +++ b/spec/models/v1_virtual_machine_instance_replica_set_condition_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_replica_set_list_spec.rb b/spec/models/v1_virtual_machine_instance_replica_set_list_spec.rb index 97b35c8f..80bc8853 100644 --- a/spec/models/v1_virtual_machine_instance_replica_set_list_spec.rb +++ b/spec/models/v1_virtual_machine_instance_replica_set_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_replica_set_spec.rb b/spec/models/v1_virtual_machine_instance_replica_set_spec.rb index c02ef67e..1017a82a 100644 --- a/spec/models/v1_virtual_machine_instance_replica_set_spec.rb +++ b/spec/models/v1_virtual_machine_instance_replica_set_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_replica_set_spec_spec.rb b/spec/models/v1_virtual_machine_instance_replica_set_spec_spec.rb index 6fec168e..960a82b3 100644 --- a/spec/models/v1_virtual_machine_instance_replica_set_spec_spec.rb +++ b/spec/models/v1_virtual_machine_instance_replica_set_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_replica_set_status_spec.rb b/spec/models/v1_virtual_machine_instance_replica_set_status_spec.rb index 02b69254..faf6aa62 100644 --- a/spec/models/v1_virtual_machine_instance_replica_set_status_spec.rb +++ b/spec/models/v1_virtual_machine_instance_replica_set_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_spec.rb b/spec/models/v1_virtual_machine_instance_spec.rb index 6bd0cd42..63ed41b7 100644 --- a/spec/models/v1_virtual_machine_instance_spec.rb +++ b/spec/models/v1_virtual_machine_instance_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_spec_spec.rb b/spec/models/v1_virtual_machine_instance_spec_spec.rb index bfe1e85f..7190d10b 100644 --- a/spec/models/v1_virtual_machine_instance_spec_spec.rb +++ b/spec/models/v1_virtual_machine_instance_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_status_spec.rb b/spec/models/v1_virtual_machine_instance_status_spec.rb index 31516326..44a7206d 100644 --- a/spec/models/v1_virtual_machine_instance_status_spec.rb +++ b/spec/models/v1_virtual_machine_instance_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_instance_template_spec_spec.rb b/spec/models/v1_virtual_machine_instance_template_spec_spec.rb index 3c11d031..47a0f116 100644 --- a/spec/models/v1_virtual_machine_instance_template_spec_spec.rb +++ b/spec/models/v1_virtual_machine_instance_template_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_list_spec.rb b/spec/models/v1_virtual_machine_list_spec.rb index 3c9a35af..fbb76fdb 100644 --- a/spec/models/v1_virtual_machine_list_spec.rb +++ b/spec/models/v1_virtual_machine_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_memory_dump_request_spec.rb b/spec/models/v1_virtual_machine_memory_dump_request_spec.rb index 6d0ba70e..ba705c4a 100644 --- a/spec/models/v1_virtual_machine_memory_dump_request_spec.rb +++ b/spec/models/v1_virtual_machine_memory_dump_request_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_options_spec.rb b/spec/models/v1_virtual_machine_options_spec.rb index 18b18986..f459698d 100644 --- a/spec/models/v1_virtual_machine_options_spec.rb +++ b/spec/models/v1_virtual_machine_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_spec.rb b/spec/models/v1_virtual_machine_spec.rb index ab6734ce..1397c6b9 100644 --- a/spec/models/v1_virtual_machine_spec.rb +++ b/spec/models/v1_virtual_machine_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_spec_spec.rb b/spec/models/v1_virtual_machine_spec_spec.rb index 05971389..50bc6318 100644 --- a/spec/models/v1_virtual_machine_spec_spec.rb +++ b/spec/models/v1_virtual_machine_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_start_failure_spec.rb b/spec/models/v1_virtual_machine_start_failure_spec.rb index 94c2677b..ee0b7ed9 100644 --- a/spec/models/v1_virtual_machine_start_failure_spec.rb +++ b/spec/models/v1_virtual_machine_start_failure_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_state_change_request_spec.rb b/spec/models/v1_virtual_machine_state_change_request_spec.rb index 94b1c081..c139107c 100644 --- a/spec/models/v1_virtual_machine_state_change_request_spec.rb +++ b/spec/models/v1_virtual_machine_state_change_request_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_virtual_machine_status_spec.rb b/spec/models/v1_virtual_machine_status_spec.rb index 58951703..dc9c5e26 100644 --- a/spec/models/v1_virtual_machine_status_spec.rb +++ b/spec/models/v1_virtual_machine_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -45,6 +45,12 @@ end end + describe 'test attribute "instancetype_ref"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + describe 'test attribute "memory_dump_request"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ @@ -57,6 +63,12 @@ end end + describe 'test attribute "preference_ref"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + describe 'test attribute "printable_status"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/spec/models/v1_virtual_machine_volume_request_spec.rb b/spec/models/v1_virtual_machine_volume_request_spec.rb index e35a3c38..c62fc423 100644 --- a/spec/models/v1_virtual_machine_volume_request_spec.rb +++ b/spec/models/v1_virtual_machine_volume_request_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_volume_migration_state_spec.rb b/spec/models/v1_volume_migration_state_spec.rb index 16b925b6..d0d4e6ae 100644 --- a/spec/models/v1_volume_migration_state_spec.rb +++ b/spec/models/v1_volume_migration_state_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_volume_snapshot_status_spec.rb b/spec/models/v1_volume_snapshot_status_spec.rb index 9a35711c..5c8d0f1e 100644 --- a/spec/models/v1_volume_snapshot_status_spec.rb +++ b/spec/models/v1_volume_snapshot_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_volume_spec.rb b/spec/models/v1_volume_spec.rb index 06a44c18..f6b89ce5 100644 --- a/spec/models/v1_volume_spec.rb +++ b/spec/models/v1_volume_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_volume_status_spec.rb b/spec/models/v1_volume_status_spec.rb index 3cd3b3ae..eb54acea 100644 --- a/spec/models/v1_volume_status_spec.rb +++ b/spec/models/v1_volume_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_volume_update_state_spec.rb b/spec/models/v1_volume_update_state_spec.rb index 982b90ea..e5656594 100644 --- a/spec/models/v1_volume_update_state_spec.rb +++ b/spec/models/v1_volume_update_state_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1_watchdog_spec.rb b/spec/models/v1_watchdog_spec.rb index 102ceda1..974fb381 100644 --- a/spec/models/v1_watchdog_spec.rb +++ b/spec/models/v1_watchdog_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1alpha1_migration_policy_list_spec.rb b/spec/models/v1alpha1_migration_policy_list_spec.rb index 319f7842..f66874cd 100644 --- a/spec/models/v1alpha1_migration_policy_list_spec.rb +++ b/spec/models/v1alpha1_migration_policy_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1alpha1_migration_policy_spec.rb b/spec/models/v1alpha1_migration_policy_spec.rb index 6cade4e3..4c7891fb 100644 --- a/spec/models/v1alpha1_migration_policy_spec.rb +++ b/spec/models/v1alpha1_migration_policy_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1alpha1_migration_policy_spec_spec.rb b/spec/models/v1alpha1_migration_policy_spec_spec.rb index 36dd2098..a078a939 100644 --- a/spec/models/v1alpha1_migration_policy_spec_spec.rb +++ b/spec/models/v1alpha1_migration_policy_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1alpha1_selectors_spec.rb b/spec/models/v1alpha1_selectors_spec.rb index 15c588b2..3391ed0f 100644 --- a/spec/models/v1alpha1_selectors_spec.rb +++ b/spec/models/v1alpha1_selectors_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1alpha1_virtual_machine_pool_condition_spec.rb b/spec/models/v1alpha1_virtual_machine_pool_condition_spec.rb index da6e03e3..d6dfe8d2 100644 --- a/spec/models/v1alpha1_virtual_machine_pool_condition_spec.rb +++ b/spec/models/v1alpha1_virtual_machine_pool_condition_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1alpha1_virtual_machine_pool_list_spec.rb b/spec/models/v1alpha1_virtual_machine_pool_list_spec.rb index bdbe5636..a815ae78 100644 --- a/spec/models/v1alpha1_virtual_machine_pool_list_spec.rb +++ b/spec/models/v1alpha1_virtual_machine_pool_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1alpha1_virtual_machine_pool_name_generation_spec.rb b/spec/models/v1alpha1_virtual_machine_pool_name_generation_spec.rb new file mode 100644 index 00000000..de11d1c1 --- /dev/null +++ b/spec/models/v1alpha1_virtual_machine_pool_name_generation_spec.rb @@ -0,0 +1,42 @@ +=begin +#KubeVirt API + +#This is KubeVirt API an add-on for Kubernetes. + +The version of the OpenAPI document: 1.0.0 +Contact: kubevirt-dev@googlegroups.com +Generated by: https://openapi-generator.tech +Generator version: 7.12.0 + +=end + +require 'spec_helper' +require 'json' +require 'date' + +# Unit tests for Kubevirt::V1alpha1VirtualMachinePoolNameGeneration +# Automatically generated by openapi-generator (https://openapi-generator.tech) +# Please update as you see appropriate +describe Kubevirt::V1alpha1VirtualMachinePoolNameGeneration do + let(:instance) { Kubevirt::V1alpha1VirtualMachinePoolNameGeneration.new } + + describe 'test an instance of V1alpha1VirtualMachinePoolNameGeneration' do + it 'should create an instance of V1alpha1VirtualMachinePoolNameGeneration' do + # uncomment below to test the instance creation + #expect(instance).to be_instance_of(Kubevirt::V1alpha1VirtualMachinePoolNameGeneration) + end + end + + describe 'test attribute "append_index_to_config_map_refs"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + + describe 'test attribute "append_index_to_secret_refs"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + +end diff --git a/spec/models/v1alpha1_virtual_machine_pool_spec.rb b/spec/models/v1alpha1_virtual_machine_pool_spec.rb index f9cff7ad..900dbce9 100644 --- a/spec/models/v1alpha1_virtual_machine_pool_spec.rb +++ b/spec/models/v1alpha1_virtual_machine_pool_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1alpha1_virtual_machine_pool_spec_spec.rb b/spec/models/v1alpha1_virtual_machine_pool_spec_spec.rb index 71f9a5ad..3b3b4fc4 100644 --- a/spec/models/v1alpha1_virtual_machine_pool_spec_spec.rb +++ b/spec/models/v1alpha1_virtual_machine_pool_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -27,6 +27,12 @@ end end + describe 'test attribute "name_generation"' do + it 'should work' do + # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ + end + end + describe 'test attribute "paused"' do it 'should work' do # assertion here. ref: https://rspec.info/features/3-12/rspec-expectations/built-in-matchers/ diff --git a/spec/models/v1alpha1_virtual_machine_pool_status_spec.rb b/spec/models/v1alpha1_virtual_machine_pool_status_spec.rb index 32a42c27..60a0e981 100644 --- a/spec/models/v1alpha1_virtual_machine_pool_status_spec.rb +++ b/spec/models/v1alpha1_virtual_machine_pool_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1alpha1_virtual_machine_template_spec_spec.rb b/spec/models/v1alpha1_virtual_machine_template_spec_spec.rb index f4cc6fe3..ae991d84 100644 --- a/spec/models/v1alpha1_virtual_machine_template_spec_spec.rb +++ b/spec/models/v1alpha1_virtual_machine_template_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_clock_preferences_spec.rb b/spec/models/v1beta1_clock_preferences_spec.rb index d3bea378..2be15c6f 100644 --- a/spec/models/v1beta1_clock_preferences_spec.rb +++ b/spec/models/v1beta1_clock_preferences_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_condition_spec.rb b/spec/models/v1beta1_condition_spec.rb index fff58ed2..68c6a502 100644 --- a/spec/models/v1beta1_condition_spec.rb +++ b/spec/models/v1beta1_condition_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_cpu_instancetype_spec.rb b/spec/models/v1beta1_cpu_instancetype_spec.rb index afd5f91e..093dfb63 100644 --- a/spec/models/v1beta1_cpu_instancetype_spec.rb +++ b/spec/models/v1beta1_cpu_instancetype_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_cpu_preference_requirement_spec.rb b/spec/models/v1beta1_cpu_preference_requirement_spec.rb index 9d62eedd..96be25c2 100644 --- a/spec/models/v1beta1_cpu_preference_requirement_spec.rb +++ b/spec/models/v1beta1_cpu_preference_requirement_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_cpu_preferences_spec.rb b/spec/models/v1beta1_cpu_preferences_spec.rb index c2c13441..88ca6bc2 100644 --- a/spec/models/v1beta1_cpu_preferences_spec.rb +++ b/spec/models/v1beta1_cpu_preferences_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_data_volume_checkpoint_spec.rb b/spec/models/v1beta1_data_volume_checkpoint_spec.rb index ab20eb1e..47526746 100644 --- a/spec/models/v1beta1_data_volume_checkpoint_spec.rb +++ b/spec/models/v1beta1_data_volume_checkpoint_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_data_volume_source_gcs_spec.rb b/spec/models/v1beta1_data_volume_source_gcs_spec.rb index b1ed30ea..4f922337 100644 --- a/spec/models/v1beta1_data_volume_source_gcs_spec.rb +++ b/spec/models/v1beta1_data_volume_source_gcs_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_data_volume_source_http_spec.rb b/spec/models/v1beta1_data_volume_source_http_spec.rb index 4b553da7..48b91493 100644 --- a/spec/models/v1beta1_data_volume_source_http_spec.rb +++ b/spec/models/v1beta1_data_volume_source_http_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_data_volume_source_image_io_spec.rb b/spec/models/v1beta1_data_volume_source_image_io_spec.rb index 86a96a0a..d8b9630e 100644 --- a/spec/models/v1beta1_data_volume_source_image_io_spec.rb +++ b/spec/models/v1beta1_data_volume_source_image_io_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_data_volume_source_pvc_spec.rb b/spec/models/v1beta1_data_volume_source_pvc_spec.rb index 97bfba22..e25a2cda 100644 --- a/spec/models/v1beta1_data_volume_source_pvc_spec.rb +++ b/spec/models/v1beta1_data_volume_source_pvc_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_data_volume_source_ref_spec.rb b/spec/models/v1beta1_data_volume_source_ref_spec.rb index 3d76a5bc..220edb17 100644 --- a/spec/models/v1beta1_data_volume_source_ref_spec.rb +++ b/spec/models/v1beta1_data_volume_source_ref_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_data_volume_source_registry_spec.rb b/spec/models/v1beta1_data_volume_source_registry_spec.rb index c5c6bc16..8b202d6a 100644 --- a/spec/models/v1beta1_data_volume_source_registry_spec.rb +++ b/spec/models/v1beta1_data_volume_source_registry_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_data_volume_source_s3_spec.rb b/spec/models/v1beta1_data_volume_source_s3_spec.rb index 33367715..403487b9 100644 --- a/spec/models/v1beta1_data_volume_source_s3_spec.rb +++ b/spec/models/v1beta1_data_volume_source_s3_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_data_volume_source_snapshot_spec.rb b/spec/models/v1beta1_data_volume_source_snapshot_spec.rb index d94fcb91..55cbde94 100644 --- a/spec/models/v1beta1_data_volume_source_snapshot_spec.rb +++ b/spec/models/v1beta1_data_volume_source_snapshot_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_data_volume_source_spec.rb b/spec/models/v1beta1_data_volume_source_spec.rb index 9ea50697..fb3b4ac6 100644 --- a/spec/models/v1beta1_data_volume_source_spec.rb +++ b/spec/models/v1beta1_data_volume_source_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_data_volume_source_vddk_spec.rb b/spec/models/v1beta1_data_volume_source_vddk_spec.rb index a9581f0b..01eaa0ad 100644 --- a/spec/models/v1beta1_data_volume_source_vddk_spec.rb +++ b/spec/models/v1beta1_data_volume_source_vddk_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_data_volume_spec_spec.rb b/spec/models/v1beta1_data_volume_spec_spec.rb index efe12d90..899c04b3 100644 --- a/spec/models/v1beta1_data_volume_spec_spec.rb +++ b/spec/models/v1beta1_data_volume_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_device_preferences_spec.rb b/spec/models/v1beta1_device_preferences_spec.rb index 1cfc092c..8096ee87 100644 --- a/spec/models/v1beta1_device_preferences_spec.rb +++ b/spec/models/v1beta1_device_preferences_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_error_spec.rb b/spec/models/v1beta1_error_spec.rb index 0172b1c6..572297c3 100644 --- a/spec/models/v1beta1_error_spec.rb +++ b/spec/models/v1beta1_error_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_feature_preferences_spec.rb b/spec/models/v1beta1_feature_preferences_spec.rb index 20c6309d..99384032 100644 --- a/spec/models/v1beta1_feature_preferences_spec.rb +++ b/spec/models/v1beta1_feature_preferences_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_firmware_preferences_spec.rb b/spec/models/v1beta1_firmware_preferences_spec.rb index ce8fad88..2a337d49 100644 --- a/spec/models/v1beta1_firmware_preferences_spec.rb +++ b/spec/models/v1beta1_firmware_preferences_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_machine_preferences_spec.rb b/spec/models/v1beta1_machine_preferences_spec.rb index 339e7d16..7caf1a8a 100644 --- a/spec/models/v1beta1_machine_preferences_spec.rb +++ b/spec/models/v1beta1_machine_preferences_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_memory_instancetype_spec.rb b/spec/models/v1beta1_memory_instancetype_spec.rb index 9681b5ac..bed55c79 100644 --- a/spec/models/v1beta1_memory_instancetype_spec.rb +++ b/spec/models/v1beta1_memory_instancetype_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_memory_preference_requirement_spec.rb b/spec/models/v1beta1_memory_preference_requirement_spec.rb index 460f9698..ace5fcb7 100644 --- a/spec/models/v1beta1_memory_preference_requirement_spec.rb +++ b/spec/models/v1beta1_memory_preference_requirement_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_persistent_volume_claim_spec.rb b/spec/models/v1beta1_persistent_volume_claim_spec.rb index c713adf5..33b8d208 100644 --- a/spec/models/v1beta1_persistent_volume_claim_spec.rb +++ b/spec/models/v1beta1_persistent_volume_claim_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_preference_requirements_spec.rb b/spec/models/v1beta1_preference_requirements_spec.rb index 27466b79..966adb67 100644 --- a/spec/models/v1beta1_preference_requirements_spec.rb +++ b/spec/models/v1beta1_preference_requirements_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_snapshot_volumes_lists_spec.rb b/spec/models/v1beta1_snapshot_volumes_lists_spec.rb index 1dba56f6..ceb8d9cc 100644 --- a/spec/models/v1beta1_snapshot_volumes_lists_spec.rb +++ b/spec/models/v1beta1_snapshot_volumes_lists_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_source_spec_spec.rb b/spec/models/v1beta1_source_spec_spec.rb index a3c48b4b..5f61ab49 100644 --- a/spec/models/v1beta1_source_spec_spec.rb +++ b/spec/models/v1beta1_source_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_spread_options_spec.rb b/spec/models/v1beta1_spread_options_spec.rb index ed0b4cc0..184c0571 100644 --- a/spec/models/v1beta1_spread_options_spec.rb +++ b/spec/models/v1beta1_spread_options_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_storage_spec_spec.rb b/spec/models/v1beta1_storage_spec_spec.rb index 7a79df1f..fe5d479c 100644 --- a/spec/models/v1beta1_storage_spec_spec.rb +++ b/spec/models/v1beta1_storage_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1alpha1_virtual_machine_clone_list_spec.rb b/spec/models/v1beta1_virtual_machine_clone_list_spec.rb similarity index 73% rename from spec/models/v1alpha1_virtual_machine_clone_list_spec.rb rename to spec/models/v1beta1_virtual_machine_clone_list_spec.rb index 54d75a83..fc7eda14 100644 --- a/spec/models/v1alpha1_virtual_machine_clone_list_spec.rb +++ b/spec/models/v1beta1_virtual_machine_clone_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -14,16 +14,16 @@ require 'json' require 'date' -# Unit tests for Kubevirt::V1alpha1VirtualMachineCloneList +# Unit tests for Kubevirt::V1beta1VirtualMachineCloneList # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe Kubevirt::V1alpha1VirtualMachineCloneList do - let(:instance) { Kubevirt::V1alpha1VirtualMachineCloneList.new } +describe Kubevirt::V1beta1VirtualMachineCloneList do + let(:instance) { Kubevirt::V1beta1VirtualMachineCloneList.new } - describe 'test an instance of V1alpha1VirtualMachineCloneList' do - it 'should create an instance of V1alpha1VirtualMachineCloneList' do + describe 'test an instance of V1beta1VirtualMachineCloneList' do + it 'should create an instance of V1beta1VirtualMachineCloneList' do # uncomment below to test the instance creation - #expect(instance).to be_instance_of(Kubevirt::V1alpha1VirtualMachineCloneList) + #expect(instance).to be_instance_of(Kubevirt::V1beta1VirtualMachineCloneList) end end diff --git a/spec/models/v1alpha1_virtual_machine_clone_spec.rb b/spec/models/v1beta1_virtual_machine_clone_spec.rb similarity index 76% rename from spec/models/v1alpha1_virtual_machine_clone_spec.rb rename to spec/models/v1beta1_virtual_machine_clone_spec.rb index 9dd78914..110e6c7c 100644 --- a/spec/models/v1alpha1_virtual_machine_clone_spec.rb +++ b/spec/models/v1beta1_virtual_machine_clone_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -14,16 +14,16 @@ require 'json' require 'date' -# Unit tests for Kubevirt::V1alpha1VirtualMachineClone +# Unit tests for Kubevirt::V1beta1VirtualMachineClone # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe Kubevirt::V1alpha1VirtualMachineClone do - let(:instance) { Kubevirt::V1alpha1VirtualMachineClone.new } +describe Kubevirt::V1beta1VirtualMachineClone do + let(:instance) { Kubevirt::V1beta1VirtualMachineClone.new } - describe 'test an instance of V1alpha1VirtualMachineClone' do - it 'should create an instance of V1alpha1VirtualMachineClone' do + describe 'test an instance of V1beta1VirtualMachineClone' do + it 'should create an instance of V1beta1VirtualMachineClone' do # uncomment below to test the instance creation - #expect(instance).to be_instance_of(Kubevirt::V1alpha1VirtualMachineClone) + #expect(instance).to be_instance_of(Kubevirt::V1beta1VirtualMachineClone) end end diff --git a/spec/models/v1alpha1_virtual_machine_clone_spec_spec.rb b/spec/models/v1beta1_virtual_machine_clone_spec_spec.rb similarity index 80% rename from spec/models/v1alpha1_virtual_machine_clone_spec_spec.rb rename to spec/models/v1beta1_virtual_machine_clone_spec_spec.rb index 3c7d1019..f5dacb92 100644 --- a/spec/models/v1alpha1_virtual_machine_clone_spec_spec.rb +++ b/spec/models/v1beta1_virtual_machine_clone_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -14,16 +14,16 @@ require 'json' require 'date' -# Unit tests for Kubevirt::V1alpha1VirtualMachineCloneSpec +# Unit tests for Kubevirt::V1beta1VirtualMachineCloneSpec # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe Kubevirt::V1alpha1VirtualMachineCloneSpec do - let(:instance) { Kubevirt::V1alpha1VirtualMachineCloneSpec.new } +describe Kubevirt::V1beta1VirtualMachineCloneSpec do + let(:instance) { Kubevirt::V1beta1VirtualMachineCloneSpec.new } - describe 'test an instance of V1alpha1VirtualMachineCloneSpec' do - it 'should create an instance of V1alpha1VirtualMachineCloneSpec' do + describe 'test an instance of V1beta1VirtualMachineCloneSpec' do + it 'should create an instance of V1beta1VirtualMachineCloneSpec' do # uncomment below to test the instance creation - #expect(instance).to be_instance_of(Kubevirt::V1alpha1VirtualMachineCloneSpec) + #expect(instance).to be_instance_of(Kubevirt::V1beta1VirtualMachineCloneSpec) end end diff --git a/spec/models/v1alpha1_virtual_machine_clone_status_spec.rb b/spec/models/v1beta1_virtual_machine_clone_status_spec.rb similarity index 77% rename from spec/models/v1alpha1_virtual_machine_clone_status_spec.rb rename to spec/models/v1beta1_virtual_machine_clone_status_spec.rb index 53d6320e..3711958e 100644 --- a/spec/models/v1alpha1_virtual_machine_clone_status_spec.rb +++ b/spec/models/v1beta1_virtual_machine_clone_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -14,16 +14,16 @@ require 'json' require 'date' -# Unit tests for Kubevirt::V1alpha1VirtualMachineCloneStatus +# Unit tests for Kubevirt::V1beta1VirtualMachineCloneStatus # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe Kubevirt::V1alpha1VirtualMachineCloneStatus do - let(:instance) { Kubevirt::V1alpha1VirtualMachineCloneStatus.new } +describe Kubevirt::V1beta1VirtualMachineCloneStatus do + let(:instance) { Kubevirt::V1beta1VirtualMachineCloneStatus.new } - describe 'test an instance of V1alpha1VirtualMachineCloneStatus' do - it 'should create an instance of V1alpha1VirtualMachineCloneStatus' do + describe 'test an instance of V1beta1VirtualMachineCloneStatus' do + it 'should create an instance of V1beta1VirtualMachineCloneStatus' do # uncomment below to test the instance creation - #expect(instance).to be_instance_of(Kubevirt::V1alpha1VirtualMachineCloneStatus) + #expect(instance).to be_instance_of(Kubevirt::V1beta1VirtualMachineCloneStatus) end end diff --git a/spec/models/v1alpha1_virtual_machine_clone_template_filters_spec.rb b/spec/models/v1beta1_virtual_machine_clone_template_filters_spec.rb similarity index 62% rename from spec/models/v1alpha1_virtual_machine_clone_template_filters_spec.rb rename to spec/models/v1beta1_virtual_machine_clone_template_filters_spec.rb index 48645a2d..5b70c5d2 100644 --- a/spec/models/v1alpha1_virtual_machine_clone_template_filters_spec.rb +++ b/spec/models/v1beta1_virtual_machine_clone_template_filters_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end @@ -14,16 +14,16 @@ require 'json' require 'date' -# Unit tests for Kubevirt::V1alpha1VirtualMachineCloneTemplateFilters +# Unit tests for Kubevirt::V1beta1VirtualMachineCloneTemplateFilters # Automatically generated by openapi-generator (https://openapi-generator.tech) # Please update as you see appropriate -describe Kubevirt::V1alpha1VirtualMachineCloneTemplateFilters do - let(:instance) { Kubevirt::V1alpha1VirtualMachineCloneTemplateFilters.new } +describe Kubevirt::V1beta1VirtualMachineCloneTemplateFilters do + let(:instance) { Kubevirt::V1beta1VirtualMachineCloneTemplateFilters.new } - describe 'test an instance of V1alpha1VirtualMachineCloneTemplateFilters' do - it 'should create an instance of V1alpha1VirtualMachineCloneTemplateFilters' do + describe 'test an instance of V1beta1VirtualMachineCloneTemplateFilters' do + it 'should create an instance of V1beta1VirtualMachineCloneTemplateFilters' do # uncomment below to test the instance creation - #expect(instance).to be_instance_of(Kubevirt::V1alpha1VirtualMachineCloneTemplateFilters) + #expect(instance).to be_instance_of(Kubevirt::V1beta1VirtualMachineCloneTemplateFilters) end end diff --git a/spec/models/v1beta1_virtual_machine_cluster_instancetype_list_spec.rb b/spec/models/v1beta1_virtual_machine_cluster_instancetype_list_spec.rb index 594b413d..173780d7 100644 --- a/spec/models/v1beta1_virtual_machine_cluster_instancetype_list_spec.rb +++ b/spec/models/v1beta1_virtual_machine_cluster_instancetype_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_cluster_instancetype_spec.rb b/spec/models/v1beta1_virtual_machine_cluster_instancetype_spec.rb index 7e799bb2..c22aca4e 100644 --- a/spec/models/v1beta1_virtual_machine_cluster_instancetype_spec.rb +++ b/spec/models/v1beta1_virtual_machine_cluster_instancetype_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_cluster_preference_list_spec.rb b/spec/models/v1beta1_virtual_machine_cluster_preference_list_spec.rb index 8a7d02f2..fcb9dfbd 100644 --- a/spec/models/v1beta1_virtual_machine_cluster_preference_list_spec.rb +++ b/spec/models/v1beta1_virtual_machine_cluster_preference_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_cluster_preference_spec.rb b/spec/models/v1beta1_virtual_machine_cluster_preference_spec.rb index 97ab19ad..fb6ad939 100644 --- a/spec/models/v1beta1_virtual_machine_cluster_preference_spec.rb +++ b/spec/models/v1beta1_virtual_machine_cluster_preference_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_export_link_spec.rb b/spec/models/v1beta1_virtual_machine_export_link_spec.rb index d4a63d90..0256899e 100644 --- a/spec/models/v1beta1_virtual_machine_export_link_spec.rb +++ b/spec/models/v1beta1_virtual_machine_export_link_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_export_links_spec.rb b/spec/models/v1beta1_virtual_machine_export_links_spec.rb index 20203cbe..1c797108 100644 --- a/spec/models/v1beta1_virtual_machine_export_links_spec.rb +++ b/spec/models/v1beta1_virtual_machine_export_links_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_export_list_spec.rb b/spec/models/v1beta1_virtual_machine_export_list_spec.rb index 903dd392..8465ad12 100644 --- a/spec/models/v1beta1_virtual_machine_export_list_spec.rb +++ b/spec/models/v1beta1_virtual_machine_export_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_export_manifest_spec.rb b/spec/models/v1beta1_virtual_machine_export_manifest_spec.rb index 2a616340..f0ec4a17 100644 --- a/spec/models/v1beta1_virtual_machine_export_manifest_spec.rb +++ b/spec/models/v1beta1_virtual_machine_export_manifest_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_export_spec.rb b/spec/models/v1beta1_virtual_machine_export_spec.rb index df888677..dc4a3f68 100644 --- a/spec/models/v1beta1_virtual_machine_export_spec.rb +++ b/spec/models/v1beta1_virtual_machine_export_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_export_spec_spec.rb b/spec/models/v1beta1_virtual_machine_export_spec_spec.rb index 381963a7..0bab12da 100644 --- a/spec/models/v1beta1_virtual_machine_export_spec_spec.rb +++ b/spec/models/v1beta1_virtual_machine_export_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_export_status_spec.rb b/spec/models/v1beta1_virtual_machine_export_status_spec.rb index f5eadfd7..32e41d65 100644 --- a/spec/models/v1beta1_virtual_machine_export_status_spec.rb +++ b/spec/models/v1beta1_virtual_machine_export_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_export_volume_format_spec.rb b/spec/models/v1beta1_virtual_machine_export_volume_format_spec.rb index fe1a3079..1420c469 100644 --- a/spec/models/v1beta1_virtual_machine_export_volume_format_spec.rb +++ b/spec/models/v1beta1_virtual_machine_export_volume_format_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_export_volume_spec.rb b/spec/models/v1beta1_virtual_machine_export_volume_spec.rb index bf494840..929840be 100644 --- a/spec/models/v1beta1_virtual_machine_export_volume_spec.rb +++ b/spec/models/v1beta1_virtual_machine_export_volume_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_instancetype_list_spec.rb b/spec/models/v1beta1_virtual_machine_instancetype_list_spec.rb index 5d7984d8..2558ff46 100644 --- a/spec/models/v1beta1_virtual_machine_instancetype_list_spec.rb +++ b/spec/models/v1beta1_virtual_machine_instancetype_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_instancetype_spec.rb b/spec/models/v1beta1_virtual_machine_instancetype_spec.rb index c886009f..f872d839 100644 --- a/spec/models/v1beta1_virtual_machine_instancetype_spec.rb +++ b/spec/models/v1beta1_virtual_machine_instancetype_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_instancetype_spec_spec.rb b/spec/models/v1beta1_virtual_machine_instancetype_spec_spec.rb index 75d045f7..3e7eec5d 100644 --- a/spec/models/v1beta1_virtual_machine_instancetype_spec_spec.rb +++ b/spec/models/v1beta1_virtual_machine_instancetype_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_preference_list_spec.rb b/spec/models/v1beta1_virtual_machine_preference_list_spec.rb index fdc3da70..69cf2f22 100644 --- a/spec/models/v1beta1_virtual_machine_preference_list_spec.rb +++ b/spec/models/v1beta1_virtual_machine_preference_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_preference_spec.rb b/spec/models/v1beta1_virtual_machine_preference_spec.rb index 58820461..bd3b3dd6 100644 --- a/spec/models/v1beta1_virtual_machine_preference_spec.rb +++ b/spec/models/v1beta1_virtual_machine_preference_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_preference_spec_spec.rb b/spec/models/v1beta1_virtual_machine_preference_spec_spec.rb index 042e2c47..c9c73d47 100644 --- a/spec/models/v1beta1_virtual_machine_preference_spec_spec.rb +++ b/spec/models/v1beta1_virtual_machine_preference_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_restore_list_spec.rb b/spec/models/v1beta1_virtual_machine_restore_list_spec.rb index b1cb469b..129aee79 100644 --- a/spec/models/v1beta1_virtual_machine_restore_list_spec.rb +++ b/spec/models/v1beta1_virtual_machine_restore_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_restore_spec.rb b/spec/models/v1beta1_virtual_machine_restore_spec.rb index c10075e1..ede49896 100644 --- a/spec/models/v1beta1_virtual_machine_restore_spec.rb +++ b/spec/models/v1beta1_virtual_machine_restore_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_restore_spec_spec.rb b/spec/models/v1beta1_virtual_machine_restore_spec_spec.rb index 88237ecf..30004a67 100644 --- a/spec/models/v1beta1_virtual_machine_restore_spec_spec.rb +++ b/spec/models/v1beta1_virtual_machine_restore_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_restore_status_spec.rb b/spec/models/v1beta1_virtual_machine_restore_status_spec.rb index ec773972..bb993eb1 100644 --- a/spec/models/v1beta1_virtual_machine_restore_status_spec.rb +++ b/spec/models/v1beta1_virtual_machine_restore_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_snapshot_content_list_spec.rb b/spec/models/v1beta1_virtual_machine_snapshot_content_list_spec.rb index e5615d8b..b2511cad 100644 --- a/spec/models/v1beta1_virtual_machine_snapshot_content_list_spec.rb +++ b/spec/models/v1beta1_virtual_machine_snapshot_content_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_snapshot_content_spec.rb b/spec/models/v1beta1_virtual_machine_snapshot_content_spec.rb index 409c4e93..6cb63cd6 100644 --- a/spec/models/v1beta1_virtual_machine_snapshot_content_spec.rb +++ b/spec/models/v1beta1_virtual_machine_snapshot_content_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_snapshot_content_spec_spec.rb b/spec/models/v1beta1_virtual_machine_snapshot_content_spec_spec.rb index 3bff9c67..d4a2cb40 100644 --- a/spec/models/v1beta1_virtual_machine_snapshot_content_spec_spec.rb +++ b/spec/models/v1beta1_virtual_machine_snapshot_content_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_snapshot_content_status_spec.rb b/spec/models/v1beta1_virtual_machine_snapshot_content_status_spec.rb index aaee2ed1..ee70ea51 100644 --- a/spec/models/v1beta1_virtual_machine_snapshot_content_status_spec.rb +++ b/spec/models/v1beta1_virtual_machine_snapshot_content_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_snapshot_list_spec.rb b/spec/models/v1beta1_virtual_machine_snapshot_list_spec.rb index 347d7bce..ac6b9ad8 100644 --- a/spec/models/v1beta1_virtual_machine_snapshot_list_spec.rb +++ b/spec/models/v1beta1_virtual_machine_snapshot_list_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_snapshot_spec.rb b/spec/models/v1beta1_virtual_machine_snapshot_spec.rb index 724d5b0a..7ee543f9 100644 --- a/spec/models/v1beta1_virtual_machine_snapshot_spec.rb +++ b/spec/models/v1beta1_virtual_machine_snapshot_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_snapshot_spec_spec.rb b/spec/models/v1beta1_virtual_machine_snapshot_spec_spec.rb index d3268fb1..b2654018 100644 --- a/spec/models/v1beta1_virtual_machine_snapshot_spec_spec.rb +++ b/spec/models/v1beta1_virtual_machine_snapshot_spec_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_snapshot_status_spec.rb b/spec/models/v1beta1_virtual_machine_snapshot_status_spec.rb index a3b48ffb..115a1ab6 100644 --- a/spec/models/v1beta1_virtual_machine_snapshot_status_spec.rb +++ b/spec/models/v1beta1_virtual_machine_snapshot_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_virtual_machine_spec.rb b/spec/models/v1beta1_virtual_machine_spec.rb index d46be30b..4c951db5 100644 --- a/spec/models/v1beta1_virtual_machine_spec.rb +++ b/spec/models/v1beta1_virtual_machine_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_volume_backup_spec.rb b/spec/models/v1beta1_volume_backup_spec.rb index 0046abfa..f99be520 100644 --- a/spec/models/v1beta1_volume_backup_spec.rb +++ b/spec/models/v1beta1_volume_backup_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_volume_preferences_spec.rb b/spec/models/v1beta1_volume_preferences_spec.rb index 00b36fb1..0e122cc4 100644 --- a/spec/models/v1beta1_volume_preferences_spec.rb +++ b/spec/models/v1beta1_volume_preferences_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_volume_restore_spec.rb b/spec/models/v1beta1_volume_restore_spec.rb index 1a5a1b57..0799cb99 100644 --- a/spec/models/v1beta1_volume_restore_spec.rb +++ b/spec/models/v1beta1_volume_restore_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/models/v1beta1_volume_snapshot_status_spec.rb b/spec/models/v1beta1_volume_snapshot_status_spec.rb index e1c9e142..edbcbaf6 100644 --- a/spec/models/v1beta1_volume_snapshot_status_spec.rb +++ b/spec/models/v1beta1_volume_snapshot_status_spec.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index dd5b9ae5..6f6c0df4 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -6,7 +6,7 @@ The version of the OpenAPI document: 1.0.0 Contact: kubevirt-dev@googlegroups.com Generated by: https://openapi-generator.tech -Generator version: 7.9.0 +Generator version: 7.12.0 =end