summaryrefslogtreecommitdiffstats
path: root/contrib/python/kubernetes
diff options
context:
space:
mode:
authorrobot-piglet <[email protected]>2025-10-14 13:58:45 +0300
committerrobot-piglet <[email protected]>2025-10-14 14:26:06 +0300
commit09cc5fe0eb0747ac9ce1444c9acc944838a8cfa2 (patch)
tree61e19f6a3c904d77e58ff647f4c9473378d6954b /contrib/python/kubernetes
parente9146d8a4d0ee112c89906f9fc8ce23b92250439 (diff)
Intermediate changes
commit_hash:bc75ab7ba0ee5a6571045c99062e8d4a996d16dd
Diffstat (limited to 'contrib/python/kubernetes')
-rw-r--r--contrib/python/kubernetes/.dist-info/METADATA5
-rw-r--r--contrib/python/kubernetes/README.md5
-rw-r--r--contrib/python/kubernetes/kubernetes/__init__.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/__init__.py122
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/__init__.py1
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/admissionregistration_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1alpha1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1beta1_api.py860
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/apiextensions_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/apiextensions_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/apiregistration_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/apiregistration_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/apis_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/apps_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/apps_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/authentication_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/authentication_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/authorization_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/authorization_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/autoscaling_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/autoscaling_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/autoscaling_v2_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/batch_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/batch_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/certificates_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/certificates_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/certificates_v1alpha1_api.py1703
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/certificates_v1beta1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/coordination_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/coordination_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/coordination_v1alpha2_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/coordination_v1beta1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/core_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/core_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/custom_objects_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/discovery_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/discovery_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/events_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/events_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/flowcontrol_apiserver_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/flowcontrol_apiserver_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/internal_apiserver_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/internal_apiserver_v1alpha1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/logs_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/networking_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/networking_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/networking_v1beta1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/node_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/node_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/openid_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/policy_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/policy_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/rbac_authorization_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/rbac_authorization_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/resource_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/resource_v1_api.py5177
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/resource_v1alpha3_api.py5037
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/resource_v1beta1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/resource_v1beta2_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/scheduling_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/scheduling_v1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/storage_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/storage_v1_api.py1039
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/storage_v1alpha1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/storage_v1beta1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/storagemigration_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/storagemigration_v1alpha1_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/version_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api/well_known_api.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/api_client.py4
-rw-r--r--contrib/python/kubernetes/kubernetes/client/configuration.py16
-rw-r--r--contrib/python/kubernetes/kubernetes/client/exceptions.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/__init__.py119
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/admissionregistration_v1_service_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/apiextensions_v1_service_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/apiextensions_v1_webhook_client_config.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/apiregistration_v1_service_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/authentication_v1_token_request.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/core_v1_endpoint_port.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/core_v1_event.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/core_v1_event_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/core_v1_event_series.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/core_v1_resource_claim.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim.py)26
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/discovery_v1_endpoint_port.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/events_v1_event.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/events_v1_event_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/events_v1_event_series.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/flowcontrol_v1_subject.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/rbac_v1_subject.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/resource_v1_resource_claim.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim.py)62
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/storage_v1_token_request.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_affinity.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_aggregation_rule.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_allocated_device_status.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_allocated_device_status.py)98
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_allocation_result.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_allocation_result.py)62
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_api_group.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_api_group_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_api_resource.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_api_resource_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_api_service.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_api_service_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_api_service_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_api_service_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_api_service_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_api_versions.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_app_armor_profile.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_attached_volume.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_audit_annotation.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_azure_disk_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_azure_file_persistent_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_azure_file_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_binding.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_bound_object_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_capabilities.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_capacity_request_policy.py176
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_capacity_request_policy_range.py179
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_capacity_requirements.py122
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_cel_device_selector.py123
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ceph_fs_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_cinder_persistent_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_cinder_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_client_ip_config.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_binding.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_binding_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_cluster_trust_bundle_projection.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_component_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_component_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_component_status_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_config_map.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_config_map_env_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_config_map_key_selector.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_config_map_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_config_map_node_config_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_config_map_projection.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_config_map_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_container.py40
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_container_extended_resource_request.py181
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_container_image.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_container_port.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_container_resize_policy.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_container_restart_rule.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device.py)82
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_container_restart_rule_on_exit_codes.py151
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_container_state.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_container_state_running.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_container_state_terminated.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_container_state_waiting.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_container_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_container_user.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_controller_revision.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_controller_revision_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_counter.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_counter.py)18
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_counter_set.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_counter_set.py)40
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_cron_job.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_cross_version_object_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver_spec.py10
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_csi_node.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_driver.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_csi_persistent_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_csi_storage_capacity.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_csi_storage_capacity_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_csi_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_column_definition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_conversion.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_names.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_version.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_subresource_scale.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_subresources.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_validation.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_daemon_endpoint.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_update_strategy.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_delete_options.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_deployment.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_deployment_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_deployment_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_deployment_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_deployment_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_deployment_strategy.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device.py429
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_allocation_configuration.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_allocation_configuration.py)40
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_allocation_result.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_allocation_result.py)38
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_attribute.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_attribute.py)42
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_capacity.py149
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_claim.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_claim.py)52
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_claim_configuration.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_claim_configuration.py)32
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_class.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_slice.py)48
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_class_configuration.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_class_configuration.py)24
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_class_list.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_class_list.py)48
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_class_spec.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_class_spec.py)68
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_constraint.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_constraint.py)56
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_counter_consumption.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_counter_consumption.py)40
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_request.py177
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_request_allocation_result.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_request_allocation_result.py)178
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_selector.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1beta1_type_checking.py)46
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_sub_request.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_sub_request.py)106
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_taint.py208
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_device_toleration.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_toleration.py)50
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_projection.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_volume_file.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_empty_dir_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_endpoint.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_address.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_conditions.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_hints.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_slice.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_slice_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_subset.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_endpoints.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_endpoints_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_env_from_source.py6
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_env_var.py6
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_env_var_source.py30
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ephemeral_container.py40
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ephemeral_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_event_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_eviction.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_exact_device_request.py289
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_exec_action.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_exempt_priority_level_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_expression_warning.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_external_documentation.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_fc_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_field_selector_attributes.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_field_selector_requirement.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_file_key_selector.py209
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_flex_persistent_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_flex_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_flocker_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_flow_distinguisher_method.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_for_node.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_for_zone.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_git_repo_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_glusterfs_volume_source.py6
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_group_subject.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_group_version_for_discovery.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_grpc_action.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_host_alias.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_host_ip.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_host_path_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_http_get_action.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_http_header.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_http_ingress_path.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_http_ingress_rule_value.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_image_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress_backend.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_parameters_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress_load_balancer_ingress.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress_load_balancer_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress_port_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress_rule.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress_service_backend.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ingress_tls.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ip_address.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ip_address_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ip_address_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_ip_block.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_iscsi_persistent_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_iscsi_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_job.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_job_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_job_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_job_spec.py10
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_job_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_job_template_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_json_schema_props.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_key_to_path.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_label_selector.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_label_selector_attributes.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_label_selector_requirement.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_lease.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_lease_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_lease_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_lifecycle.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_lifecycle_handler.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_limit_range.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_item.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_limit_response.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_limited_priority_level_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_linux_container_user.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_list_meta.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_load_balancer_ingress.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_load_balancer_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_local_object_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_local_subject_access_review.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_local_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_managed_fields_entry.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_match_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_match_resources.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_modify_volume_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook_configuration_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_named_rule_with_operations.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_namespace.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_namespace_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_namespace_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_namespace_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_namespace_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_network_device_data.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_network_device_data.py)38
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_network_policy.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_egress_rule.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_ingress_rule.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_peer.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_port.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_spec.py7
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_nfs_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_address.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_affinity.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_config_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_config_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_daemon_endpoints.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_features.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_runtime_handler.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_runtime_handler_features.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_selector.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_selector_requirement.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_selector_term.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_swap_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_node_system_info.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_attributes.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_policy_rule.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_rule.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_object_field_selector.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_object_meta.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_object_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_opaque_device_configuration.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_opaque_device_configuration.py)26
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_overhead.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_owner_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_param_kind.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_param_ref.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_parent_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_spec.py6
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_status.py6
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_template.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_spec.py6
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_affinity.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_affinity_term.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_anti_affinity.py6
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_certificate_projection.py264
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_dns_config.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_dns_config_option.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_extended_resource_claim_status.py152
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_rule.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_ip.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_os.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_readiness_gate.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_resource_claim.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_resource_claim_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_scheduling_gate.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_security_context.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_spec.py36
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_status.py30
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_template.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_template_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_pod_template_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_policy_rule.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_policy_rules_with_subjects.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_port_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_portworx_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_preconditions.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_preferred_scheduling_term.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_priority_class.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_priority_class_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_probe.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_projected_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_queuing_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_quobyte_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_rbd_persistent_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_rbd_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_replica_set.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_attributes.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_consumer_reference.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_consumer_reference.py)42
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_list.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_list.py)48
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_spec.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_spec.py)24
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_status.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_status.py)52
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_template.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_template.py)48
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_template_list.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_template_list.py)48
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_template_spec.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_template_spec.py)32
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_field_selector.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_health.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_policy_rule.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_pool.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_pool.py)34
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_requirements.py12
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_rule.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_slice.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_class.py)48
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_slice_list.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_slice_list.py)48
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_slice_spec.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_slice_spec.py)96
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_resource_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_role.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_role_binding.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_role_binding_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_role_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_role_ref.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_daemon_set.py6
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_deployment.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_rule_with_operations.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_runtime_class.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_runtime_class_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_scale.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_scale_io_persistent_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_scale_io_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_scale_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_scale_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_scheduling.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_scope_selector.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_scoped_resource_selector_requirement.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_se_linux_options.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_seccomp_profile.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_secret.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_secret_env_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_secret_key_selector.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_secret_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_secret_projection.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_secret_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_secret_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_security_context.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_selectable_field.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_access_review.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_access_review_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_review.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_review_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_rules_review.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_rules_review_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_server_address_by_client_cidr.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_service.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_service_account.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_service_account_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_service_account_subject.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_service_account_token_projection.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_service_backend_port.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_service_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_service_port.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_service_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_service_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_session_affinity_config.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_sleep_action.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_ordinals.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_update_strategy.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_status_cause.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_status_details.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_storage_class.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_storage_class_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_storage_os_persistent_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_storage_os_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_subject_rules_review_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_success_policy.py6
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_success_policy_rule.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_sysctl.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_taint.py6
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_tcp_socket_action.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_token_request_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_token_request_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_token_review.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_token_review_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_token_review_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_toleration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_topology_selector_label_requirement.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_topology_selector_term.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_topology_spread_constraint.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_type_checking.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_typed_local_object_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_typed_object_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_uncounted_terminated_pods.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_user_info.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_user_subject.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook_configuration_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_validation.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_validation_rule.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_variable.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_attributes_class.py233
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_attributes_class_list.py205
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_device.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_error.py6
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_mount.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_mount_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_node_affinity.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_node_resources.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_projection.py30
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_volume_resource_requirements.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_watch_event.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_webhook_conversion.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_weighted_pod_affinity_term.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1_windows_security_context_options.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_apply_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_group_version_resource.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_json_patch.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_match_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_match_resources.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_migration_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutation.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_named_rule_with_operations.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_param_kind.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_param_ref.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy.py)67
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request_list.py205
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request_spec.py389
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request_status.py234
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_server_storage_version.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_variable.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_volume_attributes_class.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha1_volume_attributes_class_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha3_basic_device.py288
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha3_cel_device_selector.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_request.py319
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_selector.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_selector.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_allocated_device_status.py36
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_allocation_result.py32
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_apply_configuration.py122
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_audit_annotation.py152
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_basic_device.py116
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_capacity_request_policy.py176
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_capacity_request_policy_range.py179
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_capacity_requirements.py122
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_cel_device_selector.py6
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_counter.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_counter_set.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_allocation_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_allocation_result.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_attribute.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_capacity.py34
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_claim.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_claim_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_spec.py32
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_constraint.py32
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_counter_consumption.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_request.py30
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_request_allocation_result.py116
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_selector.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_sub_request.py30
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_taint.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_toleration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_expression_warning.py152
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_json_patch.py122
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_match_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_match_resources.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy.py202
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_binding.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_binding.py)48
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_list.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_binding_list.py)48
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_spec.py174
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_list.py (renamed from contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_list.py)48
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_spec.py286
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutation.py175
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_named_rule_with_operations.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_network_device_data.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_opaque_device_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_param_kind.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_param_ref.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_parent_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_consumer_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_pool.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_binding_spec.py202
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_spec.py286
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_status.py176
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_validation.py207
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_variable.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_volume_attributes_class.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta1_volume_attributes_class_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_allocated_device_status.py36
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_allocation_result.py32
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_capacity_request_policy.py176
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_capacity_request_policy_range.py179
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_capacity_requirements.py122
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_cel_device_selector.py6
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_counter.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_counter_set.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device.py116
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_allocation_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_allocation_result.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_attribute.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_capacity.py34
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_claim.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_claim_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_spec.py32
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_constraint.py32
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_counter_consumption.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_request.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_request_allocation_result.py116
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_selector.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_sub_request.py30
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_taint.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_toleration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_exact_device_request.py30
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_network_device_data.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_opaque_device_configuration.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_consumer_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_pool.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_container_resource_metric_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_container_resource_metric_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_cross_version_object_reference.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_external_metric_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_external_metric_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_behavior.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_condition.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_list.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_hpa_scaling_policy.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_hpa_scaling_rules.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_metric_identifier.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_metric_spec.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_metric_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_metric_target.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_metric_value_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_object_metric_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_object_metric_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_pods_metric_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_pods_metric_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_resource_metric_source.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/v2_resource_metric_status.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/models/version_info.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/client/rest.py2
-rw-r--r--contrib/python/kubernetes/kubernetes/config/exec_provider.py5
-rw-r--r--contrib/python/kubernetes/kubernetes/dynamic/discovery.py4
-rw-r--r--contrib/python/kubernetes/kubernetes/watch/watch.py7
-rw-r--r--contrib/python/kubernetes/ya.make121
804 files changed, 17436 insertions, 9309 deletions
diff --git a/contrib/python/kubernetes/.dist-info/METADATA b/contrib/python/kubernetes/.dist-info/METADATA
index 03a9b0e4f73..ecdf43704b6 100644
--- a/contrib/python/kubernetes/.dist-info/METADATA
+++ b/contrib/python/kubernetes/.dist-info/METADATA
@@ -1,6 +1,6 @@
Metadata-Version: 2.4
Name: kubernetes
-Version: 33.1.0
+Version: 34.1.0
Summary: Kubernetes python client
Home-page: https://github.com/kubernetes-client/python
Author: Kubernetes
@@ -31,8 +31,7 @@ Requires-Dist: google-auth>=1.0.1
Requires-Dist: websocket-client!=0.40.0,!=0.41.*,!=0.42.*,>=0.32.0
Requires-Dist: requests
Requires-Dist: requests-oauthlib
-Requires-Dist: oauthlib>=3.2.2
-Requires-Dist: urllib3>=1.24.2
+Requires-Dist: urllib3<2.4.0,>=1.24.2
Requires-Dist: durationpy>=0.7
Provides-Extra: adal
Requires-Dist: adal>=1.0.2; extra == "adal"
diff --git a/contrib/python/kubernetes/README.md b/contrib/python/kubernetes/README.md
index 99e2b38e08c..4c95bf30ef3 100644
--- a/contrib/python/kubernetes/README.md
+++ b/contrib/python/kubernetes/README.md
@@ -103,6 +103,7 @@ supported versions of Kubernetes clusters.
- [client 31.y.z](https://pypi.org/project/kubernetes/31.0.0/): Kubernetes 1.30 or below (+-), Kubernetes 1.31 (✓), Kubernetes 1.32 or above (+-)
- [client 32.y.z](https://pypi.org/project/kubernetes/32.0.1/): Kubernetes 1.31 or below (+-), Kubernetes 1.32 (✓), Kubernetes 1.33 or above (+-)
- [client 33.y.z](https://pypi.org/project/kubernetes/33.1.0/): Kubernetes 1.32 or below (+-), Kubernetes 1.33 (✓), Kubernetes 1.34 or above (+-)
+- [client 34.y.z](https://pypi.org/project/kubernetes/34.1.0/): Kubernetes 1.33 or below (+-), Kubernetes 1.34 (✓), Kubernetes 1.35 or above (+-)
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explanation of why there is no v13-v16 release.
@@ -169,11 +170,13 @@ between client-python versions.
| 30.0 Alpha/Beta | Kubernetes main repo, 1.30 branch | ✗ |
| 30.0 | Kubernetes main repo, 1.30 branch | ✗ |
| 31.0 Alpha/Beta | Kubernetes main repo, 1.31 branch | ✗ |
-| 31.0 | Kubernetes main repo, 1.31 branch | ✓ |
+| 31.0 | Kubernetes main repo, 1.31 branch | ✗ |
| 32.0 Alpha/Beta | Kubernetes main repo, 1.32 branch | ✗ |
| 32.1 | Kubernetes main repo, 1.32 branch | ✓ |
| 33.1 Alpha/Beta | Kubernetes main repo, 1.33 branch | ✗ |
| 33.1 | Kubernetes main repo, 1.33 branch | ✓ |
+| 34.1 Alpha/Beta | Kubernetes main repo, 1.34 branch | ✗ |
+| 34.1 | Kubernetes main repo, 1.34 branch | ✓ |
> See [here](#homogenizing-the-kubernetes-python-client-versions) for an explanation of why there is no v13-v16 release.
diff --git a/contrib/python/kubernetes/kubernetes/__init__.py b/contrib/python/kubernetes/kubernetes/__init__.py
index 2101f0c63f3..af07bd75e00 100644
--- a/contrib/python/kubernetes/kubernetes/__init__.py
+++ b/contrib/python/kubernetes/kubernetes/__init__.py
@@ -14,7 +14,7 @@
__project__ = 'kubernetes'
# The version is auto-updated. Please do not edit.
-__version__ = "33.1.0"
+__version__ = "34.1.0"
from . import client
from . import config
diff --git a/contrib/python/kubernetes/kubernetes/client/__init__.py b/contrib/python/kubernetes/kubernetes/client/__init__.py
index b2e039dff7c..49f720ee50b 100644
--- a/contrib/python/kubernetes/kubernetes/client/__init__.py
+++ b/contrib/python/kubernetes/kubernetes/client/__init__.py
@@ -7,14 +7,14 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
from __future__ import absolute_import
-__version__ = "33.1.0"
+__version__ = "34.1.0"
# import apis into sdk package
from kubernetes.client.api.well_known_api import WellKnownApi
@@ -69,6 +69,7 @@ from kubernetes.client.api.policy_v1_api import PolicyV1Api
from kubernetes.client.api.rbac_authorization_api import RbacAuthorizationApi
from kubernetes.client.api.rbac_authorization_v1_api import RbacAuthorizationV1Api
from kubernetes.client.api.resource_api import ResourceApi
+from kubernetes.client.api.resource_v1_api import ResourceV1Api
from kubernetes.client.api.resource_v1alpha3_api import ResourceV1alpha3Api
from kubernetes.client.api.resource_v1beta1_api import ResourceV1beta1Api
from kubernetes.client.api.resource_v1beta2_api import ResourceV1beta2Api
@@ -101,12 +102,14 @@ from kubernetes.client.models.core_v1_endpoint_port import CoreV1EndpointPort
from kubernetes.client.models.core_v1_event import CoreV1Event
from kubernetes.client.models.core_v1_event_list import CoreV1EventList
from kubernetes.client.models.core_v1_event_series import CoreV1EventSeries
+from kubernetes.client.models.core_v1_resource_claim import CoreV1ResourceClaim
from kubernetes.client.models.discovery_v1_endpoint_port import DiscoveryV1EndpointPort
from kubernetes.client.models.events_v1_event import EventsV1Event
from kubernetes.client.models.events_v1_event_list import EventsV1EventList
from kubernetes.client.models.events_v1_event_series import EventsV1EventSeries
from kubernetes.client.models.flowcontrol_v1_subject import FlowcontrolV1Subject
from kubernetes.client.models.rbac_v1_subject import RbacV1Subject
+from kubernetes.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim
from kubernetes.client.models.storage_v1_token_request import StorageV1TokenRequest
from kubernetes.client.models.v1_api_group import V1APIGroup
from kubernetes.client.models.v1_api_group_list import V1APIGroupList
@@ -121,6 +124,8 @@ from kubernetes.client.models.v1_api_versions import V1APIVersions
from kubernetes.client.models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource
from kubernetes.client.models.v1_affinity import V1Affinity
from kubernetes.client.models.v1_aggregation_rule import V1AggregationRule
+from kubernetes.client.models.v1_allocated_device_status import V1AllocatedDeviceStatus
+from kubernetes.client.models.v1_allocation_result import V1AllocationResult
from kubernetes.client.models.v1_app_armor_profile import V1AppArmorProfile
from kubernetes.client.models.v1_attached_volume import V1AttachedVolume
from kubernetes.client.models.v1_audit_annotation import V1AuditAnnotation
@@ -129,6 +134,7 @@ from kubernetes.client.models.v1_azure_file_persistent_volume_source import V1Az
from kubernetes.client.models.v1_azure_file_volume_source import V1AzureFileVolumeSource
from kubernetes.client.models.v1_binding import V1Binding
from kubernetes.client.models.v1_bound_object_reference import V1BoundObjectReference
+from kubernetes.client.models.v1_cel_device_selector import V1CELDeviceSelector
from kubernetes.client.models.v1_csi_driver import V1CSIDriver
from kubernetes.client.models.v1_csi_driver_list import V1CSIDriverList
from kubernetes.client.models.v1_csi_driver_spec import V1CSIDriverSpec
@@ -141,6 +147,9 @@ from kubernetes.client.models.v1_csi_storage_capacity import V1CSIStorageCapacit
from kubernetes.client.models.v1_csi_storage_capacity_list import V1CSIStorageCapacityList
from kubernetes.client.models.v1_csi_volume_source import V1CSIVolumeSource
from kubernetes.client.models.v1_capabilities import V1Capabilities
+from kubernetes.client.models.v1_capacity_request_policy import V1CapacityRequestPolicy
+from kubernetes.client.models.v1_capacity_request_policy_range import V1CapacityRequestPolicyRange
+from kubernetes.client.models.v1_capacity_requirements import V1CapacityRequirements
from kubernetes.client.models.v1_ceph_fs_persistent_volume_source import V1CephFSPersistentVolumeSource
from kubernetes.client.models.v1_ceph_fs_volume_source import V1CephFSVolumeSource
from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest
@@ -168,9 +177,12 @@ from kubernetes.client.models.v1_config_map_node_config_source import V1ConfigMa
from kubernetes.client.models.v1_config_map_projection import V1ConfigMapProjection
from kubernetes.client.models.v1_config_map_volume_source import V1ConfigMapVolumeSource
from kubernetes.client.models.v1_container import V1Container
+from kubernetes.client.models.v1_container_extended_resource_request import V1ContainerExtendedResourceRequest
from kubernetes.client.models.v1_container_image import V1ContainerImage
from kubernetes.client.models.v1_container_port import V1ContainerPort
from kubernetes.client.models.v1_container_resize_policy import V1ContainerResizePolicy
+from kubernetes.client.models.v1_container_restart_rule import V1ContainerRestartRule
+from kubernetes.client.models.v1_container_restart_rule_on_exit_codes import V1ContainerRestartRuleOnExitCodes
from kubernetes.client.models.v1_container_state import V1ContainerState
from kubernetes.client.models.v1_container_state_running import V1ContainerStateRunning
from kubernetes.client.models.v1_container_state_terminated import V1ContainerStateTerminated
@@ -179,6 +191,8 @@ from kubernetes.client.models.v1_container_status import V1ContainerStatus
from kubernetes.client.models.v1_container_user import V1ContainerUser
from kubernetes.client.models.v1_controller_revision import V1ControllerRevision
from kubernetes.client.models.v1_controller_revision_list import V1ControllerRevisionList
+from kubernetes.client.models.v1_counter import V1Counter
+from kubernetes.client.models.v1_counter_set import V1CounterSet
from kubernetes.client.models.v1_cron_job import V1CronJob
from kubernetes.client.models.v1_cron_job_list import V1CronJobList
from kubernetes.client.models.v1_cron_job_spec import V1CronJobSpec
@@ -210,6 +224,25 @@ from kubernetes.client.models.v1_deployment_list import V1DeploymentList
from kubernetes.client.models.v1_deployment_spec import V1DeploymentSpec
from kubernetes.client.models.v1_deployment_status import V1DeploymentStatus
from kubernetes.client.models.v1_deployment_strategy import V1DeploymentStrategy
+from kubernetes.client.models.v1_device import V1Device
+from kubernetes.client.models.v1_device_allocation_configuration import V1DeviceAllocationConfiguration
+from kubernetes.client.models.v1_device_allocation_result import V1DeviceAllocationResult
+from kubernetes.client.models.v1_device_attribute import V1DeviceAttribute
+from kubernetes.client.models.v1_device_capacity import V1DeviceCapacity
+from kubernetes.client.models.v1_device_claim import V1DeviceClaim
+from kubernetes.client.models.v1_device_claim_configuration import V1DeviceClaimConfiguration
+from kubernetes.client.models.v1_device_class import V1DeviceClass
+from kubernetes.client.models.v1_device_class_configuration import V1DeviceClassConfiguration
+from kubernetes.client.models.v1_device_class_list import V1DeviceClassList
+from kubernetes.client.models.v1_device_class_spec import V1DeviceClassSpec
+from kubernetes.client.models.v1_device_constraint import V1DeviceConstraint
+from kubernetes.client.models.v1_device_counter_consumption import V1DeviceCounterConsumption
+from kubernetes.client.models.v1_device_request import V1DeviceRequest
+from kubernetes.client.models.v1_device_request_allocation_result import V1DeviceRequestAllocationResult
+from kubernetes.client.models.v1_device_selector import V1DeviceSelector
+from kubernetes.client.models.v1_device_sub_request import V1DeviceSubRequest
+from kubernetes.client.models.v1_device_taint import V1DeviceTaint
+from kubernetes.client.models.v1_device_toleration import V1DeviceToleration
from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection
from kubernetes.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile
from kubernetes.client.models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource
@@ -230,6 +263,7 @@ from kubernetes.client.models.v1_ephemeral_container import V1EphemeralContainer
from kubernetes.client.models.v1_ephemeral_volume_source import V1EphemeralVolumeSource
from kubernetes.client.models.v1_event_source import V1EventSource
from kubernetes.client.models.v1_eviction import V1Eviction
+from kubernetes.client.models.v1_exact_device_request import V1ExactDeviceRequest
from kubernetes.client.models.v1_exec_action import V1ExecAction
from kubernetes.client.models.v1_exempt_priority_level_configuration import V1ExemptPriorityLevelConfiguration
from kubernetes.client.models.v1_expression_warning import V1ExpressionWarning
@@ -237,6 +271,7 @@ from kubernetes.client.models.v1_external_documentation import V1ExternalDocumen
from kubernetes.client.models.v1_fc_volume_source import V1FCVolumeSource
from kubernetes.client.models.v1_field_selector_attributes import V1FieldSelectorAttributes
from kubernetes.client.models.v1_field_selector_requirement import V1FieldSelectorRequirement
+from kubernetes.client.models.v1_file_key_selector import V1FileKeySelector
from kubernetes.client.models.v1_flex_persistent_volume_source import V1FlexPersistentVolumeSource
from kubernetes.client.models.v1_flex_volume_source import V1FlexVolumeSource
from kubernetes.client.models.v1_flocker_volume_source import V1FlockerVolumeSource
@@ -331,6 +366,7 @@ from kubernetes.client.models.v1_namespace_condition import V1NamespaceCondition
from kubernetes.client.models.v1_namespace_list import V1NamespaceList
from kubernetes.client.models.v1_namespace_spec import V1NamespaceSpec
from kubernetes.client.models.v1_namespace_status import V1NamespaceStatus
+from kubernetes.client.models.v1_network_device_data import V1NetworkDeviceData
from kubernetes.client.models.v1_network_policy import V1NetworkPolicy
from kubernetes.client.models.v1_network_policy_egress_rule import V1NetworkPolicyEgressRule
from kubernetes.client.models.v1_network_policy_ingress_rule import V1NetworkPolicyIngressRule
@@ -362,6 +398,7 @@ from kubernetes.client.models.v1_non_resource_rule import V1NonResourceRule
from kubernetes.client.models.v1_object_field_selector import V1ObjectFieldSelector
from kubernetes.client.models.v1_object_meta import V1ObjectMeta
from kubernetes.client.models.v1_object_reference import V1ObjectReference
+from kubernetes.client.models.v1_opaque_device_configuration import V1OpaqueDeviceConfiguration
from kubernetes.client.models.v1_overhead import V1Overhead
from kubernetes.client.models.v1_owner_reference import V1OwnerReference
from kubernetes.client.models.v1_param_kind import V1ParamKind
@@ -383,6 +420,7 @@ from kubernetes.client.models.v1_pod import V1Pod
from kubernetes.client.models.v1_pod_affinity import V1PodAffinity
from kubernetes.client.models.v1_pod_affinity_term import V1PodAffinityTerm
from kubernetes.client.models.v1_pod_anti_affinity import V1PodAntiAffinity
+from kubernetes.client.models.v1_pod_certificate_projection import V1PodCertificateProjection
from kubernetes.client.models.v1_pod_condition import V1PodCondition
from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig
from kubernetes.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption
@@ -390,6 +428,7 @@ from kubernetes.client.models.v1_pod_disruption_budget import V1PodDisruptionBud
from kubernetes.client.models.v1_pod_disruption_budget_list import V1PodDisruptionBudgetList
from kubernetes.client.models.v1_pod_disruption_budget_spec import V1PodDisruptionBudgetSpec
from kubernetes.client.models.v1_pod_disruption_budget_status import V1PodDisruptionBudgetStatus
+from kubernetes.client.models.v1_pod_extended_resource_claim_status import V1PodExtendedResourceClaimStatus
from kubernetes.client.models.v1_pod_failure_policy import V1PodFailurePolicy
from kubernetes.client.models.v1_pod_failure_policy_on_exit_codes_requirement import V1PodFailurePolicyOnExitCodesRequirement
from kubernetes.client.models.v1_pod_failure_policy_on_pod_conditions_pattern import V1PodFailurePolicyOnPodConditionsPattern
@@ -438,16 +477,26 @@ from kubernetes.client.models.v1_replication_controller_list import V1Replicatio
from kubernetes.client.models.v1_replication_controller_spec import V1ReplicationControllerSpec
from kubernetes.client.models.v1_replication_controller_status import V1ReplicationControllerStatus
from kubernetes.client.models.v1_resource_attributes import V1ResourceAttributes
-from kubernetes.client.models.v1_resource_claim import V1ResourceClaim
+from kubernetes.client.models.v1_resource_claim_consumer_reference import V1ResourceClaimConsumerReference
+from kubernetes.client.models.v1_resource_claim_list import V1ResourceClaimList
+from kubernetes.client.models.v1_resource_claim_spec import V1ResourceClaimSpec
+from kubernetes.client.models.v1_resource_claim_status import V1ResourceClaimStatus
+from kubernetes.client.models.v1_resource_claim_template import V1ResourceClaimTemplate
+from kubernetes.client.models.v1_resource_claim_template_list import V1ResourceClaimTemplateList
+from kubernetes.client.models.v1_resource_claim_template_spec import V1ResourceClaimTemplateSpec
from kubernetes.client.models.v1_resource_field_selector import V1ResourceFieldSelector
from kubernetes.client.models.v1_resource_health import V1ResourceHealth
from kubernetes.client.models.v1_resource_policy_rule import V1ResourcePolicyRule
+from kubernetes.client.models.v1_resource_pool import V1ResourcePool
from kubernetes.client.models.v1_resource_quota import V1ResourceQuota
from kubernetes.client.models.v1_resource_quota_list import V1ResourceQuotaList
from kubernetes.client.models.v1_resource_quota_spec import V1ResourceQuotaSpec
from kubernetes.client.models.v1_resource_quota_status import V1ResourceQuotaStatus
from kubernetes.client.models.v1_resource_requirements import V1ResourceRequirements
from kubernetes.client.models.v1_resource_rule import V1ResourceRule
+from kubernetes.client.models.v1_resource_slice import V1ResourceSlice
+from kubernetes.client.models.v1_resource_slice_list import V1ResourceSliceList
+from kubernetes.client.models.v1_resource_slice_spec import V1ResourceSliceSpec
from kubernetes.client.models.v1_resource_status import V1ResourceStatus
from kubernetes.client.models.v1_role import V1Role
from kubernetes.client.models.v1_role_binding import V1RoleBinding
@@ -560,6 +609,8 @@ from kubernetes.client.models.v1_volume_attachment_list import V1VolumeAttachmen
from kubernetes.client.models.v1_volume_attachment_source import V1VolumeAttachmentSource
from kubernetes.client.models.v1_volume_attachment_spec import V1VolumeAttachmentSpec
from kubernetes.client.models.v1_volume_attachment_status import V1VolumeAttachmentStatus
+from kubernetes.client.models.v1_volume_attributes_class import V1VolumeAttributesClass
+from kubernetes.client.models.v1_volume_attributes_class_list import V1VolumeAttributesClassList
from kubernetes.client.models.v1_volume_device import V1VolumeDevice
from kubernetes.client.models.v1_volume_error import V1VolumeError
from kubernetes.client.models.v1_volume_mount import V1VolumeMount
@@ -592,6 +643,10 @@ from kubernetes.client.models.v1alpha1_mutation import V1alpha1Mutation
from kubernetes.client.models.v1alpha1_named_rule_with_operations import V1alpha1NamedRuleWithOperations
from kubernetes.client.models.v1alpha1_param_kind import V1alpha1ParamKind
from kubernetes.client.models.v1alpha1_param_ref import V1alpha1ParamRef
+from kubernetes.client.models.v1alpha1_pod_certificate_request import V1alpha1PodCertificateRequest
+from kubernetes.client.models.v1alpha1_pod_certificate_request_list import V1alpha1PodCertificateRequestList
+from kubernetes.client.models.v1alpha1_pod_certificate_request_spec import V1alpha1PodCertificateRequestSpec
+from kubernetes.client.models.v1alpha1_pod_certificate_request_status import V1alpha1PodCertificateRequestStatus
from kubernetes.client.models.v1alpha1_server_storage_version import V1alpha1ServerStorageVersion
from kubernetes.client.models.v1alpha1_storage_version import V1alpha1StorageVersion
from kubernetes.client.models.v1alpha1_storage_version_condition import V1alpha1StorageVersionCondition
@@ -607,53 +662,21 @@ from kubernetes.client.models.v1alpha1_volume_attributes_class_list import V1alp
from kubernetes.client.models.v1alpha2_lease_candidate import V1alpha2LeaseCandidate
from kubernetes.client.models.v1alpha2_lease_candidate_list import V1alpha2LeaseCandidateList
from kubernetes.client.models.v1alpha2_lease_candidate_spec import V1alpha2LeaseCandidateSpec
-from kubernetes.client.models.v1alpha3_allocated_device_status import V1alpha3AllocatedDeviceStatus
-from kubernetes.client.models.v1alpha3_allocation_result import V1alpha3AllocationResult
-from kubernetes.client.models.v1alpha3_basic_device import V1alpha3BasicDevice
from kubernetes.client.models.v1alpha3_cel_device_selector import V1alpha3CELDeviceSelector
-from kubernetes.client.models.v1alpha3_counter import V1alpha3Counter
-from kubernetes.client.models.v1alpha3_counter_set import V1alpha3CounterSet
-from kubernetes.client.models.v1alpha3_device import V1alpha3Device
-from kubernetes.client.models.v1alpha3_device_allocation_configuration import V1alpha3DeviceAllocationConfiguration
-from kubernetes.client.models.v1alpha3_device_allocation_result import V1alpha3DeviceAllocationResult
-from kubernetes.client.models.v1alpha3_device_attribute import V1alpha3DeviceAttribute
-from kubernetes.client.models.v1alpha3_device_claim import V1alpha3DeviceClaim
-from kubernetes.client.models.v1alpha3_device_claim_configuration import V1alpha3DeviceClaimConfiguration
-from kubernetes.client.models.v1alpha3_device_class import V1alpha3DeviceClass
-from kubernetes.client.models.v1alpha3_device_class_configuration import V1alpha3DeviceClassConfiguration
-from kubernetes.client.models.v1alpha3_device_class_list import V1alpha3DeviceClassList
-from kubernetes.client.models.v1alpha3_device_class_spec import V1alpha3DeviceClassSpec
-from kubernetes.client.models.v1alpha3_device_constraint import V1alpha3DeviceConstraint
-from kubernetes.client.models.v1alpha3_device_counter_consumption import V1alpha3DeviceCounterConsumption
-from kubernetes.client.models.v1alpha3_device_request import V1alpha3DeviceRequest
-from kubernetes.client.models.v1alpha3_device_request_allocation_result import V1alpha3DeviceRequestAllocationResult
from kubernetes.client.models.v1alpha3_device_selector import V1alpha3DeviceSelector
-from kubernetes.client.models.v1alpha3_device_sub_request import V1alpha3DeviceSubRequest
from kubernetes.client.models.v1alpha3_device_taint import V1alpha3DeviceTaint
from kubernetes.client.models.v1alpha3_device_taint_rule import V1alpha3DeviceTaintRule
from kubernetes.client.models.v1alpha3_device_taint_rule_list import V1alpha3DeviceTaintRuleList
from kubernetes.client.models.v1alpha3_device_taint_rule_spec import V1alpha3DeviceTaintRuleSpec
from kubernetes.client.models.v1alpha3_device_taint_selector import V1alpha3DeviceTaintSelector
-from kubernetes.client.models.v1alpha3_device_toleration import V1alpha3DeviceToleration
-from kubernetes.client.models.v1alpha3_network_device_data import V1alpha3NetworkDeviceData
-from kubernetes.client.models.v1alpha3_opaque_device_configuration import V1alpha3OpaqueDeviceConfiguration
-from kubernetes.client.models.v1alpha3_resource_claim import V1alpha3ResourceClaim
-from kubernetes.client.models.v1alpha3_resource_claim_consumer_reference import V1alpha3ResourceClaimConsumerReference
-from kubernetes.client.models.v1alpha3_resource_claim_list import V1alpha3ResourceClaimList
-from kubernetes.client.models.v1alpha3_resource_claim_spec import V1alpha3ResourceClaimSpec
-from kubernetes.client.models.v1alpha3_resource_claim_status import V1alpha3ResourceClaimStatus
-from kubernetes.client.models.v1alpha3_resource_claim_template import V1alpha3ResourceClaimTemplate
-from kubernetes.client.models.v1alpha3_resource_claim_template_list import V1alpha3ResourceClaimTemplateList
-from kubernetes.client.models.v1alpha3_resource_claim_template_spec import V1alpha3ResourceClaimTemplateSpec
-from kubernetes.client.models.v1alpha3_resource_pool import V1alpha3ResourcePool
-from kubernetes.client.models.v1alpha3_resource_slice import V1alpha3ResourceSlice
-from kubernetes.client.models.v1alpha3_resource_slice_list import V1alpha3ResourceSliceList
-from kubernetes.client.models.v1alpha3_resource_slice_spec import V1alpha3ResourceSliceSpec
from kubernetes.client.models.v1beta1_allocated_device_status import V1beta1AllocatedDeviceStatus
from kubernetes.client.models.v1beta1_allocation_result import V1beta1AllocationResult
-from kubernetes.client.models.v1beta1_audit_annotation import V1beta1AuditAnnotation
+from kubernetes.client.models.v1beta1_apply_configuration import V1beta1ApplyConfiguration
from kubernetes.client.models.v1beta1_basic_device import V1beta1BasicDevice
from kubernetes.client.models.v1beta1_cel_device_selector import V1beta1CELDeviceSelector
+from kubernetes.client.models.v1beta1_capacity_request_policy import V1beta1CapacityRequestPolicy
+from kubernetes.client.models.v1beta1_capacity_request_policy_range import V1beta1CapacityRequestPolicyRange
+from kubernetes.client.models.v1beta1_capacity_requirements import V1beta1CapacityRequirements
from kubernetes.client.models.v1beta1_cluster_trust_bundle import V1beta1ClusterTrustBundle
from kubernetes.client.models.v1beta1_cluster_trust_bundle_list import V1beta1ClusterTrustBundleList
from kubernetes.client.models.v1beta1_cluster_trust_bundle_spec import V1beta1ClusterTrustBundleSpec
@@ -678,15 +701,22 @@ from kubernetes.client.models.v1beta1_device_selector import V1beta1DeviceSelect
from kubernetes.client.models.v1beta1_device_sub_request import V1beta1DeviceSubRequest
from kubernetes.client.models.v1beta1_device_taint import V1beta1DeviceTaint
from kubernetes.client.models.v1beta1_device_toleration import V1beta1DeviceToleration
-from kubernetes.client.models.v1beta1_expression_warning import V1beta1ExpressionWarning
from kubernetes.client.models.v1beta1_ip_address import V1beta1IPAddress
from kubernetes.client.models.v1beta1_ip_address_list import V1beta1IPAddressList
from kubernetes.client.models.v1beta1_ip_address_spec import V1beta1IPAddressSpec
+from kubernetes.client.models.v1beta1_json_patch import V1beta1JSONPatch
from kubernetes.client.models.v1beta1_lease_candidate import V1beta1LeaseCandidate
from kubernetes.client.models.v1beta1_lease_candidate_list import V1beta1LeaseCandidateList
from kubernetes.client.models.v1beta1_lease_candidate_spec import V1beta1LeaseCandidateSpec
from kubernetes.client.models.v1beta1_match_condition import V1beta1MatchCondition
from kubernetes.client.models.v1beta1_match_resources import V1beta1MatchResources
+from kubernetes.client.models.v1beta1_mutating_admission_policy import V1beta1MutatingAdmissionPolicy
+from kubernetes.client.models.v1beta1_mutating_admission_policy_binding import V1beta1MutatingAdmissionPolicyBinding
+from kubernetes.client.models.v1beta1_mutating_admission_policy_binding_list import V1beta1MutatingAdmissionPolicyBindingList
+from kubernetes.client.models.v1beta1_mutating_admission_policy_binding_spec import V1beta1MutatingAdmissionPolicyBindingSpec
+from kubernetes.client.models.v1beta1_mutating_admission_policy_list import V1beta1MutatingAdmissionPolicyList
+from kubernetes.client.models.v1beta1_mutating_admission_policy_spec import V1beta1MutatingAdmissionPolicySpec
+from kubernetes.client.models.v1beta1_mutation import V1beta1Mutation
from kubernetes.client.models.v1beta1_named_rule_with_operations import V1beta1NamedRuleWithOperations
from kubernetes.client.models.v1beta1_network_device_data import V1beta1NetworkDeviceData
from kubernetes.client.models.v1beta1_opaque_device_configuration import V1beta1OpaqueDeviceConfiguration
@@ -709,21 +739,15 @@ from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR
from kubernetes.client.models.v1beta1_service_cidr_list import V1beta1ServiceCIDRList
from kubernetes.client.models.v1beta1_service_cidr_spec import V1beta1ServiceCIDRSpec
from kubernetes.client.models.v1beta1_service_cidr_status import V1beta1ServiceCIDRStatus
-from kubernetes.client.models.v1beta1_type_checking import V1beta1TypeChecking
-from kubernetes.client.models.v1beta1_validating_admission_policy import V1beta1ValidatingAdmissionPolicy
-from kubernetes.client.models.v1beta1_validating_admission_policy_binding import V1beta1ValidatingAdmissionPolicyBinding
-from kubernetes.client.models.v1beta1_validating_admission_policy_binding_list import V1beta1ValidatingAdmissionPolicyBindingList
-from kubernetes.client.models.v1beta1_validating_admission_policy_binding_spec import V1beta1ValidatingAdmissionPolicyBindingSpec
-from kubernetes.client.models.v1beta1_validating_admission_policy_list import V1beta1ValidatingAdmissionPolicyList
-from kubernetes.client.models.v1beta1_validating_admission_policy_spec import V1beta1ValidatingAdmissionPolicySpec
-from kubernetes.client.models.v1beta1_validating_admission_policy_status import V1beta1ValidatingAdmissionPolicyStatus
-from kubernetes.client.models.v1beta1_validation import V1beta1Validation
from kubernetes.client.models.v1beta1_variable import V1beta1Variable
from kubernetes.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass
from kubernetes.client.models.v1beta1_volume_attributes_class_list import V1beta1VolumeAttributesClassList
from kubernetes.client.models.v1beta2_allocated_device_status import V1beta2AllocatedDeviceStatus
from kubernetes.client.models.v1beta2_allocation_result import V1beta2AllocationResult
from kubernetes.client.models.v1beta2_cel_device_selector import V1beta2CELDeviceSelector
+from kubernetes.client.models.v1beta2_capacity_request_policy import V1beta2CapacityRequestPolicy
+from kubernetes.client.models.v1beta2_capacity_request_policy_range import V1beta2CapacityRequestPolicyRange
+from kubernetes.client.models.v1beta2_capacity_requirements import V1beta2CapacityRequirements
from kubernetes.client.models.v1beta2_counter import V1beta2Counter
from kubernetes.client.models.v1beta2_counter_set import V1beta2CounterSet
from kubernetes.client.models.v1beta2_device import V1beta2Device
diff --git a/contrib/python/kubernetes/kubernetes/client/api/__init__.py b/contrib/python/kubernetes/kubernetes/client/api/__init__.py
index ac167ebffb9..7bc5ad88257 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/__init__.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/__init__.py
@@ -55,6 +55,7 @@ from kubernetes.client.api.policy_v1_api import PolicyV1Api
from kubernetes.client.api.rbac_authorization_api import RbacAuthorizationApi
from kubernetes.client.api.rbac_authorization_v1_api import RbacAuthorizationV1Api
from kubernetes.client.api.resource_api import ResourceApi
+from kubernetes.client.api.resource_v1_api import ResourceV1Api
from kubernetes.client.api.resource_v1alpha3_api import ResourceV1alpha3Api
from kubernetes.client.api.resource_v1beta1_api import ResourceV1beta1Api
from kubernetes.client.api.resource_v1beta2_api import ResourceV1beta2Api
diff --git a/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_api.py b/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_api.py
index edfb06e15ef..2a0b527cb2f 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1_api.py
index be25b990e63..abde655ea54 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1alpha1_api.py b/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1alpha1_api.py
index fbbddd11d82..c95724be616 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1alpha1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1alpha1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1beta1_api.py b/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1beta1_api.py
index 15e2c3bd3d8..9b14fbb54c8 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1beta1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/admissionregistration_v1beta1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -36,17 +36,17 @@ class AdmissionregistrationV1beta1Api(object):
api_client = ApiClient()
self.api_client = api_client
- def create_validating_admission_policy(self, body, **kwargs): # noqa: E501
- """create_validating_admission_policy # noqa: E501
+ def create_mutating_admission_policy(self, body, **kwargs): # noqa: E501
+ """create_mutating_admission_policy # noqa: E501
- create a ValidatingAdmissionPolicy # noqa: E501
+ create a MutatingAdmissionPolicy # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_validating_admission_policy(body, async_req=True)
+ >>> thread = api.create_mutating_admission_policy(body, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param V1beta1ValidatingAdmissionPolicy body: (required)
+ :param V1beta1MutatingAdmissionPolicy body: (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
@@ -58,24 +58,24 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: V1beta1ValidatingAdmissionPolicy
+ :return: V1beta1MutatingAdmissionPolicy
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.create_validating_admission_policy_with_http_info(body, **kwargs) # noqa: E501
+ return self.create_mutating_admission_policy_with_http_info(body, **kwargs) # noqa: E501
- def create_validating_admission_policy_with_http_info(self, body, **kwargs): # noqa: E501
- """create_validating_admission_policy # noqa: E501
+ def create_mutating_admission_policy_with_http_info(self, body, **kwargs): # noqa: E501
+ """create_mutating_admission_policy # noqa: E501
- create a ValidatingAdmissionPolicy # noqa: E501
+ create a MutatingAdmissionPolicy # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_validating_admission_policy_with_http_info(body, async_req=True)
+ >>> thread = api.create_mutating_admission_policy_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param V1beta1ValidatingAdmissionPolicy body: (required)
+ :param V1beta1MutatingAdmissionPolicy body: (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
@@ -89,7 +89,7 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(V1beta1ValidatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict))
+ :return: tuple(V1beta1MutatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
@@ -116,14 +116,14 @@ class AdmissionregistrationV1beta1Api(object):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method create_validating_admission_policy" % key
+ " to method create_mutating_admission_policy" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'body' is set
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `create_validating_admission_policy`") # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `create_mutating_admission_policy`") # noqa: E501
collection_formats = {}
@@ -155,14 +155,14 @@ class AdmissionregistrationV1beta1Api(object):
auth_settings = ['BearerToken'] # noqa: E501
return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies', 'POST',
+ '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='V1beta1ValidatingAdmissionPolicy', # noqa: E501
+ response_type='V1beta1MutatingAdmissionPolicy', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -170,17 +170,17 @@ class AdmissionregistrationV1beta1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def create_validating_admission_policy_binding(self, body, **kwargs): # noqa: E501
- """create_validating_admission_policy_binding # noqa: E501
+ def create_mutating_admission_policy_binding(self, body, **kwargs): # noqa: E501
+ """create_mutating_admission_policy_binding # noqa: E501
- create a ValidatingAdmissionPolicyBinding # noqa: E501
+ create a MutatingAdmissionPolicyBinding # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_validating_admission_policy_binding(body, async_req=True)
+ >>> thread = api.create_mutating_admission_policy_binding(body, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param V1beta1ValidatingAdmissionPolicyBinding body: (required)
+ :param V1beta1MutatingAdmissionPolicyBinding body: (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
@@ -192,24 +192,24 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: V1beta1ValidatingAdmissionPolicyBinding
+ :return: V1beta1MutatingAdmissionPolicyBinding
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.create_validating_admission_policy_binding_with_http_info(body, **kwargs) # noqa: E501
+ return self.create_mutating_admission_policy_binding_with_http_info(body, **kwargs) # noqa: E501
- def create_validating_admission_policy_binding_with_http_info(self, body, **kwargs): # noqa: E501
- """create_validating_admission_policy_binding # noqa: E501
+ def create_mutating_admission_policy_binding_with_http_info(self, body, **kwargs): # noqa: E501
+ """create_mutating_admission_policy_binding # noqa: E501
- create a ValidatingAdmissionPolicyBinding # noqa: E501
+ create a MutatingAdmissionPolicyBinding # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_validating_admission_policy_binding_with_http_info(body, async_req=True)
+ >>> thread = api.create_mutating_admission_policy_binding_with_http_info(body, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param V1beta1ValidatingAdmissionPolicyBinding body: (required)
+ :param V1beta1MutatingAdmissionPolicyBinding body: (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
@@ -223,7 +223,7 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(V1beta1ValidatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict))
+ :return: tuple(V1beta1MutatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
@@ -250,14 +250,14 @@ class AdmissionregistrationV1beta1Api(object):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method create_validating_admission_policy_binding" % key
+ " to method create_mutating_admission_policy_binding" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'body' is set
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `create_validating_admission_policy_binding`") # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `create_mutating_admission_policy_binding`") # noqa: E501
collection_formats = {}
@@ -289,14 +289,14 @@ class AdmissionregistrationV1beta1Api(object):
auth_settings = ['BearerToken'] # noqa: E501
return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings', 'POST',
+ '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings', 'POST',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='V1beta1ValidatingAdmissionPolicyBinding', # noqa: E501
+ response_type='V1beta1MutatingAdmissionPolicyBinding', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -304,13 +304,13 @@ class AdmissionregistrationV1beta1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def delete_collection_validating_admission_policy(self, **kwargs): # noqa: E501
- """delete_collection_validating_admission_policy # noqa: E501
+ def delete_collection_mutating_admission_policy(self, **kwargs): # noqa: E501
+ """delete_collection_mutating_admission_policy # noqa: E501
- delete collection of ValidatingAdmissionPolicy # noqa: E501
+ delete collection of MutatingAdmissionPolicy # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_collection_validating_admission_policy(async_req=True)
+ >>> thread = api.delete_collection_mutating_admission_policy(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
@@ -341,15 +341,15 @@ class AdmissionregistrationV1beta1Api(object):
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.delete_collection_validating_admission_policy_with_http_info(**kwargs) # noqa: E501
+ return self.delete_collection_mutating_admission_policy_with_http_info(**kwargs) # noqa: E501
- def delete_collection_validating_admission_policy_with_http_info(self, **kwargs): # noqa: E501
- """delete_collection_validating_admission_policy # noqa: E501
+ def delete_collection_mutating_admission_policy_with_http_info(self, **kwargs): # noqa: E501
+ """delete_collection_mutating_admission_policy # noqa: E501
- delete collection of ValidatingAdmissionPolicy # noqa: E501
+ delete collection of MutatingAdmissionPolicy # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_collection_validating_admission_policy_with_http_info(async_req=True)
+ >>> thread = api.delete_collection_mutating_admission_policy_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
@@ -414,7 +414,7 @@ class AdmissionregistrationV1beta1Api(object):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method delete_collection_validating_admission_policy" % key
+ " to method delete_collection_mutating_admission_policy" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
@@ -469,7 +469,7 @@ class AdmissionregistrationV1beta1Api(object):
auth_settings = ['BearerToken'] # noqa: E501
return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies', 'DELETE',
+ '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies', 'DELETE',
path_params,
query_params,
header_params,
@@ -484,13 +484,13 @@ class AdmissionregistrationV1beta1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def delete_collection_validating_admission_policy_binding(self, **kwargs): # noqa: E501
- """delete_collection_validating_admission_policy_binding # noqa: E501
+ def delete_collection_mutating_admission_policy_binding(self, **kwargs): # noqa: E501
+ """delete_collection_mutating_admission_policy_binding # noqa: E501
- delete collection of ValidatingAdmissionPolicyBinding # noqa: E501
+ delete collection of MutatingAdmissionPolicyBinding # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_collection_validating_admission_policy_binding(async_req=True)
+ >>> thread = api.delete_collection_mutating_admission_policy_binding(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
@@ -521,15 +521,15 @@ class AdmissionregistrationV1beta1Api(object):
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.delete_collection_validating_admission_policy_binding_with_http_info(**kwargs) # noqa: E501
+ return self.delete_collection_mutating_admission_policy_binding_with_http_info(**kwargs) # noqa: E501
- def delete_collection_validating_admission_policy_binding_with_http_info(self, **kwargs): # noqa: E501
- """delete_collection_validating_admission_policy_binding # noqa: E501
+ def delete_collection_mutating_admission_policy_binding_with_http_info(self, **kwargs): # noqa: E501
+ """delete_collection_mutating_admission_policy_binding # noqa: E501
- delete collection of ValidatingAdmissionPolicyBinding # noqa: E501
+ delete collection of MutatingAdmissionPolicyBinding # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_collection_validating_admission_policy_binding_with_http_info(async_req=True)
+ >>> thread = api.delete_collection_mutating_admission_policy_binding_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
@@ -594,7 +594,7 @@ class AdmissionregistrationV1beta1Api(object):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method delete_collection_validating_admission_policy_binding" % key
+ " to method delete_collection_mutating_admission_policy_binding" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
@@ -649,7 +649,7 @@ class AdmissionregistrationV1beta1Api(object):
auth_settings = ['BearerToken'] # noqa: E501
return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings', 'DELETE',
+ '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings', 'DELETE',
path_params,
query_params,
header_params,
@@ -664,17 +664,17 @@ class AdmissionregistrationV1beta1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def delete_validating_admission_policy(self, name, **kwargs): # noqa: E501
- """delete_validating_admission_policy # noqa: E501
+ def delete_mutating_admission_policy(self, name, **kwargs): # noqa: E501
+ """delete_mutating_admission_policy # noqa: E501
- delete a ValidatingAdmissionPolicy # noqa: E501
+ delete a MutatingAdmissionPolicy # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_validating_admission_policy(name, async_req=True)
+ >>> thread = api.delete_mutating_admission_policy(name, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicy (required)
+ :param str name: name of the MutatingAdmissionPolicy (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
:param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
@@ -694,19 +694,19 @@ class AdmissionregistrationV1beta1Api(object):
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.delete_validating_admission_policy_with_http_info(name, **kwargs) # noqa: E501
+ return self.delete_mutating_admission_policy_with_http_info(name, **kwargs) # noqa: E501
- def delete_validating_admission_policy_with_http_info(self, name, **kwargs): # noqa: E501
- """delete_validating_admission_policy # noqa: E501
+ def delete_mutating_admission_policy_with_http_info(self, name, **kwargs): # noqa: E501
+ """delete_mutating_admission_policy # noqa: E501
- delete a ValidatingAdmissionPolicy # noqa: E501
+ delete a MutatingAdmissionPolicy # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_validating_admission_policy_with_http_info(name, async_req=True)
+ >>> thread = api.delete_mutating_admission_policy_with_http_info(name, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicy (required)
+ :param str name: name of the MutatingAdmissionPolicy (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
:param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
@@ -753,14 +753,14 @@ class AdmissionregistrationV1beta1Api(object):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method delete_validating_admission_policy" % key
+ " to method delete_mutating_admission_policy" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'name' is set
if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `delete_validating_admission_policy`") # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `delete_mutating_admission_policy`") # noqa: E501
collection_formats = {}
@@ -798,7 +798,7 @@ class AdmissionregistrationV1beta1Api(object):
auth_settings = ['BearerToken'] # noqa: E501
return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}', 'DELETE',
+ '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}', 'DELETE',
path_params,
query_params,
header_params,
@@ -813,17 +813,17 @@ class AdmissionregistrationV1beta1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def delete_validating_admission_policy_binding(self, name, **kwargs): # noqa: E501
- """delete_validating_admission_policy_binding # noqa: E501
+ def delete_mutating_admission_policy_binding(self, name, **kwargs): # noqa: E501
+ """delete_mutating_admission_policy_binding # noqa: E501
- delete a ValidatingAdmissionPolicyBinding # noqa: E501
+ delete a MutatingAdmissionPolicyBinding # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_validating_admission_policy_binding(name, async_req=True)
+ >>> thread = api.delete_mutating_admission_policy_binding(name, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicyBinding (required)
+ :param str name: name of the MutatingAdmissionPolicyBinding (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
:param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
@@ -843,19 +843,19 @@ class AdmissionregistrationV1beta1Api(object):
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.delete_validating_admission_policy_binding_with_http_info(name, **kwargs) # noqa: E501
+ return self.delete_mutating_admission_policy_binding_with_http_info(name, **kwargs) # noqa: E501
- def delete_validating_admission_policy_binding_with_http_info(self, name, **kwargs): # noqa: E501
- """delete_validating_admission_policy_binding # noqa: E501
+ def delete_mutating_admission_policy_binding_with_http_info(self, name, **kwargs): # noqa: E501
+ """delete_mutating_admission_policy_binding # noqa: E501
- delete a ValidatingAdmissionPolicyBinding # noqa: E501
+ delete a MutatingAdmissionPolicyBinding # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_validating_admission_policy_binding_with_http_info(name, async_req=True)
+ >>> thread = api.delete_mutating_admission_policy_binding_with_http_info(name, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicyBinding (required)
+ :param str name: name of the MutatingAdmissionPolicyBinding (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
:param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
@@ -902,14 +902,14 @@ class AdmissionregistrationV1beta1Api(object):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method delete_validating_admission_policy_binding" % key
+ " to method delete_mutating_admission_policy_binding" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'name' is set
if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `delete_validating_admission_policy_binding`") # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `delete_mutating_admission_policy_binding`") # noqa: E501
collection_formats = {}
@@ -947,7 +947,7 @@ class AdmissionregistrationV1beta1Api(object):
auth_settings = ['BearerToken'] # noqa: E501
return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}', 'DELETE',
+ '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}', 'DELETE',
path_params,
query_params,
header_params,
@@ -1067,13 +1067,13 @@ class AdmissionregistrationV1beta1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def list_validating_admission_policy(self, **kwargs): # noqa: E501
- """list_validating_admission_policy # noqa: E501
+ def list_mutating_admission_policy(self, **kwargs): # noqa: E501
+ """list_mutating_admission_policy # noqa: E501
- list or watch objects of kind ValidatingAdmissionPolicy # noqa: E501
+ list or watch objects of kind MutatingAdmissionPolicy # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_validating_admission_policy(async_req=True)
+ >>> thread = api.list_mutating_admission_policy(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
@@ -1095,20 +1095,20 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: V1beta1ValidatingAdmissionPolicyList
+ :return: V1beta1MutatingAdmissionPolicyList
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.list_validating_admission_policy_with_http_info(**kwargs) # noqa: E501
+ return self.list_mutating_admission_policy_with_http_info(**kwargs) # noqa: E501
- def list_validating_admission_policy_with_http_info(self, **kwargs): # noqa: E501
- """list_validating_admission_policy # noqa: E501
+ def list_mutating_admission_policy_with_http_info(self, **kwargs): # noqa: E501
+ """list_mutating_admission_policy # noqa: E501
- list or watch objects of kind ValidatingAdmissionPolicy # noqa: E501
+ list or watch objects of kind MutatingAdmissionPolicy # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_validating_admission_policy_with_http_info(async_req=True)
+ >>> thread = api.list_mutating_admission_policy_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
@@ -1132,7 +1132,7 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(V1beta1ValidatingAdmissionPolicyList, status_code(int), headers(HTTPHeaderDict))
+ :return: tuple(V1beta1MutatingAdmissionPolicyList, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
@@ -1165,7 +1165,7 @@ class AdmissionregistrationV1beta1Api(object):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method list_validating_admission_policy" % key
+ " to method list_mutating_admission_policy" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
@@ -1212,14 +1212,14 @@ class AdmissionregistrationV1beta1Api(object):
auth_settings = ['BearerToken'] # noqa: E501
return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies', 'GET',
+ '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='V1beta1ValidatingAdmissionPolicyList', # noqa: E501
+ response_type='V1beta1MutatingAdmissionPolicyList', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -1227,13 +1227,13 @@ class AdmissionregistrationV1beta1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def list_validating_admission_policy_binding(self, **kwargs): # noqa: E501
- """list_validating_admission_policy_binding # noqa: E501
+ def list_mutating_admission_policy_binding(self, **kwargs): # noqa: E501
+ """list_mutating_admission_policy_binding # noqa: E501
- list or watch objects of kind ValidatingAdmissionPolicyBinding # noqa: E501
+ list or watch objects of kind MutatingAdmissionPolicyBinding # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_validating_admission_policy_binding(async_req=True)
+ >>> thread = api.list_mutating_admission_policy_binding(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
@@ -1255,20 +1255,20 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: V1beta1ValidatingAdmissionPolicyBindingList
+ :return: V1beta1MutatingAdmissionPolicyBindingList
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.list_validating_admission_policy_binding_with_http_info(**kwargs) # noqa: E501
+ return self.list_mutating_admission_policy_binding_with_http_info(**kwargs) # noqa: E501
- def list_validating_admission_policy_binding_with_http_info(self, **kwargs): # noqa: E501
- """list_validating_admission_policy_binding # noqa: E501
+ def list_mutating_admission_policy_binding_with_http_info(self, **kwargs): # noqa: E501
+ """list_mutating_admission_policy_binding # noqa: E501
- list or watch objects of kind ValidatingAdmissionPolicyBinding # noqa: E501
+ list or watch objects of kind MutatingAdmissionPolicyBinding # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_validating_admission_policy_binding_with_http_info(async_req=True)
+ >>> thread = api.list_mutating_admission_policy_binding_with_http_info(async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
@@ -1292,7 +1292,7 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(V1beta1ValidatingAdmissionPolicyBindingList, status_code(int), headers(HTTPHeaderDict))
+ :return: tuple(V1beta1MutatingAdmissionPolicyBindingList, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
@@ -1325,7 +1325,7 @@ class AdmissionregistrationV1beta1Api(object):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method list_validating_admission_policy_binding" % key
+ " to method list_mutating_admission_policy_binding" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
@@ -1372,14 +1372,14 @@ class AdmissionregistrationV1beta1Api(object):
auth_settings = ['BearerToken'] # noqa: E501
return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings', 'GET',
+ '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='V1beta1ValidatingAdmissionPolicyBindingList', # noqa: E501
+ response_type='V1beta1MutatingAdmissionPolicyBindingList', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -1387,17 +1387,17 @@ class AdmissionregistrationV1beta1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def patch_validating_admission_policy(self, name, body, **kwargs): # noqa: E501
- """patch_validating_admission_policy # noqa: E501
+ def patch_mutating_admission_policy(self, name, body, **kwargs): # noqa: E501
+ """patch_mutating_admission_policy # noqa: E501
- partially update the specified ValidatingAdmissionPolicy # noqa: E501
+ partially update the specified MutatingAdmissionPolicy # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_validating_admission_policy(name, body, async_req=True)
+ >>> thread = api.patch_mutating_admission_policy(name, body, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicy (required)
+ :param str name: name of the MutatingAdmissionPolicy (required)
:param object body: (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: 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
@@ -1411,24 +1411,24 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: V1beta1ValidatingAdmissionPolicy
+ :return: V1beta1MutatingAdmissionPolicy
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.patch_validating_admission_policy_with_http_info(name, body, **kwargs) # noqa: E501
+ return self.patch_mutating_admission_policy_with_http_info(name, body, **kwargs) # noqa: E501
- def patch_validating_admission_policy_with_http_info(self, name, body, **kwargs): # noqa: E501
- """patch_validating_admission_policy # noqa: E501
+ def patch_mutating_admission_policy_with_http_info(self, name, body, **kwargs): # noqa: E501
+ """patch_mutating_admission_policy # noqa: E501
- partially update the specified ValidatingAdmissionPolicy # noqa: E501
+ partially update the specified MutatingAdmissionPolicy # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_validating_admission_policy_with_http_info(name, body, async_req=True)
+ >>> thread = api.patch_mutating_admission_policy_with_http_info(name, body, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicy (required)
+ :param str name: name of the MutatingAdmissionPolicy (required)
:param object body: (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: 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
@@ -1444,7 +1444,7 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(V1beta1ValidatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict))
+ :return: tuple(V1beta1MutatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
@@ -1473,18 +1473,18 @@ class AdmissionregistrationV1beta1Api(object):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method patch_validating_admission_policy" % key
+ " to method patch_mutating_admission_policy" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'name' is set
if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `patch_validating_admission_policy`") # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `patch_mutating_admission_policy`") # noqa: E501
# verify the required parameter 'body' is set
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `patch_validating_admission_policy`") # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `patch_mutating_admission_policy`") # noqa: E501
collection_formats = {}
@@ -1524,14 +1524,14 @@ class AdmissionregistrationV1beta1Api(object):
auth_settings = ['BearerToken'] # noqa: E501
return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}', 'PATCH',
+ '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='V1beta1ValidatingAdmissionPolicy', # noqa: E501
+ response_type='V1beta1MutatingAdmissionPolicy', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -1539,17 +1539,17 @@ class AdmissionregistrationV1beta1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def patch_validating_admission_policy_binding(self, name, body, **kwargs): # noqa: E501
- """patch_validating_admission_policy_binding # noqa: E501
+ def patch_mutating_admission_policy_binding(self, name, body, **kwargs): # noqa: E501
+ """patch_mutating_admission_policy_binding # noqa: E501
- partially update the specified ValidatingAdmissionPolicyBinding # noqa: E501
+ partially update the specified MutatingAdmissionPolicyBinding # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_validating_admission_policy_binding(name, body, async_req=True)
+ >>> thread = api.patch_mutating_admission_policy_binding(name, body, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicyBinding (required)
+ :param str name: name of the MutatingAdmissionPolicyBinding (required)
:param object body: (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: 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
@@ -1563,24 +1563,24 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: V1beta1ValidatingAdmissionPolicyBinding
+ :return: V1beta1MutatingAdmissionPolicyBinding
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.patch_validating_admission_policy_binding_with_http_info(name, body, **kwargs) # noqa: E501
+ return self.patch_mutating_admission_policy_binding_with_http_info(name, body, **kwargs) # noqa: E501
- def patch_validating_admission_policy_binding_with_http_info(self, name, body, **kwargs): # noqa: E501
- """patch_validating_admission_policy_binding # noqa: E501
+ def patch_mutating_admission_policy_binding_with_http_info(self, name, body, **kwargs): # noqa: E501
+ """patch_mutating_admission_policy_binding # noqa: E501
- partially update the specified ValidatingAdmissionPolicyBinding # noqa: E501
+ partially update the specified MutatingAdmissionPolicyBinding # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_validating_admission_policy_binding_with_http_info(name, body, async_req=True)
+ >>> thread = api.patch_mutating_admission_policy_binding_with_http_info(name, body, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicyBinding (required)
+ :param str name: name of the MutatingAdmissionPolicyBinding (required)
:param object body: (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: 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
@@ -1596,7 +1596,7 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(V1beta1ValidatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict))
+ :return: tuple(V1beta1MutatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
@@ -1625,18 +1625,18 @@ class AdmissionregistrationV1beta1Api(object):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method patch_validating_admission_policy_binding" % key
+ " to method patch_mutating_admission_policy_binding" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'name' is set
if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `patch_validating_admission_policy_binding`") # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `patch_mutating_admission_policy_binding`") # noqa: E501
# verify the required parameter 'body' is set
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `patch_validating_admission_policy_binding`") # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `patch_mutating_admission_policy_binding`") # noqa: E501
collection_formats = {}
@@ -1676,14 +1676,14 @@ class AdmissionregistrationV1beta1Api(object):
auth_settings = ['BearerToken'] # noqa: E501
return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}', 'PATCH',
+ '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}', 'PATCH',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='V1beta1ValidatingAdmissionPolicyBinding', # noqa: E501
+ response_type='V1beta1MutatingAdmissionPolicyBinding', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -1691,169 +1691,17 @@ class AdmissionregistrationV1beta1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def patch_validating_admission_policy_status(self, name, body, **kwargs): # noqa: E501
- """patch_validating_admission_policy_status # noqa: E501
+ def read_mutating_admission_policy(self, name, **kwargs): # noqa: E501
+ """read_mutating_admission_policy # noqa: E501
- partially update status of the specified ValidatingAdmissionPolicy # noqa: E501
+ read the specified MutatingAdmissionPolicy # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_validating_admission_policy_status(name, body, async_req=True)
+ >>> thread = api.read_mutating_admission_policy(name, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicy (required)
- :param object body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1beta1ValidatingAdmissionPolicy
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.patch_validating_admission_policy_status_with_http_info(name, body, **kwargs) # noqa: E501
-
- def patch_validating_admission_policy_status_with_http_info(self, name, body, **kwargs): # noqa: E501
- """patch_validating_admission_policy_status # noqa: E501
-
- partially update status of the specified ValidatingAdmissionPolicy # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_validating_admission_policy_status_with_http_info(name, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicy (required)
- :param object body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1beta1ValidatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation',
- 'force'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method patch_validating_admission_policy_status" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `patch_validating_admission_policy_status`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `patch_validating_admission_policy_status`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
- if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
- query_params.append(('force', local_var_params['force'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status', 'PATCH',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1beta1ValidatingAdmissionPolicy', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def read_validating_admission_policy(self, name, **kwargs): # noqa: E501
- """read_validating_admission_policy # noqa: E501
-
- read the specified ValidatingAdmissionPolicy # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_validating_admission_policy(name, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicy (required)
+ :param str name: name of the MutatingAdmissionPolicy (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
@@ -1862,24 +1710,24 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: V1beta1ValidatingAdmissionPolicy
+ :return: V1beta1MutatingAdmissionPolicy
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.read_validating_admission_policy_with_http_info(name, **kwargs) # noqa: E501
+ return self.read_mutating_admission_policy_with_http_info(name, **kwargs) # noqa: E501
- def read_validating_admission_policy_with_http_info(self, name, **kwargs): # noqa: E501
- """read_validating_admission_policy # noqa: E501
+ def read_mutating_admission_policy_with_http_info(self, name, **kwargs): # noqa: E501
+ """read_mutating_admission_policy # noqa: E501
- read the specified ValidatingAdmissionPolicy # noqa: E501
+ read the specified MutatingAdmissionPolicy # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_validating_admission_policy_with_http_info(name, async_req=True)
+ >>> thread = api.read_mutating_admission_policy_with_http_info(name, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicy (required)
+ :param str name: name of the MutatingAdmissionPolicy (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param _return_http_data_only: response data without head status code
and headers
@@ -1890,7 +1738,7 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(V1beta1ValidatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict))
+ :return: tuple(V1beta1MutatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
@@ -1914,14 +1762,14 @@ class AdmissionregistrationV1beta1Api(object):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method read_validating_admission_policy" % key
+ " to method read_mutating_admission_policy" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'name' is set
if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `read_validating_admission_policy`") # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `read_mutating_admission_policy`") # noqa: E501
collection_formats = {}
@@ -1947,14 +1795,14 @@ class AdmissionregistrationV1beta1Api(object):
auth_settings = ['BearerToken'] # noqa: E501
return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}', 'GET',
+ '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='V1beta1ValidatingAdmissionPolicy', # noqa: E501
+ response_type='V1beta1MutatingAdmissionPolicy', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -1962,17 +1810,17 @@ class AdmissionregistrationV1beta1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def read_validating_admission_policy_binding(self, name, **kwargs): # noqa: E501
- """read_validating_admission_policy_binding # noqa: E501
+ def read_mutating_admission_policy_binding(self, name, **kwargs): # noqa: E501
+ """read_mutating_admission_policy_binding # noqa: E501
- read the specified ValidatingAdmissionPolicyBinding # noqa: E501
+ read the specified MutatingAdmissionPolicyBinding # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_validating_admission_policy_binding(name, async_req=True)
+ >>> thread = api.read_mutating_admission_policy_binding(name, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicyBinding (required)
+ :param str name: name of the MutatingAdmissionPolicyBinding (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param _preload_content: if False, the urllib3.HTTPResponse object will
be returned without reading/decoding response
@@ -1981,24 +1829,24 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: V1beta1ValidatingAdmissionPolicyBinding
+ :return: V1beta1MutatingAdmissionPolicyBinding
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.read_validating_admission_policy_binding_with_http_info(name, **kwargs) # noqa: E501
+ return self.read_mutating_admission_policy_binding_with_http_info(name, **kwargs) # noqa: E501
- def read_validating_admission_policy_binding_with_http_info(self, name, **kwargs): # noqa: E501
- """read_validating_admission_policy_binding # noqa: E501
+ def read_mutating_admission_policy_binding_with_http_info(self, name, **kwargs): # noqa: E501
+ """read_mutating_admission_policy_binding # noqa: E501
- read the specified ValidatingAdmissionPolicyBinding # noqa: E501
+ read the specified MutatingAdmissionPolicyBinding # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_validating_admission_policy_binding_with_http_info(name, async_req=True)
+ >>> thread = api.read_mutating_admission_policy_binding_with_http_info(name, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicyBinding (required)
+ :param str name: name of the MutatingAdmissionPolicyBinding (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param _return_http_data_only: response data without head status code
and headers
@@ -2009,7 +1857,7 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(V1beta1ValidatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict))
+ :return: tuple(V1beta1MutatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
@@ -2033,14 +1881,14 @@ class AdmissionregistrationV1beta1Api(object):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method read_validating_admission_policy_binding" % key
+ " to method read_mutating_admission_policy_binding" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'name' is set
if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `read_validating_admission_policy_binding`") # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `read_mutating_admission_policy_binding`") # noqa: E501
collection_formats = {}
@@ -2066,276 +1914,14 @@ class AdmissionregistrationV1beta1Api(object):
auth_settings = ['BearerToken'] # noqa: E501
return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1beta1ValidatingAdmissionPolicyBinding', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def read_validating_admission_policy_status(self, name, **kwargs): # noqa: E501
- """read_validating_admission_policy_status # noqa: E501
-
- read status of the specified ValidatingAdmissionPolicy # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_validating_admission_policy_status(name, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicy (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1beta1ValidatingAdmissionPolicy
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.read_validating_admission_policy_status_with_http_info(name, **kwargs) # noqa: E501
-
- def read_validating_admission_policy_status_with_http_info(self, name, **kwargs): # noqa: E501
- """read_validating_admission_policy_status # noqa: E501
-
- read status of the specified ValidatingAdmissionPolicy # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_validating_admission_policy_status_with_http_info(name, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicy (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1beta1ValidatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'pretty'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method read_validating_admission_policy_status" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `read_validating_admission_policy_status`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1beta1ValidatingAdmissionPolicy', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def replace_validating_admission_policy(self, name, body, **kwargs): # noqa: E501
- """replace_validating_admission_policy # noqa: E501
-
- replace the specified ValidatingAdmissionPolicy # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_validating_admission_policy(name, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicy (required)
- :param V1beta1ValidatingAdmissionPolicy body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1beta1ValidatingAdmissionPolicy
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.replace_validating_admission_policy_with_http_info(name, body, **kwargs) # noqa: E501
-
- def replace_validating_admission_policy_with_http_info(self, name, body, **kwargs): # noqa: E501
- """replace_validating_admission_policy # noqa: E501
-
- replace the specified ValidatingAdmissionPolicy # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_validating_admission_policy_with_http_info(name, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicy (required)
- :param V1beta1ValidatingAdmissionPolicy body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1beta1ValidatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method replace_validating_admission_policy" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `replace_validating_admission_policy`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `replace_validating_admission_policy`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}', 'PUT',
+ '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}', 'GET',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='V1beta1ValidatingAdmissionPolicy', # noqa: E501
+ response_type='V1beta1MutatingAdmissionPolicyBinding', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -2343,18 +1929,18 @@ class AdmissionregistrationV1beta1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def replace_validating_admission_policy_binding(self, name, body, **kwargs): # noqa: E501
- """replace_validating_admission_policy_binding # noqa: E501
+ def replace_mutating_admission_policy(self, name, body, **kwargs): # noqa: E501
+ """replace_mutating_admission_policy # noqa: E501
- replace the specified ValidatingAdmissionPolicyBinding # noqa: E501
+ replace the specified MutatingAdmissionPolicy # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_validating_admission_policy_binding(name, body, async_req=True)
+ >>> thread = api.replace_mutating_admission_policy(name, body, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicyBinding (required)
- :param V1beta1ValidatingAdmissionPolicyBinding body: (required)
+ :param str name: name of the MutatingAdmissionPolicy (required)
+ :param V1beta1MutatingAdmissionPolicy body: (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
@@ -2366,25 +1952,25 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: V1beta1ValidatingAdmissionPolicyBinding
+ :return: V1beta1MutatingAdmissionPolicy
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.replace_validating_admission_policy_binding_with_http_info(name, body, **kwargs) # noqa: E501
+ return self.replace_mutating_admission_policy_with_http_info(name, body, **kwargs) # noqa: E501
- def replace_validating_admission_policy_binding_with_http_info(self, name, body, **kwargs): # noqa: E501
- """replace_validating_admission_policy_binding # noqa: E501
+ def replace_mutating_admission_policy_with_http_info(self, name, body, **kwargs): # noqa: E501
+ """replace_mutating_admission_policy # noqa: E501
- replace the specified ValidatingAdmissionPolicyBinding # noqa: E501
+ replace the specified MutatingAdmissionPolicy # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_validating_admission_policy_binding_with_http_info(name, body, async_req=True)
+ >>> thread = api.replace_mutating_admission_policy_with_http_info(name, body, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicyBinding (required)
- :param V1beta1ValidatingAdmissionPolicyBinding body: (required)
+ :param str name: name of the MutatingAdmissionPolicy (required)
+ :param V1beta1MutatingAdmissionPolicy body: (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
@@ -2398,7 +1984,7 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(V1beta1ValidatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict))
+ :return: tuple(V1beta1MutatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
@@ -2426,18 +2012,18 @@ class AdmissionregistrationV1beta1Api(object):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method replace_validating_admission_policy_binding" % key
+ " to method replace_mutating_admission_policy" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'name' is set
if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `replace_validating_admission_policy_binding`") # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `replace_mutating_admission_policy`") # noqa: E501
# verify the required parameter 'body' is set
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `replace_validating_admission_policy_binding`") # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `replace_mutating_admission_policy`") # noqa: E501
collection_formats = {}
@@ -2471,14 +2057,14 @@ class AdmissionregistrationV1beta1Api(object):
auth_settings = ['BearerToken'] # noqa: E501
return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicybindings/{name}', 'PUT',
+ '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicies/{name}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='V1beta1ValidatingAdmissionPolicyBinding', # noqa: E501
+ response_type='V1beta1MutatingAdmissionPolicy', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
@@ -2486,18 +2072,18 @@ class AdmissionregistrationV1beta1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def replace_validating_admission_policy_status(self, name, body, **kwargs): # noqa: E501
- """replace_validating_admission_policy_status # noqa: E501
+ def replace_mutating_admission_policy_binding(self, name, body, **kwargs): # noqa: E501
+ """replace_mutating_admission_policy_binding # noqa: E501
- replace status of the specified ValidatingAdmissionPolicy # noqa: E501
+ replace the specified MutatingAdmissionPolicyBinding # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_validating_admission_policy_status(name, body, async_req=True)
+ >>> thread = api.replace_mutating_admission_policy_binding(name, body, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicy (required)
- :param V1beta1ValidatingAdmissionPolicy body: (required)
+ :param str name: name of the MutatingAdmissionPolicyBinding (required)
+ :param V1beta1MutatingAdmissionPolicyBinding body: (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
@@ -2509,25 +2095,25 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: V1beta1ValidatingAdmissionPolicy
+ :return: V1beta1MutatingAdmissionPolicyBinding
If the method is called asynchronously,
returns the request thread.
"""
kwargs['_return_http_data_only'] = True
- return self.replace_validating_admission_policy_status_with_http_info(name, body, **kwargs) # noqa: E501
+ return self.replace_mutating_admission_policy_binding_with_http_info(name, body, **kwargs) # noqa: E501
- def replace_validating_admission_policy_status_with_http_info(self, name, body, **kwargs): # noqa: E501
- """replace_validating_admission_policy_status # noqa: E501
+ def replace_mutating_admission_policy_binding_with_http_info(self, name, body, **kwargs): # noqa: E501
+ """replace_mutating_admission_policy_binding # noqa: E501
- replace status of the specified ValidatingAdmissionPolicy # noqa: E501
+ replace the specified MutatingAdmissionPolicyBinding # noqa: E501
This method makes a synchronous HTTP request by default. To make an
asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_validating_admission_policy_status_with_http_info(name, body, async_req=True)
+ >>> thread = api.replace_mutating_admission_policy_binding_with_http_info(name, body, async_req=True)
>>> result = thread.get()
:param async_req bool: execute request asynchronously
- :param str name: name of the ValidatingAdmissionPolicy (required)
- :param V1beta1ValidatingAdmissionPolicy body: (required)
+ :param str name: name of the MutatingAdmissionPolicyBinding (required)
+ :param V1beta1MutatingAdmissionPolicyBinding body: (required)
:param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
:param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
:param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
@@ -2541,7 +2127,7 @@ class AdmissionregistrationV1beta1Api(object):
number provided, it will be total request
timeout. It can also be a pair (tuple) of
(connection, read) timeouts.
- :return: tuple(V1beta1ValidatingAdmissionPolicy, status_code(int), headers(HTTPHeaderDict))
+ :return: tuple(V1beta1MutatingAdmissionPolicyBinding, status_code(int), headers(HTTPHeaderDict))
If the method is called asynchronously,
returns the request thread.
"""
@@ -2569,18 +2155,18 @@ class AdmissionregistrationV1beta1Api(object):
if key not in all_params:
raise ApiTypeError(
"Got an unexpected keyword argument '%s'"
- " to method replace_validating_admission_policy_status" % key
+ " to method replace_mutating_admission_policy_binding" % key
)
local_var_params[key] = val
del local_var_params['kwargs']
# verify the required parameter 'name' is set
if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `replace_validating_admission_policy_status`") # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `replace_mutating_admission_policy_binding`") # noqa: E501
# verify the required parameter 'body' is set
if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `replace_validating_admission_policy_status`") # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `replace_mutating_admission_policy_binding`") # noqa: E501
collection_formats = {}
@@ -2614,14 +2200,14 @@ class AdmissionregistrationV1beta1Api(object):
auth_settings = ['BearerToken'] # noqa: E501
return self.api_client.call_api(
- '/apis/admissionregistration.k8s.io/v1beta1/validatingadmissionpolicies/{name}/status', 'PUT',
+ '/apis/admissionregistration.k8s.io/v1beta1/mutatingadmissionpolicybindings/{name}', 'PUT',
path_params,
query_params,
header_params,
body=body_params,
post_params=form_params,
files=local_var_files,
- response_type='V1beta1ValidatingAdmissionPolicy', # noqa: E501
+ response_type='V1beta1MutatingAdmissionPolicyBinding', # noqa: E501
auth_settings=auth_settings,
async_req=local_var_params.get('async_req'),
_return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/api/apiextensions_api.py b/contrib/python/kubernetes/kubernetes/client/api/apiextensions_api.py
index a7229730a62..a2de1de5afd 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/apiextensions_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/apiextensions_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/apiextensions_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/apiextensions_v1_api.py
index b21a961bdf2..f3c801159fe 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/apiextensions_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/apiextensions_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/apiregistration_api.py b/contrib/python/kubernetes/kubernetes/client/api/apiregistration_api.py
index 518cf225e26..cf5f7a2e233 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/apiregistration_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/apiregistration_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/apiregistration_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/apiregistration_v1_api.py
index 0d705471ca1..1ac27e99744 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/apiregistration_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/apiregistration_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/apis_api.py b/contrib/python/kubernetes/kubernetes/client/api/apis_api.py
index 359fe314481..24f6de17411 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/apis_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/apis_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/apps_api.py b/contrib/python/kubernetes/kubernetes/client/api/apps_api.py
index 118c8a1860d..1da5f3314dc 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/apps_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/apps_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/apps_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/apps_v1_api.py
index 0c39a4fa956..93e332b1335 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/apps_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/apps_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/authentication_api.py b/contrib/python/kubernetes/kubernetes/client/api/authentication_api.py
index bd7c8c761a0..27b118c98b7 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/authentication_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/authentication_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/authentication_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/authentication_v1_api.py
index b049a908879..34e9396f224 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/authentication_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/authentication_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/authorization_api.py b/contrib/python/kubernetes/kubernetes/client/api/authorization_api.py
index eee6338988c..e0fe3712ea3 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/authorization_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/authorization_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/authorization_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/authorization_v1_api.py
index 1a87ee91ef9..c240ce272f7 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/authorization_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/authorization_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/autoscaling_api.py b/contrib/python/kubernetes/kubernetes/client/api/autoscaling_api.py
index d329ad2d456..aedbf889a5e 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/autoscaling_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/autoscaling_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/autoscaling_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/autoscaling_v1_api.py
index 514903d486e..2a935fbab05 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/autoscaling_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/autoscaling_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/autoscaling_v2_api.py b/contrib/python/kubernetes/kubernetes/client/api/autoscaling_v2_api.py
index d336add93f4..ce95f1f2cac 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/autoscaling_v2_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/autoscaling_v2_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/batch_api.py b/contrib/python/kubernetes/kubernetes/client/api/batch_api.py
index 5f6f7c62ec4..8c9b1a1158c 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/batch_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/batch_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/batch_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/batch_v1_api.py
index 7fdc5319e3c..3881dc5d449 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/batch_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/batch_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/certificates_api.py b/contrib/python/kubernetes/kubernetes/client/api/certificates_api.py
index b72b98a1838..4e1bb128a5d 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/certificates_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/certificates_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/certificates_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/certificates_v1_api.py
index 842e053ea0d..3447d85dcec 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/certificates_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/certificates_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/certificates_v1alpha1_api.py b/contrib/python/kubernetes/kubernetes/client/api/certificates_v1alpha1_api.py
index 62ef4c69a33..168a2f7ee0a 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/certificates_v1alpha1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/certificates_v1alpha1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -170,6 +170,149 @@ class CertificatesV1alpha1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
+ def create_namespaced_pod_certificate_request(self, namespace, body, **kwargs): # noqa: E501
+ """create_namespaced_pod_certificate_request # noqa: E501
+
+ create a PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_namespaced_pod_certificate_request(namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param V1alpha1PodCertificateRequest body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1alpha1PodCertificateRequest
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.create_namespaced_pod_certificate_request_with_http_info(namespace, body, **kwargs) # noqa: E501
+
+ def create_namespaced_pod_certificate_request_with_http_info(self, namespace, body, **kwargs): # noqa: E501
+ """create_namespaced_pod_certificate_request # noqa: E501
+
+ create a PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_namespaced_pod_certificate_request_with_http_info(namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param V1alpha1PodCertificateRequest body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1alpha1PodCertificateRequest, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'namespace',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_namespaced_pod_certificate_request" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_pod_certificate_request`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_pod_certificate_request`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1alpha1PodCertificateRequest', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
def delete_cluster_trust_bundle(self, name, **kwargs): # noqa: E501
"""delete_cluster_trust_bundle # noqa: E501
@@ -499,6 +642,353 @@ class CertificatesV1alpha1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
+ def delete_collection_namespaced_pod_certificate_request(self, namespace, **kwargs): # noqa: E501
+ """delete_collection_namespaced_pod_certificate_request # noqa: E501
+
+ delete collection of PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_collection_namespaced_pod_certificate_request(namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param V1DeleteOptions body:
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1Status
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.delete_collection_namespaced_pod_certificate_request_with_http_info(namespace, **kwargs) # noqa: E501
+
+ def delete_collection_namespaced_pod_certificate_request_with_http_info(self, namespace, **kwargs): # noqa: E501
+ """delete_collection_namespaced_pod_certificate_request # noqa: E501
+
+ delete collection of PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_collection_namespaced_pod_certificate_request_with_http_info(namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param V1DeleteOptions body:
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'namespace',
+ 'pretty',
+ '_continue',
+ 'dry_run',
+ 'field_selector',
+ 'grace_period_seconds',
+ 'ignore_store_read_error_with_cluster_breaking_potential',
+ 'label_selector',
+ 'limit',
+ 'orphan_dependents',
+ 'propagation_policy',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'body'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_collection_namespaced_pod_certificate_request" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_pod_certificate_request`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1Status', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_namespaced_pod_certificate_request(self, name, namespace, **kwargs): # noqa: E501
+ """delete_namespaced_pod_certificate_request # noqa: E501
+
+ delete a PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_namespaced_pod_certificate_request(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the PodCertificateRequest (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param V1DeleteOptions body:
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1Status
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.delete_namespaced_pod_certificate_request_with_http_info(name, namespace, **kwargs) # noqa: E501
+
+ def delete_namespaced_pod_certificate_request_with_http_info(self, name, namespace, **kwargs): # noqa: E501
+ """delete_namespaced_pod_certificate_request # noqa: E501
+
+ delete a PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_namespaced_pod_certificate_request_with_http_info(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the PodCertificateRequest (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param V1DeleteOptions body:
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'pretty',
+ 'dry_run',
+ 'grace_period_seconds',
+ 'ignore_store_read_error_with_cluster_breaking_potential',
+ 'orphan_dependents',
+ 'propagation_policy',
+ 'body'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_namespaced_pod_certificate_request" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_pod_certificate_request`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_pod_certificate_request`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1Status', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
def get_api_resources(self, **kwargs): # noqa: E501
"""get_api_resources # noqa: E501
@@ -764,6 +1254,335 @@ class CertificatesV1alpha1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
+ def list_namespaced_pod_certificate_request(self, namespace, **kwargs): # noqa: E501
+ """list_namespaced_pod_certificate_request # noqa: E501
+
+ list or watch objects of kind PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_namespaced_pod_certificate_request(namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1alpha1PodCertificateRequestList
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.list_namespaced_pod_certificate_request_with_http_info(namespace, **kwargs) # noqa: E501
+
+ def list_namespaced_pod_certificate_request_with_http_info(self, namespace, **kwargs): # noqa: E501
+ """list_namespaced_pod_certificate_request # noqa: E501
+
+ list or watch objects of kind PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_namespaced_pod_certificate_request_with_http_info(namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1alpha1PodCertificateRequestList, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'namespace',
+ 'pretty',
+ 'allow_watch_bookmarks',
+ '_continue',
+ 'field_selector',
+ 'label_selector',
+ 'limit',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'watch'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method list_namespaced_pod_certificate_request" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_pod_certificate_request`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
+ query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+ if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
+ query_params.append(('watch', local_var_params['watch'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1alpha1PodCertificateRequestList', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def list_pod_certificate_request_for_all_namespaces(self, **kwargs): # noqa: E501
+ """list_pod_certificate_request_for_all_namespaces # noqa: E501
+
+ list or watch objects of kind PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_pod_certificate_request_for_all_namespaces(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1alpha1PodCertificateRequestList
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.list_pod_certificate_request_for_all_namespaces_with_http_info(**kwargs) # noqa: E501
+
+ def list_pod_certificate_request_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501
+ """list_pod_certificate_request_for_all_namespaces # noqa: E501
+
+ list or watch objects of kind PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_pod_certificate_request_for_all_namespaces_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1alpha1PodCertificateRequestList, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'allow_watch_bookmarks',
+ '_continue',
+ 'field_selector',
+ 'label_selector',
+ 'limit',
+ 'pretty',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'watch'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method list_pod_certificate_request_for_all_namespaces" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
+ query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+ if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
+ query_params.append(('watch', local_var_params['watch'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/certificates.k8s.io/v1alpha1/podcertificaterequests', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1alpha1PodCertificateRequestList', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
def patch_cluster_trust_bundle(self, name, body, **kwargs): # noqa: E501
"""patch_cluster_trust_bundle # noqa: E501
@@ -916,6 +1735,328 @@ class CertificatesV1alpha1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
+ def patch_namespaced_pod_certificate_request(self, name, namespace, body, **kwargs): # noqa: E501
+ """patch_namespaced_pod_certificate_request # noqa: E501
+
+ partially update the specified PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_namespaced_pod_certificate_request(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the PodCertificateRequest (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1alpha1PodCertificateRequest
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.patch_namespaced_pod_certificate_request_with_http_info(name, namespace, body, **kwargs) # noqa: E501
+
+ def patch_namespaced_pod_certificate_request_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
+ """patch_namespaced_pod_certificate_request # noqa: E501
+
+ partially update the specified PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_namespaced_pod_certificate_request_with_http_info(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the PodCertificateRequest (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1alpha1PodCertificateRequest, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation',
+ 'force'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method patch_namespaced_pod_certificate_request" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_certificate_request`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_certificate_request`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_certificate_request`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+ if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
+ query_params.append(('force', local_var_params['force'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}', 'PATCH',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1alpha1PodCertificateRequest', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def patch_namespaced_pod_certificate_request_status(self, name, namespace, body, **kwargs): # noqa: E501
+ """patch_namespaced_pod_certificate_request_status # noqa: E501
+
+ partially update status of the specified PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_namespaced_pod_certificate_request_status(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the PodCertificateRequest (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1alpha1PodCertificateRequest
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.patch_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501
+
+ def patch_namespaced_pod_certificate_request_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
+ """patch_namespaced_pod_certificate_request_status # noqa: E501
+
+ partially update status of the specified PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the PodCertificateRequest (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1alpha1PodCertificateRequest, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation',
+ 'force'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method patch_namespaced_pod_certificate_request_status" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_pod_certificate_request_status`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_pod_certificate_request_status`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_pod_certificate_request_status`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+ if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
+ query_params.append(('force', local_var_params['force'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status', 'PATCH',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1alpha1PodCertificateRequest', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
def read_cluster_trust_bundle(self, name, **kwargs): # noqa: E501
"""read_cluster_trust_bundle # noqa: E501
@@ -1035,6 +2176,262 @@ class CertificatesV1alpha1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
+ def read_namespaced_pod_certificate_request(self, name, namespace, **kwargs): # noqa: E501
+ """read_namespaced_pod_certificate_request # noqa: E501
+
+ read the specified PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_namespaced_pod_certificate_request(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the PodCertificateRequest (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1alpha1PodCertificateRequest
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.read_namespaced_pod_certificate_request_with_http_info(name, namespace, **kwargs) # noqa: E501
+
+ def read_namespaced_pod_certificate_request_with_http_info(self, name, namespace, **kwargs): # noqa: E501
+ """read_namespaced_pod_certificate_request # noqa: E501
+
+ read the specified PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_namespaced_pod_certificate_request_with_http_info(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the PodCertificateRequest (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1alpha1PodCertificateRequest, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'pretty'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method read_namespaced_pod_certificate_request" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_pod_certificate_request`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_certificate_request`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1alpha1PodCertificateRequest', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def read_namespaced_pod_certificate_request_status(self, name, namespace, **kwargs): # noqa: E501
+ """read_namespaced_pod_certificate_request_status # noqa: E501
+
+ read status of the specified PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_namespaced_pod_certificate_request_status(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the PodCertificateRequest (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1alpha1PodCertificateRequest
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.read_namespaced_pod_certificate_request_status_with_http_info(name, namespace, **kwargs) # noqa: E501
+
+ def read_namespaced_pod_certificate_request_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501
+ """read_namespaced_pod_certificate_request_status # noqa: E501
+
+ read status of the specified PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_namespaced_pod_certificate_request_status_with_http_info(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the PodCertificateRequest (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1alpha1PodCertificateRequest, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'pretty'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method read_namespaced_pod_certificate_request_status" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_pod_certificate_request_status`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_pod_certificate_request_status`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1alpha1PodCertificateRequest', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
def replace_cluster_trust_bundle(self, name, body, **kwargs): # noqa: E501
"""replace_cluster_trust_bundle # noqa: E501
@@ -1177,3 +2574,307 @@ class CertificatesV1alpha1Api(object):
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
+
+ def replace_namespaced_pod_certificate_request(self, name, namespace, body, **kwargs): # noqa: E501
+ """replace_namespaced_pod_certificate_request # noqa: E501
+
+ replace the specified PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_namespaced_pod_certificate_request(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the PodCertificateRequest (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param V1alpha1PodCertificateRequest body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1alpha1PodCertificateRequest
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.replace_namespaced_pod_certificate_request_with_http_info(name, namespace, body, **kwargs) # noqa: E501
+
+ def replace_namespaced_pod_certificate_request_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
+ """replace_namespaced_pod_certificate_request # noqa: E501
+
+ replace the specified PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_namespaced_pod_certificate_request_with_http_info(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the PodCertificateRequest (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param V1alpha1PodCertificateRequest body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1alpha1PodCertificateRequest, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method replace_namespaced_pod_certificate_request" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_certificate_request`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_certificate_request`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_certificate_request`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1alpha1PodCertificateRequest', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def replace_namespaced_pod_certificate_request_status(self, name, namespace, body, **kwargs): # noqa: E501
+ """replace_namespaced_pod_certificate_request_status # noqa: E501
+
+ replace status of the specified PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_namespaced_pod_certificate_request_status(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the PodCertificateRequest (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param V1alpha1PodCertificateRequest body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1alpha1PodCertificateRequest
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.replace_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501
+
+ def replace_namespaced_pod_certificate_request_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
+ """replace_namespaced_pod_certificate_request_status # noqa: E501
+
+ replace status of the specified PodCertificateRequest # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_namespaced_pod_certificate_request_status_with_http_info(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the PodCertificateRequest (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param V1alpha1PodCertificateRequest body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1alpha1PodCertificateRequest, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method replace_namespaced_pod_certificate_request_status" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_pod_certificate_request_status`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_pod_certificate_request_status`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_pod_certificate_request_status`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/certificates.k8s.io/v1alpha1/namespaces/{namespace}/podcertificaterequests/{name}/status', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1alpha1PodCertificateRequest', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/contrib/python/kubernetes/kubernetes/client/api/certificates_v1beta1_api.py b/contrib/python/kubernetes/kubernetes/client/api/certificates_v1beta1_api.py
index 630983a5432..bb9382f570d 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/certificates_v1beta1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/certificates_v1beta1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/coordination_api.py b/contrib/python/kubernetes/kubernetes/client/api/coordination_api.py
index 7274ada5fae..6557f73daf7 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/coordination_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/coordination_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/coordination_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/coordination_v1_api.py
index 9a4de0340d9..91e4b3d20e9 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/coordination_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/coordination_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/coordination_v1alpha2_api.py b/contrib/python/kubernetes/kubernetes/client/api/coordination_v1alpha2_api.py
index 440cf780465..7572fa19578 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/coordination_v1alpha2_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/coordination_v1alpha2_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/coordination_v1beta1_api.py b/contrib/python/kubernetes/kubernetes/client/api/coordination_v1beta1_api.py
index 0ac7db875ad..4e3d42c8622 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/coordination_v1beta1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/coordination_v1beta1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/core_api.py b/contrib/python/kubernetes/kubernetes/client/api/core_api.py
index 3c9ded93be1..71ad82a1494 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/core_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/core_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/core_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/core_v1_api.py
index fa64203bca6..4ea0ed311bd 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/core_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/core_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/custom_objects_api.py b/contrib/python/kubernetes/kubernetes/client/api/custom_objects_api.py
index f5af0e758c5..9a9ef0012ea 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/custom_objects_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/custom_objects_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/discovery_api.py b/contrib/python/kubernetes/kubernetes/client/api/discovery_api.py
index 040dee2897c..80c0566b3e6 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/discovery_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/discovery_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/discovery_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/discovery_v1_api.py
index f775778bd01..9afa99000b5 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/discovery_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/discovery_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/events_api.py b/contrib/python/kubernetes/kubernetes/client/api/events_api.py
index 66f02f41b7b..2e66c5b36e4 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/events_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/events_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/events_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/events_v1_api.py
index 1ca196fe533..dcc4df783aa 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/events_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/events_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/flowcontrol_apiserver_api.py b/contrib/python/kubernetes/kubernetes/client/api/flowcontrol_apiserver_api.py
index 26664da0ec8..600a2ffee4f 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/flowcontrol_apiserver_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/flowcontrol_apiserver_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/flowcontrol_apiserver_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/flowcontrol_apiserver_v1_api.py
index 75eb2b10b5e..ce1ce648765 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/flowcontrol_apiserver_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/flowcontrol_apiserver_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/internal_apiserver_api.py b/contrib/python/kubernetes/kubernetes/client/api/internal_apiserver_api.py
index 091b5e934ac..624feaaaa70 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/internal_apiserver_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/internal_apiserver_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/internal_apiserver_v1alpha1_api.py b/contrib/python/kubernetes/kubernetes/client/api/internal_apiserver_v1alpha1_api.py
index 795da4f47af..fc8d167cd3c 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/internal_apiserver_v1alpha1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/internal_apiserver_v1alpha1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/logs_api.py b/contrib/python/kubernetes/kubernetes/client/api/logs_api.py
index ec1463e8e3c..ecad1a124c1 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/logs_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/logs_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/networking_api.py b/contrib/python/kubernetes/kubernetes/client/api/networking_api.py
index 3f3ebdaa2fb..0b5c5dd4938 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/networking_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/networking_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/networking_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/networking_v1_api.py
index 0a078d846c9..b975921397f 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/networking_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/networking_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/networking_v1beta1_api.py b/contrib/python/kubernetes/kubernetes/client/api/networking_v1beta1_api.py
index a5642a06189..46d22506000 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/networking_v1beta1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/networking_v1beta1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/node_api.py b/contrib/python/kubernetes/kubernetes/client/api/node_api.py
index 0fa1d9a9c99..6cbe7321910 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/node_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/node_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/node_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/node_v1_api.py
index 0fae5236452..85220fcdef5 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/node_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/node_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/openid_api.py b/contrib/python/kubernetes/kubernetes/client/api/openid_api.py
index 05400c78cba..8d17172a352 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/openid_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/openid_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/policy_api.py b/contrib/python/kubernetes/kubernetes/client/api/policy_api.py
index c69f7ae0dde..95ac1ec5213 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/policy_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/policy_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/policy_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/policy_v1_api.py
index f4d0ee70f29..d8f7fffdc91 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/policy_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/policy_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/rbac_authorization_api.py b/contrib/python/kubernetes/kubernetes/client/api/rbac_authorization_api.py
index 7ad6bb9ee52..5f7105b090f 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/rbac_authorization_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/rbac_authorization_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/rbac_authorization_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/rbac_authorization_v1_api.py
index 10fc3a844e2..aa811e43b97 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/rbac_authorization_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/rbac_authorization_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/resource_api.py b/contrib/python/kubernetes/kubernetes/client/api/resource_api.py
index 6e2668e567a..9355aa8ccf4 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/resource_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/resource_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/resource_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/resource_v1_api.py
new file mode 100644
index 00000000000..abc10f8ca8e
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/api/resource_v1_api.py
@@ -0,0 +1,5177 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+from __future__ import absolute_import
+
+import re # noqa: F401
+
+# python 2 and python 3 compatibility library
+import six
+
+from kubernetes.client.api_client import ApiClient
+from kubernetes.client.exceptions import ( # noqa: F401
+ ApiTypeError,
+ ApiValueError
+)
+
+
+class ResourceV1Api(object):
+ """NOTE: This class is auto generated by OpenAPI Generator
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ def __init__(self, api_client=None):
+ if api_client is None:
+ api_client = ApiClient()
+ self.api_client = api_client
+
+ def create_device_class(self, body, **kwargs): # noqa: E501
+ """create_device_class # noqa: E501
+
+ create a DeviceClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_device_class(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param V1DeviceClass body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1DeviceClass
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.create_device_class_with_http_info(body, **kwargs) # noqa: E501
+
+ def create_device_class_with_http_info(self, body, **kwargs): # noqa: E501
+ """create_device_class # noqa: E501
+
+ create a DeviceClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_device_class_with_http_info(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param V1DeviceClass body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1DeviceClass, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_device_class" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `create_device_class`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/deviceclasses', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1DeviceClass', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_namespaced_resource_claim(self, namespace, body, **kwargs): # noqa: E501
+ """create_namespaced_resource_claim # noqa: E501
+
+ create a ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_namespaced_resource_claim(namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param ResourceV1ResourceClaim body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: ResourceV1ResourceClaim
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.create_namespaced_resource_claim_with_http_info(namespace, body, **kwargs) # noqa: E501
+
+ def create_namespaced_resource_claim_with_http_info(self, namespace, body, **kwargs): # noqa: E501
+ """create_namespaced_resource_claim # noqa: E501
+
+ create a ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_namespaced_resource_claim_with_http_info(namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param ResourceV1ResourceClaim body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'namespace',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_namespaced_resource_claim" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_claim`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_resource_claim`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResourceV1ResourceClaim', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_namespaced_resource_claim_template(self, namespace, body, **kwargs): # noqa: E501
+ """create_namespaced_resource_claim_template # noqa: E501
+
+ create a ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_namespaced_resource_claim_template(namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param V1ResourceClaimTemplate body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceClaimTemplate
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.create_namespaced_resource_claim_template_with_http_info(namespace, body, **kwargs) # noqa: E501
+
+ def create_namespaced_resource_claim_template_with_http_info(self, namespace, body, **kwargs): # noqa: E501
+ """create_namespaced_resource_claim_template # noqa: E501
+
+ create a ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_namespaced_resource_claim_template_with_http_info(namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param V1ResourceClaimTemplate body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'namespace',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_namespaced_resource_claim_template" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_claim_template`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_resource_claim_template`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceClaimTemplate', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def create_resource_slice(self, body, **kwargs): # noqa: E501
+ """create_resource_slice # noqa: E501
+
+ create a ResourceSlice # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_resource_slice(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param V1ResourceSlice body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceSlice
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.create_resource_slice_with_http_info(body, **kwargs) # noqa: E501
+
+ def create_resource_slice_with_http_info(self, body, **kwargs): # noqa: E501
+ """create_resource_slice # noqa: E501
+
+ create a ResourceSlice # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_resource_slice_with_http_info(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param V1ResourceSlice body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceSlice, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_resource_slice" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `create_resource_slice`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/resourceslices', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceSlice', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_collection_device_class(self, **kwargs): # noqa: E501
+ """delete_collection_device_class # noqa: E501
+
+ delete collection of DeviceClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_collection_device_class(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param V1DeleteOptions body:
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1Status
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.delete_collection_device_class_with_http_info(**kwargs) # noqa: E501
+
+ def delete_collection_device_class_with_http_info(self, **kwargs): # noqa: E501
+ """delete_collection_device_class # noqa: E501
+
+ delete collection of DeviceClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_collection_device_class_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param V1DeleteOptions body:
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'pretty',
+ '_continue',
+ 'dry_run',
+ 'field_selector',
+ 'grace_period_seconds',
+ 'ignore_store_read_error_with_cluster_breaking_potential',
+ 'label_selector',
+ 'limit',
+ 'orphan_dependents',
+ 'propagation_policy',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'body'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_collection_device_class" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/deviceclasses', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1Status', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_collection_namespaced_resource_claim(self, namespace, **kwargs): # noqa: E501
+ """delete_collection_namespaced_resource_claim # noqa: E501
+
+ delete collection of ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_collection_namespaced_resource_claim(namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param V1DeleteOptions body:
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1Status
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.delete_collection_namespaced_resource_claim_with_http_info(namespace, **kwargs) # noqa: E501
+
+ def delete_collection_namespaced_resource_claim_with_http_info(self, namespace, **kwargs): # noqa: E501
+ """delete_collection_namespaced_resource_claim # noqa: E501
+
+ delete collection of ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_collection_namespaced_resource_claim_with_http_info(namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param V1DeleteOptions body:
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'namespace',
+ 'pretty',
+ '_continue',
+ 'dry_run',
+ 'field_selector',
+ 'grace_period_seconds',
+ 'ignore_store_read_error_with_cluster_breaking_potential',
+ 'label_selector',
+ 'limit',
+ 'orphan_dependents',
+ 'propagation_policy',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'body'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_collection_namespaced_resource_claim" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_resource_claim`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1Status', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_collection_namespaced_resource_claim_template(self, namespace, **kwargs): # noqa: E501
+ """delete_collection_namespaced_resource_claim_template # noqa: E501
+
+ delete collection of ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_collection_namespaced_resource_claim_template(namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param V1DeleteOptions body:
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1Status
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.delete_collection_namespaced_resource_claim_template_with_http_info(namespace, **kwargs) # noqa: E501
+
+ def delete_collection_namespaced_resource_claim_template_with_http_info(self, namespace, **kwargs): # noqa: E501
+ """delete_collection_namespaced_resource_claim_template # noqa: E501
+
+ delete collection of ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_collection_namespaced_resource_claim_template_with_http_info(namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param V1DeleteOptions body:
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'namespace',
+ 'pretty',
+ '_continue',
+ 'dry_run',
+ 'field_selector',
+ 'grace_period_seconds',
+ 'ignore_store_read_error_with_cluster_breaking_potential',
+ 'label_selector',
+ 'limit',
+ 'orphan_dependents',
+ 'propagation_policy',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'body'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_collection_namespaced_resource_claim_template" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_resource_claim_template`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1Status', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_collection_resource_slice(self, **kwargs): # noqa: E501
+ """delete_collection_resource_slice # noqa: E501
+
+ delete collection of ResourceSlice # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_collection_resource_slice(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param V1DeleteOptions body:
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1Status
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.delete_collection_resource_slice_with_http_info(**kwargs) # noqa: E501
+
+ def delete_collection_resource_slice_with_http_info(self, **kwargs): # noqa: E501
+ """delete_collection_resource_slice # noqa: E501
+
+ delete collection of ResourceSlice # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_collection_resource_slice_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param V1DeleteOptions body:
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'pretty',
+ '_continue',
+ 'dry_run',
+ 'field_selector',
+ 'grace_period_seconds',
+ 'ignore_store_read_error_with_cluster_breaking_potential',
+ 'label_selector',
+ 'limit',
+ 'orphan_dependents',
+ 'propagation_policy',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'body'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_collection_resource_slice" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/resourceslices', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1Status', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_device_class(self, name, **kwargs): # noqa: E501
+ """delete_device_class # noqa: E501
+
+ delete a DeviceClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_device_class(name, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the DeviceClass (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param V1DeleteOptions body:
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1DeviceClass
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.delete_device_class_with_http_info(name, **kwargs) # noqa: E501
+
+ def delete_device_class_with_http_info(self, name, **kwargs): # noqa: E501
+ """delete_device_class # noqa: E501
+
+ delete a DeviceClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_device_class_with_http_info(name, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the DeviceClass (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param V1DeleteOptions body:
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1DeviceClass, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'pretty',
+ 'dry_run',
+ 'grace_period_seconds',
+ 'ignore_store_read_error_with_cluster_breaking_potential',
+ 'orphan_dependents',
+ 'propagation_policy',
+ 'body'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_device_class" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `delete_device_class`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/deviceclasses/{name}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1DeviceClass', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_namespaced_resource_claim(self, name, namespace, **kwargs): # noqa: E501
+ """delete_namespaced_resource_claim # noqa: E501
+
+ delete a ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_namespaced_resource_claim(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaim (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param V1DeleteOptions body:
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: ResourceV1ResourceClaim
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.delete_namespaced_resource_claim_with_http_info(name, namespace, **kwargs) # noqa: E501
+
+ def delete_namespaced_resource_claim_with_http_info(self, name, namespace, **kwargs): # noqa: E501
+ """delete_namespaced_resource_claim # noqa: E501
+
+ delete a ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_namespaced_resource_claim_with_http_info(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaim (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param V1DeleteOptions body:
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'pretty',
+ 'dry_run',
+ 'grace_period_seconds',
+ 'ignore_store_read_error_with_cluster_breaking_potential',
+ 'orphan_dependents',
+ 'propagation_policy',
+ 'body'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_namespaced_resource_claim" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_claim`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_claim`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResourceV1ResourceClaim', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_namespaced_resource_claim_template(self, name, namespace, **kwargs): # noqa: E501
+ """delete_namespaced_resource_claim_template # noqa: E501
+
+ delete a ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_namespaced_resource_claim_template(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaimTemplate (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param V1DeleteOptions body:
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceClaimTemplate
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.delete_namespaced_resource_claim_template_with_http_info(name, namespace, **kwargs) # noqa: E501
+
+ def delete_namespaced_resource_claim_template_with_http_info(self, name, namespace, **kwargs): # noqa: E501
+ """delete_namespaced_resource_claim_template # noqa: E501
+
+ delete a ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_namespaced_resource_claim_template_with_http_info(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaimTemplate (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param V1DeleteOptions body:
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'pretty',
+ 'dry_run',
+ 'grace_period_seconds',
+ 'ignore_store_read_error_with_cluster_breaking_potential',
+ 'orphan_dependents',
+ 'propagation_policy',
+ 'body'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_namespaced_resource_claim_template" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_claim_template`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_claim_template`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceClaimTemplate', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def delete_resource_slice(self, name, **kwargs): # noqa: E501
+ """delete_resource_slice # noqa: E501
+
+ delete a ResourceSlice # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_resource_slice(name, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceSlice (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param V1DeleteOptions body:
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceSlice
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.delete_resource_slice_with_http_info(name, **kwargs) # noqa: E501
+
+ def delete_resource_slice_with_http_info(self, name, **kwargs): # noqa: E501
+ """delete_resource_slice # noqa: E501
+
+ delete a ResourceSlice # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_resource_slice_with_http_info(name, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceSlice (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param V1DeleteOptions body:
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceSlice, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'pretty',
+ 'dry_run',
+ 'grace_period_seconds',
+ 'ignore_store_read_error_with_cluster_breaking_potential',
+ 'orphan_dependents',
+ 'propagation_policy',
+ 'body'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_resource_slice" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `delete_resource_slice`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/resourceslices/{name}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceSlice', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def get_api_resources(self, **kwargs): # noqa: E501
+ """get_api_resources # noqa: E501
+
+ get available resources # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_api_resources(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1APIResourceList
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.get_api_resources_with_http_info(**kwargs) # noqa: E501
+
+ def get_api_resources_with_http_info(self, **kwargs): # noqa: E501
+ """get_api_resources # noqa: E501
+
+ get available resources # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.get_api_resources_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1APIResourceList, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method get_api_resources" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1APIResourceList', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def list_device_class(self, **kwargs): # noqa: E501
+ """list_device_class # noqa: E501
+
+ list or watch objects of kind DeviceClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_device_class(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1DeviceClassList
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.list_device_class_with_http_info(**kwargs) # noqa: E501
+
+ def list_device_class_with_http_info(self, **kwargs): # noqa: E501
+ """list_device_class # noqa: E501
+
+ list or watch objects of kind DeviceClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_device_class_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1DeviceClassList, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'pretty',
+ 'allow_watch_bookmarks',
+ '_continue',
+ 'field_selector',
+ 'label_selector',
+ 'limit',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'watch'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method list_device_class" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
+ query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+ if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
+ query_params.append(('watch', local_var_params['watch'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/deviceclasses', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1DeviceClassList', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def list_namespaced_resource_claim(self, namespace, **kwargs): # noqa: E501
+ """list_namespaced_resource_claim # noqa: E501
+
+ list or watch objects of kind ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_namespaced_resource_claim(namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceClaimList
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.list_namespaced_resource_claim_with_http_info(namespace, **kwargs) # noqa: E501
+
+ def list_namespaced_resource_claim_with_http_info(self, namespace, **kwargs): # noqa: E501
+ """list_namespaced_resource_claim # noqa: E501
+
+ list or watch objects of kind ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_namespaced_resource_claim_with_http_info(namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceClaimList, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'namespace',
+ 'pretty',
+ 'allow_watch_bookmarks',
+ '_continue',
+ 'field_selector',
+ 'label_selector',
+ 'limit',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'watch'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method list_namespaced_resource_claim" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_claim`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
+ query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+ if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
+ query_params.append(('watch', local_var_params['watch'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceClaimList', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def list_namespaced_resource_claim_template(self, namespace, **kwargs): # noqa: E501
+ """list_namespaced_resource_claim_template # noqa: E501
+
+ list or watch objects of kind ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_namespaced_resource_claim_template(namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceClaimTemplateList
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.list_namespaced_resource_claim_template_with_http_info(namespace, **kwargs) # noqa: E501
+
+ def list_namespaced_resource_claim_template_with_http_info(self, namespace, **kwargs): # noqa: E501
+ """list_namespaced_resource_claim_template # noqa: E501
+
+ list or watch objects of kind ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_namespaced_resource_claim_template_with_http_info(namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceClaimTemplateList, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'namespace',
+ 'pretty',
+ 'allow_watch_bookmarks',
+ '_continue',
+ 'field_selector',
+ 'label_selector',
+ 'limit',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'watch'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method list_namespaced_resource_claim_template" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_claim_template`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
+ query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+ if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
+ query_params.append(('watch', local_var_params['watch'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceClaimTemplateList', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def list_resource_claim_for_all_namespaces(self, **kwargs): # noqa: E501
+ """list_resource_claim_for_all_namespaces # noqa: E501
+
+ list or watch objects of kind ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_resource_claim_for_all_namespaces(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceClaimList
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.list_resource_claim_for_all_namespaces_with_http_info(**kwargs) # noqa: E501
+
+ def list_resource_claim_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501
+ """list_resource_claim_for_all_namespaces # noqa: E501
+
+ list or watch objects of kind ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_resource_claim_for_all_namespaces_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceClaimList, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'allow_watch_bookmarks',
+ '_continue',
+ 'field_selector',
+ 'label_selector',
+ 'limit',
+ 'pretty',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'watch'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method list_resource_claim_for_all_namespaces" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
+ query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+ if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
+ query_params.append(('watch', local_var_params['watch'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/resourceclaims', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceClaimList', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def list_resource_claim_template_for_all_namespaces(self, **kwargs): # noqa: E501
+ """list_resource_claim_template_for_all_namespaces # noqa: E501
+
+ list or watch objects of kind ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_resource_claim_template_for_all_namespaces(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceClaimTemplateList
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.list_resource_claim_template_for_all_namespaces_with_http_info(**kwargs) # noqa: E501
+
+ def list_resource_claim_template_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501
+ """list_resource_claim_template_for_all_namespaces # noqa: E501
+
+ list or watch objects of kind ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_resource_claim_template_for_all_namespaces_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceClaimTemplateList, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'allow_watch_bookmarks',
+ '_continue',
+ 'field_selector',
+ 'label_selector',
+ 'limit',
+ 'pretty',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'watch'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method list_resource_claim_template_for_all_namespaces" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
+ query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+ if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
+ query_params.append(('watch', local_var_params['watch'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/resourceclaimtemplates', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceClaimTemplateList', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def list_resource_slice(self, **kwargs): # noqa: E501
+ """list_resource_slice # noqa: E501
+
+ list or watch objects of kind ResourceSlice # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_resource_slice(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceSliceList
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.list_resource_slice_with_http_info(**kwargs) # noqa: E501
+
+ def list_resource_slice_with_http_info(self, **kwargs): # noqa: E501
+ """list_resource_slice # noqa: E501
+
+ list or watch objects of kind ResourceSlice # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_resource_slice_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceSliceList, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'pretty',
+ 'allow_watch_bookmarks',
+ '_continue',
+ 'field_selector',
+ 'label_selector',
+ 'limit',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'watch'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method list_resource_slice" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
+ query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+ if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
+ query_params.append(('watch', local_var_params['watch'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/resourceslices', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceSliceList', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def patch_device_class(self, name, body, **kwargs): # noqa: E501
+ """patch_device_class # noqa: E501
+
+ partially update the specified DeviceClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_device_class(name, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the DeviceClass (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1DeviceClass
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.patch_device_class_with_http_info(name, body, **kwargs) # noqa: E501
+
+ def patch_device_class_with_http_info(self, name, body, **kwargs): # noqa: E501
+ """patch_device_class # noqa: E501
+
+ partially update the specified DeviceClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_device_class_with_http_info(name, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the DeviceClass (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1DeviceClass, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation',
+ 'force'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method patch_device_class" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `patch_device_class`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `patch_device_class`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+ if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
+ query_params.append(('force', local_var_params['force'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/deviceclasses/{name}', 'PATCH',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1DeviceClass', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def patch_namespaced_resource_claim(self, name, namespace, body, **kwargs): # noqa: E501
+ """patch_namespaced_resource_claim # noqa: E501
+
+ partially update the specified ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_namespaced_resource_claim(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaim (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: ResourceV1ResourceClaim
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.patch_namespaced_resource_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501
+
+ def patch_namespaced_resource_claim_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
+ """patch_namespaced_resource_claim # noqa: E501
+
+ partially update the specified ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_namespaced_resource_claim_with_http_info(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaim (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation',
+ 'force'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method patch_namespaced_resource_claim" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_claim`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_claim`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_claim`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+ if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
+ query_params.append(('force', local_var_params['force'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', 'PATCH',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResourceV1ResourceClaim', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def patch_namespaced_resource_claim_status(self, name, namespace, body, **kwargs): # noqa: E501
+ """patch_namespaced_resource_claim_status # noqa: E501
+
+ partially update status of the specified ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_namespaced_resource_claim_status(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaim (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: ResourceV1ResourceClaim
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.patch_namespaced_resource_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501
+
+ def patch_namespaced_resource_claim_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
+ """patch_namespaced_resource_claim_status # noqa: E501
+
+ partially update status of the specified ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_namespaced_resource_claim_status_with_http_info(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaim (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation',
+ 'force'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method patch_namespaced_resource_claim_status" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_claim_status`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_claim_status`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_claim_status`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+ if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
+ query_params.append(('force', local_var_params['force'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status', 'PATCH',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResourceV1ResourceClaim', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def patch_namespaced_resource_claim_template(self, name, namespace, body, **kwargs): # noqa: E501
+ """patch_namespaced_resource_claim_template # noqa: E501
+
+ partially update the specified ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_namespaced_resource_claim_template(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaimTemplate (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceClaimTemplate
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.patch_namespaced_resource_claim_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501
+
+ def patch_namespaced_resource_claim_template_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
+ """patch_namespaced_resource_claim_template # noqa: E501
+
+ partially update the specified ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_namespaced_resource_claim_template_with_http_info(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaimTemplate (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation',
+ 'force'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method patch_namespaced_resource_claim_template" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_claim_template`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_claim_template`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_claim_template`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+ if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
+ query_params.append(('force', local_var_params['force'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', 'PATCH',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceClaimTemplate', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def patch_resource_slice(self, name, body, **kwargs): # noqa: E501
+ """patch_resource_slice # noqa: E501
+
+ partially update the specified ResourceSlice # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_resource_slice(name, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceSlice (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceSlice
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.patch_resource_slice_with_http_info(name, body, **kwargs) # noqa: E501
+
+ def patch_resource_slice_with_http_info(self, name, body, **kwargs): # noqa: E501
+ """patch_resource_slice # noqa: E501
+
+ partially update the specified ResourceSlice # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_resource_slice_with_http_info(name, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceSlice (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceSlice, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation',
+ 'force'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method patch_resource_slice" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `patch_resource_slice`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `patch_resource_slice`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+ if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
+ query_params.append(('force', local_var_params['force'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/resourceslices/{name}', 'PATCH',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceSlice', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def read_device_class(self, name, **kwargs): # noqa: E501
+ """read_device_class # noqa: E501
+
+ read the specified DeviceClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_device_class(name, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the DeviceClass (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1DeviceClass
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.read_device_class_with_http_info(name, **kwargs) # noqa: E501
+
+ def read_device_class_with_http_info(self, name, **kwargs): # noqa: E501
+ """read_device_class # noqa: E501
+
+ read the specified DeviceClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_device_class_with_http_info(name, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the DeviceClass (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1DeviceClass, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'pretty'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method read_device_class" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `read_device_class`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/deviceclasses/{name}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1DeviceClass', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def read_namespaced_resource_claim(self, name, namespace, **kwargs): # noqa: E501
+ """read_namespaced_resource_claim # noqa: E501
+
+ read the specified ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_namespaced_resource_claim(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaim (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: ResourceV1ResourceClaim
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.read_namespaced_resource_claim_with_http_info(name, namespace, **kwargs) # noqa: E501
+
+ def read_namespaced_resource_claim_with_http_info(self, name, namespace, **kwargs): # noqa: E501
+ """read_namespaced_resource_claim # noqa: E501
+
+ read the specified ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_namespaced_resource_claim_with_http_info(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaim (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'pretty'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method read_namespaced_resource_claim" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_resource_claim`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_claim`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResourceV1ResourceClaim', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def read_namespaced_resource_claim_status(self, name, namespace, **kwargs): # noqa: E501
+ """read_namespaced_resource_claim_status # noqa: E501
+
+ read status of the specified ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_namespaced_resource_claim_status(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaim (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: ResourceV1ResourceClaim
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.read_namespaced_resource_claim_status_with_http_info(name, namespace, **kwargs) # noqa: E501
+
+ def read_namespaced_resource_claim_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501
+ """read_namespaced_resource_claim_status # noqa: E501
+
+ read status of the specified ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_namespaced_resource_claim_status_with_http_info(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaim (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'pretty'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method read_namespaced_resource_claim_status" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_resource_claim_status`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_claim_status`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResourceV1ResourceClaim', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def read_namespaced_resource_claim_template(self, name, namespace, **kwargs): # noqa: E501
+ """read_namespaced_resource_claim_template # noqa: E501
+
+ read the specified ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_namespaced_resource_claim_template(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaimTemplate (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceClaimTemplate
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.read_namespaced_resource_claim_template_with_http_info(name, namespace, **kwargs) # noqa: E501
+
+ def read_namespaced_resource_claim_template_with_http_info(self, name, namespace, **kwargs): # noqa: E501
+ """read_namespaced_resource_claim_template # noqa: E501
+
+ read the specified ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_namespaced_resource_claim_template_with_http_info(name, namespace, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaimTemplate (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'pretty'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method read_namespaced_resource_claim_template" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_resource_claim_template`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_claim_template`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceClaimTemplate', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def read_resource_slice(self, name, **kwargs): # noqa: E501
+ """read_resource_slice # noqa: E501
+
+ read the specified ResourceSlice # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_resource_slice(name, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceSlice (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceSlice
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.read_resource_slice_with_http_info(name, **kwargs) # noqa: E501
+
+ def read_resource_slice_with_http_info(self, name, **kwargs): # noqa: E501
+ """read_resource_slice # noqa: E501
+
+ read the specified ResourceSlice # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_resource_slice_with_http_info(name, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceSlice (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceSlice, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'pretty'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method read_resource_slice" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `read_resource_slice`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/resourceslices/{name}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceSlice', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def replace_device_class(self, name, body, **kwargs): # noqa: E501
+ """replace_device_class # noqa: E501
+
+ replace the specified DeviceClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_device_class(name, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the DeviceClass (required)
+ :param V1DeviceClass body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1DeviceClass
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.replace_device_class_with_http_info(name, body, **kwargs) # noqa: E501
+
+ def replace_device_class_with_http_info(self, name, body, **kwargs): # noqa: E501
+ """replace_device_class # noqa: E501
+
+ replace the specified DeviceClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_device_class_with_http_info(name, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the DeviceClass (required)
+ :param V1DeviceClass body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1DeviceClass, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method replace_device_class" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `replace_device_class`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `replace_device_class`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/deviceclasses/{name}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1DeviceClass', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def replace_namespaced_resource_claim(self, name, namespace, body, **kwargs): # noqa: E501
+ """replace_namespaced_resource_claim # noqa: E501
+
+ replace the specified ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_namespaced_resource_claim(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaim (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param ResourceV1ResourceClaim body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: ResourceV1ResourceClaim
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.replace_namespaced_resource_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501
+
+ def replace_namespaced_resource_claim_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
+ """replace_namespaced_resource_claim # noqa: E501
+
+ replace the specified ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_namespaced_resource_claim_with_http_info(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaim (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param ResourceV1ResourceClaim body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method replace_namespaced_resource_claim" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_claim`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_claim`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_claim`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResourceV1ResourceClaim', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def replace_namespaced_resource_claim_status(self, name, namespace, body, **kwargs): # noqa: E501
+ """replace_namespaced_resource_claim_status # noqa: E501
+
+ replace status of the specified ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_namespaced_resource_claim_status(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaim (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param ResourceV1ResourceClaim body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: ResourceV1ResourceClaim
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.replace_namespaced_resource_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501
+
+ def replace_namespaced_resource_claim_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
+ """replace_namespaced_resource_claim_status # noqa: E501
+
+ replace status of the specified ResourceClaim # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_namespaced_resource_claim_status_with_http_info(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaim (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param ResourceV1ResourceClaim body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(ResourceV1ResourceClaim, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method replace_namespaced_resource_claim_status" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_claim_status`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_claim_status`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_claim_status`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaims/{name}/status', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='ResourceV1ResourceClaim', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def replace_namespaced_resource_claim_template(self, name, namespace, body, **kwargs): # noqa: E501
+ """replace_namespaced_resource_claim_template # noqa: E501
+
+ replace the specified ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_namespaced_resource_claim_template(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaimTemplate (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param V1ResourceClaimTemplate body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceClaimTemplate
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.replace_namespaced_resource_claim_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501
+
+ def replace_namespaced_resource_claim_template_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
+ """replace_namespaced_resource_claim_template # noqa: E501
+
+ replace the specified ResourceClaimTemplate # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_namespaced_resource_claim_template_with_http_info(name, namespace, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceClaimTemplate (required)
+ :param str namespace: object name and auth scope, such as for teams and projects (required)
+ :param V1ResourceClaimTemplate body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'namespace',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method replace_namespaced_resource_claim_template" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_claim_template`") # noqa: E501
+ # verify the required parameter 'namespace' is set
+ if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
+ local_var_params['namespace'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_claim_template`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_claim_template`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+ if 'namespace' in local_var_params:
+ path_params['namespace'] = local_var_params['namespace'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/namespaces/{namespace}/resourceclaimtemplates/{name}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceClaimTemplate', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
+ def replace_resource_slice(self, name, body, **kwargs): # noqa: E501
+ """replace_resource_slice # noqa: E501
+
+ replace the specified ResourceSlice # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_resource_slice(name, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceSlice (required)
+ :param V1ResourceSlice body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1ResourceSlice
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.replace_resource_slice_with_http_info(name, body, **kwargs) # noqa: E501
+
+ def replace_resource_slice_with_http_info(self, name, body, **kwargs): # noqa: E501
+ """replace_resource_slice # noqa: E501
+
+ replace the specified ResourceSlice # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_resource_slice_with_http_info(name, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the ResourceSlice (required)
+ :param V1ResourceSlice body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1ResourceSlice, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method replace_resource_slice" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `replace_resource_slice`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `replace_resource_slice`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/resource.k8s.io/v1/resourceslices/{name}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1ResourceSlice', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/contrib/python/kubernetes/kubernetes/client/api/resource_v1alpha3_api.py b/contrib/python/kubernetes/kubernetes/client/api/resource_v1alpha3_api.py
index fc488dd297d..8d30c666672 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/resource_v1alpha3_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/resource_v1alpha3_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -36,140 +36,6 @@ class ResourceV1alpha3Api(object):
api_client = ApiClient()
self.api_client = api_client
- def create_device_class(self, body, **kwargs): # noqa: E501
- """create_device_class # noqa: E501
-
- create a DeviceClass # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_device_class(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param V1alpha3DeviceClass body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3DeviceClass
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.create_device_class_with_http_info(body, **kwargs) # noqa: E501
-
- def create_device_class_with_http_info(self, body, **kwargs): # noqa: E501
- """create_device_class # noqa: E501
-
- create a DeviceClass # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_device_class_with_http_info(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param V1alpha3DeviceClass body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3DeviceClass, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method create_device_class" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `create_device_class`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/deviceclasses', 'POST',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3DeviceClass', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
def create_device_taint_rule(self, body, **kwargs): # noqa: E501
"""create_device_taint_rule # noqa: E501
@@ -304,606 +170,6 @@ class ResourceV1alpha3Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def create_namespaced_resource_claim(self, namespace, body, **kwargs): # noqa: E501
- """create_namespaced_resource_claim # noqa: E501
-
- create a ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_namespaced_resource_claim(namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param V1alpha3ResourceClaim body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaim
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.create_namespaced_resource_claim_with_http_info(namespace, body, **kwargs) # noqa: E501
-
- def create_namespaced_resource_claim_with_http_info(self, namespace, body, **kwargs): # noqa: E501
- """create_namespaced_resource_claim # noqa: E501
-
- create a ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_namespaced_resource_claim_with_http_info(namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param V1alpha3ResourceClaim body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'namespace',
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method create_namespaced_resource_claim" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_claim`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_resource_claim`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims', 'POST',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaim', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def create_namespaced_resource_claim_template(self, namespace, body, **kwargs): # noqa: E501
- """create_namespaced_resource_claim_template # noqa: E501
-
- create a ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_namespaced_resource_claim_template(namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param V1alpha3ResourceClaimTemplate body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaimTemplate
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.create_namespaced_resource_claim_template_with_http_info(namespace, body, **kwargs) # noqa: E501
-
- def create_namespaced_resource_claim_template_with_http_info(self, namespace, body, **kwargs): # noqa: E501
- """create_namespaced_resource_claim_template # noqa: E501
-
- create a ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_namespaced_resource_claim_template_with_http_info(namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param V1alpha3ResourceClaimTemplate body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'namespace',
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method create_namespaced_resource_claim_template" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `create_namespaced_resource_claim_template`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `create_namespaced_resource_claim_template`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates', 'POST',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaimTemplate', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def create_resource_slice(self, body, **kwargs): # noqa: E501
- """create_resource_slice # noqa: E501
-
- create a ResourceSlice # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_resource_slice(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param V1alpha3ResourceSlice body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceSlice
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.create_resource_slice_with_http_info(body, **kwargs) # noqa: E501
-
- def create_resource_slice_with_http_info(self, body, **kwargs): # noqa: E501
- """create_resource_slice # noqa: E501
-
- create a ResourceSlice # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.create_resource_slice_with_http_info(body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param V1alpha3ResourceSlice body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceSlice, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method create_resource_slice" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `create_resource_slice`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/resourceslices', 'POST',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceSlice', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def delete_collection_device_class(self, **kwargs): # noqa: E501
- """delete_collection_device_class # noqa: E501
-
- delete collection of DeviceClass # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_collection_device_class(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param V1DeleteOptions body:
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1Status
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.delete_collection_device_class_with_http_info(**kwargs) # noqa: E501
-
- def delete_collection_device_class_with_http_info(self, **kwargs): # noqa: E501
- """delete_collection_device_class # noqa: E501
-
- delete collection of DeviceClass # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_collection_device_class_with_http_info(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param V1DeleteOptions body:
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'pretty',
- '_continue',
- 'dry_run',
- 'field_selector',
- 'grace_period_seconds',
- 'ignore_store_read_error_with_cluster_breaking_potential',
- 'label_selector',
- 'limit',
- 'orphan_dependents',
- 'propagation_policy',
- 'resource_version',
- 'resource_version_match',
- 'send_initial_events',
- 'timeout_seconds',
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method delete_collection_device_class" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
- query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
- query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
- if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
- query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
- if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
- query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
- if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
- query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
- if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
- query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
- if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
- query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
- if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
- query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
- if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
- query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
- if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
- query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
- if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
- query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/deviceclasses', 'DELETE',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1Status', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
def delete_collection_device_taint_rule(self, **kwargs): # noqa: E501
"""delete_collection_device_taint_rule # noqa: E501
@@ -1084,713 +350,6 @@ class ResourceV1alpha3Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def delete_collection_namespaced_resource_claim(self, namespace, **kwargs): # noqa: E501
- """delete_collection_namespaced_resource_claim # noqa: E501
-
- delete collection of ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_collection_namespaced_resource_claim(namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param V1DeleteOptions body:
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1Status
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.delete_collection_namespaced_resource_claim_with_http_info(namespace, **kwargs) # noqa: E501
-
- def delete_collection_namespaced_resource_claim_with_http_info(self, namespace, **kwargs): # noqa: E501
- """delete_collection_namespaced_resource_claim # noqa: E501
-
- delete collection of ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_collection_namespaced_resource_claim_with_http_info(namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param V1DeleteOptions body:
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'namespace',
- 'pretty',
- '_continue',
- 'dry_run',
- 'field_selector',
- 'grace_period_seconds',
- 'ignore_store_read_error_with_cluster_breaking_potential',
- 'label_selector',
- 'limit',
- 'orphan_dependents',
- 'propagation_policy',
- 'resource_version',
- 'resource_version_match',
- 'send_initial_events',
- 'timeout_seconds',
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method delete_collection_namespaced_resource_claim" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_resource_claim`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
- query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
- query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
- if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
- query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
- if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
- query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
- if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
- query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
- if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
- query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
- if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
- query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
- if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
- query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
- if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
- query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
- if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
- query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
- if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
- query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims', 'DELETE',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1Status', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def delete_collection_namespaced_resource_claim_template(self, namespace, **kwargs): # noqa: E501
- """delete_collection_namespaced_resource_claim_template # noqa: E501
-
- delete collection of ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_collection_namespaced_resource_claim_template(namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param V1DeleteOptions body:
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1Status
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.delete_collection_namespaced_resource_claim_template_with_http_info(namespace, **kwargs) # noqa: E501
-
- def delete_collection_namespaced_resource_claim_template_with_http_info(self, namespace, **kwargs): # noqa: E501
- """delete_collection_namespaced_resource_claim_template # noqa: E501
-
- delete collection of ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_collection_namespaced_resource_claim_template_with_http_info(namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param V1DeleteOptions body:
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'namespace',
- 'pretty',
- '_continue',
- 'dry_run',
- 'field_selector',
- 'grace_period_seconds',
- 'ignore_store_read_error_with_cluster_breaking_potential',
- 'label_selector',
- 'limit',
- 'orphan_dependents',
- 'propagation_policy',
- 'resource_version',
- 'resource_version_match',
- 'send_initial_events',
- 'timeout_seconds',
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method delete_collection_namespaced_resource_claim_template" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `delete_collection_namespaced_resource_claim_template`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
- query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
- query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
- if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
- query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
- if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
- query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
- if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
- query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
- if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
- query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
- if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
- query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
- if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
- query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
- if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
- query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
- if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
- query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
- if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
- query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates', 'DELETE',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1Status', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def delete_collection_resource_slice(self, **kwargs): # noqa: E501
- """delete_collection_resource_slice # noqa: E501
-
- delete collection of ResourceSlice # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_collection_resource_slice(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param V1DeleteOptions body:
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1Status
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.delete_collection_resource_slice_with_http_info(**kwargs) # noqa: E501
-
- def delete_collection_resource_slice_with_http_info(self, **kwargs): # noqa: E501
- """delete_collection_resource_slice # noqa: E501
-
- delete collection of ResourceSlice # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_collection_resource_slice_with_http_info(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param V1DeleteOptions body:
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'pretty',
- '_continue',
- 'dry_run',
- 'field_selector',
- 'grace_period_seconds',
- 'ignore_store_read_error_with_cluster_breaking_potential',
- 'label_selector',
- 'limit',
- 'orphan_dependents',
- 'propagation_policy',
- 'resource_version',
- 'resource_version_match',
- 'send_initial_events',
- 'timeout_seconds',
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method delete_collection_resource_slice" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
- query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
- query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
- if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
- query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
- if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
- query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
- if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
- query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
- if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
- query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
- if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
- query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
- if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
- query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
- if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
- query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
- if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
- query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
- if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
- query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/resourceslices', 'DELETE',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1Status', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def delete_device_class(self, name, **kwargs): # noqa: E501
- """delete_device_class # noqa: E501
-
- delete a DeviceClass # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_device_class(name, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the DeviceClass (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param V1DeleteOptions body:
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3DeviceClass
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.delete_device_class_with_http_info(name, **kwargs) # noqa: E501
-
- def delete_device_class_with_http_info(self, name, **kwargs): # noqa: E501
- """delete_device_class # noqa: E501
-
- delete a DeviceClass # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_device_class_with_http_info(name, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the DeviceClass (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param V1DeleteOptions body:
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3DeviceClass, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'pretty',
- 'dry_run',
- 'grace_period_seconds',
- 'ignore_store_read_error_with_cluster_breaking_potential',
- 'orphan_dependents',
- 'propagation_policy',
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method delete_device_class" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `delete_device_class`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
- query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
- if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
- query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
- if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
- query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
- if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
- query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}', 'DELETE',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3DeviceClass', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
def delete_device_taint_rule(self, name, **kwargs): # noqa: E501
"""delete_device_taint_rule # noqa: E501
@@ -1940,471 +499,6 @@ class ResourceV1alpha3Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def delete_namespaced_resource_claim(self, name, namespace, **kwargs): # noqa: E501
- """delete_namespaced_resource_claim # noqa: E501
-
- delete a ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_namespaced_resource_claim(name, namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaim (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param V1DeleteOptions body:
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaim
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.delete_namespaced_resource_claim_with_http_info(name, namespace, **kwargs) # noqa: E501
-
- def delete_namespaced_resource_claim_with_http_info(self, name, namespace, **kwargs): # noqa: E501
- """delete_namespaced_resource_claim # noqa: E501
-
- delete a ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_namespaced_resource_claim_with_http_info(name, namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaim (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param V1DeleteOptions body:
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'namespace',
- 'pretty',
- 'dry_run',
- 'grace_period_seconds',
- 'ignore_store_read_error_with_cluster_breaking_potential',
- 'orphan_dependents',
- 'propagation_policy',
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method delete_namespaced_resource_claim" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_claim`") # noqa: E501
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_claim`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
- query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
- if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
- query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
- if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
- query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
- if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
- query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}', 'DELETE',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaim', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def delete_namespaced_resource_claim_template(self, name, namespace, **kwargs): # noqa: E501
- """delete_namespaced_resource_claim_template # noqa: E501
-
- delete a ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_namespaced_resource_claim_template(name, namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaimTemplate (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param V1DeleteOptions body:
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaimTemplate
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.delete_namespaced_resource_claim_template_with_http_info(name, namespace, **kwargs) # noqa: E501
-
- def delete_namespaced_resource_claim_template_with_http_info(self, name, namespace, **kwargs): # noqa: E501
- """delete_namespaced_resource_claim_template # noqa: E501
-
- delete a ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_namespaced_resource_claim_template_with_http_info(name, namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaimTemplate (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param V1DeleteOptions body:
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'namespace',
- 'pretty',
- 'dry_run',
- 'grace_period_seconds',
- 'ignore_store_read_error_with_cluster_breaking_potential',
- 'orphan_dependents',
- 'propagation_policy',
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method delete_namespaced_resource_claim_template" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `delete_namespaced_resource_claim_template`") # noqa: E501
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `delete_namespaced_resource_claim_template`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
- query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
- if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
- query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
- if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
- query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
- if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
- query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}', 'DELETE',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaimTemplate', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def delete_resource_slice(self, name, **kwargs): # noqa: E501
- """delete_resource_slice # noqa: E501
-
- delete a ResourceSlice # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_resource_slice(name, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceSlice (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param V1DeleteOptions body:
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceSlice
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.delete_resource_slice_with_http_info(name, **kwargs) # noqa: E501
-
- def delete_resource_slice_with_http_info(self, name, **kwargs): # noqa: E501
- """delete_resource_slice # noqa: E501
-
- delete a ResourceSlice # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.delete_resource_slice_with_http_info(name, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceSlice (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
- :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
- :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
- :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
- :param V1DeleteOptions body:
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceSlice, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'pretty',
- 'dry_run',
- 'grace_period_seconds',
- 'ignore_store_read_error_with_cluster_breaking_potential',
- 'orphan_dependents',
- 'propagation_policy',
- 'body'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method delete_resource_slice" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `delete_resource_slice`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
- query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
- if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
- query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
- if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
- query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
- if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
- query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}', 'DELETE',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceSlice', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
def get_api_resources(self, **kwargs): # noqa: E501
"""get_api_resources # noqa: E501
@@ -2510,166 +604,6 @@ class ResourceV1alpha3Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def list_device_class(self, **kwargs): # noqa: E501
- """list_device_class # noqa: E501
-
- list or watch objects of kind DeviceClass # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_device_class(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3DeviceClassList
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.list_device_class_with_http_info(**kwargs) # noqa: E501
-
- def list_device_class_with_http_info(self, **kwargs): # noqa: E501
- """list_device_class # noqa: E501
-
- list or watch objects of kind DeviceClass # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_device_class_with_http_info(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3DeviceClassList, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'pretty',
- 'allow_watch_bookmarks',
- '_continue',
- 'field_selector',
- 'label_selector',
- 'limit',
- 'resource_version',
- 'resource_version_match',
- 'send_initial_events',
- 'timeout_seconds',
- 'watch'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method list_device_class" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
- query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
- if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
- query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
- if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
- query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
- if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
- query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
- if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
- query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
- if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
- query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
- if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
- query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
- if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
- query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
- if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
- query_params.append(('watch', local_var_params['watch'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/deviceclasses', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3DeviceClassList', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
def list_device_taint_rule(self, **kwargs): # noqa: E501
"""list_device_taint_rule # noqa: E501
@@ -2830,976 +764,6 @@ class ResourceV1alpha3Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def list_namespaced_resource_claim(self, namespace, **kwargs): # noqa: E501
- """list_namespaced_resource_claim # noqa: E501
-
- list or watch objects of kind ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_namespaced_resource_claim(namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaimList
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.list_namespaced_resource_claim_with_http_info(namespace, **kwargs) # noqa: E501
-
- def list_namespaced_resource_claim_with_http_info(self, namespace, **kwargs): # noqa: E501
- """list_namespaced_resource_claim # noqa: E501
-
- list or watch objects of kind ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_namespaced_resource_claim_with_http_info(namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaimList, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'namespace',
- 'pretty',
- 'allow_watch_bookmarks',
- '_continue',
- 'field_selector',
- 'label_selector',
- 'limit',
- 'resource_version',
- 'resource_version_match',
- 'send_initial_events',
- 'timeout_seconds',
- 'watch'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method list_namespaced_resource_claim" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_claim`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
- query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
- if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
- query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
- if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
- query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
- if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
- query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
- if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
- query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
- if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
- query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
- if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
- query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
- if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
- query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
- if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
- query_params.append(('watch', local_var_params['watch'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaimList', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def list_namespaced_resource_claim_template(self, namespace, **kwargs): # noqa: E501
- """list_namespaced_resource_claim_template # noqa: E501
-
- list or watch objects of kind ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_namespaced_resource_claim_template(namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaimTemplateList
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.list_namespaced_resource_claim_template_with_http_info(namespace, **kwargs) # noqa: E501
-
- def list_namespaced_resource_claim_template_with_http_info(self, namespace, **kwargs): # noqa: E501
- """list_namespaced_resource_claim_template # noqa: E501
-
- list or watch objects of kind ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_namespaced_resource_claim_template_with_http_info(namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaimTemplateList, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'namespace',
- 'pretty',
- 'allow_watch_bookmarks',
- '_continue',
- 'field_selector',
- 'label_selector',
- 'limit',
- 'resource_version',
- 'resource_version_match',
- 'send_initial_events',
- 'timeout_seconds',
- 'watch'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method list_namespaced_resource_claim_template" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `list_namespaced_resource_claim_template`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
- query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
- if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
- query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
- if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
- query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
- if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
- query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
- if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
- query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
- if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
- query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
- if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
- query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
- if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
- query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
- if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
- query_params.append(('watch', local_var_params['watch'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaimTemplateList', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def list_resource_claim_for_all_namespaces(self, **kwargs): # noqa: E501
- """list_resource_claim_for_all_namespaces # noqa: E501
-
- list or watch objects of kind ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_resource_claim_for_all_namespaces(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaimList
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.list_resource_claim_for_all_namespaces_with_http_info(**kwargs) # noqa: E501
-
- def list_resource_claim_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501
- """list_resource_claim_for_all_namespaces # noqa: E501
-
- list or watch objects of kind ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_resource_claim_for_all_namespaces_with_http_info(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaimList, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'allow_watch_bookmarks',
- '_continue',
- 'field_selector',
- 'label_selector',
- 'limit',
- 'pretty',
- 'resource_version',
- 'resource_version_match',
- 'send_initial_events',
- 'timeout_seconds',
- 'watch'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method list_resource_claim_for_all_namespaces" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
- query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
- if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
- query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
- if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
- query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
- if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
- query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
- query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
- if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
- query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
- if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
- query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
- if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
- query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
- if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
- query_params.append(('watch', local_var_params['watch'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/resourceclaims', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaimList', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def list_resource_claim_template_for_all_namespaces(self, **kwargs): # noqa: E501
- """list_resource_claim_template_for_all_namespaces # noqa: E501
-
- list or watch objects of kind ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_resource_claim_template_for_all_namespaces(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaimTemplateList
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.list_resource_claim_template_for_all_namespaces_with_http_info(**kwargs) # noqa: E501
-
- def list_resource_claim_template_for_all_namespaces_with_http_info(self, **kwargs): # noqa: E501
- """list_resource_claim_template_for_all_namespaces # noqa: E501
-
- list or watch objects of kind ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_resource_claim_template_for_all_namespaces_with_http_info(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaimTemplateList, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'allow_watch_bookmarks',
- '_continue',
- 'field_selector',
- 'label_selector',
- 'limit',
- 'pretty',
- 'resource_version',
- 'resource_version_match',
- 'send_initial_events',
- 'timeout_seconds',
- 'watch'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method list_resource_claim_template_for_all_namespaces" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
- query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
- if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
- query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
- if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
- query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
- if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
- query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
- query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
- if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
- query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
- if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
- query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
- if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
- query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
- if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
- query_params.append(('watch', local_var_params['watch'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/resourceclaimtemplates', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaimTemplateList', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def list_resource_slice(self, **kwargs): # noqa: E501
- """list_resource_slice # noqa: E501
-
- list or watch objects of kind ResourceSlice # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_resource_slice(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceSliceList
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.list_resource_slice_with_http_info(**kwargs) # noqa: E501
-
- def list_resource_slice_with_http_info(self, **kwargs): # noqa: E501
- """list_resource_slice # noqa: E501
-
- list or watch objects of kind ResourceSlice # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.list_resource_slice_with_http_info(async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
- :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
- :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
- :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
- :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
- :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
- :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
- :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
- :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceSliceList, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'pretty',
- 'allow_watch_bookmarks',
- '_continue',
- 'field_selector',
- 'label_selector',
- 'limit',
- 'resource_version',
- 'resource_version_match',
- 'send_initial_events',
- 'timeout_seconds',
- 'watch'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method list_resource_slice" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
-
- collection_formats = {}
-
- path_params = {}
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
- query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
- if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
- query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
- if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
- query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
- if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
- query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
- if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
- query_params.append(('limit', local_var_params['limit'])) # noqa: E501
- if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
- query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
- if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
- query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
- if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
- query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
- if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
- query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
- if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
- query_params.append(('watch', local_var_params['watch'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/resourceslices', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceSliceList', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def patch_device_class(self, name, body, **kwargs): # noqa: E501
- """patch_device_class # noqa: E501
-
- partially update the specified DeviceClass # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_device_class(name, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the DeviceClass (required)
- :param object body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3DeviceClass
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.patch_device_class_with_http_info(name, body, **kwargs) # noqa: E501
-
- def patch_device_class_with_http_info(self, name, body, **kwargs): # noqa: E501
- """patch_device_class # noqa: E501
-
- partially update the specified DeviceClass # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_device_class_with_http_info(name, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the DeviceClass (required)
- :param object body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3DeviceClass, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation',
- 'force'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method patch_device_class" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `patch_device_class`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `patch_device_class`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
- if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
- query_params.append(('force', local_var_params['force'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}', 'PATCH',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3DeviceClass', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
def patch_device_taint_rule(self, name, body, **kwargs): # noqa: E501
"""patch_device_taint_rule # noqa: E501
@@ -3952,760 +916,6 @@ class ResourceV1alpha3Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def patch_namespaced_resource_claim(self, name, namespace, body, **kwargs): # noqa: E501
- """patch_namespaced_resource_claim # noqa: E501
-
- partially update the specified ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_namespaced_resource_claim(name, namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaim (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param object body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaim
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.patch_namespaced_resource_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501
-
- def patch_namespaced_resource_claim_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
- """patch_namespaced_resource_claim # noqa: E501
-
- partially update the specified ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_namespaced_resource_claim_with_http_info(name, namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaim (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param object body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'namespace',
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation',
- 'force'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method patch_namespaced_resource_claim" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_claim`") # noqa: E501
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_claim`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_claim`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
- if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
- query_params.append(('force', local_var_params['force'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}', 'PATCH',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaim', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def patch_namespaced_resource_claim_status(self, name, namespace, body, **kwargs): # noqa: E501
- """patch_namespaced_resource_claim_status # noqa: E501
-
- partially update status of the specified ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_namespaced_resource_claim_status(name, namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaim (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param object body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaim
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.patch_namespaced_resource_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501
-
- def patch_namespaced_resource_claim_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
- """patch_namespaced_resource_claim_status # noqa: E501
-
- partially update status of the specified ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_namespaced_resource_claim_status_with_http_info(name, namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaim (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param object body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'namespace',
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation',
- 'force'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method patch_namespaced_resource_claim_status" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_claim_status`") # noqa: E501
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_claim_status`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_claim_status`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
- if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
- query_params.append(('force', local_var_params['force'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status', 'PATCH',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaim', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def patch_namespaced_resource_claim_template(self, name, namespace, body, **kwargs): # noqa: E501
- """patch_namespaced_resource_claim_template # noqa: E501
-
- partially update the specified ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_namespaced_resource_claim_template(name, namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaimTemplate (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param object body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaimTemplate
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.patch_namespaced_resource_claim_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501
-
- def patch_namespaced_resource_claim_template_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
- """patch_namespaced_resource_claim_template # noqa: E501
-
- partially update the specified ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_namespaced_resource_claim_template_with_http_info(name, namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaimTemplate (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param object body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'namespace',
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation',
- 'force'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method patch_namespaced_resource_claim_template" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `patch_namespaced_resource_claim_template`") # noqa: E501
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `patch_namespaced_resource_claim_template`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `patch_namespaced_resource_claim_template`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
- if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
- query_params.append(('force', local_var_params['force'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}', 'PATCH',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaimTemplate', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def patch_resource_slice(self, name, body, **kwargs): # noqa: E501
- """patch_resource_slice # noqa: E501
-
- partially update the specified ResourceSlice # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_resource_slice(name, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceSlice (required)
- :param object body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceSlice
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.patch_resource_slice_with_http_info(name, body, **kwargs) # noqa: E501
-
- def patch_resource_slice_with_http_info(self, name, body, **kwargs): # noqa: E501
- """patch_resource_slice # noqa: E501
-
- partially update the specified ResourceSlice # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.patch_resource_slice_with_http_info(name, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceSlice (required)
- :param object body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceSlice, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation',
- 'force'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method patch_resource_slice" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `patch_resource_slice`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `patch_resource_slice`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
- if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
- query_params.append(('force', local_var_params['force'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # HTTP header `Content-Type`
- header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
- ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}', 'PATCH',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceSlice', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def read_device_class(self, name, **kwargs): # noqa: E501
- """read_device_class # noqa: E501
-
- read the specified DeviceClass # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_device_class(name, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the DeviceClass (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3DeviceClass
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.read_device_class_with_http_info(name, **kwargs) # noqa: E501
-
- def read_device_class_with_http_info(self, name, **kwargs): # noqa: E501
- """read_device_class # noqa: E501
-
- read the specified DeviceClass # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_device_class_with_http_info(name, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the DeviceClass (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3DeviceClass, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'pretty'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method read_device_class" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `read_device_class`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3DeviceClass', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
def read_device_taint_rule(self, name, **kwargs): # noqa: E501
"""read_device_taint_rule # noqa: E501
@@ -4825,652 +1035,6 @@ class ResourceV1alpha3Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
- def read_namespaced_resource_claim(self, name, namespace, **kwargs): # noqa: E501
- """read_namespaced_resource_claim # noqa: E501
-
- read the specified ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_namespaced_resource_claim(name, namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaim (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaim
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.read_namespaced_resource_claim_with_http_info(name, namespace, **kwargs) # noqa: E501
-
- def read_namespaced_resource_claim_with_http_info(self, name, namespace, **kwargs): # noqa: E501
- """read_namespaced_resource_claim # noqa: E501
-
- read the specified ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_namespaced_resource_claim_with_http_info(name, namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaim (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'namespace',
- 'pretty'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method read_namespaced_resource_claim" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_resource_claim`") # noqa: E501
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_claim`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaim', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def read_namespaced_resource_claim_status(self, name, namespace, **kwargs): # noqa: E501
- """read_namespaced_resource_claim_status # noqa: E501
-
- read status of the specified ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_namespaced_resource_claim_status(name, namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaim (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaim
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.read_namespaced_resource_claim_status_with_http_info(name, namespace, **kwargs) # noqa: E501
-
- def read_namespaced_resource_claim_status_with_http_info(self, name, namespace, **kwargs): # noqa: E501
- """read_namespaced_resource_claim_status # noqa: E501
-
- read status of the specified ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_namespaced_resource_claim_status_with_http_info(name, namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaim (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'namespace',
- 'pretty'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method read_namespaced_resource_claim_status" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_resource_claim_status`") # noqa: E501
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_claim_status`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaim', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def read_namespaced_resource_claim_template(self, name, namespace, **kwargs): # noqa: E501
- """read_namespaced_resource_claim_template # noqa: E501
-
- read the specified ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_namespaced_resource_claim_template(name, namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaimTemplate (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaimTemplate
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.read_namespaced_resource_claim_template_with_http_info(name, namespace, **kwargs) # noqa: E501
-
- def read_namespaced_resource_claim_template_with_http_info(self, name, namespace, **kwargs): # noqa: E501
- """read_namespaced_resource_claim_template # noqa: E501
-
- read the specified ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_namespaced_resource_claim_template_with_http_info(name, namespace, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaimTemplate (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'namespace',
- 'pretty'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method read_namespaced_resource_claim_template" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `read_namespaced_resource_claim_template`") # noqa: E501
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `read_namespaced_resource_claim_template`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaimTemplate', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def read_resource_slice(self, name, **kwargs): # noqa: E501
- """read_resource_slice # noqa: E501
-
- read the specified ResourceSlice # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_resource_slice(name, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceSlice (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceSlice
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.read_resource_slice_with_http_info(name, **kwargs) # noqa: E501
-
- def read_resource_slice_with_http_info(self, name, **kwargs): # noqa: E501
- """read_resource_slice # noqa: E501
-
- read the specified ResourceSlice # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.read_resource_slice_with_http_info(name, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceSlice (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceSlice, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'pretty'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method read_resource_slice" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `read_resource_slice`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}', 'GET',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceSlice', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def replace_device_class(self, name, body, **kwargs): # noqa: E501
- """replace_device_class # noqa: E501
-
- replace the specified DeviceClass # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_device_class(name, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the DeviceClass (required)
- :param V1alpha3DeviceClass body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3DeviceClass
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.replace_device_class_with_http_info(name, body, **kwargs) # noqa: E501
-
- def replace_device_class_with_http_info(self, name, body, **kwargs): # noqa: E501
- """replace_device_class # noqa: E501
-
- replace the specified DeviceClass # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_device_class_with_http_info(name, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the DeviceClass (required)
- :param V1alpha3DeviceClass body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3DeviceClass, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method replace_device_class" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `replace_device_class`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `replace_device_class`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/deviceclasses/{name}', 'PUT',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3DeviceClass', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
def replace_device_taint_rule(self, name, body, **kwargs): # noqa: E501
"""replace_device_taint_rule # noqa: E501
@@ -5613,602 +1177,3 @@ class ResourceV1alpha3Api(object):
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
-
- def replace_namespaced_resource_claim(self, name, namespace, body, **kwargs): # noqa: E501
- """replace_namespaced_resource_claim # noqa: E501
-
- replace the specified ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_namespaced_resource_claim(name, namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaim (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param V1alpha3ResourceClaim body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaim
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.replace_namespaced_resource_claim_with_http_info(name, namespace, body, **kwargs) # noqa: E501
-
- def replace_namespaced_resource_claim_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
- """replace_namespaced_resource_claim # noqa: E501
-
- replace the specified ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_namespaced_resource_claim_with_http_info(name, namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaim (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param V1alpha3ResourceClaim body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'namespace',
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method replace_namespaced_resource_claim" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_claim`") # noqa: E501
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_claim`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_claim`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}', 'PUT',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaim', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def replace_namespaced_resource_claim_status(self, name, namespace, body, **kwargs): # noqa: E501
- """replace_namespaced_resource_claim_status # noqa: E501
-
- replace status of the specified ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_namespaced_resource_claim_status(name, namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaim (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param V1alpha3ResourceClaim body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaim
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.replace_namespaced_resource_claim_status_with_http_info(name, namespace, body, **kwargs) # noqa: E501
-
- def replace_namespaced_resource_claim_status_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
- """replace_namespaced_resource_claim_status # noqa: E501
-
- replace status of the specified ResourceClaim # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_namespaced_resource_claim_status_with_http_info(name, namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaim (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param V1alpha3ResourceClaim body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaim, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'namespace',
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method replace_namespaced_resource_claim_status" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_claim_status`") # noqa: E501
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_claim_status`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_claim_status`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaims/{name}/status', 'PUT',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaim', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def replace_namespaced_resource_claim_template(self, name, namespace, body, **kwargs): # noqa: E501
- """replace_namespaced_resource_claim_template # noqa: E501
-
- replace the specified ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_namespaced_resource_claim_template(name, namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaimTemplate (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param V1alpha3ResourceClaimTemplate body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceClaimTemplate
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.replace_namespaced_resource_claim_template_with_http_info(name, namespace, body, **kwargs) # noqa: E501
-
- def replace_namespaced_resource_claim_template_with_http_info(self, name, namespace, body, **kwargs): # noqa: E501
- """replace_namespaced_resource_claim_template # noqa: E501
-
- replace the specified ResourceClaimTemplate # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_namespaced_resource_claim_template_with_http_info(name, namespace, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceClaimTemplate (required)
- :param str namespace: object name and auth scope, such as for teams and projects (required)
- :param V1alpha3ResourceClaimTemplate body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceClaimTemplate, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'namespace',
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method replace_namespaced_resource_claim_template" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `replace_namespaced_resource_claim_template`") # noqa: E501
- # verify the required parameter 'namespace' is set
- if self.api_client.client_side_validation and ('namespace' not in local_var_params or # noqa: E501
- local_var_params['namespace'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `namespace` when calling `replace_namespaced_resource_claim_template`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `replace_namespaced_resource_claim_template`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
- if 'namespace' in local_var_params:
- path_params['namespace'] = local_var_params['namespace'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/namespaces/{namespace}/resourceclaimtemplates/{name}', 'PUT',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceClaimTemplate', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
-
- def replace_resource_slice(self, name, body, **kwargs): # noqa: E501
- """replace_resource_slice # noqa: E501
-
- replace the specified ResourceSlice # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_resource_slice(name, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceSlice (required)
- :param V1alpha3ResourceSlice body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: V1alpha3ResourceSlice
- If the method is called asynchronously,
- returns the request thread.
- """
- kwargs['_return_http_data_only'] = True
- return self.replace_resource_slice_with_http_info(name, body, **kwargs) # noqa: E501
-
- def replace_resource_slice_with_http_info(self, name, body, **kwargs): # noqa: E501
- """replace_resource_slice # noqa: E501
-
- replace the specified ResourceSlice # noqa: E501
- This method makes a synchronous HTTP request by default. To make an
- asynchronous HTTP request, please pass async_req=True
- >>> thread = api.replace_resource_slice_with_http_info(name, body, async_req=True)
- >>> result = thread.get()
-
- :param async_req bool: execute request asynchronously
- :param str name: name of the ResourceSlice (required)
- :param V1alpha3ResourceSlice body: (required)
- :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
- :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
- :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
- :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
- :param _return_http_data_only: response data without head status code
- and headers
- :param _preload_content: if False, the urllib3.HTTPResponse object will
- be returned without reading/decoding response
- data. Default is True.
- :param _request_timeout: timeout setting for this request. If one
- number provided, it will be total request
- timeout. It can also be a pair (tuple) of
- (connection, read) timeouts.
- :return: tuple(V1alpha3ResourceSlice, status_code(int), headers(HTTPHeaderDict))
- If the method is called asynchronously,
- returns the request thread.
- """
-
- local_var_params = locals()
-
- all_params = [
- 'name',
- 'body',
- 'pretty',
- 'dry_run',
- 'field_manager',
- 'field_validation'
- ]
- all_params.extend(
- [
- 'async_req',
- '_return_http_data_only',
- '_preload_content',
- '_request_timeout'
- ]
- )
-
- for key, val in six.iteritems(local_var_params['kwargs']):
- if key not in all_params:
- raise ApiTypeError(
- "Got an unexpected keyword argument '%s'"
- " to method replace_resource_slice" % key
- )
- local_var_params[key] = val
- del local_var_params['kwargs']
- # verify the required parameter 'name' is set
- if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
- local_var_params['name'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `name` when calling `replace_resource_slice`") # noqa: E501
- # verify the required parameter 'body' is set
- if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
- local_var_params['body'] is None): # noqa: E501
- raise ApiValueError("Missing the required parameter `body` when calling `replace_resource_slice`") # noqa: E501
-
- collection_formats = {}
-
- path_params = {}
- if 'name' in local_var_params:
- path_params['name'] = local_var_params['name'] # noqa: E501
-
- query_params = []
- if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
- query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
- if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
- query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
- if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
- query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
- if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
- query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
-
- header_params = {}
-
- form_params = []
- local_var_files = {}
-
- body_params = None
- if 'body' in local_var_params:
- body_params = local_var_params['body']
- # HTTP header `Accept`
- header_params['Accept'] = self.api_client.select_header_accept(
- ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
-
- # Authentication setting
- auth_settings = ['BearerToken'] # noqa: E501
-
- return self.api_client.call_api(
- '/apis/resource.k8s.io/v1alpha3/resourceslices/{name}', 'PUT',
- path_params,
- query_params,
- header_params,
- body=body_params,
- post_params=form_params,
- files=local_var_files,
- response_type='V1alpha3ResourceSlice', # noqa: E501
- auth_settings=auth_settings,
- async_req=local_var_params.get('async_req'),
- _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
- _preload_content=local_var_params.get('_preload_content', True),
- _request_timeout=local_var_params.get('_request_timeout'),
- collection_formats=collection_formats)
diff --git a/contrib/python/kubernetes/kubernetes/client/api/resource_v1beta1_api.py b/contrib/python/kubernetes/kubernetes/client/api/resource_v1beta1_api.py
index 7fdc99aac98..85432de610c 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/resource_v1beta1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/resource_v1beta1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/resource_v1beta2_api.py b/contrib/python/kubernetes/kubernetes/client/api/resource_v1beta2_api.py
index e4dc3a3188b..ed48b287427 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/resource_v1beta2_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/resource_v1beta2_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/scheduling_api.py b/contrib/python/kubernetes/kubernetes/client/api/scheduling_api.py
index d24032c23f1..1faa1bf52c7 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/scheduling_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/scheduling_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/scheduling_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/scheduling_v1_api.py
index 6e38f1e21f3..2bba536580a 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/scheduling_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/scheduling_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/storage_api.py b/contrib/python/kubernetes/kubernetes/client/api/storage_api.py
index d40cee988bf..e11a398069f 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/storage_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/storage_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/storage_v1_api.py b/contrib/python/kubernetes/kubernetes/client/api/storage_v1_api.py
index 984e488d988..1583b1632f8 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/storage_v1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/storage_v1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -715,6 +715,140 @@ class StorageV1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
+ def create_volume_attributes_class(self, body, **kwargs): # noqa: E501
+ """create_volume_attributes_class # noqa: E501
+
+ create a VolumeAttributesClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_volume_attributes_class(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param V1VolumeAttributesClass body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1VolumeAttributesClass
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.create_volume_attributes_class_with_http_info(body, **kwargs) # noqa: E501
+
+ def create_volume_attributes_class_with_http_info(self, body, **kwargs): # noqa: E501
+ """create_volume_attributes_class # noqa: E501
+
+ create a VolumeAttributesClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.create_volume_attributes_class_with_http_info(body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param V1VolumeAttributesClass body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1VolumeAttributesClass, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method create_volume_attributes_class" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `create_volume_attributes_class`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/storage.k8s.io/v1/volumeattributesclasses', 'POST',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1VolumeAttributesClass', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
def delete_collection_csi_driver(self, **kwargs): # noqa: E501
"""delete_collection_csi_driver # noqa: E501
@@ -1624,6 +1758,186 @@ class StorageV1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
+ def delete_collection_volume_attributes_class(self, **kwargs): # noqa: E501
+ """delete_collection_volume_attributes_class # noqa: E501
+
+ delete collection of VolumeAttributesClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_collection_volume_attributes_class(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param V1DeleteOptions body:
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1Status
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.delete_collection_volume_attributes_class_with_http_info(**kwargs) # noqa: E501
+
+ def delete_collection_volume_attributes_class_with_http_info(self, **kwargs): # noqa: E501
+ """delete_collection_volume_attributes_class # noqa: E501
+
+ delete collection of VolumeAttributesClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_collection_volume_attributes_class_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param V1DeleteOptions body:
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1Status, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'pretty',
+ '_continue',
+ 'dry_run',
+ 'field_selector',
+ 'grace_period_seconds',
+ 'ignore_store_read_error_with_cluster_breaking_potential',
+ 'label_selector',
+ 'limit',
+ 'orphan_dependents',
+ 'propagation_policy',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'body'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_collection_volume_attributes_class" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/storage.k8s.io/v1/volumeattributesclasses', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1Status', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
def delete_csi_driver(self, name, **kwargs): # noqa: E501
"""delete_csi_driver # noqa: E501
@@ -2378,6 +2692,155 @@ class StorageV1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
+ def delete_volume_attributes_class(self, name, **kwargs): # noqa: E501
+ """delete_volume_attributes_class # noqa: E501
+
+ delete a VolumeAttributesClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_volume_attributes_class(name, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the VolumeAttributesClass (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param V1DeleteOptions body:
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1VolumeAttributesClass
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.delete_volume_attributes_class_with_http_info(name, **kwargs) # noqa: E501
+
+ def delete_volume_attributes_class_with_http_info(self, name, **kwargs): # noqa: E501
+ """delete_volume_attributes_class # noqa: E501
+
+ delete a VolumeAttributesClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.delete_volume_attributes_class_with_http_info(name, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the VolumeAttributesClass (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param int grace_period_seconds: The duration in seconds before the object should be deleted. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period for the specified type will be used. Defaults to a per object value if not specified. zero means delete immediately.
+ :param bool ignore_store_read_error_with_cluster_breaking_potential: if set to true, it will trigger an unsafe deletion of the resource in case the normal deletion flow fails with a corrupt object error. A resource is considered corrupt if it can not be retrieved from the underlying storage successfully because of a) its data can not be transformed e.g. decryption failure, or b) it fails to decode into an object. NOTE: unsafe deletion ignores finalizer constraints, skips precondition checks, and removes the object from the storage. WARNING: This may potentially break the cluster if the workload associated with the resource being unsafe-deleted relies on normal deletion flow. Use only if you REALLY know what you are doing. The default value is false, and the user must opt in to enable it
+ :param bool orphan_dependents: Deprecated: please use the PropagationPolicy, this field will be deprecated in 1.7. Should the dependent objects be orphaned. If true/false, the \"orphan\" finalizer will be added to/removed from the object's finalizers list. Either this field or PropagationPolicy may be set, but not both.
+ :param str propagation_policy: Whether and how garbage collection will be performed. Either this field or OrphanDependents may be set, but not both. The default policy is decided by the existing finalizer set in the metadata.finalizers and the resource-specific default policy. Acceptable values are: 'Orphan' - orphan the dependents; 'Background' - allow the garbage collector to delete the dependents in the background; 'Foreground' - a cascading policy that deletes all dependents in the foreground.
+ :param V1DeleteOptions body:
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1VolumeAttributesClass, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'pretty',
+ 'dry_run',
+ 'grace_period_seconds',
+ 'ignore_store_read_error_with_cluster_breaking_potential',
+ 'orphan_dependents',
+ 'propagation_policy',
+ 'body'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method delete_volume_attributes_class" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `delete_volume_attributes_class`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'grace_period_seconds' in local_var_params and local_var_params['grace_period_seconds'] is not None: # noqa: E501
+ query_params.append(('gracePeriodSeconds', local_var_params['grace_period_seconds'])) # noqa: E501
+ if 'ignore_store_read_error_with_cluster_breaking_potential' in local_var_params and local_var_params['ignore_store_read_error_with_cluster_breaking_potential'] is not None: # noqa: E501
+ query_params.append(('ignoreStoreReadErrorWithClusterBreakingPotential', local_var_params['ignore_store_read_error_with_cluster_breaking_potential'])) # noqa: E501
+ if 'orphan_dependents' in local_var_params and local_var_params['orphan_dependents'] is not None: # noqa: E501
+ query_params.append(('orphanDependents', local_var_params['orphan_dependents'])) # noqa: E501
+ if 'propagation_policy' in local_var_params and local_var_params['propagation_policy'] is not None: # noqa: E501
+ query_params.append(('propagationPolicy', local_var_params['propagation_policy'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', 'DELETE',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1VolumeAttributesClass', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
def get_api_resources(self, **kwargs): # noqa: E501
"""get_api_resources # noqa: E501
@@ -3452,6 +3915,166 @@ class StorageV1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
+ def list_volume_attributes_class(self, **kwargs): # noqa: E501
+ """list_volume_attributes_class # noqa: E501
+
+ list or watch objects of kind VolumeAttributesClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_volume_attributes_class(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1VolumeAttributesClassList
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.list_volume_attributes_class_with_http_info(**kwargs) # noqa: E501
+
+ def list_volume_attributes_class_with_http_info(self, **kwargs): # noqa: E501
+ """list_volume_attributes_class # noqa: E501
+
+ list or watch objects of kind VolumeAttributesClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.list_volume_attributes_class_with_http_info(async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param bool allow_watch_bookmarks: allowWatchBookmarks requests watch events with type \"BOOKMARK\". Servers that do not implement bookmarks may ignore this flag and bookmarks are sent at the server's discretion. Clients should not assume bookmarks are returned at any specific interval, nor may they assume the server will send any BOOKMARK event during a session. If this is not a watch, this field is ignored.
+ :param str _continue: The continue option should be set when retrieving more results from the server. Since this value is server defined, clients may only use the continue value from a previous query result with identical query parameters (except for the value of continue) and the server may reject a continue value it does not recognize. If the specified continue value is no longer valid whether due to expiration (generally five to fifteen minutes) or a configuration change on the server, the server will respond with a 410 ResourceExpired error together with a continue token. If the client needs a consistent list, it must restart their list without the continue field. Otherwise, the client may send another list request with the token received with the 410 error, the server will respond with a list starting from the next key, but from the latest snapshot, which is inconsistent from the previous list results - objects that are created, modified, or deleted after the first list request will be included in the response, as long as their keys are after the \"next key\". This field is not supported when watch is true. Clients may start a watch from the last resourceVersion value returned by the server and not miss any modifications.
+ :param str field_selector: A selector to restrict the list of returned objects by their fields. Defaults to everything.
+ :param str label_selector: A selector to restrict the list of returned objects by their labels. Defaults to everything.
+ :param int limit: limit is a maximum number of responses to return for a list call. If more items exist, the server will set the `continue` field on the list metadata to a value that can be used with the same initial query to retrieve the next set of results. Setting a limit may return fewer than the requested amount of items (up to zero items) in the event all requested objects are filtered out and clients should only use the presence of the continue field to determine whether more results are available. Servers may choose not to support the limit argument and will return all of the available results. If limit is specified and the continue field is empty, clients may assume that no more results are available. This field is not supported if watch is true. The server guarantees that the objects returned when using continue will be identical to issuing a single list call without a limit - that is, no objects created, modified, or deleted after the first request is issued will be included in any subsequent continued requests. This is sometimes referred to as a consistent snapshot, and ensures that a client that is using limit to receive smaller chunks of a very large result can ensure they see all possible objects. If objects are updated during a chunked list the version of the object that was present at the time the first list result was calculated is returned.
+ :param str resource_version: resourceVersion sets a constraint on what resource versions a request may be served from. See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param str resource_version_match: resourceVersionMatch determines how resourceVersion is applied to list calls. It is highly recommended that resourceVersionMatch be set for list calls where resourceVersion is set See https://kubernetes.io/docs/reference/using-api/api-concepts/#resource-versions for details. Defaults to unset
+ :param bool send_initial_events: `sendInitialEvents=true` may be set together with `watch=true`. In that case, the watch stream will begin with synthetic events to produce the current state of objects in the collection. Once all such events have been sent, a synthetic \"Bookmark\" event will be sent. The bookmark will report the ResourceVersion (RV) corresponding to the set of objects, and be marked with `\"k8s.io/initial-events-end\": \"true\"` annotation. Afterwards, the watch stream will proceed as usual, sending watch events corresponding to changes (subsequent to the RV) to objects watched. When `sendInitialEvents` option is set, we require `resourceVersionMatch` option to also be set. The semantic of the watch request is as following: - `resourceVersionMatch` = NotOlderThan is interpreted as \"data at least as new as the provided `resourceVersion`\" and the bookmark event is send when the state is synced to a `resourceVersion` at least as fresh as the one provided by the ListOptions. If `resourceVersion` is unset, this is interpreted as \"consistent read\" and the bookmark event is send when the state is synced at least to the moment when request started being processed. - `resourceVersionMatch` set to any other value or unset Invalid error is returned. Defaults to true if `resourceVersion=\"\"` or `resourceVersion=\"0\"` (for backward compatibility reasons) and to false otherwise.
+ :param int timeout_seconds: Timeout for the list/watch call. This limits the duration of the call, regardless of any activity or inactivity.
+ :param bool watch: Watch for changes to the described resources and return them as a stream of add, update, and remove notifications. Specify resourceVersion.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1VolumeAttributesClassList, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'pretty',
+ 'allow_watch_bookmarks',
+ '_continue',
+ 'field_selector',
+ 'label_selector',
+ 'limit',
+ 'resource_version',
+ 'resource_version_match',
+ 'send_initial_events',
+ 'timeout_seconds',
+ 'watch'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method list_volume_attributes_class" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+
+ collection_formats = {}
+
+ path_params = {}
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'allow_watch_bookmarks' in local_var_params and local_var_params['allow_watch_bookmarks'] is not None: # noqa: E501
+ query_params.append(('allowWatchBookmarks', local_var_params['allow_watch_bookmarks'])) # noqa: E501
+ if '_continue' in local_var_params and local_var_params['_continue'] is not None: # noqa: E501
+ query_params.append(('continue', local_var_params['_continue'])) # noqa: E501
+ if 'field_selector' in local_var_params and local_var_params['field_selector'] is not None: # noqa: E501
+ query_params.append(('fieldSelector', local_var_params['field_selector'])) # noqa: E501
+ if 'label_selector' in local_var_params and local_var_params['label_selector'] is not None: # noqa: E501
+ query_params.append(('labelSelector', local_var_params['label_selector'])) # noqa: E501
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
+ if 'resource_version' in local_var_params and local_var_params['resource_version'] is not None: # noqa: E501
+ query_params.append(('resourceVersion', local_var_params['resource_version'])) # noqa: E501
+ if 'resource_version_match' in local_var_params and local_var_params['resource_version_match'] is not None: # noqa: E501
+ query_params.append(('resourceVersionMatch', local_var_params['resource_version_match'])) # noqa: E501
+ if 'send_initial_events' in local_var_params and local_var_params['send_initial_events'] is not None: # noqa: E501
+ query_params.append(('sendInitialEvents', local_var_params['send_initial_events'])) # noqa: E501
+ if 'timeout_seconds' in local_var_params and local_var_params['timeout_seconds'] is not None: # noqa: E501
+ query_params.append(('timeoutSeconds', local_var_params['timeout_seconds'])) # noqa: E501
+ if 'watch' in local_var_params and local_var_params['watch'] is not None: # noqa: E501
+ query_params.append(('watch', local_var_params['watch'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor', 'application/json;stream=watch', 'application/vnd.kubernetes.protobuf;stream=watch', 'application/cbor-seq']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/storage.k8s.io/v1/volumeattributesclasses', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1VolumeAttributesClassList', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
def patch_csi_driver(self, name, body, **kwargs): # noqa: E501
"""patch_csi_driver # noqa: E501
@@ -4373,6 +4996,158 @@ class StorageV1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
+ def patch_volume_attributes_class(self, name, body, **kwargs): # noqa: E501
+ """patch_volume_attributes_class # noqa: E501
+
+ partially update the specified VolumeAttributesClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_volume_attributes_class(name, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the VolumeAttributesClass (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1VolumeAttributesClass
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.patch_volume_attributes_class_with_http_info(name, body, **kwargs) # noqa: E501
+
+ def patch_volume_attributes_class_with_http_info(self, name, body, **kwargs): # noqa: E501
+ """patch_volume_attributes_class # noqa: E501
+
+ partially update the specified VolumeAttributesClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.patch_volume_attributes_class_with_http_info(name, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the VolumeAttributesClass (required)
+ :param object body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint. This field is required for apply requests (application/apply-patch) but optional for non-apply patch types (JsonPatch, MergePatch, StrategicMergePatch).
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param bool force: Force is going to \"force\" Apply requests. It means user will re-acquire conflicting fields owned by other people. Force flag must be unset for non-apply patch requests.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1VolumeAttributesClass, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation',
+ 'force'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method patch_volume_attributes_class" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `patch_volume_attributes_class`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `patch_volume_attributes_class`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+ if 'force' in local_var_params and local_var_params['force'] is not None: # noqa: E501
+ query_params.append(('force', local_var_params['force'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # HTTP header `Content-Type`
+ header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
+ ['application/json-patch+json', 'application/merge-patch+json', 'application/strategic-merge-patch+json', 'application/apply-patch+yaml', 'application/apply-patch+cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', 'PATCH',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1VolumeAttributesClass', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
def read_csi_driver(self, name, **kwargs): # noqa: E501
"""read_csi_driver # noqa: E501
@@ -5096,6 +5871,125 @@ class StorageV1Api(object):
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
+ def read_volume_attributes_class(self, name, **kwargs): # noqa: E501
+ """read_volume_attributes_class # noqa: E501
+
+ read the specified VolumeAttributesClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_volume_attributes_class(name, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the VolumeAttributesClass (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1VolumeAttributesClass
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.read_volume_attributes_class_with_http_info(name, **kwargs) # noqa: E501
+
+ def read_volume_attributes_class_with_http_info(self, name, **kwargs): # noqa: E501
+ """read_volume_attributes_class # noqa: E501
+
+ read the specified VolumeAttributesClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.read_volume_attributes_class_with_http_info(name, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the VolumeAttributesClass (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1VolumeAttributesClass, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'pretty'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method read_volume_attributes_class" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `read_volume_attributes_class`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', 'GET',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1VolumeAttributesClass', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
+
def replace_csi_driver(self, name, body, **kwargs): # noqa: E501
"""replace_csi_driver # noqa: E501
@@ -5962,3 +6856,146 @@ class StorageV1Api(object):
_preload_content=local_var_params.get('_preload_content', True),
_request_timeout=local_var_params.get('_request_timeout'),
collection_formats=collection_formats)
+
+ def replace_volume_attributes_class(self, name, body, **kwargs): # noqa: E501
+ """replace_volume_attributes_class # noqa: E501
+
+ replace the specified VolumeAttributesClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_volume_attributes_class(name, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the VolumeAttributesClass (required)
+ :param V1VolumeAttributesClass body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: V1VolumeAttributesClass
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+ kwargs['_return_http_data_only'] = True
+ return self.replace_volume_attributes_class_with_http_info(name, body, **kwargs) # noqa: E501
+
+ def replace_volume_attributes_class_with_http_info(self, name, body, **kwargs): # noqa: E501
+ """replace_volume_attributes_class # noqa: E501
+
+ replace the specified VolumeAttributesClass # noqa: E501
+ This method makes a synchronous HTTP request by default. To make an
+ asynchronous HTTP request, please pass async_req=True
+ >>> thread = api.replace_volume_attributes_class_with_http_info(name, body, async_req=True)
+ >>> result = thread.get()
+
+ :param async_req bool: execute request asynchronously
+ :param str name: name of the VolumeAttributesClass (required)
+ :param V1VolumeAttributesClass body: (required)
+ :param str pretty: If 'true', then the output is pretty printed. Defaults to 'false' unless the user-agent indicates a browser or command-line HTTP tool (curl and wget).
+ :param str dry_run: When present, indicates that modifications should not be persisted. An invalid or unrecognized dryRun directive will result in an error response and no further processing of the request. Valid values are: - All: all dry run stages will be processed
+ :param str field_manager: fieldManager is a name associated with the actor or entity that is making these changes. The value must be less than or 128 characters long, and only contain printable characters, as defined by https://golang.org/pkg/unicode/#IsPrint.
+ :param str field_validation: fieldValidation instructs the server on how to handle objects in the request (POST/PUT/PATCH) containing unknown or duplicate fields. Valid values are: - Ignore: This will ignore any unknown fields that are silently dropped from the object, and will ignore all but the last duplicate field that the decoder encounters. This is the default behavior prior to v1.23. - Warn: This will send a warning via the standard warning response header for each unknown field that is dropped from the object, and for each duplicate field that is encountered. The request will still succeed if there are no other errors, and will only persist the last of any duplicate fields. This is the default in v1.23+ - Strict: This will fail the request with a BadRequest error if any unknown fields would be dropped from the object, or if any duplicate fields are present. The error returned from the server will contain all unknown and duplicate fields encountered.
+ :param _return_http_data_only: response data without head status code
+ and headers
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
+ be returned without reading/decoding response
+ data. Default is True.
+ :param _request_timeout: timeout setting for this request. If one
+ number provided, it will be total request
+ timeout. It can also be a pair (tuple) of
+ (connection, read) timeouts.
+ :return: tuple(V1VolumeAttributesClass, status_code(int), headers(HTTPHeaderDict))
+ If the method is called asynchronously,
+ returns the request thread.
+ """
+
+ local_var_params = locals()
+
+ all_params = [
+ 'name',
+ 'body',
+ 'pretty',
+ 'dry_run',
+ 'field_manager',
+ 'field_validation'
+ ]
+ all_params.extend(
+ [
+ 'async_req',
+ '_return_http_data_only',
+ '_preload_content',
+ '_request_timeout'
+ ]
+ )
+
+ for key, val in six.iteritems(local_var_params['kwargs']):
+ if key not in all_params:
+ raise ApiTypeError(
+ "Got an unexpected keyword argument '%s'"
+ " to method replace_volume_attributes_class" % key
+ )
+ local_var_params[key] = val
+ del local_var_params['kwargs']
+ # verify the required parameter 'name' is set
+ if self.api_client.client_side_validation and ('name' not in local_var_params or # noqa: E501
+ local_var_params['name'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `name` when calling `replace_volume_attributes_class`") # noqa: E501
+ # verify the required parameter 'body' is set
+ if self.api_client.client_side_validation and ('body' not in local_var_params or # noqa: E501
+ local_var_params['body'] is None): # noqa: E501
+ raise ApiValueError("Missing the required parameter `body` when calling `replace_volume_attributes_class`") # noqa: E501
+
+ collection_formats = {}
+
+ path_params = {}
+ if 'name' in local_var_params:
+ path_params['name'] = local_var_params['name'] # noqa: E501
+
+ query_params = []
+ if 'pretty' in local_var_params and local_var_params['pretty'] is not None: # noqa: E501
+ query_params.append(('pretty', local_var_params['pretty'])) # noqa: E501
+ if 'dry_run' in local_var_params and local_var_params['dry_run'] is not None: # noqa: E501
+ query_params.append(('dryRun', local_var_params['dry_run'])) # noqa: E501
+ if 'field_manager' in local_var_params and local_var_params['field_manager'] is not None: # noqa: E501
+ query_params.append(('fieldManager', local_var_params['field_manager'])) # noqa: E501
+ if 'field_validation' in local_var_params and local_var_params['field_validation'] is not None: # noqa: E501
+ query_params.append(('fieldValidation', local_var_params['field_validation'])) # noqa: E501
+
+ header_params = {}
+
+ form_params = []
+ local_var_files = {}
+
+ body_params = None
+ if 'body' in local_var_params:
+ body_params = local_var_params['body']
+ # HTTP header `Accept`
+ header_params['Accept'] = self.api_client.select_header_accept(
+ ['application/json', 'application/yaml', 'application/vnd.kubernetes.protobuf', 'application/cbor']) # noqa: E501
+
+ # Authentication setting
+ auth_settings = ['BearerToken'] # noqa: E501
+
+ return self.api_client.call_api(
+ '/apis/storage.k8s.io/v1/volumeattributesclasses/{name}', 'PUT',
+ path_params,
+ query_params,
+ header_params,
+ body=body_params,
+ post_params=form_params,
+ files=local_var_files,
+ response_type='V1VolumeAttributesClass', # noqa: E501
+ auth_settings=auth_settings,
+ async_req=local_var_params.get('async_req'),
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
+ _preload_content=local_var_params.get('_preload_content', True),
+ _request_timeout=local_var_params.get('_request_timeout'),
+ collection_formats=collection_formats)
diff --git a/contrib/python/kubernetes/kubernetes/client/api/storage_v1alpha1_api.py b/contrib/python/kubernetes/kubernetes/client/api/storage_v1alpha1_api.py
index 1b8b6bf997b..4d4ecdd57f9 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/storage_v1alpha1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/storage_v1alpha1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/storage_v1beta1_api.py b/contrib/python/kubernetes/kubernetes/client/api/storage_v1beta1_api.py
index c52d22cc7ae..aff2c50d419 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/storage_v1beta1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/storage_v1beta1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/storagemigration_api.py b/contrib/python/kubernetes/kubernetes/client/api/storagemigration_api.py
index 52b944af0a8..b911ee86c40 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/storagemigration_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/storagemigration_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/storagemigration_v1alpha1_api.py b/contrib/python/kubernetes/kubernetes/client/api/storagemigration_v1alpha1_api.py
index 9d40acef98f..0103fd55dc6 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/storagemigration_v1alpha1_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/storagemigration_v1alpha1_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/version_api.py b/contrib/python/kubernetes/kubernetes/client/api/version_api.py
index 47f385e62b7..d7221907695 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/version_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/version_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api/well_known_api.py b/contrib/python/kubernetes/kubernetes/client/api/well_known_api.py
index 23acb791fa9..e6491bc46ab 100644
--- a/contrib/python/kubernetes/kubernetes/client/api/well_known_api.py
+++ b/contrib/python/kubernetes/kubernetes/client/api/well_known_api.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/api_client.py b/contrib/python/kubernetes/kubernetes/client/api_client.py
index fff2e820a1a..814ee8be479 100644
--- a/contrib/python/kubernetes/kubernetes/client/api_client.py
+++ b/contrib/python/kubernetes/kubernetes/client/api_client.py
@@ -4,7 +4,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -78,7 +78,7 @@ class ApiClient(object):
self.default_headers[header_name] = header_value
self.cookie = cookie
# Set default User-Agent.
- self.user_agent = 'OpenAPI-Generator/33.1.0/python'
+ self.user_agent = 'OpenAPI-Generator/34.1.0/python'
self.client_side_validation = configuration.client_side_validation
def __enter__(self):
diff --git a/contrib/python/kubernetes/kubernetes/client/configuration.py b/contrib/python/kubernetes/kubernetes/client/configuration.py
index 67ea667dc6c..19d165f3ee5 100644
--- a/contrib/python/kubernetes/kubernetes/client/configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -20,6 +20,7 @@ import urllib3
import six
from six.moves import http_client as httplib
+import os
class Configuration(object):
@@ -158,6 +159,15 @@ class Configuration(object):
"""
self.proxy = None
+# Load proxy from environment variables (if set)
+ if os.getenv("HTTPS_PROXY"): self.proxy = os.getenv("HTTPS_PROXY")
+ if os.getenv("https_proxy"): self.proxy = os.getenv("https_proxy")
+ if os.getenv("HTTP_PROXY"): self.proxy = os.getenv("HTTP_PROXY")
+ if os.getenv("http_proxy"): self.proxy = os.getenv("http_proxy")
+ self.no_proxy = None
+ # Load no_proxy from environment variables (if set)
+ if os.getenv("NO_PROXY"): self.no_proxy = os.getenv("NO_PROXY")
+ if os.getenv("no_proxy"): self.no_proxy = os.getenv("no_proxy")
"""Proxy URL
"""
self.no_proxy = None
@@ -353,8 +363,8 @@ class Configuration(object):
return "Python SDK Debug Report:\n"\
"OS: {env}\n"\
"Python Version: {pyversion}\n"\
- "Version of the API: release-1.33\n"\
- "SDK Package Version: 33.1.0".\
+ "Version of the API: release-1.34\n"\
+ "SDK Package Version: 34.1.0".\
format(env=sys.platform, pyversion=sys.version)
def get_host_settings(self):
diff --git a/contrib/python/kubernetes/kubernetes/client/exceptions.py b/contrib/python/kubernetes/kubernetes/client/exceptions.py
index 092ba0c6aa9..51856fac2cf 100644
--- a/contrib/python/kubernetes/kubernetes/client/exceptions.py
+++ b/contrib/python/kubernetes/kubernetes/client/exceptions.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/__init__.py b/contrib/python/kubernetes/kubernetes/client/models/__init__.py
index 880798fbaaa..d51e63e6c48 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/__init__.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/__init__.py
@@ -6,7 +6,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -24,12 +24,14 @@ from kubernetes.client.models.core_v1_endpoint_port import CoreV1EndpointPort
from kubernetes.client.models.core_v1_event import CoreV1Event
from kubernetes.client.models.core_v1_event_list import CoreV1EventList
from kubernetes.client.models.core_v1_event_series import CoreV1EventSeries
+from kubernetes.client.models.core_v1_resource_claim import CoreV1ResourceClaim
from kubernetes.client.models.discovery_v1_endpoint_port import DiscoveryV1EndpointPort
from kubernetes.client.models.events_v1_event import EventsV1Event
from kubernetes.client.models.events_v1_event_list import EventsV1EventList
from kubernetes.client.models.events_v1_event_series import EventsV1EventSeries
from kubernetes.client.models.flowcontrol_v1_subject import FlowcontrolV1Subject
from kubernetes.client.models.rbac_v1_subject import RbacV1Subject
+from kubernetes.client.models.resource_v1_resource_claim import ResourceV1ResourceClaim
from kubernetes.client.models.storage_v1_token_request import StorageV1TokenRequest
from kubernetes.client.models.v1_api_group import V1APIGroup
from kubernetes.client.models.v1_api_group_list import V1APIGroupList
@@ -44,6 +46,8 @@ from kubernetes.client.models.v1_api_versions import V1APIVersions
from kubernetes.client.models.v1_aws_elastic_block_store_volume_source import V1AWSElasticBlockStoreVolumeSource
from kubernetes.client.models.v1_affinity import V1Affinity
from kubernetes.client.models.v1_aggregation_rule import V1AggregationRule
+from kubernetes.client.models.v1_allocated_device_status import V1AllocatedDeviceStatus
+from kubernetes.client.models.v1_allocation_result import V1AllocationResult
from kubernetes.client.models.v1_app_armor_profile import V1AppArmorProfile
from kubernetes.client.models.v1_attached_volume import V1AttachedVolume
from kubernetes.client.models.v1_audit_annotation import V1AuditAnnotation
@@ -52,6 +56,7 @@ from kubernetes.client.models.v1_azure_file_persistent_volume_source import V1Az
from kubernetes.client.models.v1_azure_file_volume_source import V1AzureFileVolumeSource
from kubernetes.client.models.v1_binding import V1Binding
from kubernetes.client.models.v1_bound_object_reference import V1BoundObjectReference
+from kubernetes.client.models.v1_cel_device_selector import V1CELDeviceSelector
from kubernetes.client.models.v1_csi_driver import V1CSIDriver
from kubernetes.client.models.v1_csi_driver_list import V1CSIDriverList
from kubernetes.client.models.v1_csi_driver_spec import V1CSIDriverSpec
@@ -64,6 +69,9 @@ from kubernetes.client.models.v1_csi_storage_capacity import V1CSIStorageCapacit
from kubernetes.client.models.v1_csi_storage_capacity_list import V1CSIStorageCapacityList
from kubernetes.client.models.v1_csi_volume_source import V1CSIVolumeSource
from kubernetes.client.models.v1_capabilities import V1Capabilities
+from kubernetes.client.models.v1_capacity_request_policy import V1CapacityRequestPolicy
+from kubernetes.client.models.v1_capacity_request_policy_range import V1CapacityRequestPolicyRange
+from kubernetes.client.models.v1_capacity_requirements import V1CapacityRequirements
from kubernetes.client.models.v1_ceph_fs_persistent_volume_source import V1CephFSPersistentVolumeSource
from kubernetes.client.models.v1_ceph_fs_volume_source import V1CephFSVolumeSource
from kubernetes.client.models.v1_certificate_signing_request import V1CertificateSigningRequest
@@ -91,9 +99,12 @@ from kubernetes.client.models.v1_config_map_node_config_source import V1ConfigMa
from kubernetes.client.models.v1_config_map_projection import V1ConfigMapProjection
from kubernetes.client.models.v1_config_map_volume_source import V1ConfigMapVolumeSource
from kubernetes.client.models.v1_container import V1Container
+from kubernetes.client.models.v1_container_extended_resource_request import V1ContainerExtendedResourceRequest
from kubernetes.client.models.v1_container_image import V1ContainerImage
from kubernetes.client.models.v1_container_port import V1ContainerPort
from kubernetes.client.models.v1_container_resize_policy import V1ContainerResizePolicy
+from kubernetes.client.models.v1_container_restart_rule import V1ContainerRestartRule
+from kubernetes.client.models.v1_container_restart_rule_on_exit_codes import V1ContainerRestartRuleOnExitCodes
from kubernetes.client.models.v1_container_state import V1ContainerState
from kubernetes.client.models.v1_container_state_running import V1ContainerStateRunning
from kubernetes.client.models.v1_container_state_terminated import V1ContainerStateTerminated
@@ -102,6 +113,8 @@ from kubernetes.client.models.v1_container_status import V1ContainerStatus
from kubernetes.client.models.v1_container_user import V1ContainerUser
from kubernetes.client.models.v1_controller_revision import V1ControllerRevision
from kubernetes.client.models.v1_controller_revision_list import V1ControllerRevisionList
+from kubernetes.client.models.v1_counter import V1Counter
+from kubernetes.client.models.v1_counter_set import V1CounterSet
from kubernetes.client.models.v1_cron_job import V1CronJob
from kubernetes.client.models.v1_cron_job_list import V1CronJobList
from kubernetes.client.models.v1_cron_job_spec import V1CronJobSpec
@@ -133,6 +146,25 @@ from kubernetes.client.models.v1_deployment_list import V1DeploymentList
from kubernetes.client.models.v1_deployment_spec import V1DeploymentSpec
from kubernetes.client.models.v1_deployment_status import V1DeploymentStatus
from kubernetes.client.models.v1_deployment_strategy import V1DeploymentStrategy
+from kubernetes.client.models.v1_device import V1Device
+from kubernetes.client.models.v1_device_allocation_configuration import V1DeviceAllocationConfiguration
+from kubernetes.client.models.v1_device_allocation_result import V1DeviceAllocationResult
+from kubernetes.client.models.v1_device_attribute import V1DeviceAttribute
+from kubernetes.client.models.v1_device_capacity import V1DeviceCapacity
+from kubernetes.client.models.v1_device_claim import V1DeviceClaim
+from kubernetes.client.models.v1_device_claim_configuration import V1DeviceClaimConfiguration
+from kubernetes.client.models.v1_device_class import V1DeviceClass
+from kubernetes.client.models.v1_device_class_configuration import V1DeviceClassConfiguration
+from kubernetes.client.models.v1_device_class_list import V1DeviceClassList
+from kubernetes.client.models.v1_device_class_spec import V1DeviceClassSpec
+from kubernetes.client.models.v1_device_constraint import V1DeviceConstraint
+from kubernetes.client.models.v1_device_counter_consumption import V1DeviceCounterConsumption
+from kubernetes.client.models.v1_device_request import V1DeviceRequest
+from kubernetes.client.models.v1_device_request_allocation_result import V1DeviceRequestAllocationResult
+from kubernetes.client.models.v1_device_selector import V1DeviceSelector
+from kubernetes.client.models.v1_device_sub_request import V1DeviceSubRequest
+from kubernetes.client.models.v1_device_taint import V1DeviceTaint
+from kubernetes.client.models.v1_device_toleration import V1DeviceToleration
from kubernetes.client.models.v1_downward_api_projection import V1DownwardAPIProjection
from kubernetes.client.models.v1_downward_api_volume_file import V1DownwardAPIVolumeFile
from kubernetes.client.models.v1_downward_api_volume_source import V1DownwardAPIVolumeSource
@@ -153,6 +185,7 @@ from kubernetes.client.models.v1_ephemeral_container import V1EphemeralContainer
from kubernetes.client.models.v1_ephemeral_volume_source import V1EphemeralVolumeSource
from kubernetes.client.models.v1_event_source import V1EventSource
from kubernetes.client.models.v1_eviction import V1Eviction
+from kubernetes.client.models.v1_exact_device_request import V1ExactDeviceRequest
from kubernetes.client.models.v1_exec_action import V1ExecAction
from kubernetes.client.models.v1_exempt_priority_level_configuration import V1ExemptPriorityLevelConfiguration
from kubernetes.client.models.v1_expression_warning import V1ExpressionWarning
@@ -160,6 +193,7 @@ from kubernetes.client.models.v1_external_documentation import V1ExternalDocumen
from kubernetes.client.models.v1_fc_volume_source import V1FCVolumeSource
from kubernetes.client.models.v1_field_selector_attributes import V1FieldSelectorAttributes
from kubernetes.client.models.v1_field_selector_requirement import V1FieldSelectorRequirement
+from kubernetes.client.models.v1_file_key_selector import V1FileKeySelector
from kubernetes.client.models.v1_flex_persistent_volume_source import V1FlexPersistentVolumeSource
from kubernetes.client.models.v1_flex_volume_source import V1FlexVolumeSource
from kubernetes.client.models.v1_flocker_volume_source import V1FlockerVolumeSource
@@ -254,6 +288,7 @@ from kubernetes.client.models.v1_namespace_condition import V1NamespaceCondition
from kubernetes.client.models.v1_namespace_list import V1NamespaceList
from kubernetes.client.models.v1_namespace_spec import V1NamespaceSpec
from kubernetes.client.models.v1_namespace_status import V1NamespaceStatus
+from kubernetes.client.models.v1_network_device_data import V1NetworkDeviceData
from kubernetes.client.models.v1_network_policy import V1NetworkPolicy
from kubernetes.client.models.v1_network_policy_egress_rule import V1NetworkPolicyEgressRule
from kubernetes.client.models.v1_network_policy_ingress_rule import V1NetworkPolicyIngressRule
@@ -285,6 +320,7 @@ from kubernetes.client.models.v1_non_resource_rule import V1NonResourceRule
from kubernetes.client.models.v1_object_field_selector import V1ObjectFieldSelector
from kubernetes.client.models.v1_object_meta import V1ObjectMeta
from kubernetes.client.models.v1_object_reference import V1ObjectReference
+from kubernetes.client.models.v1_opaque_device_configuration import V1OpaqueDeviceConfiguration
from kubernetes.client.models.v1_overhead import V1Overhead
from kubernetes.client.models.v1_owner_reference import V1OwnerReference
from kubernetes.client.models.v1_param_kind import V1ParamKind
@@ -306,6 +342,7 @@ from kubernetes.client.models.v1_pod import V1Pod
from kubernetes.client.models.v1_pod_affinity import V1PodAffinity
from kubernetes.client.models.v1_pod_affinity_term import V1PodAffinityTerm
from kubernetes.client.models.v1_pod_anti_affinity import V1PodAntiAffinity
+from kubernetes.client.models.v1_pod_certificate_projection import V1PodCertificateProjection
from kubernetes.client.models.v1_pod_condition import V1PodCondition
from kubernetes.client.models.v1_pod_dns_config import V1PodDNSConfig
from kubernetes.client.models.v1_pod_dns_config_option import V1PodDNSConfigOption
@@ -313,6 +350,7 @@ from kubernetes.client.models.v1_pod_disruption_budget import V1PodDisruptionBud
from kubernetes.client.models.v1_pod_disruption_budget_list import V1PodDisruptionBudgetList
from kubernetes.client.models.v1_pod_disruption_budget_spec import V1PodDisruptionBudgetSpec
from kubernetes.client.models.v1_pod_disruption_budget_status import V1PodDisruptionBudgetStatus
+from kubernetes.client.models.v1_pod_extended_resource_claim_status import V1PodExtendedResourceClaimStatus
from kubernetes.client.models.v1_pod_failure_policy import V1PodFailurePolicy
from kubernetes.client.models.v1_pod_failure_policy_on_exit_codes_requirement import V1PodFailurePolicyOnExitCodesRequirement
from kubernetes.client.models.v1_pod_failure_policy_on_pod_conditions_pattern import V1PodFailurePolicyOnPodConditionsPattern
@@ -361,16 +399,26 @@ from kubernetes.client.models.v1_replication_controller_list import V1Replicatio
from kubernetes.client.models.v1_replication_controller_spec import V1ReplicationControllerSpec
from kubernetes.client.models.v1_replication_controller_status import V1ReplicationControllerStatus
from kubernetes.client.models.v1_resource_attributes import V1ResourceAttributes
-from kubernetes.client.models.v1_resource_claim import V1ResourceClaim
+from kubernetes.client.models.v1_resource_claim_consumer_reference import V1ResourceClaimConsumerReference
+from kubernetes.client.models.v1_resource_claim_list import V1ResourceClaimList
+from kubernetes.client.models.v1_resource_claim_spec import V1ResourceClaimSpec
+from kubernetes.client.models.v1_resource_claim_status import V1ResourceClaimStatus
+from kubernetes.client.models.v1_resource_claim_template import V1ResourceClaimTemplate
+from kubernetes.client.models.v1_resource_claim_template_list import V1ResourceClaimTemplateList
+from kubernetes.client.models.v1_resource_claim_template_spec import V1ResourceClaimTemplateSpec
from kubernetes.client.models.v1_resource_field_selector import V1ResourceFieldSelector
from kubernetes.client.models.v1_resource_health import V1ResourceHealth
from kubernetes.client.models.v1_resource_policy_rule import V1ResourcePolicyRule
+from kubernetes.client.models.v1_resource_pool import V1ResourcePool
from kubernetes.client.models.v1_resource_quota import V1ResourceQuota
from kubernetes.client.models.v1_resource_quota_list import V1ResourceQuotaList
from kubernetes.client.models.v1_resource_quota_spec import V1ResourceQuotaSpec
from kubernetes.client.models.v1_resource_quota_status import V1ResourceQuotaStatus
from kubernetes.client.models.v1_resource_requirements import V1ResourceRequirements
from kubernetes.client.models.v1_resource_rule import V1ResourceRule
+from kubernetes.client.models.v1_resource_slice import V1ResourceSlice
+from kubernetes.client.models.v1_resource_slice_list import V1ResourceSliceList
+from kubernetes.client.models.v1_resource_slice_spec import V1ResourceSliceSpec
from kubernetes.client.models.v1_resource_status import V1ResourceStatus
from kubernetes.client.models.v1_role import V1Role
from kubernetes.client.models.v1_role_binding import V1RoleBinding
@@ -483,6 +531,8 @@ from kubernetes.client.models.v1_volume_attachment_list import V1VolumeAttachmen
from kubernetes.client.models.v1_volume_attachment_source import V1VolumeAttachmentSource
from kubernetes.client.models.v1_volume_attachment_spec import V1VolumeAttachmentSpec
from kubernetes.client.models.v1_volume_attachment_status import V1VolumeAttachmentStatus
+from kubernetes.client.models.v1_volume_attributes_class import V1VolumeAttributesClass
+from kubernetes.client.models.v1_volume_attributes_class_list import V1VolumeAttributesClassList
from kubernetes.client.models.v1_volume_device import V1VolumeDevice
from kubernetes.client.models.v1_volume_error import V1VolumeError
from kubernetes.client.models.v1_volume_mount import V1VolumeMount
@@ -515,6 +565,10 @@ from kubernetes.client.models.v1alpha1_mutation import V1alpha1Mutation
from kubernetes.client.models.v1alpha1_named_rule_with_operations import V1alpha1NamedRuleWithOperations
from kubernetes.client.models.v1alpha1_param_kind import V1alpha1ParamKind
from kubernetes.client.models.v1alpha1_param_ref import V1alpha1ParamRef
+from kubernetes.client.models.v1alpha1_pod_certificate_request import V1alpha1PodCertificateRequest
+from kubernetes.client.models.v1alpha1_pod_certificate_request_list import V1alpha1PodCertificateRequestList
+from kubernetes.client.models.v1alpha1_pod_certificate_request_spec import V1alpha1PodCertificateRequestSpec
+from kubernetes.client.models.v1alpha1_pod_certificate_request_status import V1alpha1PodCertificateRequestStatus
from kubernetes.client.models.v1alpha1_server_storage_version import V1alpha1ServerStorageVersion
from kubernetes.client.models.v1alpha1_storage_version import V1alpha1StorageVersion
from kubernetes.client.models.v1alpha1_storage_version_condition import V1alpha1StorageVersionCondition
@@ -530,53 +584,21 @@ from kubernetes.client.models.v1alpha1_volume_attributes_class_list import V1alp
from kubernetes.client.models.v1alpha2_lease_candidate import V1alpha2LeaseCandidate
from kubernetes.client.models.v1alpha2_lease_candidate_list import V1alpha2LeaseCandidateList
from kubernetes.client.models.v1alpha2_lease_candidate_spec import V1alpha2LeaseCandidateSpec
-from kubernetes.client.models.v1alpha3_allocated_device_status import V1alpha3AllocatedDeviceStatus
-from kubernetes.client.models.v1alpha3_allocation_result import V1alpha3AllocationResult
-from kubernetes.client.models.v1alpha3_basic_device import V1alpha3BasicDevice
from kubernetes.client.models.v1alpha3_cel_device_selector import V1alpha3CELDeviceSelector
-from kubernetes.client.models.v1alpha3_counter import V1alpha3Counter
-from kubernetes.client.models.v1alpha3_counter_set import V1alpha3CounterSet
-from kubernetes.client.models.v1alpha3_device import V1alpha3Device
-from kubernetes.client.models.v1alpha3_device_allocation_configuration import V1alpha3DeviceAllocationConfiguration
-from kubernetes.client.models.v1alpha3_device_allocation_result import V1alpha3DeviceAllocationResult
-from kubernetes.client.models.v1alpha3_device_attribute import V1alpha3DeviceAttribute
-from kubernetes.client.models.v1alpha3_device_claim import V1alpha3DeviceClaim
-from kubernetes.client.models.v1alpha3_device_claim_configuration import V1alpha3DeviceClaimConfiguration
-from kubernetes.client.models.v1alpha3_device_class import V1alpha3DeviceClass
-from kubernetes.client.models.v1alpha3_device_class_configuration import V1alpha3DeviceClassConfiguration
-from kubernetes.client.models.v1alpha3_device_class_list import V1alpha3DeviceClassList
-from kubernetes.client.models.v1alpha3_device_class_spec import V1alpha3DeviceClassSpec
-from kubernetes.client.models.v1alpha3_device_constraint import V1alpha3DeviceConstraint
-from kubernetes.client.models.v1alpha3_device_counter_consumption import V1alpha3DeviceCounterConsumption
-from kubernetes.client.models.v1alpha3_device_request import V1alpha3DeviceRequest
-from kubernetes.client.models.v1alpha3_device_request_allocation_result import V1alpha3DeviceRequestAllocationResult
from kubernetes.client.models.v1alpha3_device_selector import V1alpha3DeviceSelector
-from kubernetes.client.models.v1alpha3_device_sub_request import V1alpha3DeviceSubRequest
from kubernetes.client.models.v1alpha3_device_taint import V1alpha3DeviceTaint
from kubernetes.client.models.v1alpha3_device_taint_rule import V1alpha3DeviceTaintRule
from kubernetes.client.models.v1alpha3_device_taint_rule_list import V1alpha3DeviceTaintRuleList
from kubernetes.client.models.v1alpha3_device_taint_rule_spec import V1alpha3DeviceTaintRuleSpec
from kubernetes.client.models.v1alpha3_device_taint_selector import V1alpha3DeviceTaintSelector
-from kubernetes.client.models.v1alpha3_device_toleration import V1alpha3DeviceToleration
-from kubernetes.client.models.v1alpha3_network_device_data import V1alpha3NetworkDeviceData
-from kubernetes.client.models.v1alpha3_opaque_device_configuration import V1alpha3OpaqueDeviceConfiguration
-from kubernetes.client.models.v1alpha3_resource_claim import V1alpha3ResourceClaim
-from kubernetes.client.models.v1alpha3_resource_claim_consumer_reference import V1alpha3ResourceClaimConsumerReference
-from kubernetes.client.models.v1alpha3_resource_claim_list import V1alpha3ResourceClaimList
-from kubernetes.client.models.v1alpha3_resource_claim_spec import V1alpha3ResourceClaimSpec
-from kubernetes.client.models.v1alpha3_resource_claim_status import V1alpha3ResourceClaimStatus
-from kubernetes.client.models.v1alpha3_resource_claim_template import V1alpha3ResourceClaimTemplate
-from kubernetes.client.models.v1alpha3_resource_claim_template_list import V1alpha3ResourceClaimTemplateList
-from kubernetes.client.models.v1alpha3_resource_claim_template_spec import V1alpha3ResourceClaimTemplateSpec
-from kubernetes.client.models.v1alpha3_resource_pool import V1alpha3ResourcePool
-from kubernetes.client.models.v1alpha3_resource_slice import V1alpha3ResourceSlice
-from kubernetes.client.models.v1alpha3_resource_slice_list import V1alpha3ResourceSliceList
-from kubernetes.client.models.v1alpha3_resource_slice_spec import V1alpha3ResourceSliceSpec
from kubernetes.client.models.v1beta1_allocated_device_status import V1beta1AllocatedDeviceStatus
from kubernetes.client.models.v1beta1_allocation_result import V1beta1AllocationResult
-from kubernetes.client.models.v1beta1_audit_annotation import V1beta1AuditAnnotation
+from kubernetes.client.models.v1beta1_apply_configuration import V1beta1ApplyConfiguration
from kubernetes.client.models.v1beta1_basic_device import V1beta1BasicDevice
from kubernetes.client.models.v1beta1_cel_device_selector import V1beta1CELDeviceSelector
+from kubernetes.client.models.v1beta1_capacity_request_policy import V1beta1CapacityRequestPolicy
+from kubernetes.client.models.v1beta1_capacity_request_policy_range import V1beta1CapacityRequestPolicyRange
+from kubernetes.client.models.v1beta1_capacity_requirements import V1beta1CapacityRequirements
from kubernetes.client.models.v1beta1_cluster_trust_bundle import V1beta1ClusterTrustBundle
from kubernetes.client.models.v1beta1_cluster_trust_bundle_list import V1beta1ClusterTrustBundleList
from kubernetes.client.models.v1beta1_cluster_trust_bundle_spec import V1beta1ClusterTrustBundleSpec
@@ -601,15 +623,22 @@ from kubernetes.client.models.v1beta1_device_selector import V1beta1DeviceSelect
from kubernetes.client.models.v1beta1_device_sub_request import V1beta1DeviceSubRequest
from kubernetes.client.models.v1beta1_device_taint import V1beta1DeviceTaint
from kubernetes.client.models.v1beta1_device_toleration import V1beta1DeviceToleration
-from kubernetes.client.models.v1beta1_expression_warning import V1beta1ExpressionWarning
from kubernetes.client.models.v1beta1_ip_address import V1beta1IPAddress
from kubernetes.client.models.v1beta1_ip_address_list import V1beta1IPAddressList
from kubernetes.client.models.v1beta1_ip_address_spec import V1beta1IPAddressSpec
+from kubernetes.client.models.v1beta1_json_patch import V1beta1JSONPatch
from kubernetes.client.models.v1beta1_lease_candidate import V1beta1LeaseCandidate
from kubernetes.client.models.v1beta1_lease_candidate_list import V1beta1LeaseCandidateList
from kubernetes.client.models.v1beta1_lease_candidate_spec import V1beta1LeaseCandidateSpec
from kubernetes.client.models.v1beta1_match_condition import V1beta1MatchCondition
from kubernetes.client.models.v1beta1_match_resources import V1beta1MatchResources
+from kubernetes.client.models.v1beta1_mutating_admission_policy import V1beta1MutatingAdmissionPolicy
+from kubernetes.client.models.v1beta1_mutating_admission_policy_binding import V1beta1MutatingAdmissionPolicyBinding
+from kubernetes.client.models.v1beta1_mutating_admission_policy_binding_list import V1beta1MutatingAdmissionPolicyBindingList
+from kubernetes.client.models.v1beta1_mutating_admission_policy_binding_spec import V1beta1MutatingAdmissionPolicyBindingSpec
+from kubernetes.client.models.v1beta1_mutating_admission_policy_list import V1beta1MutatingAdmissionPolicyList
+from kubernetes.client.models.v1beta1_mutating_admission_policy_spec import V1beta1MutatingAdmissionPolicySpec
+from kubernetes.client.models.v1beta1_mutation import V1beta1Mutation
from kubernetes.client.models.v1beta1_named_rule_with_operations import V1beta1NamedRuleWithOperations
from kubernetes.client.models.v1beta1_network_device_data import V1beta1NetworkDeviceData
from kubernetes.client.models.v1beta1_opaque_device_configuration import V1beta1OpaqueDeviceConfiguration
@@ -632,21 +661,15 @@ from kubernetes.client.models.v1beta1_service_cidr import V1beta1ServiceCIDR
from kubernetes.client.models.v1beta1_service_cidr_list import V1beta1ServiceCIDRList
from kubernetes.client.models.v1beta1_service_cidr_spec import V1beta1ServiceCIDRSpec
from kubernetes.client.models.v1beta1_service_cidr_status import V1beta1ServiceCIDRStatus
-from kubernetes.client.models.v1beta1_type_checking import V1beta1TypeChecking
-from kubernetes.client.models.v1beta1_validating_admission_policy import V1beta1ValidatingAdmissionPolicy
-from kubernetes.client.models.v1beta1_validating_admission_policy_binding import V1beta1ValidatingAdmissionPolicyBinding
-from kubernetes.client.models.v1beta1_validating_admission_policy_binding_list import V1beta1ValidatingAdmissionPolicyBindingList
-from kubernetes.client.models.v1beta1_validating_admission_policy_binding_spec import V1beta1ValidatingAdmissionPolicyBindingSpec
-from kubernetes.client.models.v1beta1_validating_admission_policy_list import V1beta1ValidatingAdmissionPolicyList
-from kubernetes.client.models.v1beta1_validating_admission_policy_spec import V1beta1ValidatingAdmissionPolicySpec
-from kubernetes.client.models.v1beta1_validating_admission_policy_status import V1beta1ValidatingAdmissionPolicyStatus
-from kubernetes.client.models.v1beta1_validation import V1beta1Validation
from kubernetes.client.models.v1beta1_variable import V1beta1Variable
from kubernetes.client.models.v1beta1_volume_attributes_class import V1beta1VolumeAttributesClass
from kubernetes.client.models.v1beta1_volume_attributes_class_list import V1beta1VolumeAttributesClassList
from kubernetes.client.models.v1beta2_allocated_device_status import V1beta2AllocatedDeviceStatus
from kubernetes.client.models.v1beta2_allocation_result import V1beta2AllocationResult
from kubernetes.client.models.v1beta2_cel_device_selector import V1beta2CELDeviceSelector
+from kubernetes.client.models.v1beta2_capacity_request_policy import V1beta2CapacityRequestPolicy
+from kubernetes.client.models.v1beta2_capacity_request_policy_range import V1beta2CapacityRequestPolicyRange
+from kubernetes.client.models.v1beta2_capacity_requirements import V1beta2CapacityRequirements
from kubernetes.client.models.v1beta2_counter import V1beta2Counter
from kubernetes.client.models.v1beta2_counter_set import V1beta2CounterSet
from kubernetes.client.models.v1beta2_device import V1beta2Device
diff --git a/contrib/python/kubernetes/kubernetes/client/models/admissionregistration_v1_service_reference.py b/contrib/python/kubernetes/kubernetes/client/models/admissionregistration_v1_service_reference.py
index 7db203b984c..0fe986dcba2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/admissionregistration_v1_service_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/admissionregistration_v1_service_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py b/contrib/python/kubernetes/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py
index e5180773d32..8bb180bef4f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/admissionregistration_v1_webhook_client_config.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/apiextensions_v1_service_reference.py b/contrib/python/kubernetes/kubernetes/client/models/apiextensions_v1_service_reference.py
index 48bdf140458..e108a756b7a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/apiextensions_v1_service_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/apiextensions_v1_service_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/apiextensions_v1_webhook_client_config.py b/contrib/python/kubernetes/kubernetes/client/models/apiextensions_v1_webhook_client_config.py
index 785bfd10141..4423990538f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/apiextensions_v1_webhook_client_config.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/apiextensions_v1_webhook_client_config.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/apiregistration_v1_service_reference.py b/contrib/python/kubernetes/kubernetes/client/models/apiregistration_v1_service_reference.py
index da8a9ba2f40..c76c2fb86fb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/apiregistration_v1_service_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/apiregistration_v1_service_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/authentication_v1_token_request.py b/contrib/python/kubernetes/kubernetes/client/models/authentication_v1_token_request.py
index 6837bf50b8e..2206e9a30fb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/authentication_v1_token_request.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/authentication_v1_token_request.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/core_v1_endpoint_port.py b/contrib/python/kubernetes/kubernetes/client/models/core_v1_endpoint_port.py
index 4a27a90cbe2..6c7d20f0e82 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/core_v1_endpoint_port.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/core_v1_endpoint_port.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/core_v1_event.py b/contrib/python/kubernetes/kubernetes/client/models/core_v1_event.py
index 5f33a5249d3..e6306763b62 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/core_v1_event.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/core_v1_event.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/core_v1_event_list.py b/contrib/python/kubernetes/kubernetes/client/models/core_v1_event_list.py
index 122c01523e8..f65314771fa 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/core_v1_event_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/core_v1_event_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/core_v1_event_series.py b/contrib/python/kubernetes/kubernetes/client/models/core_v1_event_series.py
index 710386c71fa..97b317ec174 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/core_v1_event_series.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/core_v1_event_series.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim.py b/contrib/python/kubernetes/kubernetes/client/models/core_v1_resource_claim.py
index 0e06ae5da0c..5276e97589c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/core_v1_resource_claim.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1ResourceClaim(object):
+class CoreV1ResourceClaim(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -43,7 +43,7 @@ class V1ResourceClaim(object):
}
def __init__(self, name=None, request=None, local_vars_configuration=None): # noqa: E501
- """V1ResourceClaim - a model defined in OpenAPI""" # noqa: E501
+ """CoreV1ResourceClaim - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -58,22 +58,22 @@ class V1ResourceClaim(object):
@property
def name(self):
- """Gets the name of this V1ResourceClaim. # noqa: E501
+ """Gets the name of this CoreV1ResourceClaim. # noqa: E501
Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. # noqa: E501
- :return: The name of this V1ResourceClaim. # noqa: E501
+ :return: The name of this CoreV1ResourceClaim. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
- """Sets the name of this V1ResourceClaim.
+ """Sets the name of this CoreV1ResourceClaim.
Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. # noqa: E501
- :param name: The name of this V1ResourceClaim. # noqa: E501
+ :param name: The name of this CoreV1ResourceClaim. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
@@ -83,22 +83,22 @@ class V1ResourceClaim(object):
@property
def request(self):
- """Gets the request of this V1ResourceClaim. # noqa: E501
+ """Gets the request of this CoreV1ResourceClaim. # noqa: E501
Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. # noqa: E501
- :return: The request of this V1ResourceClaim. # noqa: E501
+ :return: The request of this CoreV1ResourceClaim. # noqa: E501
:rtype: str
"""
return self._request
@request.setter
def request(self, request):
- """Sets the request of this V1ResourceClaim.
+ """Sets the request of this CoreV1ResourceClaim.
Request is the name chosen for a request in the referenced claim. If empty, everything from the claim is made available, otherwise only the result of this request. # noqa: E501
- :param request: The request of this V1ResourceClaim. # noqa: E501
+ :param request: The request of this CoreV1ResourceClaim. # noqa: E501
:type: str
"""
@@ -138,14 +138,14 @@ class V1ResourceClaim(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1ResourceClaim):
+ if not isinstance(other, CoreV1ResourceClaim):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1ResourceClaim):
+ if not isinstance(other, CoreV1ResourceClaim):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/discovery_v1_endpoint_port.py b/contrib/python/kubernetes/kubernetes/client/models/discovery_v1_endpoint_port.py
index 18e7e69547c..551ef016b17 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/discovery_v1_endpoint_port.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/discovery_v1_endpoint_port.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/events_v1_event.py b/contrib/python/kubernetes/kubernetes/client/models/events_v1_event.py
index f4acb4b1be1..4a69759a09e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/events_v1_event.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/events_v1_event.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/events_v1_event_list.py b/contrib/python/kubernetes/kubernetes/client/models/events_v1_event_list.py
index 257a9e0b000..e3884287b9c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/events_v1_event_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/events_v1_event_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/events_v1_event_series.py b/contrib/python/kubernetes/kubernetes/client/models/events_v1_event_series.py
index aea315f3074..30b59b6543c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/events_v1_event_series.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/events_v1_event_series.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/flowcontrol_v1_subject.py b/contrib/python/kubernetes/kubernetes/client/models/flowcontrol_v1_subject.py
index fb12f8ef101..bbf34a7ba2e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/flowcontrol_v1_subject.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/flowcontrol_v1_subject.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/rbac_v1_subject.py b/contrib/python/kubernetes/kubernetes/client/models/rbac_v1_subject.py
index 273ed70e6e5..a4fc369bcac 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/rbac_v1_subject.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/rbac_v1_subject.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim.py b/contrib/python/kubernetes/kubernetes/client/models/resource_v1_resource_claim.py
index bbf3b1763fe..fe38c5b55ff 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/resource_v1_resource_claim.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3ResourceClaim(object):
+class ResourceV1ResourceClaim(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -36,8 +36,8 @@ class V1alpha3ResourceClaim(object):
'api_version': 'str',
'kind': 'str',
'metadata': 'V1ObjectMeta',
- 'spec': 'V1alpha3ResourceClaimSpec',
- 'status': 'V1alpha3ResourceClaimStatus'
+ 'spec': 'V1ResourceClaimSpec',
+ 'status': 'V1ResourceClaimStatus'
}
attribute_map = {
@@ -49,7 +49,7 @@ class V1alpha3ResourceClaim(object):
}
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3ResourceClaim - a model defined in OpenAPI""" # noqa: E501
+ """ResourceV1ResourceClaim - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -73,22 +73,22 @@ class V1alpha3ResourceClaim(object):
@property
def api_version(self):
- """Gets the api_version of this V1alpha3ResourceClaim. # noqa: E501
+ """Gets the api_version of this ResourceV1ResourceClaim. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :return: The api_version of this V1alpha3ResourceClaim. # noqa: E501
+ :return: The api_version of this ResourceV1ResourceClaim. # noqa: E501
:rtype: str
"""
return self._api_version
@api_version.setter
def api_version(self, api_version):
- """Sets the api_version of this V1alpha3ResourceClaim.
+ """Sets the api_version of this ResourceV1ResourceClaim.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :param api_version: The api_version of this V1alpha3ResourceClaim. # noqa: E501
+ :param api_version: The api_version of this ResourceV1ResourceClaim. # noqa: E501
:type: str
"""
@@ -96,22 +96,22 @@ class V1alpha3ResourceClaim(object):
@property
def kind(self):
- """Gets the kind of this V1alpha3ResourceClaim. # noqa: E501
+ """Gets the kind of this ResourceV1ResourceClaim. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :return: The kind of this V1alpha3ResourceClaim. # noqa: E501
+ :return: The kind of this ResourceV1ResourceClaim. # noqa: E501
:rtype: str
"""
return self._kind
@kind.setter
def kind(self, kind):
- """Sets the kind of this V1alpha3ResourceClaim.
+ """Sets the kind of this ResourceV1ResourceClaim.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :param kind: The kind of this V1alpha3ResourceClaim. # noqa: E501
+ :param kind: The kind of this ResourceV1ResourceClaim. # noqa: E501
:type: str
"""
@@ -119,20 +119,20 @@ class V1alpha3ResourceClaim(object):
@property
def metadata(self):
- """Gets the metadata of this V1alpha3ResourceClaim. # noqa: E501
+ """Gets the metadata of this ResourceV1ResourceClaim. # noqa: E501
- :return: The metadata of this V1alpha3ResourceClaim. # noqa: E501
+ :return: The metadata of this ResourceV1ResourceClaim. # noqa: E501
:rtype: V1ObjectMeta
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
- """Sets the metadata of this V1alpha3ResourceClaim.
+ """Sets the metadata of this ResourceV1ResourceClaim.
- :param metadata: The metadata of this V1alpha3ResourceClaim. # noqa: E501
+ :param metadata: The metadata of this ResourceV1ResourceClaim. # noqa: E501
:type: V1ObjectMeta
"""
@@ -140,21 +140,21 @@ class V1alpha3ResourceClaim(object):
@property
def spec(self):
- """Gets the spec of this V1alpha3ResourceClaim. # noqa: E501
+ """Gets the spec of this ResourceV1ResourceClaim. # noqa: E501
- :return: The spec of this V1alpha3ResourceClaim. # noqa: E501
- :rtype: V1alpha3ResourceClaimSpec
+ :return: The spec of this ResourceV1ResourceClaim. # noqa: E501
+ :rtype: V1ResourceClaimSpec
"""
return self._spec
@spec.setter
def spec(self, spec):
- """Sets the spec of this V1alpha3ResourceClaim.
+ """Sets the spec of this ResourceV1ResourceClaim.
- :param spec: The spec of this V1alpha3ResourceClaim. # noqa: E501
- :type: V1alpha3ResourceClaimSpec
+ :param spec: The spec of this ResourceV1ResourceClaim. # noqa: E501
+ :type: V1ResourceClaimSpec
"""
if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501
raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501
@@ -163,21 +163,21 @@ class V1alpha3ResourceClaim(object):
@property
def status(self):
- """Gets the status of this V1alpha3ResourceClaim. # noqa: E501
+ """Gets the status of this ResourceV1ResourceClaim. # noqa: E501
- :return: The status of this V1alpha3ResourceClaim. # noqa: E501
- :rtype: V1alpha3ResourceClaimStatus
+ :return: The status of this ResourceV1ResourceClaim. # noqa: E501
+ :rtype: V1ResourceClaimStatus
"""
return self._status
@status.setter
def status(self, status):
- """Sets the status of this V1alpha3ResourceClaim.
+ """Sets the status of this ResourceV1ResourceClaim.
- :param status: The status of this V1alpha3ResourceClaim. # noqa: E501
- :type: V1alpha3ResourceClaimStatus
+ :param status: The status of this ResourceV1ResourceClaim. # noqa: E501
+ :type: V1ResourceClaimStatus
"""
self._status = status
@@ -216,14 +216,14 @@ class V1alpha3ResourceClaim(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3ResourceClaim):
+ if not isinstance(other, ResourceV1ResourceClaim):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3ResourceClaim):
+ if not isinstance(other, ResourceV1ResourceClaim):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/storage_v1_token_request.py b/contrib/python/kubernetes/kubernetes/client/models/storage_v1_token_request.py
index a01de4f3265..506b3204e72 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/storage_v1_token_request.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/storage_v1_token_request.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_affinity.py b/contrib/python/kubernetes/kubernetes/client/models/v1_affinity.py
index fd2c8cc3d07..e3fd1a950b5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_affinity.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_affinity.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_aggregation_rule.py b/contrib/python/kubernetes/kubernetes/client/models/v1_aggregation_rule.py
index 3a62103499a..bc9baa166c4 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_aggregation_rule.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_aggregation_rule.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_allocated_device_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_allocated_device_status.py
index d82eff91729..39566554cdf 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_allocated_device_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_allocated_device_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3AllocatedDeviceStatus(object):
+class V1AllocatedDeviceStatus(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -37,8 +37,9 @@ class V1alpha3AllocatedDeviceStatus(object):
'data': 'object',
'device': 'str',
'driver': 'str',
- 'network_data': 'V1alpha3NetworkDeviceData',
- 'pool': 'str'
+ 'network_data': 'V1NetworkDeviceData',
+ 'pool': 'str',
+ 'share_id': 'str'
}
attribute_map = {
@@ -47,11 +48,12 @@ class V1alpha3AllocatedDeviceStatus(object):
'device': 'device',
'driver': 'driver',
'network_data': 'networkData',
- 'pool': 'pool'
+ 'pool': 'pool',
+ 'share_id': 'shareID'
}
- def __init__(self, conditions=None, data=None, device=None, driver=None, network_data=None, pool=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3AllocatedDeviceStatus - a model defined in OpenAPI""" # noqa: E501
+ def __init__(self, conditions=None, data=None, device=None, driver=None, network_data=None, pool=None, share_id=None, local_vars_configuration=None): # noqa: E501
+ """V1AllocatedDeviceStatus - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -62,6 +64,7 @@ class V1alpha3AllocatedDeviceStatus(object):
self._driver = None
self._network_data = None
self._pool = None
+ self._share_id = None
self.discriminator = None
if conditions is not None:
@@ -73,25 +76,27 @@ class V1alpha3AllocatedDeviceStatus(object):
if network_data is not None:
self.network_data = network_data
self.pool = pool
+ if share_id is not None:
+ self.share_id = share_id
@property
def conditions(self):
- """Gets the conditions of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ """Gets the conditions of this V1AllocatedDeviceStatus. # noqa: E501
Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries. # noqa: E501
- :return: The conditions of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ :return: The conditions of this V1AllocatedDeviceStatus. # noqa: E501
:rtype: list[V1Condition]
"""
return self._conditions
@conditions.setter
def conditions(self, conditions):
- """Sets the conditions of this V1alpha3AllocatedDeviceStatus.
+ """Sets the conditions of this V1AllocatedDeviceStatus.
Conditions contains the latest observation of the device's state. If the device has been configured according to the class and claim config references, the `Ready` condition should be True. Must not contain more than 8 entries. # noqa: E501
- :param conditions: The conditions of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ :param conditions: The conditions of this V1AllocatedDeviceStatus. # noqa: E501
:type: list[V1Condition]
"""
@@ -99,22 +104,22 @@ class V1alpha3AllocatedDeviceStatus(object):
@property
def data(self):
- """Gets the data of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ """Gets the data of this V1AllocatedDeviceStatus. # noqa: E501
Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. # noqa: E501
- :return: The data of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ :return: The data of this V1AllocatedDeviceStatus. # noqa: E501
:rtype: object
"""
return self._data
@data.setter
def data(self, data):
- """Sets the data of this V1alpha3AllocatedDeviceStatus.
+ """Sets the data of this V1AllocatedDeviceStatus.
Data contains arbitrary driver-specific data. The length of the raw data must be smaller or equal to 10 Ki. # noqa: E501
- :param data: The data of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ :param data: The data of this V1AllocatedDeviceStatus. # noqa: E501
:type: object
"""
@@ -122,22 +127,22 @@ class V1alpha3AllocatedDeviceStatus(object):
@property
def device(self):
- """Gets the device of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ """Gets the device of this V1AllocatedDeviceStatus. # noqa: E501
Device references one device instance via its name in the driver's resource pool. It must be a DNS label. # noqa: E501
- :return: The device of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ :return: The device of this V1AllocatedDeviceStatus. # noqa: E501
:rtype: str
"""
return self._device
@device.setter
def device(self, device):
- """Sets the device of this V1alpha3AllocatedDeviceStatus.
+ """Sets the device of this V1AllocatedDeviceStatus.
Device references one device instance via its name in the driver's resource pool. It must be a DNS label. # noqa: E501
- :param device: The device of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ :param device: The device of this V1AllocatedDeviceStatus. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and device is None: # noqa: E501
@@ -147,22 +152,22 @@ class V1alpha3AllocatedDeviceStatus(object):
@property
def driver(self):
- """Gets the driver of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ """Gets the driver of this V1AllocatedDeviceStatus. # noqa: E501
Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. # noqa: E501
- :return: The driver of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ :return: The driver of this V1AllocatedDeviceStatus. # noqa: E501
:rtype: str
"""
return self._driver
@driver.setter
def driver(self, driver):
- """Sets the driver of this V1alpha3AllocatedDeviceStatus.
+ """Sets the driver of this V1AllocatedDeviceStatus.
Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. # noqa: E501
- :param driver: The driver of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ :param driver: The driver of this V1AllocatedDeviceStatus. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501
@@ -172,43 +177,43 @@ class V1alpha3AllocatedDeviceStatus(object):
@property
def network_data(self):
- """Gets the network_data of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ """Gets the network_data of this V1AllocatedDeviceStatus. # noqa: E501
- :return: The network_data of this V1alpha3AllocatedDeviceStatus. # noqa: E501
- :rtype: V1alpha3NetworkDeviceData
+ :return: The network_data of this V1AllocatedDeviceStatus. # noqa: E501
+ :rtype: V1NetworkDeviceData
"""
return self._network_data
@network_data.setter
def network_data(self, network_data):
- """Sets the network_data of this V1alpha3AllocatedDeviceStatus.
+ """Sets the network_data of this V1AllocatedDeviceStatus.
- :param network_data: The network_data of this V1alpha3AllocatedDeviceStatus. # noqa: E501
- :type: V1alpha3NetworkDeviceData
+ :param network_data: The network_data of this V1AllocatedDeviceStatus. # noqa: E501
+ :type: V1NetworkDeviceData
"""
self._network_data = network_data
@property
def pool(self):
- """Gets the pool of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ """Gets the pool of this V1AllocatedDeviceStatus. # noqa: E501
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. # noqa: E501
- :return: The pool of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ :return: The pool of this V1AllocatedDeviceStatus. # noqa: E501
:rtype: str
"""
return self._pool
@pool.setter
def pool(self, pool):
- """Sets the pool of this V1alpha3AllocatedDeviceStatus.
+ """Sets the pool of this V1AllocatedDeviceStatus.
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. # noqa: E501
- :param pool: The pool of this V1alpha3AllocatedDeviceStatus. # noqa: E501
+ :param pool: The pool of this V1AllocatedDeviceStatus. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and pool is None: # noqa: E501
@@ -216,6 +221,29 @@ class V1alpha3AllocatedDeviceStatus(object):
self._pool = pool
+ @property
+ def share_id(self):
+ """Gets the share_id of this V1AllocatedDeviceStatus. # noqa: E501
+
+ ShareID uniquely identifies an individual allocation share of the device. # noqa: E501
+
+ :return: The share_id of this V1AllocatedDeviceStatus. # noqa: E501
+ :rtype: str
+ """
+ return self._share_id
+
+ @share_id.setter
+ def share_id(self, share_id):
+ """Sets the share_id of this V1AllocatedDeviceStatus.
+
+ ShareID uniquely identifies an individual allocation share of the device. # noqa: E501
+
+ :param share_id: The share_id of this V1AllocatedDeviceStatus. # noqa: E501
+ :type: str
+ """
+
+ self._share_id = share_id
+
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
@@ -250,14 +278,14 @@ class V1alpha3AllocatedDeviceStatus(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3AllocatedDeviceStatus):
+ if not isinstance(other, V1AllocatedDeviceStatus):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3AllocatedDeviceStatus):
+ if not isinstance(other, V1AllocatedDeviceStatus):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_allocation_result.py b/contrib/python/kubernetes/kubernetes/client/models/v1_allocation_result.py
index 68314a17d69..db371fc40d7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_allocation_result.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_allocation_result.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3AllocationResult(object):
+class V1AllocationResult(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -33,67 +33,95 @@ class V1alpha3AllocationResult(object):
and the value is json key in definition.
"""
openapi_types = {
- 'devices': 'V1alpha3DeviceAllocationResult',
+ 'allocation_timestamp': 'datetime',
+ 'devices': 'V1DeviceAllocationResult',
'node_selector': 'V1NodeSelector'
}
attribute_map = {
+ 'allocation_timestamp': 'allocationTimestamp',
'devices': 'devices',
'node_selector': 'nodeSelector'
}
- def __init__(self, devices=None, node_selector=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3AllocationResult - a model defined in OpenAPI""" # noqa: E501
+ def __init__(self, allocation_timestamp=None, devices=None, node_selector=None, local_vars_configuration=None): # noqa: E501
+ """V1AllocationResult - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
+ self._allocation_timestamp = None
self._devices = None
self._node_selector = None
self.discriminator = None
+ if allocation_timestamp is not None:
+ self.allocation_timestamp = allocation_timestamp
if devices is not None:
self.devices = devices
if node_selector is not None:
self.node_selector = node_selector
@property
+ def allocation_timestamp(self):
+ """Gets the allocation_timestamp of this V1AllocationResult. # noqa: E501
+
+ AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. # noqa: E501
+
+ :return: The allocation_timestamp of this V1AllocationResult. # noqa: E501
+ :rtype: datetime
+ """
+ return self._allocation_timestamp
+
+ @allocation_timestamp.setter
+ def allocation_timestamp(self, allocation_timestamp):
+ """Sets the allocation_timestamp of this V1AllocationResult.
+
+ AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. # noqa: E501
+
+ :param allocation_timestamp: The allocation_timestamp of this V1AllocationResult. # noqa: E501
+ :type: datetime
+ """
+
+ self._allocation_timestamp = allocation_timestamp
+
+ @property
def devices(self):
- """Gets the devices of this V1alpha3AllocationResult. # noqa: E501
+ """Gets the devices of this V1AllocationResult. # noqa: E501
- :return: The devices of this V1alpha3AllocationResult. # noqa: E501
- :rtype: V1alpha3DeviceAllocationResult
+ :return: The devices of this V1AllocationResult. # noqa: E501
+ :rtype: V1DeviceAllocationResult
"""
return self._devices
@devices.setter
def devices(self, devices):
- """Sets the devices of this V1alpha3AllocationResult.
+ """Sets the devices of this V1AllocationResult.
- :param devices: The devices of this V1alpha3AllocationResult. # noqa: E501
- :type: V1alpha3DeviceAllocationResult
+ :param devices: The devices of this V1AllocationResult. # noqa: E501
+ :type: V1DeviceAllocationResult
"""
self._devices = devices
@property
def node_selector(self):
- """Gets the node_selector of this V1alpha3AllocationResult. # noqa: E501
+ """Gets the node_selector of this V1AllocationResult. # noqa: E501
- :return: The node_selector of this V1alpha3AllocationResult. # noqa: E501
+ :return: The node_selector of this V1AllocationResult. # noqa: E501
:rtype: V1NodeSelector
"""
return self._node_selector
@node_selector.setter
def node_selector(self, node_selector):
- """Sets the node_selector of this V1alpha3AllocationResult.
+ """Sets the node_selector of this V1AllocationResult.
- :param node_selector: The node_selector of this V1alpha3AllocationResult. # noqa: E501
+ :param node_selector: The node_selector of this V1AllocationResult. # noqa: E501
:type: V1NodeSelector
"""
@@ -133,14 +161,14 @@ class V1alpha3AllocationResult(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3AllocationResult):
+ if not isinstance(other, V1AllocationResult):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3AllocationResult):
+ if not isinstance(other, V1AllocationResult):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_api_group.py b/contrib/python/kubernetes/kubernetes/client/models/v1_api_group.py
index 4df686be408..bf2e3f207c3 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_api_group.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_api_group.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_api_group_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_api_group_list.py
index 3bc8db3f35a..99040c2396c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_api_group_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_api_group_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_api_resource.py b/contrib/python/kubernetes/kubernetes/client/models/v1_api_resource.py
index 68965456725..35cf3aa86be 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_api_resource.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_api_resource.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_api_resource_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_api_resource_list.py
index bf366b714ee..a0cc5d67c7c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_api_resource_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_api_resource_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_api_service.py b/contrib/python/kubernetes/kubernetes/client/models/v1_api_service.py
index 52ef82feee1..21d260ee2a8 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_api_service.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_api_service.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_condition.py
index 90cc7df604a..f9be1379b4a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_list.py
index f1d2cc306ff..1c22ea3d386 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_spec.py
index ea1d080a408..c47f1cc33d8 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_status.py
index 80a5c1d2f9b..e4fa5e50c7f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_api_service_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_api_versions.py b/contrib/python/kubernetes/kubernetes/client/models/v1_api_versions.py
index 3e0ac08152b..a4028e6cdbf 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_api_versions.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_api_versions.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_app_armor_profile.py b/contrib/python/kubernetes/kubernetes/client/models/v1_app_armor_profile.py
index 5d8859c703b..39a81d62234 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_app_armor_profile.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_app_armor_profile.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_attached_volume.py b/contrib/python/kubernetes/kubernetes/client/models/v1_attached_volume.py
index 695ac38191e..4d861528ce0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_attached_volume.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_attached_volume.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_audit_annotation.py b/contrib/python/kubernetes/kubernetes/client/models/v1_audit_annotation.py
index d5efa68c503..9289b060af7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_audit_annotation.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_audit_annotation.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py
index 8a7b0bfade3..dce4e8161b5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_aws_elastic_block_store_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_azure_disk_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_azure_disk_volume_source.py
index 15d9320325e..af3584ba3d4 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_azure_disk_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_azure_disk_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_azure_file_persistent_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_azure_file_persistent_volume_source.py
index 4bdf9420de5..972387edc37 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_azure_file_persistent_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_azure_file_persistent_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_azure_file_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_azure_file_volume_source.py
index 6decdda53e1..a901ff5891e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_azure_file_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_azure_file_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_binding.py b/contrib/python/kubernetes/kubernetes/client/models/v1_binding.py
index 93e56ec06d5..c10ce20e17e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_binding.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_binding.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_bound_object_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1_bound_object_reference.py
index 4c24053bb8e..db83759970d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_bound_object_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_bound_object_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_capabilities.py b/contrib/python/kubernetes/kubernetes/client/models/v1_capabilities.py
index 797457692b9..ca4e420d34e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_capabilities.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_capabilities.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_capacity_request_policy.py b/contrib/python/kubernetes/kubernetes/client/models/v1_capacity_request_policy.py
new file mode 100644
index 00000000000..e0229b4ba56
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_capacity_request_policy.py
@@ -0,0 +1,176 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1CapacityRequestPolicy(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'default': 'str',
+ 'valid_range': 'V1CapacityRequestPolicyRange',
+ 'valid_values': 'list[str]'
+ }
+
+ attribute_map = {
+ 'default': 'default',
+ 'valid_range': 'validRange',
+ 'valid_values': 'validValues'
+ }
+
+ def __init__(self, default=None, valid_range=None, valid_values=None, local_vars_configuration=None): # noqa: E501
+ """V1CapacityRequestPolicy - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._default = None
+ self._valid_range = None
+ self._valid_values = None
+ self.discriminator = None
+
+ if default is not None:
+ self.default = default
+ if valid_range is not None:
+ self.valid_range = valid_range
+ if valid_values is not None:
+ self.valid_values = valid_values
+
+ @property
+ def default(self):
+ """Gets the default of this V1CapacityRequestPolicy. # noqa: E501
+
+ Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest's Capacity. # noqa: E501
+
+ :return: The default of this V1CapacityRequestPolicy. # noqa: E501
+ :rtype: str
+ """
+ return self._default
+
+ @default.setter
+ def default(self, default):
+ """Sets the default of this V1CapacityRequestPolicy.
+
+ Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest's Capacity. # noqa: E501
+
+ :param default: The default of this V1CapacityRequestPolicy. # noqa: E501
+ :type: str
+ """
+
+ self._default = default
+
+ @property
+ def valid_range(self):
+ """Gets the valid_range of this V1CapacityRequestPolicy. # noqa: E501
+
+
+ :return: The valid_range of this V1CapacityRequestPolicy. # noqa: E501
+ :rtype: V1CapacityRequestPolicyRange
+ """
+ return self._valid_range
+
+ @valid_range.setter
+ def valid_range(self, valid_range):
+ """Sets the valid_range of this V1CapacityRequestPolicy.
+
+
+ :param valid_range: The valid_range of this V1CapacityRequestPolicy. # noqa: E501
+ :type: V1CapacityRequestPolicyRange
+ """
+
+ self._valid_range = valid_range
+
+ @property
+ def valid_values(self):
+ """Gets the valid_values of this V1CapacityRequestPolicy. # noqa: E501
+
+ ValidValues defines a set of acceptable quantity values in consuming requests. Must not contain more than 10 entries. Must be sorted in ascending order. If this field is set, Default must be defined and it must be included in ValidValues list. If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. # noqa: E501
+
+ :return: The valid_values of this V1CapacityRequestPolicy. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._valid_values
+
+ @valid_values.setter
+ def valid_values(self, valid_values):
+ """Sets the valid_values of this V1CapacityRequestPolicy.
+
+ ValidValues defines a set of acceptable quantity values in consuming requests. Must not contain more than 10 entries. Must be sorted in ascending order. If this field is set, Default must be defined and it must be included in ValidValues list. If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. # noqa: E501
+
+ :param valid_values: The valid_values of this V1CapacityRequestPolicy. # noqa: E501
+ :type: list[str]
+ """
+
+ self._valid_values = valid_values
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1CapacityRequestPolicy):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1CapacityRequestPolicy):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_capacity_request_policy_range.py b/contrib/python/kubernetes/kubernetes/client/models/v1_capacity_request_policy_range.py
new file mode 100644
index 00000000000..63f9d480560
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_capacity_request_policy_range.py
@@ -0,0 +1,179 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1CapacityRequestPolicyRange(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'max': 'str',
+ 'min': 'str',
+ 'step': 'str'
+ }
+
+ attribute_map = {
+ 'max': 'max',
+ 'min': 'min',
+ 'step': 'step'
+ }
+
+ def __init__(self, max=None, min=None, step=None, local_vars_configuration=None): # noqa: E501
+ """V1CapacityRequestPolicyRange - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._max = None
+ self._min = None
+ self._step = None
+ self.discriminator = None
+
+ if max is not None:
+ self.max = max
+ self.min = min
+ if step is not None:
+ self.step = step
+
+ @property
+ def max(self):
+ """Gets the max of this V1CapacityRequestPolicyRange. # noqa: E501
+
+ Max defines the upper limit for capacity that can be requested. Max must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum. # noqa: E501
+
+ :return: The max of this V1CapacityRequestPolicyRange. # noqa: E501
+ :rtype: str
+ """
+ return self._max
+
+ @max.setter
+ def max(self, max):
+ """Sets the max of this V1CapacityRequestPolicyRange.
+
+ Max defines the upper limit for capacity that can be requested. Max must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum. # noqa: E501
+
+ :param max: The max of this V1CapacityRequestPolicyRange. # noqa: E501
+ :type: str
+ """
+
+ self._max = max
+
+ @property
+ def min(self):
+ """Gets the min of this V1CapacityRequestPolicyRange. # noqa: E501
+
+ Min specifies the minimum capacity allowed for a consumption request. Min must be greater than or equal to zero, and less than or equal to the capacity value. requestPolicy.default must be more than or equal to the minimum. # noqa: E501
+
+ :return: The min of this V1CapacityRequestPolicyRange. # noqa: E501
+ :rtype: str
+ """
+ return self._min
+
+ @min.setter
+ def min(self, min):
+ """Sets the min of this V1CapacityRequestPolicyRange.
+
+ Min specifies the minimum capacity allowed for a consumption request. Min must be greater than or equal to zero, and less than or equal to the capacity value. requestPolicy.default must be more than or equal to the minimum. # noqa: E501
+
+ :param min: The min of this V1CapacityRequestPolicyRange. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and min is None: # noqa: E501
+ raise ValueError("Invalid value for `min`, must not be `None`") # noqa: E501
+
+ self._min = min
+
+ @property
+ def step(self):
+ """Gets the step of this V1CapacityRequestPolicyRange. # noqa: E501
+
+ Step defines the step size between valid capacity amounts within the range. Max (if set) and requestPolicy.default must be a multiple of Step. Min + Step must be less than or equal to the capacity value. # noqa: E501
+
+ :return: The step of this V1CapacityRequestPolicyRange. # noqa: E501
+ :rtype: str
+ """
+ return self._step
+
+ @step.setter
+ def step(self, step):
+ """Sets the step of this V1CapacityRequestPolicyRange.
+
+ Step defines the step size between valid capacity amounts within the range. Max (if set) and requestPolicy.default must be a multiple of Step. Min + Step must be less than or equal to the capacity value. # noqa: E501
+
+ :param step: The step of this V1CapacityRequestPolicyRange. # noqa: E501
+ :type: str
+ """
+
+ self._step = step
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1CapacityRequestPolicyRange):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1CapacityRequestPolicyRange):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_capacity_requirements.py b/contrib/python/kubernetes/kubernetes/client/models/v1_capacity_requirements.py
new file mode 100644
index 00000000000..6d2d1d12432
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_capacity_requirements.py
@@ -0,0 +1,122 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1CapacityRequirements(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'requests': 'dict(str, str)'
+ }
+
+ attribute_map = {
+ 'requests': 'requests'
+ }
+
+ def __init__(self, requests=None, local_vars_configuration=None): # noqa: E501
+ """V1CapacityRequirements - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._requests = None
+ self.discriminator = None
+
+ if requests is not None:
+ self.requests = requests
+
+ @property
+ def requests(self):
+ """Gets the requests of this V1CapacityRequirements. # noqa: E501
+
+ Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. # noqa: E501
+
+ :return: The requests of this V1CapacityRequirements. # noqa: E501
+ :rtype: dict(str, str)
+ """
+ return self._requests
+
+ @requests.setter
+ def requests(self, requests):
+ """Sets the requests of this V1CapacityRequirements.
+
+ Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. # noqa: E501
+
+ :param requests: The requests of this V1CapacityRequirements. # noqa: E501
+ :type: dict(str, str)
+ """
+
+ self._requests = requests
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1CapacityRequirements):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1CapacityRequirements):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_cel_device_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1_cel_device_selector.py
new file mode 100644
index 00000000000..4f560e3561e
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_cel_device_selector.py
@@ -0,0 +1,123 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1CELDeviceSelector(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'expression': 'str'
+ }
+
+ attribute_map = {
+ 'expression': 'expression'
+ }
+
+ def __init__(self, expression=None, local_vars_configuration=None): # noqa: E501
+ """V1CELDeviceSelector - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._expression = None
+ self.discriminator = None
+
+ self.expression = expression
+
+ @property
+ def expression(self):
+ """Gets the expression of this V1CELDeviceSelector. # noqa: E501
+
+ Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. # noqa: E501
+
+ :return: The expression of this V1CELDeviceSelector. # noqa: E501
+ :rtype: str
+ """
+ return self._expression
+
+ @expression.setter
+ def expression(self, expression):
+ """Sets the expression of this V1CELDeviceSelector.
+
+ Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. # noqa: E501
+
+ :param expression: The expression of this V1CELDeviceSelector. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and expression is None: # noqa: E501
+ raise ValueError("Invalid value for `expression`, must not be `None`") # noqa: E501
+
+ self._expression = expression
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1CELDeviceSelector):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1CELDeviceSelector):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py
index b6ab2f59bec..e58ff203ad4 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ceph_fs_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ceph_fs_volume_source.py
index a68767ec4bd..03e189bdc3a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ceph_fs_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ceph_fs_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request.py b/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request.py
index 0f2d92d89dd..b1f579b8568 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_condition.py
index 1ee215aff56..04075c0adf6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_list.py
index 30958cb0bf6..783f0546e3e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_spec.py
index 033e10d8cfb..967dbc32b2c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_status.py
index 8923ac5881b..f95df792fee 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_certificate_signing_request_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_cinder_persistent_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_cinder_persistent_volume_source.py
index 5a6945537b3..d52eafbdec6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_cinder_persistent_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_cinder_persistent_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_cinder_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_cinder_volume_source.py
index 1787f00066c..00adcb0fe8b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_cinder_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_cinder_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_client_ip_config.py b/contrib/python/kubernetes/kubernetes/client/models/v1_client_ip_config.py
index 77148891e4f..063eadf8736 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_client_ip_config.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_client_ip_config.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role.py b/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role.py
index 63e93870bbd..f1be5dc262d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_binding.py b/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_binding.py
index 77fd9c7aec8..4d09220638a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_binding.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_binding.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_binding_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_binding_list.py
index eacfed22c15..5ed86f13707 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_binding_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_binding_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_list.py
index bce77c5eef3..87ac2c5ea4b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_role_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_trust_bundle_projection.py b/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_trust_bundle_projection.py
index 3b4006cbb91..c5fd33d6527 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_trust_bundle_projection.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_cluster_trust_bundle_projection.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_component_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_component_condition.py
index 2f7c3266732..a5e37b2f7c0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_component_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_component_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_component_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_component_status.py
index 694a34989b5..1c6078f0039 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_component_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_component_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_component_status_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_component_status_list.py
index 769ac891305..c97175d9968 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_component_status_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_component_status_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_condition.py
index 226eb76853f..965d832bbc5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_config_map.py b/contrib/python/kubernetes/kubernetes/client/models/v1_config_map.py
index 9532f67f301..4fc1693eabf 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_config_map.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_config_map.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_env_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_env_source.py
index fbe24f6b52c..82464b62228 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_env_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_env_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_key_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_key_selector.py
index 9087a9df897..2823e06e728 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_key_selector.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_key_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_list.py
index 7e690e602a5..9c5a9cd6da8 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_node_config_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_node_config_source.py
index 358cfde24aa..e5f2e107acb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_node_config_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_node_config_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_projection.py b/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_projection.py
index 3ad46f2b4d6..8ed2ed20861 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_projection.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_projection.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_volume_source.py
index 1f4fb52e745..c679238160c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_config_map_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_container.py b/contrib/python/kubernetes/kubernetes/client/models/v1_container.py
index 4b90e8c9ee4..627bcf8a0e5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_container.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_container.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -47,6 +47,7 @@ class V1Container(object):
'resize_policy': 'list[V1ContainerResizePolicy]',
'resources': 'V1ResourceRequirements',
'restart_policy': 'str',
+ 'restart_policy_rules': 'list[V1ContainerRestartRule]',
'security_context': 'V1SecurityContext',
'startup_probe': 'V1Probe',
'stdin': 'bool',
@@ -74,6 +75,7 @@ class V1Container(object):
'resize_policy': 'resizePolicy',
'resources': 'resources',
'restart_policy': 'restartPolicy',
+ 'restart_policy_rules': 'restartPolicyRules',
'security_context': 'securityContext',
'startup_probe': 'startupProbe',
'stdin': 'stdin',
@@ -86,7 +88,7 @@ class V1Container(object):
'working_dir': 'workingDir'
}
- def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resize_policy=None, resources=None, restart_policy=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resize_policy=None, resources=None, restart_policy=None, restart_policy_rules=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None, local_vars_configuration=None): # noqa: E501
"""V1Container - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
@@ -106,6 +108,7 @@ class V1Container(object):
self._resize_policy = None
self._resources = None
self._restart_policy = None
+ self._restart_policy_rules = None
self._security_context = None
self._startup_probe = None
self._stdin = None
@@ -145,6 +148,8 @@ class V1Container(object):
self.resources = resources
if restart_policy is not None:
self.restart_policy = restart_policy
+ if restart_policy_rules is not None:
+ self.restart_policy_rules = restart_policy_rules
if security_context is not None:
self.security_context = security_context
if startup_probe is not None:
@@ -239,7 +244,7 @@ class V1Container(object):
def env_from(self):
"""Gets the env_from of this V1Container. # noqa: E501
- List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
+ List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
:return: The env_from of this V1Container. # noqa: E501
:rtype: list[V1EnvFromSource]
@@ -250,7 +255,7 @@ class V1Container(object):
def env_from(self, env_from):
"""Sets the env_from of this V1Container.
- List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
+ List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
:param env_from: The env_from of this V1Container. # noqa: E501
:type: list[V1EnvFromSource]
@@ -463,7 +468,7 @@ class V1Container(object):
def restart_policy(self):
"""Gets the restart_policy of this V1Container. # noqa: E501
- RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
+ RestartPolicy defines the restart behavior of individual containers in a pod. This overrides the pod-level restart policy. When this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Additionally, setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
:return: The restart_policy of this V1Container. # noqa: E501
:rtype: str
@@ -474,7 +479,7 @@ class V1Container(object):
def restart_policy(self, restart_policy):
"""Sets the restart_policy of this V1Container.
- RestartPolicy defines the restart behavior of individual containers in a pod. This field may only be set for init containers, and the only allowed value is \"Always\". For non-init containers or when this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
+ RestartPolicy defines the restart behavior of individual containers in a pod. This overrides the pod-level restart policy. When this field is not specified, the restart behavior is defined by the Pod's restart policy and the container type. Additionally, setting the RestartPolicy as \"Always\" for the init container will have the following effect: this init container will be continually restarted on exit until all regular containers have terminated. Once all regular containers have completed, all init containers with restartPolicy \"Always\" will be shut down. This lifecycle differs from normal init containers and is often referred to as a \"sidecar\" container. Although this init container still starts in the init container sequence, it does not wait for the container to complete before proceeding to the next init container. Instead, the next init container starts immediately after this init container is started, or after any startupProbe has successfully completed. # noqa: E501
:param restart_policy: The restart_policy of this V1Container. # noqa: E501
:type: str
@@ -483,6 +488,29 @@ class V1Container(object):
self._restart_policy = restart_policy
@property
+ def restart_policy_rules(self):
+ """Gets the restart_policy_rules of this V1Container. # noqa: E501
+
+ Represents a list of rules to be checked to determine if the container should be restarted on exit. The rules are evaluated in order. Once a rule matches a container exit condition, the remaining rules are ignored. If no rule matches the container exit condition, the Container-level restart policy determines the whether the container is restarted or not. Constraints on the rules: - At most 20 rules are allowed. - Rules can have the same action. - Identical rules are not forbidden in validations. When rules are specified, container MUST set RestartPolicy explicitly even it if matches the Pod's RestartPolicy. # noqa: E501
+
+ :return: The restart_policy_rules of this V1Container. # noqa: E501
+ :rtype: list[V1ContainerRestartRule]
+ """
+ return self._restart_policy_rules
+
+ @restart_policy_rules.setter
+ def restart_policy_rules(self, restart_policy_rules):
+ """Sets the restart_policy_rules of this V1Container.
+
+ Represents a list of rules to be checked to determine if the container should be restarted on exit. The rules are evaluated in order. Once a rule matches a container exit condition, the remaining rules are ignored. If no rule matches the container exit condition, the Container-level restart policy determines the whether the container is restarted or not. Constraints on the rules: - At most 20 rules are allowed. - Rules can have the same action. - Identical rules are not forbidden in validations. When rules are specified, container MUST set RestartPolicy explicitly even it if matches the Pod's RestartPolicy. # noqa: E501
+
+ :param restart_policy_rules: The restart_policy_rules of this V1Container. # noqa: E501
+ :type: list[V1ContainerRestartRule]
+ """
+
+ self._restart_policy_rules = restart_policy_rules
+
+ @property
def security_context(self):
"""Gets the security_context of this V1Container. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_container_extended_resource_request.py b/contrib/python/kubernetes/kubernetes/client/models/v1_container_extended_resource_request.py
new file mode 100644
index 00000000000..6eae2f728b7
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_container_extended_resource_request.py
@@ -0,0 +1,181 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1ContainerExtendedResourceRequest(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'container_name': 'str',
+ 'request_name': 'str',
+ 'resource_name': 'str'
+ }
+
+ attribute_map = {
+ 'container_name': 'containerName',
+ 'request_name': 'requestName',
+ 'resource_name': 'resourceName'
+ }
+
+ def __init__(self, container_name=None, request_name=None, resource_name=None, local_vars_configuration=None): # noqa: E501
+ """V1ContainerExtendedResourceRequest - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._container_name = None
+ self._request_name = None
+ self._resource_name = None
+ self.discriminator = None
+
+ self.container_name = container_name
+ self.request_name = request_name
+ self.resource_name = resource_name
+
+ @property
+ def container_name(self):
+ """Gets the container_name of this V1ContainerExtendedResourceRequest. # noqa: E501
+
+ The name of the container requesting resources. # noqa: E501
+
+ :return: The container_name of this V1ContainerExtendedResourceRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._container_name
+
+ @container_name.setter
+ def container_name(self, container_name):
+ """Sets the container_name of this V1ContainerExtendedResourceRequest.
+
+ The name of the container requesting resources. # noqa: E501
+
+ :param container_name: The container_name of this V1ContainerExtendedResourceRequest. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and container_name is None: # noqa: E501
+ raise ValueError("Invalid value for `container_name`, must not be `None`") # noqa: E501
+
+ self._container_name = container_name
+
+ @property
+ def request_name(self):
+ """Gets the request_name of this V1ContainerExtendedResourceRequest. # noqa: E501
+
+ The name of the request in the special ResourceClaim which corresponds to the extended resource. # noqa: E501
+
+ :return: The request_name of this V1ContainerExtendedResourceRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._request_name
+
+ @request_name.setter
+ def request_name(self, request_name):
+ """Sets the request_name of this V1ContainerExtendedResourceRequest.
+
+ The name of the request in the special ResourceClaim which corresponds to the extended resource. # noqa: E501
+
+ :param request_name: The request_name of this V1ContainerExtendedResourceRequest. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and request_name is None: # noqa: E501
+ raise ValueError("Invalid value for `request_name`, must not be `None`") # noqa: E501
+
+ self._request_name = request_name
+
+ @property
+ def resource_name(self):
+ """Gets the resource_name of this V1ContainerExtendedResourceRequest. # noqa: E501
+
+ The name of the extended resource in that container which gets backed by DRA. # noqa: E501
+
+ :return: The resource_name of this V1ContainerExtendedResourceRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._resource_name
+
+ @resource_name.setter
+ def resource_name(self, resource_name):
+ """Sets the resource_name of this V1ContainerExtendedResourceRequest.
+
+ The name of the extended resource in that container which gets backed by DRA. # noqa: E501
+
+ :param resource_name: The resource_name of this V1ContainerExtendedResourceRequest. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and resource_name is None: # noqa: E501
+ raise ValueError("Invalid value for `resource_name`, must not be `None`") # noqa: E501
+
+ self._resource_name = resource_name
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1ContainerExtendedResourceRequest):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1ContainerExtendedResourceRequest):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_container_image.py b/contrib/python/kubernetes/kubernetes/client/models/v1_container_image.py
index 064c73dd26d..c3db0c74fc1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_container_image.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_container_image.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_container_port.py b/contrib/python/kubernetes/kubernetes/client/models/v1_container_port.py
index 384c88b414f..aba2c957510 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_container_port.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_container_port.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_container_resize_policy.py b/contrib/python/kubernetes/kubernetes/client/models/v1_container_resize_policy.py
index c23ffa2cbbb..a40aeda627a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_container_resize_policy.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_container_resize_policy.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device.py b/contrib/python/kubernetes/kubernetes/client/models/v1_container_restart_rule.py
index 15d0c8300cd..174cd86d85d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_container_restart_rule.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3Device(object):
+class V1ContainerRestartRule(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -33,74 +33,74 @@ class V1alpha3Device(object):
and the value is json key in definition.
"""
openapi_types = {
- 'basic': 'V1alpha3BasicDevice',
- 'name': 'str'
+ 'action': 'str',
+ 'exit_codes': 'V1ContainerRestartRuleOnExitCodes'
}
attribute_map = {
- 'basic': 'basic',
- 'name': 'name'
+ 'action': 'action',
+ 'exit_codes': 'exitCodes'
}
- def __init__(self, basic=None, name=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3Device - a model defined in OpenAPI""" # noqa: E501
+ def __init__(self, action=None, exit_codes=None, local_vars_configuration=None): # noqa: E501
+ """V1ContainerRestartRule - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
- self._basic = None
- self._name = None
+ self._action = None
+ self._exit_codes = None
self.discriminator = None
- if basic is not None:
- self.basic = basic
- self.name = name
+ self.action = action
+ if exit_codes is not None:
+ self.exit_codes = exit_codes
@property
- def basic(self):
- """Gets the basic of this V1alpha3Device. # noqa: E501
+ def action(self):
+ """Gets the action of this V1ContainerRestartRule. # noqa: E501
+ Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container. # noqa: E501
- :return: The basic of this V1alpha3Device. # noqa: E501
- :rtype: V1alpha3BasicDevice
+ :return: The action of this V1ContainerRestartRule. # noqa: E501
+ :rtype: str
"""
- return self._basic
+ return self._action
- @basic.setter
- def basic(self, basic):
- """Sets the basic of this V1alpha3Device.
+ @action.setter
+ def action(self, action):
+ """Sets the action of this V1ContainerRestartRule.
+ Specifies the action taken on a container exit if the requirements are satisfied. The only possible value is \"Restart\" to restart the container. # noqa: E501
- :param basic: The basic of this V1alpha3Device. # noqa: E501
- :type: V1alpha3BasicDevice
+ :param action: The action of this V1ContainerRestartRule. # noqa: E501
+ :type: str
"""
+ if self.local_vars_configuration.client_side_validation and action is None: # noqa: E501
+ raise ValueError("Invalid value for `action`, must not be `None`") # noqa: E501
- self._basic = basic
+ self._action = action
@property
- def name(self):
- """Gets the name of this V1alpha3Device. # noqa: E501
+ def exit_codes(self):
+ """Gets the exit_codes of this V1ContainerRestartRule. # noqa: E501
- Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. # noqa: E501
- :return: The name of this V1alpha3Device. # noqa: E501
- :rtype: str
+ :return: The exit_codes of this V1ContainerRestartRule. # noqa: E501
+ :rtype: V1ContainerRestartRuleOnExitCodes
"""
- return self._name
+ return self._exit_codes
- @name.setter
- def name(self, name):
- """Sets the name of this V1alpha3Device.
+ @exit_codes.setter
+ def exit_codes(self, exit_codes):
+ """Sets the exit_codes of this V1ContainerRestartRule.
- Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. # noqa: E501
- :param name: The name of this V1alpha3Device. # noqa: E501
- :type: str
+ :param exit_codes: The exit_codes of this V1ContainerRestartRule. # noqa: E501
+ :type: V1ContainerRestartRuleOnExitCodes
"""
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
- self._name = name
+ self._exit_codes = exit_codes
def to_dict(self):
"""Returns the model properties as a dict"""
@@ -136,14 +136,14 @@ class V1alpha3Device(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3Device):
+ if not isinstance(other, V1ContainerRestartRule):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3Device):
+ if not isinstance(other, V1ContainerRestartRule):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_container_restart_rule_on_exit_codes.py b/contrib/python/kubernetes/kubernetes/client/models/v1_container_restart_rule_on_exit_codes.py
new file mode 100644
index 00000000000..341a8a04e27
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_container_restart_rule_on_exit_codes.py
@@ -0,0 +1,151 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1ContainerRestartRuleOnExitCodes(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'operator': 'str',
+ 'values': 'list[int]'
+ }
+
+ attribute_map = {
+ 'operator': 'operator',
+ 'values': 'values'
+ }
+
+ def __init__(self, operator=None, values=None, local_vars_configuration=None): # noqa: E501
+ """V1ContainerRestartRuleOnExitCodes - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._operator = None
+ self._values = None
+ self.discriminator = None
+
+ self.operator = operator
+ if values is not None:
+ self.values = values
+
+ @property
+ def operator(self):
+ """Gets the operator of this V1ContainerRestartRuleOnExitCodes. # noqa: E501
+
+ Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values. - NotIn: the requirement is satisfied if the container exit code is not in the set of specified values. # noqa: E501
+
+ :return: The operator of this V1ContainerRestartRuleOnExitCodes. # noqa: E501
+ :rtype: str
+ """
+ return self._operator
+
+ @operator.setter
+ def operator(self, operator):
+ """Sets the operator of this V1ContainerRestartRuleOnExitCodes.
+
+ Represents the relationship between the container exit code(s) and the specified values. Possible values are: - In: the requirement is satisfied if the container exit code is in the set of specified values. - NotIn: the requirement is satisfied if the container exit code is not in the set of specified values. # noqa: E501
+
+ :param operator: The operator of this V1ContainerRestartRuleOnExitCodes. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and operator is None: # noqa: E501
+ raise ValueError("Invalid value for `operator`, must not be `None`") # noqa: E501
+
+ self._operator = operator
+
+ @property
+ def values(self):
+ """Gets the values of this V1ContainerRestartRuleOnExitCodes. # noqa: E501
+
+ Specifies the set of values to check for container exit codes. At most 255 elements are allowed. # noqa: E501
+
+ :return: The values of this V1ContainerRestartRuleOnExitCodes. # noqa: E501
+ :rtype: list[int]
+ """
+ return self._values
+
+ @values.setter
+ def values(self, values):
+ """Sets the values of this V1ContainerRestartRuleOnExitCodes.
+
+ Specifies the set of values to check for container exit codes. At most 255 elements are allowed. # noqa: E501
+
+ :param values: The values of this V1ContainerRestartRuleOnExitCodes. # noqa: E501
+ :type: list[int]
+ """
+
+ self._values = values
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1ContainerRestartRuleOnExitCodes):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1ContainerRestartRuleOnExitCodes):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_container_state.py b/contrib/python/kubernetes/kubernetes/client/models/v1_container_state.py
index 0552659ab65..ead4f7b92ea 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_container_state.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_container_state.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_container_state_running.py b/contrib/python/kubernetes/kubernetes/client/models/v1_container_state_running.py
index 39776202d3a..382d0b21d82 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_container_state_running.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_container_state_running.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_container_state_terminated.py b/contrib/python/kubernetes/kubernetes/client/models/v1_container_state_terminated.py
index 1c21d8f33f6..a69ca222bc9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_container_state_terminated.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_container_state_terminated.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_container_state_waiting.py b/contrib/python/kubernetes/kubernetes/client/models/v1_container_state_waiting.py
index 3d824d0bd78..016d5079481 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_container_state_waiting.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_container_state_waiting.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_container_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_container_status.py
index c75863107dc..d66ca3824f9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_container_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_container_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_container_user.py b/contrib/python/kubernetes/kubernetes/client/models/v1_container_user.py
index 1c8fddf1b95..62a132cf102 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_container_user.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_container_user.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_controller_revision.py b/contrib/python/kubernetes/kubernetes/client/models/v1_controller_revision.py
index 617e94e64d9..1492bf6bac8 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_controller_revision.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_controller_revision.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_controller_revision_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_controller_revision_list.py
index 3e186c4eaf8..eaba37b5d2f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_controller_revision_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_controller_revision_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_counter.py b/contrib/python/kubernetes/kubernetes/client/models/v1_counter.py
index 4c4a1f03e18..69277a265c7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_counter.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_counter.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3Counter(object):
+class V1Counter(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -41,7 +41,7 @@ class V1alpha3Counter(object):
}
def __init__(self, value=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3Counter - a model defined in OpenAPI""" # noqa: E501
+ """V1Counter - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -53,22 +53,22 @@ class V1alpha3Counter(object):
@property
def value(self):
- """Gets the value of this V1alpha3Counter. # noqa: E501
+ """Gets the value of this V1Counter. # noqa: E501
Value defines how much of a certain device counter is available. # noqa: E501
- :return: The value of this V1alpha3Counter. # noqa: E501
+ :return: The value of this V1Counter. # noqa: E501
:rtype: str
"""
return self._value
@value.setter
def value(self, value):
- """Sets the value of this V1alpha3Counter.
+ """Sets the value of this V1Counter.
Value defines how much of a certain device counter is available. # noqa: E501
- :param value: The value of this V1alpha3Counter. # noqa: E501
+ :param value: The value of this V1Counter. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501
@@ -110,14 +110,14 @@ class V1alpha3Counter(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3Counter):
+ if not isinstance(other, V1Counter):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3Counter):
+ if not isinstance(other, V1Counter):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_counter_set.py b/contrib/python/kubernetes/kubernetes/client/models/v1_counter_set.py
index 143a9b9c06f..7866b0a7590 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_counter_set.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_counter_set.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3CounterSet(object):
+class V1CounterSet(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -33,7 +33,7 @@ class V1alpha3CounterSet(object):
and the value is json key in definition.
"""
openapi_types = {
- 'counters': 'dict(str, V1alpha3Counter)',
+ 'counters': 'dict(str, V1Counter)',
'name': 'str'
}
@@ -43,7 +43,7 @@ class V1alpha3CounterSet(object):
}
def __init__(self, counters=None, name=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3CounterSet - a model defined in OpenAPI""" # noqa: E501
+ """V1CounterSet - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -57,23 +57,23 @@ class V1alpha3CounterSet(object):
@property
def counters(self):
- """Gets the counters of this V1alpha3CounterSet. # noqa: E501
+ """Gets the counters of this V1CounterSet. # noqa: E501
- Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32. # noqa: E501
+ Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters in all sets is 32. # noqa: E501
- :return: The counters of this V1alpha3CounterSet. # noqa: E501
- :rtype: dict(str, V1alpha3Counter)
+ :return: The counters of this V1CounterSet. # noqa: E501
+ :rtype: dict(str, V1Counter)
"""
return self._counters
@counters.setter
def counters(self, counters):
- """Sets the counters of this V1alpha3CounterSet.
+ """Sets the counters of this V1CounterSet.
- Counters defines the counters that will be consumed by the device. The name of each counter must be unique in that set and must be a DNS label. To ensure this uniqueness, capacities defined by the vendor must be listed without the driver name as domain prefix in their name. All others must be listed with their domain prefix. The maximum number of counters is 32. # noqa: E501
+ Counters defines the set of counters for this CounterSet The name of each counter must be unique in that set and must be a DNS label. The maximum number of counters in all sets is 32. # noqa: E501
- :param counters: The counters of this V1alpha3CounterSet. # noqa: E501
- :type: dict(str, V1alpha3Counter)
+ :param counters: The counters of this V1CounterSet. # noqa: E501
+ :type: dict(str, V1Counter)
"""
if self.local_vars_configuration.client_side_validation and counters is None: # noqa: E501
raise ValueError("Invalid value for `counters`, must not be `None`") # noqa: E501
@@ -82,22 +82,22 @@ class V1alpha3CounterSet(object):
@property
def name(self):
- """Gets the name of this V1alpha3CounterSet. # noqa: E501
+ """Gets the name of this V1CounterSet. # noqa: E501
- CounterSet is the name of the set from which the counters defined will be consumed. # noqa: E501
+ Name defines the name of the counter set. It must be a DNS label. # noqa: E501
- :return: The name of this V1alpha3CounterSet. # noqa: E501
+ :return: The name of this V1CounterSet. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
- """Sets the name of this V1alpha3CounterSet.
+ """Sets the name of this V1CounterSet.
- CounterSet is the name of the set from which the counters defined will be consumed. # noqa: E501
+ Name defines the name of the counter set. It must be a DNS label. # noqa: E501
- :param name: The name of this V1alpha3CounterSet. # noqa: E501
+ :param name: The name of this V1CounterSet. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
@@ -139,14 +139,14 @@ class V1alpha3CounterSet(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3CounterSet):
+ if not isinstance(other, V1CounterSet):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3CounterSet):
+ if not isinstance(other, V1CounterSet):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job.py b/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job.py
index 66efc4ec1c2..44bff7fe979 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_list.py
index f62f7f8110b..70caf8ee601 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_spec.py
index 227695d547f..1a466d85ac3 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_status.py
index 02f75ac643d..8486aaf90a4 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_cron_job_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_cross_version_object_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1_cross_version_object_reference.py
index 8b3c95463c1..5bdf1f0a336 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_cross_version_object_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_cross_version_object_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver.py b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver.py
index 1a9a1ae0bd2..644c51ddc6c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver_list.py
index 6aafce560d5..6d0301b267f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver_spec.py
index ce94cd43483..1239b3664e2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_driver_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -96,7 +96,7 @@ class V1CSIDriverSpec(object):
def attach_required(self):
"""Gets the attach_required of this V1CSIDriverSpec. # noqa: E501
- attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. # noqa: E501
+ attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. # noqa: E501
:return: The attach_required of this V1CSIDriverSpec. # noqa: E501
:rtype: bool
@@ -107,7 +107,7 @@ class V1CSIDriverSpec(object):
def attach_required(self, attach_required):
"""Sets the attach_required of this V1CSIDriverSpec.
- attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the CSIDriverRegistry feature gate is enabled and the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. # noqa: E501
+ attachRequired indicates this CSI volume driver requires an attach operation (because it implements the CSI ControllerPublishVolume() method), and that the Kubernetes attach detach controller should call the attach volume interface which checks the volumeattachment status and waits until the volume is attached before proceeding to mounting. The CSI external-attacher coordinates with CSI volume driver and updates the volumeattachment status when the attach operation is complete. If the value is specified to false, the attach operation will be skipped. Otherwise the attach operation will be called. This field is immutable. # noqa: E501
:param attach_required: The attach_required of this V1CSIDriverSpec. # noqa: E501
:type: bool
@@ -142,7 +142,7 @@ class V1CSIDriverSpec(object):
def node_allocatable_update_period_seconds(self):
"""Gets the node_allocatable_update_period_seconds of this V1CSIDriverSpec. # noqa: E501
- nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. # noqa: E501
+ nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. # noqa: E501
:return: The node_allocatable_update_period_seconds of this V1CSIDriverSpec. # noqa: E501
:rtype: int
@@ -153,7 +153,7 @@ class V1CSIDriverSpec(object):
def node_allocatable_update_period_seconds(self, node_allocatable_update_period_seconds):
"""Sets the node_allocatable_update_period_seconds of this V1CSIDriverSpec.
- nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is an alpha feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. # noqa: E501
+ nodeAllocatableUpdatePeriodSeconds specifies the interval between periodic updates of the CSINode allocatable capacity for this driver. When set, both periodic updates and updates triggered by capacity-related failures are enabled. If not set, no updates occur (neither periodic nor upon detecting capacity-related failures), and the allocatable.count remains static. The minimum allowed value for this field is 10 seconds. This is a beta feature and requires the MutableCSINodeAllocatableCount feature gate to be enabled. This field is mutable. # noqa: E501
:param node_allocatable_update_period_seconds: The node_allocatable_update_period_seconds of this V1CSIDriverSpec. # noqa: E501
:type: int
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node.py b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node.py
index fba381f805b..ea04497ac64 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_driver.py b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_driver.py
index 25ed8b050e8..4619301a6ee 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_driver.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_driver.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_list.py
index 4a020d24ba9..307b5efa5aa 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_spec.py
index 90ba00a8630..e9aab87a16f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_node_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_persistent_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_persistent_volume_source.py
index 3c0c0ba3b84..6a58efaafd5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_persistent_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_persistent_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_storage_capacity.py b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_storage_capacity.py
index b6461ddce34..b3438c73028 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_storage_capacity.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_storage_capacity.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_storage_capacity_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_storage_capacity_list.py
index da7261b1074..70742fe71a2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_storage_capacity_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_storage_capacity_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_volume_source.py
index c14fc155c78..b32c3b54c08 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_csi_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_csi_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_column_definition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_column_definition.py
index 2a6eff31c1e..134d7568d5b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_column_definition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_column_definition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_conversion.py b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_conversion.py
index 6975d2c8477..88083cd19ad 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_conversion.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_conversion.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition.py
index 84e3c2ecf72..c34b5f0e907 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_condition.py
index b3e31695551..f80c1115c5e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_list.py
index 55565e29995..e8eef888e21 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_names.py b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_names.py
index d580b8e019c..faf0c856a22 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_names.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_names.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_spec.py
index 1574d872a3b..ef2ca292853 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_status.py
index 0a14052b568..c83ff7c3feb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_version.py b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_version.py
index 0651b329a46..55c8eaff30d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_version.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_definition_version.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_subresource_scale.py b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_subresource_scale.py
index 239c9a74583..97efd8ff989 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_subresource_scale.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_subresource_scale.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_subresources.py b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_subresources.py
index 0c9b5bcd0af..f7fc628777a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_subresources.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_subresources.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_validation.py b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_validation.py
index 365dfbc348e..f11a7a7f932 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_validation.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_custom_resource_validation.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_endpoint.py b/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_endpoint.py
index 98fe08d6e0a..9f3ab31cc10 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_endpoint.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_endpoint.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set.py b/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set.py
index 6c5df53b37a..3d13c27b85b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_condition.py
index 694e628d815..a46994adb79 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_list.py
index 8447d344af6..c7c5270c2b7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_spec.py
index 583e6c4a20c..abdad44a6b1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_status.py
index 3801375abbf..a9b11980a75 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_update_strategy.py b/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_update_strategy.py
index d286d980480..90721495823 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_update_strategy.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_daemon_set_update_strategy.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_delete_options.py b/contrib/python/kubernetes/kubernetes/client/models/v1_delete_options.py
index 8bec1cfede0..2f4200062ce 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_delete_options.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_delete_options.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_deployment.py b/contrib/python/kubernetes/kubernetes/client/models/v1_deployment.py
index 394ef641180..a5189b910cf 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_deployment.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_deployment.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_condition.py
index a50dd01efa7..ace525cc14d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_list.py
index 4ac2249b296..690c77deb16 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_spec.py
index 27ad72fa3d2..97d2af00fbf 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_status.py
index bf72b772c5b..fe63200386b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_strategy.py b/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_strategy.py
index 9793060b940..438e334c34d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_strategy.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_deployment_strategy.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_device.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device.py
new file mode 100644
index 00000000000..0572cc69370
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device.py
@@ -0,0 +1,429 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1Device(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'all_nodes': 'bool',
+ 'allow_multiple_allocations': 'bool',
+ 'attributes': 'dict(str, V1DeviceAttribute)',
+ 'binding_conditions': 'list[str]',
+ 'binding_failure_conditions': 'list[str]',
+ 'binds_to_node': 'bool',
+ 'capacity': 'dict(str, V1DeviceCapacity)',
+ 'consumes_counters': 'list[V1DeviceCounterConsumption]',
+ 'name': 'str',
+ 'node_name': 'str',
+ 'node_selector': 'V1NodeSelector',
+ 'taints': 'list[V1DeviceTaint]'
+ }
+
+ attribute_map = {
+ 'all_nodes': 'allNodes',
+ 'allow_multiple_allocations': 'allowMultipleAllocations',
+ 'attributes': 'attributes',
+ 'binding_conditions': 'bindingConditions',
+ 'binding_failure_conditions': 'bindingFailureConditions',
+ 'binds_to_node': 'bindsToNode',
+ 'capacity': 'capacity',
+ 'consumes_counters': 'consumesCounters',
+ 'name': 'name',
+ 'node_name': 'nodeName',
+ 'node_selector': 'nodeSelector',
+ 'taints': 'taints'
+ }
+
+ def __init__(self, all_nodes=None, allow_multiple_allocations=None, attributes=None, binding_conditions=None, binding_failure_conditions=None, binds_to_node=None, capacity=None, consumes_counters=None, name=None, node_name=None, node_selector=None, taints=None, local_vars_configuration=None): # noqa: E501
+ """V1Device - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._all_nodes = None
+ self._allow_multiple_allocations = None
+ self._attributes = None
+ self._binding_conditions = None
+ self._binding_failure_conditions = None
+ self._binds_to_node = None
+ self._capacity = None
+ self._consumes_counters = None
+ self._name = None
+ self._node_name = None
+ self._node_selector = None
+ self._taints = None
+ self.discriminator = None
+
+ if all_nodes is not None:
+ self.all_nodes = all_nodes
+ if allow_multiple_allocations is not None:
+ self.allow_multiple_allocations = allow_multiple_allocations
+ if attributes is not None:
+ self.attributes = attributes
+ if binding_conditions is not None:
+ self.binding_conditions = binding_conditions
+ if binding_failure_conditions is not None:
+ self.binding_failure_conditions = binding_failure_conditions
+ if binds_to_node is not None:
+ self.binds_to_node = binds_to_node
+ if capacity is not None:
+ self.capacity = capacity
+ if consumes_counters is not None:
+ self.consumes_counters = consumes_counters
+ self.name = name
+ if node_name is not None:
+ self.node_name = node_name
+ if node_selector is not None:
+ self.node_selector = node_selector
+ if taints is not None:
+ self.taints = taints
+
+ @property
+ def all_nodes(self):
+ """Gets the all_nodes of this V1Device. # noqa: E501
+
+ AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. # noqa: E501
+
+ :return: The all_nodes of this V1Device. # noqa: E501
+ :rtype: bool
+ """
+ return self._all_nodes
+
+ @all_nodes.setter
+ def all_nodes(self, all_nodes):
+ """Sets the all_nodes of this V1Device.
+
+ AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. # noqa: E501
+
+ :param all_nodes: The all_nodes of this V1Device. # noqa: E501
+ :type: bool
+ """
+
+ self._all_nodes = all_nodes
+
+ @property
+ def allow_multiple_allocations(self):
+ """Gets the allow_multiple_allocations of this V1Device. # noqa: E501
+
+ AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. # noqa: E501
+
+ :return: The allow_multiple_allocations of this V1Device. # noqa: E501
+ :rtype: bool
+ """
+ return self._allow_multiple_allocations
+
+ @allow_multiple_allocations.setter
+ def allow_multiple_allocations(self, allow_multiple_allocations):
+ """Sets the allow_multiple_allocations of this V1Device.
+
+ AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. # noqa: E501
+
+ :param allow_multiple_allocations: The allow_multiple_allocations of this V1Device. # noqa: E501
+ :type: bool
+ """
+
+ self._allow_multiple_allocations = allow_multiple_allocations
+
+ @property
+ def attributes(self):
+ """Gets the attributes of this V1Device. # noqa: E501
+
+ Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. # noqa: E501
+
+ :return: The attributes of this V1Device. # noqa: E501
+ :rtype: dict(str, V1DeviceAttribute)
+ """
+ return self._attributes
+
+ @attributes.setter
+ def attributes(self, attributes):
+ """Sets the attributes of this V1Device.
+
+ Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. # noqa: E501
+
+ :param attributes: The attributes of this V1Device. # noqa: E501
+ :type: dict(str, V1DeviceAttribute)
+ """
+
+ self._attributes = attributes
+
+ @property
+ def binding_conditions(self):
+ """Gets the binding_conditions of this V1Device. # noqa: E501
+
+ BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binding_conditions of this V1Device. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._binding_conditions
+
+ @binding_conditions.setter
+ def binding_conditions(self, binding_conditions):
+ """Sets the binding_conditions of this V1Device.
+
+ BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binding_conditions: The binding_conditions of this V1Device. # noqa: E501
+ :type: list[str]
+ """
+
+ self._binding_conditions = binding_conditions
+
+ @property
+ def binding_failure_conditions(self):
+ """Gets the binding_failure_conditions of this V1Device. # noqa: E501
+
+ BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binding_failure_conditions of this V1Device. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._binding_failure_conditions
+
+ @binding_failure_conditions.setter
+ def binding_failure_conditions(self, binding_failure_conditions):
+ """Sets the binding_failure_conditions of this V1Device.
+
+ BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binding_failure_conditions: The binding_failure_conditions of this V1Device. # noqa: E501
+ :type: list[str]
+ """
+
+ self._binding_failure_conditions = binding_failure_conditions
+
+ @property
+ def binds_to_node(self):
+ """Gets the binds_to_node of this V1Device. # noqa: E501
+
+ BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binds_to_node of this V1Device. # noqa: E501
+ :rtype: bool
+ """
+ return self._binds_to_node
+
+ @binds_to_node.setter
+ def binds_to_node(self, binds_to_node):
+ """Sets the binds_to_node of this V1Device.
+
+ BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binds_to_node: The binds_to_node of this V1Device. # noqa: E501
+ :type: bool
+ """
+
+ self._binds_to_node = binds_to_node
+
+ @property
+ def capacity(self):
+ """Gets the capacity of this V1Device. # noqa: E501
+
+ Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. # noqa: E501
+
+ :return: The capacity of this V1Device. # noqa: E501
+ :rtype: dict(str, V1DeviceCapacity)
+ """
+ return self._capacity
+
+ @capacity.setter
+ def capacity(self, capacity):
+ """Sets the capacity of this V1Device.
+
+ Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. # noqa: E501
+
+ :param capacity: The capacity of this V1Device. # noqa: E501
+ :type: dict(str, V1DeviceCapacity)
+ """
+
+ self._capacity = capacity
+
+ @property
+ def consumes_counters(self):
+ """Gets the consumes_counters of this V1Device. # noqa: E501
+
+ ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). # noqa: E501
+
+ :return: The consumes_counters of this V1Device. # noqa: E501
+ :rtype: list[V1DeviceCounterConsumption]
+ """
+ return self._consumes_counters
+
+ @consumes_counters.setter
+ def consumes_counters(self, consumes_counters):
+ """Sets the consumes_counters of this V1Device.
+
+ ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). # noqa: E501
+
+ :param consumes_counters: The consumes_counters of this V1Device. # noqa: E501
+ :type: list[V1DeviceCounterConsumption]
+ """
+
+ self._consumes_counters = consumes_counters
+
+ @property
+ def name(self):
+ """Gets the name of this V1Device. # noqa: E501
+
+ Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. # noqa: E501
+
+ :return: The name of this V1Device. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this V1Device.
+
+ Name is unique identifier among all devices managed by the driver in the pool. It must be a DNS label. # noqa: E501
+
+ :param name: The name of this V1Device. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
+
+ self._name = name
+
+ @property
+ def node_name(self):
+ """Gets the node_name of this V1Device. # noqa: E501
+
+ NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. # noqa: E501
+
+ :return: The node_name of this V1Device. # noqa: E501
+ :rtype: str
+ """
+ return self._node_name
+
+ @node_name.setter
+ def node_name(self, node_name):
+ """Sets the node_name of this V1Device.
+
+ NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. # noqa: E501
+
+ :param node_name: The node_name of this V1Device. # noqa: E501
+ :type: str
+ """
+
+ self._node_name = node_name
+
+ @property
+ def node_selector(self):
+ """Gets the node_selector of this V1Device. # noqa: E501
+
+
+ :return: The node_selector of this V1Device. # noqa: E501
+ :rtype: V1NodeSelector
+ """
+ return self._node_selector
+
+ @node_selector.setter
+ def node_selector(self, node_selector):
+ """Sets the node_selector of this V1Device.
+
+
+ :param node_selector: The node_selector of this V1Device. # noqa: E501
+ :type: V1NodeSelector
+ """
+
+ self._node_selector = node_selector
+
+ @property
+ def taints(self):
+ """Gets the taints of this V1Device. # noqa: E501
+
+ If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501
+
+ :return: The taints of this V1Device. # noqa: E501
+ :rtype: list[V1DeviceTaint]
+ """
+ return self._taints
+
+ @taints.setter
+ def taints(self, taints):
+ """Sets the taints of this V1Device.
+
+ If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501
+
+ :param taints: The taints of this V1Device. # noqa: E501
+ :type: list[V1DeviceTaint]
+ """
+
+ self._taints = taints
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1Device):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1Device):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_allocation_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_allocation_configuration.py
index 4fa7345fe2d..39977c79cc7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_allocation_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_allocation_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3DeviceAllocationConfiguration(object):
+class V1DeviceAllocationConfiguration(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -33,7 +33,7 @@ class V1alpha3DeviceAllocationConfiguration(object):
and the value is json key in definition.
"""
openapi_types = {
- 'opaque': 'V1alpha3OpaqueDeviceConfiguration',
+ 'opaque': 'V1OpaqueDeviceConfiguration',
'requests': 'list[str]',
'source': 'str'
}
@@ -45,7 +45,7 @@ class V1alpha3DeviceAllocationConfiguration(object):
}
def __init__(self, opaque=None, requests=None, source=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceAllocationConfiguration - a model defined in OpenAPI""" # noqa: E501
+ """V1DeviceAllocationConfiguration - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -63,43 +63,43 @@ class V1alpha3DeviceAllocationConfiguration(object):
@property
def opaque(self):
- """Gets the opaque of this V1alpha3DeviceAllocationConfiguration. # noqa: E501
+ """Gets the opaque of this V1DeviceAllocationConfiguration. # noqa: E501
- :return: The opaque of this V1alpha3DeviceAllocationConfiguration. # noqa: E501
- :rtype: V1alpha3OpaqueDeviceConfiguration
+ :return: The opaque of this V1DeviceAllocationConfiguration. # noqa: E501
+ :rtype: V1OpaqueDeviceConfiguration
"""
return self._opaque
@opaque.setter
def opaque(self, opaque):
- """Sets the opaque of this V1alpha3DeviceAllocationConfiguration.
+ """Sets the opaque of this V1DeviceAllocationConfiguration.
- :param opaque: The opaque of this V1alpha3DeviceAllocationConfiguration. # noqa: E501
- :type: V1alpha3OpaqueDeviceConfiguration
+ :param opaque: The opaque of this V1DeviceAllocationConfiguration. # noqa: E501
+ :type: V1OpaqueDeviceConfiguration
"""
self._opaque = opaque
@property
def requests(self):
- """Gets the requests of this V1alpha3DeviceAllocationConfiguration. # noqa: E501
+ """Gets the requests of this V1DeviceAllocationConfiguration. # noqa: E501
Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. # noqa: E501
- :return: The requests of this V1alpha3DeviceAllocationConfiguration. # noqa: E501
+ :return: The requests of this V1DeviceAllocationConfiguration. # noqa: E501
:rtype: list[str]
"""
return self._requests
@requests.setter
def requests(self, requests):
- """Sets the requests of this V1alpha3DeviceAllocationConfiguration.
+ """Sets the requests of this V1DeviceAllocationConfiguration.
Requests lists the names of requests where the configuration applies. If empty, its applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. # noqa: E501
- :param requests: The requests of this V1alpha3DeviceAllocationConfiguration. # noqa: E501
+ :param requests: The requests of this V1DeviceAllocationConfiguration. # noqa: E501
:type: list[str]
"""
@@ -107,22 +107,22 @@ class V1alpha3DeviceAllocationConfiguration(object):
@property
def source(self):
- """Gets the source of this V1alpha3DeviceAllocationConfiguration. # noqa: E501
+ """Gets the source of this V1DeviceAllocationConfiguration. # noqa: E501
Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim. # noqa: E501
- :return: The source of this V1alpha3DeviceAllocationConfiguration. # noqa: E501
+ :return: The source of this V1DeviceAllocationConfiguration. # noqa: E501
:rtype: str
"""
return self._source
@source.setter
def source(self, source):
- """Sets the source of this V1alpha3DeviceAllocationConfiguration.
+ """Sets the source of this V1DeviceAllocationConfiguration.
Source records whether the configuration comes from a class and thus is not something that a normal user would have been able to set or from a claim. # noqa: E501
- :param source: The source of this V1alpha3DeviceAllocationConfiguration. # noqa: E501
+ :param source: The source of this V1DeviceAllocationConfiguration. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and source is None: # noqa: E501
@@ -164,14 +164,14 @@ class V1alpha3DeviceAllocationConfiguration(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceAllocationConfiguration):
+ if not isinstance(other, V1DeviceAllocationConfiguration):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceAllocationConfiguration):
+ if not isinstance(other, V1DeviceAllocationConfiguration):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_allocation_result.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_allocation_result.py
index 77d98ed200b..0296674a9c6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_allocation_result.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_allocation_result.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3DeviceAllocationResult(object):
+class V1DeviceAllocationResult(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -33,8 +33,8 @@ class V1alpha3DeviceAllocationResult(object):
and the value is json key in definition.
"""
openapi_types = {
- 'config': 'list[V1alpha3DeviceAllocationConfiguration]',
- 'results': 'list[V1alpha3DeviceRequestAllocationResult]'
+ 'config': 'list[V1DeviceAllocationConfiguration]',
+ 'results': 'list[V1DeviceRequestAllocationResult]'
}
attribute_map = {
@@ -43,7 +43,7 @@ class V1alpha3DeviceAllocationResult(object):
}
def __init__(self, config=None, results=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceAllocationResult - a model defined in OpenAPI""" # noqa: E501
+ """V1DeviceAllocationResult - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -59,46 +59,46 @@ class V1alpha3DeviceAllocationResult(object):
@property
def config(self):
- """Gets the config of this V1alpha3DeviceAllocationResult. # noqa: E501
+ """Gets the config of this V1DeviceAllocationResult. # noqa: E501
This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. # noqa: E501
- :return: The config of this V1alpha3DeviceAllocationResult. # noqa: E501
- :rtype: list[V1alpha3DeviceAllocationConfiguration]
+ :return: The config of this V1DeviceAllocationResult. # noqa: E501
+ :rtype: list[V1DeviceAllocationConfiguration]
"""
return self._config
@config.setter
def config(self, config):
- """Sets the config of this V1alpha3DeviceAllocationResult.
+ """Sets the config of this V1DeviceAllocationResult.
This field is a combination of all the claim and class configuration parameters. Drivers can distinguish between those based on a flag. This includes configuration parameters for drivers which have no allocated devices in the result because it is up to the drivers which configuration parameters they support. They can silently ignore unknown configuration parameters. # noqa: E501
- :param config: The config of this V1alpha3DeviceAllocationResult. # noqa: E501
- :type: list[V1alpha3DeviceAllocationConfiguration]
+ :param config: The config of this V1DeviceAllocationResult. # noqa: E501
+ :type: list[V1DeviceAllocationConfiguration]
"""
self._config = config
@property
def results(self):
- """Gets the results of this V1alpha3DeviceAllocationResult. # noqa: E501
+ """Gets the results of this V1DeviceAllocationResult. # noqa: E501
Results lists all allocated devices. # noqa: E501
- :return: The results of this V1alpha3DeviceAllocationResult. # noqa: E501
- :rtype: list[V1alpha3DeviceRequestAllocationResult]
+ :return: The results of this V1DeviceAllocationResult. # noqa: E501
+ :rtype: list[V1DeviceRequestAllocationResult]
"""
return self._results
@results.setter
def results(self, results):
- """Sets the results of this V1alpha3DeviceAllocationResult.
+ """Sets the results of this V1DeviceAllocationResult.
Results lists all allocated devices. # noqa: E501
- :param results: The results of this V1alpha3DeviceAllocationResult. # noqa: E501
- :type: list[V1alpha3DeviceRequestAllocationResult]
+ :param results: The results of this V1DeviceAllocationResult. # noqa: E501
+ :type: list[V1DeviceRequestAllocationResult]
"""
self._results = results
@@ -137,14 +137,14 @@ class V1alpha3DeviceAllocationResult(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceAllocationResult):
+ if not isinstance(other, V1DeviceAllocationResult):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceAllocationResult):
+ if not isinstance(other, V1DeviceAllocationResult):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_attribute.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_attribute.py
index 7551a821954..1f5701c9bd0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_attribute.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_attribute.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3DeviceAttribute(object):
+class V1DeviceAttribute(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -47,7 +47,7 @@ class V1alpha3DeviceAttribute(object):
}
def __init__(self, bool=None, int=None, string=None, version=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceAttribute - a model defined in OpenAPI""" # noqa: E501
+ """V1DeviceAttribute - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -69,22 +69,22 @@ class V1alpha3DeviceAttribute(object):
@property
def bool(self):
- """Gets the bool of this V1alpha3DeviceAttribute. # noqa: E501
+ """Gets the bool of this V1DeviceAttribute. # noqa: E501
BoolValue is a true/false value. # noqa: E501
- :return: The bool of this V1alpha3DeviceAttribute. # noqa: E501
+ :return: The bool of this V1DeviceAttribute. # noqa: E501
:rtype: bool
"""
return self._bool
@bool.setter
def bool(self, bool):
- """Sets the bool of this V1alpha3DeviceAttribute.
+ """Sets the bool of this V1DeviceAttribute.
BoolValue is a true/false value. # noqa: E501
- :param bool: The bool of this V1alpha3DeviceAttribute. # noqa: E501
+ :param bool: The bool of this V1DeviceAttribute. # noqa: E501
:type: bool
"""
@@ -92,22 +92,22 @@ class V1alpha3DeviceAttribute(object):
@property
def int(self):
- """Gets the int of this V1alpha3DeviceAttribute. # noqa: E501
+ """Gets the int of this V1DeviceAttribute. # noqa: E501
IntValue is a number. # noqa: E501
- :return: The int of this V1alpha3DeviceAttribute. # noqa: E501
+ :return: The int of this V1DeviceAttribute. # noqa: E501
:rtype: int
"""
return self._int
@int.setter
def int(self, int):
- """Sets the int of this V1alpha3DeviceAttribute.
+ """Sets the int of this V1DeviceAttribute.
IntValue is a number. # noqa: E501
- :param int: The int of this V1alpha3DeviceAttribute. # noqa: E501
+ :param int: The int of this V1DeviceAttribute. # noqa: E501
:type: int
"""
@@ -115,22 +115,22 @@ class V1alpha3DeviceAttribute(object):
@property
def string(self):
- """Gets the string of this V1alpha3DeviceAttribute. # noqa: E501
+ """Gets the string of this V1DeviceAttribute. # noqa: E501
StringValue is a string. Must not be longer than 64 characters. # noqa: E501
- :return: The string of this V1alpha3DeviceAttribute. # noqa: E501
+ :return: The string of this V1DeviceAttribute. # noqa: E501
:rtype: str
"""
return self._string
@string.setter
def string(self, string):
- """Sets the string of this V1alpha3DeviceAttribute.
+ """Sets the string of this V1DeviceAttribute.
StringValue is a string. Must not be longer than 64 characters. # noqa: E501
- :param string: The string of this V1alpha3DeviceAttribute. # noqa: E501
+ :param string: The string of this V1DeviceAttribute. # noqa: E501
:type: str
"""
@@ -138,22 +138,22 @@ class V1alpha3DeviceAttribute(object):
@property
def version(self):
- """Gets the version of this V1alpha3DeviceAttribute. # noqa: E501
+ """Gets the version of this V1DeviceAttribute. # noqa: E501
VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. # noqa: E501
- :return: The version of this V1alpha3DeviceAttribute. # noqa: E501
+ :return: The version of this V1DeviceAttribute. # noqa: E501
:rtype: str
"""
return self._version
@version.setter
def version(self, version):
- """Sets the version of this V1alpha3DeviceAttribute.
+ """Sets the version of this V1DeviceAttribute.
VersionValue is a semantic version according to semver.org spec 2.0.0. Must not be longer than 64 characters. # noqa: E501
- :param version: The version of this V1alpha3DeviceAttribute. # noqa: E501
+ :param version: The version of this V1DeviceAttribute. # noqa: E501
:type: str
"""
@@ -193,14 +193,14 @@ class V1alpha3DeviceAttribute(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceAttribute):
+ if not isinstance(other, V1DeviceAttribute):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceAttribute):
+ if not isinstance(other, V1DeviceAttribute):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_device_capacity.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_capacity.py
new file mode 100644
index 00000000000..ed46a090722
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_capacity.py
@@ -0,0 +1,149 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1DeviceCapacity(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'request_policy': 'V1CapacityRequestPolicy',
+ 'value': 'str'
+ }
+
+ attribute_map = {
+ 'request_policy': 'requestPolicy',
+ 'value': 'value'
+ }
+
+ def __init__(self, request_policy=None, value=None, local_vars_configuration=None): # noqa: E501
+ """V1DeviceCapacity - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._request_policy = None
+ self._value = None
+ self.discriminator = None
+
+ if request_policy is not None:
+ self.request_policy = request_policy
+ self.value = value
+
+ @property
+ def request_policy(self):
+ """Gets the request_policy of this V1DeviceCapacity. # noqa: E501
+
+
+ :return: The request_policy of this V1DeviceCapacity. # noqa: E501
+ :rtype: V1CapacityRequestPolicy
+ """
+ return self._request_policy
+
+ @request_policy.setter
+ def request_policy(self, request_policy):
+ """Sets the request_policy of this V1DeviceCapacity.
+
+
+ :param request_policy: The request_policy of this V1DeviceCapacity. # noqa: E501
+ :type: V1CapacityRequestPolicy
+ """
+
+ self._request_policy = request_policy
+
+ @property
+ def value(self):
+ """Gets the value of this V1DeviceCapacity. # noqa: E501
+
+ Value defines how much of a certain capacity that device has. This field reflects the fixed total capacity and does not change. The consumed amount is tracked separately by scheduler and does not affect this value. # noqa: E501
+
+ :return: The value of this V1DeviceCapacity. # noqa: E501
+ :rtype: str
+ """
+ return self._value
+
+ @value.setter
+ def value(self, value):
+ """Sets the value of this V1DeviceCapacity.
+
+ Value defines how much of a certain capacity that device has. This field reflects the fixed total capacity and does not change. The consumed amount is tracked separately by scheduler and does not affect this value. # noqa: E501
+
+ :param value: The value of this V1DeviceCapacity. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and value is None: # noqa: E501
+ raise ValueError("Invalid value for `value`, must not be `None`") # noqa: E501
+
+ self._value = value
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1DeviceCapacity):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1DeviceCapacity):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_claim.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_claim.py
index 81f5dac16f7..542c611d671 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_claim.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_claim.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3DeviceClaim(object):
+class V1DeviceClaim(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -33,9 +33,9 @@ class V1alpha3DeviceClaim(object):
and the value is json key in definition.
"""
openapi_types = {
- 'config': 'list[V1alpha3DeviceClaimConfiguration]',
- 'constraints': 'list[V1alpha3DeviceConstraint]',
- 'requests': 'list[V1alpha3DeviceRequest]'
+ 'config': 'list[V1DeviceClaimConfiguration]',
+ 'constraints': 'list[V1DeviceConstraint]',
+ 'requests': 'list[V1DeviceRequest]'
}
attribute_map = {
@@ -45,7 +45,7 @@ class V1alpha3DeviceClaim(object):
}
def __init__(self, config=None, constraints=None, requests=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceClaim - a model defined in OpenAPI""" # noqa: E501
+ """V1DeviceClaim - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -64,69 +64,69 @@ class V1alpha3DeviceClaim(object):
@property
def config(self):
- """Gets the config of this V1alpha3DeviceClaim. # noqa: E501
+ """Gets the config of this V1DeviceClaim. # noqa: E501
This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. # noqa: E501
- :return: The config of this V1alpha3DeviceClaim. # noqa: E501
- :rtype: list[V1alpha3DeviceClaimConfiguration]
+ :return: The config of this V1DeviceClaim. # noqa: E501
+ :rtype: list[V1DeviceClaimConfiguration]
"""
return self._config
@config.setter
def config(self, config):
- """Sets the config of this V1alpha3DeviceClaim.
+ """Sets the config of this V1DeviceClaim.
This field holds configuration for multiple potential drivers which could satisfy requests in this claim. It is ignored while allocating the claim. # noqa: E501
- :param config: The config of this V1alpha3DeviceClaim. # noqa: E501
- :type: list[V1alpha3DeviceClaimConfiguration]
+ :param config: The config of this V1DeviceClaim. # noqa: E501
+ :type: list[V1DeviceClaimConfiguration]
"""
self._config = config
@property
def constraints(self):
- """Gets the constraints of this V1alpha3DeviceClaim. # noqa: E501
+ """Gets the constraints of this V1DeviceClaim. # noqa: E501
These constraints must be satisfied by the set of devices that get allocated for the claim. # noqa: E501
- :return: The constraints of this V1alpha3DeviceClaim. # noqa: E501
- :rtype: list[V1alpha3DeviceConstraint]
+ :return: The constraints of this V1DeviceClaim. # noqa: E501
+ :rtype: list[V1DeviceConstraint]
"""
return self._constraints
@constraints.setter
def constraints(self, constraints):
- """Sets the constraints of this V1alpha3DeviceClaim.
+ """Sets the constraints of this V1DeviceClaim.
These constraints must be satisfied by the set of devices that get allocated for the claim. # noqa: E501
- :param constraints: The constraints of this V1alpha3DeviceClaim. # noqa: E501
- :type: list[V1alpha3DeviceConstraint]
+ :param constraints: The constraints of this V1DeviceClaim. # noqa: E501
+ :type: list[V1DeviceConstraint]
"""
self._constraints = constraints
@property
def requests(self):
- """Gets the requests of this V1alpha3DeviceClaim. # noqa: E501
+ """Gets the requests of this V1DeviceClaim. # noqa: E501
Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. # noqa: E501
- :return: The requests of this V1alpha3DeviceClaim. # noqa: E501
- :rtype: list[V1alpha3DeviceRequest]
+ :return: The requests of this V1DeviceClaim. # noqa: E501
+ :rtype: list[V1DeviceRequest]
"""
return self._requests
@requests.setter
def requests(self, requests):
- """Sets the requests of this V1alpha3DeviceClaim.
+ """Sets the requests of this V1DeviceClaim.
Requests represent individual requests for distinct devices which must all be satisfied. If empty, nothing needs to be allocated. # noqa: E501
- :param requests: The requests of this V1alpha3DeviceClaim. # noqa: E501
- :type: list[V1alpha3DeviceRequest]
+ :param requests: The requests of this V1DeviceClaim. # noqa: E501
+ :type: list[V1DeviceRequest]
"""
self._requests = requests
@@ -165,14 +165,14 @@ class V1alpha3DeviceClaim(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceClaim):
+ if not isinstance(other, V1DeviceClaim):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceClaim):
+ if not isinstance(other, V1DeviceClaim):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_claim_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_claim_configuration.py
index d8e81d282e1..7d1622384fc 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_claim_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_claim_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3DeviceClaimConfiguration(object):
+class V1DeviceClaimConfiguration(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -33,7 +33,7 @@ class V1alpha3DeviceClaimConfiguration(object):
and the value is json key in definition.
"""
openapi_types = {
- 'opaque': 'V1alpha3OpaqueDeviceConfiguration',
+ 'opaque': 'V1OpaqueDeviceConfiguration',
'requests': 'list[str]'
}
@@ -43,7 +43,7 @@ class V1alpha3DeviceClaimConfiguration(object):
}
def __init__(self, opaque=None, requests=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceClaimConfiguration - a model defined in OpenAPI""" # noqa: E501
+ """V1DeviceClaimConfiguration - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -59,43 +59,43 @@ class V1alpha3DeviceClaimConfiguration(object):
@property
def opaque(self):
- """Gets the opaque of this V1alpha3DeviceClaimConfiguration. # noqa: E501
+ """Gets the opaque of this V1DeviceClaimConfiguration. # noqa: E501
- :return: The opaque of this V1alpha3DeviceClaimConfiguration. # noqa: E501
- :rtype: V1alpha3OpaqueDeviceConfiguration
+ :return: The opaque of this V1DeviceClaimConfiguration. # noqa: E501
+ :rtype: V1OpaqueDeviceConfiguration
"""
return self._opaque
@opaque.setter
def opaque(self, opaque):
- """Sets the opaque of this V1alpha3DeviceClaimConfiguration.
+ """Sets the opaque of this V1DeviceClaimConfiguration.
- :param opaque: The opaque of this V1alpha3DeviceClaimConfiguration. # noqa: E501
- :type: V1alpha3OpaqueDeviceConfiguration
+ :param opaque: The opaque of this V1DeviceClaimConfiguration. # noqa: E501
+ :type: V1OpaqueDeviceConfiguration
"""
self._opaque = opaque
@property
def requests(self):
- """Gets the requests of this V1alpha3DeviceClaimConfiguration. # noqa: E501
+ """Gets the requests of this V1DeviceClaimConfiguration. # noqa: E501
Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. # noqa: E501
- :return: The requests of this V1alpha3DeviceClaimConfiguration. # noqa: E501
+ :return: The requests of this V1DeviceClaimConfiguration. # noqa: E501
:rtype: list[str]
"""
return self._requests
@requests.setter
def requests(self, requests):
- """Sets the requests of this V1alpha3DeviceClaimConfiguration.
+ """Sets the requests of this V1DeviceClaimConfiguration.
Requests lists the names of requests where the configuration applies. If empty, it applies to all requests. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the configuration applies to all subrequests. # noqa: E501
- :param requests: The requests of this V1alpha3DeviceClaimConfiguration. # noqa: E501
+ :param requests: The requests of this V1DeviceClaimConfiguration. # noqa: E501
:type: list[str]
"""
@@ -135,14 +135,14 @@ class V1alpha3DeviceClaimConfiguration(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceClaimConfiguration):
+ if not isinstance(other, V1DeviceClaimConfiguration):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceClaimConfiguration):
+ if not isinstance(other, V1DeviceClaimConfiguration):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_slice.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_class.py
index a157521eb08..f1c37fdffa7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_slice.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_class.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3ResourceSlice(object):
+class V1DeviceClass(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -36,7 +36,7 @@ class V1alpha3ResourceSlice(object):
'api_version': 'str',
'kind': 'str',
'metadata': 'V1ObjectMeta',
- 'spec': 'V1alpha3ResourceSliceSpec'
+ 'spec': 'V1DeviceClassSpec'
}
attribute_map = {
@@ -47,7 +47,7 @@ class V1alpha3ResourceSlice(object):
}
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3ResourceSlice - a model defined in OpenAPI""" # noqa: E501
+ """V1DeviceClass - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -68,22 +68,22 @@ class V1alpha3ResourceSlice(object):
@property
def api_version(self):
- """Gets the api_version of this V1alpha3ResourceSlice. # noqa: E501
+ """Gets the api_version of this V1DeviceClass. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :return: The api_version of this V1alpha3ResourceSlice. # noqa: E501
+ :return: The api_version of this V1DeviceClass. # noqa: E501
:rtype: str
"""
return self._api_version
@api_version.setter
def api_version(self, api_version):
- """Sets the api_version of this V1alpha3ResourceSlice.
+ """Sets the api_version of this V1DeviceClass.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :param api_version: The api_version of this V1alpha3ResourceSlice. # noqa: E501
+ :param api_version: The api_version of this V1DeviceClass. # noqa: E501
:type: str
"""
@@ -91,22 +91,22 @@ class V1alpha3ResourceSlice(object):
@property
def kind(self):
- """Gets the kind of this V1alpha3ResourceSlice. # noqa: E501
+ """Gets the kind of this V1DeviceClass. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :return: The kind of this V1alpha3ResourceSlice. # noqa: E501
+ :return: The kind of this V1DeviceClass. # noqa: E501
:rtype: str
"""
return self._kind
@kind.setter
def kind(self, kind):
- """Sets the kind of this V1alpha3ResourceSlice.
+ """Sets the kind of this V1DeviceClass.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :param kind: The kind of this V1alpha3ResourceSlice. # noqa: E501
+ :param kind: The kind of this V1DeviceClass. # noqa: E501
:type: str
"""
@@ -114,20 +114,20 @@ class V1alpha3ResourceSlice(object):
@property
def metadata(self):
- """Gets the metadata of this V1alpha3ResourceSlice. # noqa: E501
+ """Gets the metadata of this V1DeviceClass. # noqa: E501
- :return: The metadata of this V1alpha3ResourceSlice. # noqa: E501
+ :return: The metadata of this V1DeviceClass. # noqa: E501
:rtype: V1ObjectMeta
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
- """Sets the metadata of this V1alpha3ResourceSlice.
+ """Sets the metadata of this V1DeviceClass.
- :param metadata: The metadata of this V1alpha3ResourceSlice. # noqa: E501
+ :param metadata: The metadata of this V1DeviceClass. # noqa: E501
:type: V1ObjectMeta
"""
@@ -135,21 +135,21 @@ class V1alpha3ResourceSlice(object):
@property
def spec(self):
- """Gets the spec of this V1alpha3ResourceSlice. # noqa: E501
+ """Gets the spec of this V1DeviceClass. # noqa: E501
- :return: The spec of this V1alpha3ResourceSlice. # noqa: E501
- :rtype: V1alpha3ResourceSliceSpec
+ :return: The spec of this V1DeviceClass. # noqa: E501
+ :rtype: V1DeviceClassSpec
"""
return self._spec
@spec.setter
def spec(self, spec):
- """Sets the spec of this V1alpha3ResourceSlice.
+ """Sets the spec of this V1DeviceClass.
- :param spec: The spec of this V1alpha3ResourceSlice. # noqa: E501
- :type: V1alpha3ResourceSliceSpec
+ :param spec: The spec of this V1DeviceClass. # noqa: E501
+ :type: V1DeviceClassSpec
"""
if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501
raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501
@@ -190,14 +190,14 @@ class V1alpha3ResourceSlice(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3ResourceSlice):
+ if not isinstance(other, V1DeviceClass):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3ResourceSlice):
+ if not isinstance(other, V1DeviceClass):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_class_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_class_configuration.py
index 221e0a8ba8f..f2ca5b7cd49 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_class_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_class_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3DeviceClassConfiguration(object):
+class V1DeviceClassConfiguration(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -33,7 +33,7 @@ class V1alpha3DeviceClassConfiguration(object):
and the value is json key in definition.
"""
openapi_types = {
- 'opaque': 'V1alpha3OpaqueDeviceConfiguration'
+ 'opaque': 'V1OpaqueDeviceConfiguration'
}
attribute_map = {
@@ -41,7 +41,7 @@ class V1alpha3DeviceClassConfiguration(object):
}
def __init__(self, opaque=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceClassConfiguration - a model defined in OpenAPI""" # noqa: E501
+ """V1DeviceClassConfiguration - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -54,21 +54,21 @@ class V1alpha3DeviceClassConfiguration(object):
@property
def opaque(self):
- """Gets the opaque of this V1alpha3DeviceClassConfiguration. # noqa: E501
+ """Gets the opaque of this V1DeviceClassConfiguration. # noqa: E501
- :return: The opaque of this V1alpha3DeviceClassConfiguration. # noqa: E501
- :rtype: V1alpha3OpaqueDeviceConfiguration
+ :return: The opaque of this V1DeviceClassConfiguration. # noqa: E501
+ :rtype: V1OpaqueDeviceConfiguration
"""
return self._opaque
@opaque.setter
def opaque(self, opaque):
- """Sets the opaque of this V1alpha3DeviceClassConfiguration.
+ """Sets the opaque of this V1DeviceClassConfiguration.
- :param opaque: The opaque of this V1alpha3DeviceClassConfiguration. # noqa: E501
- :type: V1alpha3OpaqueDeviceConfiguration
+ :param opaque: The opaque of this V1DeviceClassConfiguration. # noqa: E501
+ :type: V1OpaqueDeviceConfiguration
"""
self._opaque = opaque
@@ -107,14 +107,14 @@ class V1alpha3DeviceClassConfiguration(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceClassConfiguration):
+ if not isinstance(other, V1DeviceClassConfiguration):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceClassConfiguration):
+ if not isinstance(other, V1DeviceClassConfiguration):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_class_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_class_list.py
index 6b0b98483b9..25e79a8f509 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_class_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_class_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3DeviceClassList(object):
+class V1DeviceClassList(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -34,7 +34,7 @@ class V1alpha3DeviceClassList(object):
"""
openapi_types = {
'api_version': 'str',
- 'items': 'list[V1alpha3DeviceClass]',
+ 'items': 'list[V1DeviceClass]',
'kind': 'str',
'metadata': 'V1ListMeta'
}
@@ -47,7 +47,7 @@ class V1alpha3DeviceClassList(object):
}
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceClassList - a model defined in OpenAPI""" # noqa: E501
+ """V1DeviceClassList - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -68,22 +68,22 @@ class V1alpha3DeviceClassList(object):
@property
def api_version(self):
- """Gets the api_version of this V1alpha3DeviceClassList. # noqa: E501
+ """Gets the api_version of this V1DeviceClassList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :return: The api_version of this V1alpha3DeviceClassList. # noqa: E501
+ :return: The api_version of this V1DeviceClassList. # noqa: E501
:rtype: str
"""
return self._api_version
@api_version.setter
def api_version(self, api_version):
- """Sets the api_version of this V1alpha3DeviceClassList.
+ """Sets the api_version of this V1DeviceClassList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :param api_version: The api_version of this V1alpha3DeviceClassList. # noqa: E501
+ :param api_version: The api_version of this V1DeviceClassList. # noqa: E501
:type: str
"""
@@ -91,23 +91,23 @@ class V1alpha3DeviceClassList(object):
@property
def items(self):
- """Gets the items of this V1alpha3DeviceClassList. # noqa: E501
+ """Gets the items of this V1DeviceClassList. # noqa: E501
Items is the list of resource classes. # noqa: E501
- :return: The items of this V1alpha3DeviceClassList. # noqa: E501
- :rtype: list[V1alpha3DeviceClass]
+ :return: The items of this V1DeviceClassList. # noqa: E501
+ :rtype: list[V1DeviceClass]
"""
return self._items
@items.setter
def items(self, items):
- """Sets the items of this V1alpha3DeviceClassList.
+ """Sets the items of this V1DeviceClassList.
Items is the list of resource classes. # noqa: E501
- :param items: The items of this V1alpha3DeviceClassList. # noqa: E501
- :type: list[V1alpha3DeviceClass]
+ :param items: The items of this V1DeviceClassList. # noqa: E501
+ :type: list[V1DeviceClass]
"""
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
@@ -116,22 +116,22 @@ class V1alpha3DeviceClassList(object):
@property
def kind(self):
- """Gets the kind of this V1alpha3DeviceClassList. # noqa: E501
+ """Gets the kind of this V1DeviceClassList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :return: The kind of this V1alpha3DeviceClassList. # noqa: E501
+ :return: The kind of this V1DeviceClassList. # noqa: E501
:rtype: str
"""
return self._kind
@kind.setter
def kind(self, kind):
- """Sets the kind of this V1alpha3DeviceClassList.
+ """Sets the kind of this V1DeviceClassList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :param kind: The kind of this V1alpha3DeviceClassList. # noqa: E501
+ :param kind: The kind of this V1DeviceClassList. # noqa: E501
:type: str
"""
@@ -139,20 +139,20 @@ class V1alpha3DeviceClassList(object):
@property
def metadata(self):
- """Gets the metadata of this V1alpha3DeviceClassList. # noqa: E501
+ """Gets the metadata of this V1DeviceClassList. # noqa: E501
- :return: The metadata of this V1alpha3DeviceClassList. # noqa: E501
+ :return: The metadata of this V1DeviceClassList. # noqa: E501
:rtype: V1ListMeta
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
- """Sets the metadata of this V1alpha3DeviceClassList.
+ """Sets the metadata of this V1DeviceClassList.
- :param metadata: The metadata of this V1alpha3DeviceClassList. # noqa: E501
+ :param metadata: The metadata of this V1DeviceClassList. # noqa: E501
:type: V1ListMeta
"""
@@ -192,14 +192,14 @@ class V1alpha3DeviceClassList(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceClassList):
+ if not isinstance(other, V1DeviceClassList):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceClassList):
+ if not isinstance(other, V1DeviceClassList):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_class_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_class_spec.py
index fb370946292..6a565b97acf 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_class_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_class_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3DeviceClassSpec(object):
+class V1DeviceClassSpec(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -33,72 +33,100 @@ class V1alpha3DeviceClassSpec(object):
and the value is json key in definition.
"""
openapi_types = {
- 'config': 'list[V1alpha3DeviceClassConfiguration]',
- 'selectors': 'list[V1alpha3DeviceSelector]'
+ 'config': 'list[V1DeviceClassConfiguration]',
+ 'extended_resource_name': 'str',
+ 'selectors': 'list[V1DeviceSelector]'
}
attribute_map = {
'config': 'config',
+ 'extended_resource_name': 'extendedResourceName',
'selectors': 'selectors'
}
- def __init__(self, config=None, selectors=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceClassSpec - a model defined in OpenAPI""" # noqa: E501
+ def __init__(self, config=None, extended_resource_name=None, selectors=None, local_vars_configuration=None): # noqa: E501
+ """V1DeviceClassSpec - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._config = None
+ self._extended_resource_name = None
self._selectors = None
self.discriminator = None
if config is not None:
self.config = config
+ if extended_resource_name is not None:
+ self.extended_resource_name = extended_resource_name
if selectors is not None:
self.selectors = selectors
@property
def config(self):
- """Gets the config of this V1alpha3DeviceClassSpec. # noqa: E501
+ """Gets the config of this V1DeviceClassSpec. # noqa: E501
Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim. # noqa: E501
- :return: The config of this V1alpha3DeviceClassSpec. # noqa: E501
- :rtype: list[V1alpha3DeviceClassConfiguration]
+ :return: The config of this V1DeviceClassSpec. # noqa: E501
+ :rtype: list[V1DeviceClassConfiguration]
"""
return self._config
@config.setter
def config(self, config):
- """Sets the config of this V1alpha3DeviceClassSpec.
+ """Sets the config of this V1DeviceClassSpec.
Config defines configuration parameters that apply to each device that is claimed via this class. Some classses may potentially be satisfied by multiple drivers, so each instance of a vendor configuration applies to exactly one driver. They are passed to the driver, but are not considered while allocating the claim. # noqa: E501
- :param config: The config of this V1alpha3DeviceClassSpec. # noqa: E501
- :type: list[V1alpha3DeviceClassConfiguration]
+ :param config: The config of this V1DeviceClassSpec. # noqa: E501
+ :type: list[V1DeviceClassConfiguration]
"""
self._config = config
@property
+ def extended_resource_name(self):
+ """Gets the extended_resource_name of this V1DeviceClassSpec. # noqa: E501
+
+ ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. # noqa: E501
+
+ :return: The extended_resource_name of this V1DeviceClassSpec. # noqa: E501
+ :rtype: str
+ """
+ return self._extended_resource_name
+
+ @extended_resource_name.setter
+ def extended_resource_name(self, extended_resource_name):
+ """Sets the extended_resource_name of this V1DeviceClassSpec.
+
+ ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. # noqa: E501
+
+ :param extended_resource_name: The extended_resource_name of this V1DeviceClassSpec. # noqa: E501
+ :type: str
+ """
+
+ self._extended_resource_name = extended_resource_name
+
+ @property
def selectors(self):
- """Gets the selectors of this V1alpha3DeviceClassSpec. # noqa: E501
+ """Gets the selectors of this V1DeviceClassSpec. # noqa: E501
Each selector must be satisfied by a device which is claimed via this class. # noqa: E501
- :return: The selectors of this V1alpha3DeviceClassSpec. # noqa: E501
- :rtype: list[V1alpha3DeviceSelector]
+ :return: The selectors of this V1DeviceClassSpec. # noqa: E501
+ :rtype: list[V1DeviceSelector]
"""
return self._selectors
@selectors.setter
def selectors(self, selectors):
- """Sets the selectors of this V1alpha3DeviceClassSpec.
+ """Sets the selectors of this V1DeviceClassSpec.
Each selector must be satisfied by a device which is claimed via this class. # noqa: E501
- :param selectors: The selectors of this V1alpha3DeviceClassSpec. # noqa: E501
- :type: list[V1alpha3DeviceSelector]
+ :param selectors: The selectors of this V1DeviceClassSpec. # noqa: E501
+ :type: list[V1DeviceSelector]
"""
self._selectors = selectors
@@ -137,14 +165,14 @@ class V1alpha3DeviceClassSpec(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceClassSpec):
+ if not isinstance(other, V1DeviceClassSpec):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceClassSpec):
+ if not isinstance(other, V1DeviceClassSpec):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_constraint.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_constraint.py
index 46fd71a00e4..6f84dc3fc38 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_constraint.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_constraint.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3DeviceConstraint(object):
+class V1DeviceConstraint(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -33,48 +33,76 @@ class V1alpha3DeviceConstraint(object):
and the value is json key in definition.
"""
openapi_types = {
+ 'distinct_attribute': 'str',
'match_attribute': 'str',
'requests': 'list[str]'
}
attribute_map = {
+ 'distinct_attribute': 'distinctAttribute',
'match_attribute': 'matchAttribute',
'requests': 'requests'
}
- def __init__(self, match_attribute=None, requests=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceConstraint - a model defined in OpenAPI""" # noqa: E501
+ def __init__(self, distinct_attribute=None, match_attribute=None, requests=None, local_vars_configuration=None): # noqa: E501
+ """V1DeviceConstraint - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
+ self._distinct_attribute = None
self._match_attribute = None
self._requests = None
self.discriminator = None
+ if distinct_attribute is not None:
+ self.distinct_attribute = distinct_attribute
if match_attribute is not None:
self.match_attribute = match_attribute
if requests is not None:
self.requests = requests
@property
+ def distinct_attribute(self):
+ """Gets the distinct_attribute of this V1DeviceConstraint. # noqa: E501
+
+ DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. # noqa: E501
+
+ :return: The distinct_attribute of this V1DeviceConstraint. # noqa: E501
+ :rtype: str
+ """
+ return self._distinct_attribute
+
+ @distinct_attribute.setter
+ def distinct_attribute(self, distinct_attribute):
+ """Sets the distinct_attribute of this V1DeviceConstraint.
+
+ DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. # noqa: E501
+
+ :param distinct_attribute: The distinct_attribute of this V1DeviceConstraint. # noqa: E501
+ :type: str
+ """
+
+ self._distinct_attribute = distinct_attribute
+
+ @property
def match_attribute(self):
- """Gets the match_attribute of this V1alpha3DeviceConstraint. # noqa: E501
+ """Gets the match_attribute of this V1DeviceConstraint. # noqa: E501
MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. # noqa: E501
- :return: The match_attribute of this V1alpha3DeviceConstraint. # noqa: E501
+ :return: The match_attribute of this V1DeviceConstraint. # noqa: E501
:rtype: str
"""
return self._match_attribute
@match_attribute.setter
def match_attribute(self, match_attribute):
- """Sets the match_attribute of this V1alpha3DeviceConstraint.
+ """Sets the match_attribute of this V1DeviceConstraint.
MatchAttribute requires that all devices in question have this attribute and that its type and value are the same across those devices. For example, if you specified \"dra.example.com/numa\" (a hypothetical example!), then only devices in the same NUMA node will be chosen. A device which does not have that attribute will not be chosen. All devices should use a value of the same type for this attribute because that is part of its specification, but if one device doesn't, then it also will not be chosen. Must include the domain qualifier. # noqa: E501
- :param match_attribute: The match_attribute of this V1alpha3DeviceConstraint. # noqa: E501
+ :param match_attribute: The match_attribute of this V1DeviceConstraint. # noqa: E501
:type: str
"""
@@ -82,22 +110,22 @@ class V1alpha3DeviceConstraint(object):
@property
def requests(self):
- """Gets the requests of this V1alpha3DeviceConstraint. # noqa: E501
+ """Gets the requests of this V1DeviceConstraint. # noqa: E501
Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. # noqa: E501
- :return: The requests of this V1alpha3DeviceConstraint. # noqa: E501
+ :return: The requests of this V1DeviceConstraint. # noqa: E501
:rtype: list[str]
"""
return self._requests
@requests.setter
def requests(self, requests):
- """Sets the requests of this V1alpha3DeviceConstraint.
+ """Sets the requests of this V1DeviceConstraint.
Requests is a list of the one or more requests in this claim which must co-satisfy this constraint. If a request is fulfilled by multiple devices, then all of the devices must satisfy the constraint. If this is not specified, this constraint applies to all requests in this claim. References to subrequests must include the name of the main request and may include the subrequest using the format <main request>[/<subrequest>]. If just the main request is given, the constraint applies to all subrequests. # noqa: E501
- :param requests: The requests of this V1alpha3DeviceConstraint. # noqa: E501
+ :param requests: The requests of this V1DeviceConstraint. # noqa: E501
:type: list[str]
"""
@@ -137,14 +165,14 @@ class V1alpha3DeviceConstraint(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceConstraint):
+ if not isinstance(other, V1DeviceConstraint):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceConstraint):
+ if not isinstance(other, V1DeviceConstraint):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_counter_consumption.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_counter_consumption.py
index 4ee5c2b8005..2d9ae202746 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_counter_consumption.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_counter_consumption.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3DeviceCounterConsumption(object):
+class V1DeviceCounterConsumption(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -34,7 +34,7 @@ class V1alpha3DeviceCounterConsumption(object):
"""
openapi_types = {
'counter_set': 'str',
- 'counters': 'dict(str, V1alpha3Counter)'
+ 'counters': 'dict(str, V1Counter)'
}
attribute_map = {
@@ -43,7 +43,7 @@ class V1alpha3DeviceCounterConsumption(object):
}
def __init__(self, counter_set=None, counters=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceCounterConsumption - a model defined in OpenAPI""" # noqa: E501
+ """V1DeviceCounterConsumption - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -57,22 +57,22 @@ class V1alpha3DeviceCounterConsumption(object):
@property
def counter_set(self):
- """Gets the counter_set of this V1alpha3DeviceCounterConsumption. # noqa: E501
+ """Gets the counter_set of this V1DeviceCounterConsumption. # noqa: E501
- CounterSet defines the set from which the counters defined will be consumed. # noqa: E501
+ CounterSet is the name of the set from which the counters defined will be consumed. # noqa: E501
- :return: The counter_set of this V1alpha3DeviceCounterConsumption. # noqa: E501
+ :return: The counter_set of this V1DeviceCounterConsumption. # noqa: E501
:rtype: str
"""
return self._counter_set
@counter_set.setter
def counter_set(self, counter_set):
- """Sets the counter_set of this V1alpha3DeviceCounterConsumption.
+ """Sets the counter_set of this V1DeviceCounterConsumption.
- CounterSet defines the set from which the counters defined will be consumed. # noqa: E501
+ CounterSet is the name of the set from which the counters defined will be consumed. # noqa: E501
- :param counter_set: The counter_set of this V1alpha3DeviceCounterConsumption. # noqa: E501
+ :param counter_set: The counter_set of this V1DeviceCounterConsumption. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and counter_set is None: # noqa: E501
@@ -82,23 +82,23 @@ class V1alpha3DeviceCounterConsumption(object):
@property
def counters(self):
- """Gets the counters of this V1alpha3DeviceCounterConsumption. # noqa: E501
+ """Gets the counters of this V1DeviceCounterConsumption. # noqa: E501
- Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). # noqa: E501
+ Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). # noqa: E501
- :return: The counters of this V1alpha3DeviceCounterConsumption. # noqa: E501
- :rtype: dict(str, V1alpha3Counter)
+ :return: The counters of this V1DeviceCounterConsumption. # noqa: E501
+ :rtype: dict(str, V1Counter)
"""
return self._counters
@counters.setter
def counters(self, counters):
- """Sets the counters of this V1alpha3DeviceCounterConsumption.
+ """Sets the counters of this V1DeviceCounterConsumption.
- Counters defines the Counter that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). # noqa: E501
+ Counters defines the counters that will be consumed by the device. The maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each). # noqa: E501
- :param counters: The counters of this V1alpha3DeviceCounterConsumption. # noqa: E501
- :type: dict(str, V1alpha3Counter)
+ :param counters: The counters of this V1DeviceCounterConsumption. # noqa: E501
+ :type: dict(str, V1Counter)
"""
if self.local_vars_configuration.client_side_validation and counters is None: # noqa: E501
raise ValueError("Invalid value for `counters`, must not be `None`") # noqa: E501
@@ -139,14 +139,14 @@ class V1alpha3DeviceCounterConsumption(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceCounterConsumption):
+ if not isinstance(other, V1DeviceCounterConsumption):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceCounterConsumption):
+ if not isinstance(other, V1DeviceCounterConsumption):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_device_request.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_request.py
new file mode 100644
index 00000000000..be01eec4db0
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_request.py
@@ -0,0 +1,177 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1DeviceRequest(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'exactly': 'V1ExactDeviceRequest',
+ 'first_available': 'list[V1DeviceSubRequest]',
+ 'name': 'str'
+ }
+
+ attribute_map = {
+ 'exactly': 'exactly',
+ 'first_available': 'firstAvailable',
+ 'name': 'name'
+ }
+
+ def __init__(self, exactly=None, first_available=None, name=None, local_vars_configuration=None): # noqa: E501
+ """V1DeviceRequest - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._exactly = None
+ self._first_available = None
+ self._name = None
+ self.discriminator = None
+
+ if exactly is not None:
+ self.exactly = exactly
+ if first_available is not None:
+ self.first_available = first_available
+ self.name = name
+
+ @property
+ def exactly(self):
+ """Gets the exactly of this V1DeviceRequest. # noqa: E501
+
+
+ :return: The exactly of this V1DeviceRequest. # noqa: E501
+ :rtype: V1ExactDeviceRequest
+ """
+ return self._exactly
+
+ @exactly.setter
+ def exactly(self, exactly):
+ """Sets the exactly of this V1DeviceRequest.
+
+
+ :param exactly: The exactly of this V1DeviceRequest. # noqa: E501
+ :type: V1ExactDeviceRequest
+ """
+
+ self._exactly = exactly
+
+ @property
+ def first_available(self):
+ """Gets the first_available of this V1DeviceRequest. # noqa: E501
+
+ FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. # noqa: E501
+
+ :return: The first_available of this V1DeviceRequest. # noqa: E501
+ :rtype: list[V1DeviceSubRequest]
+ """
+ return self._first_available
+
+ @first_available.setter
+ def first_available(self, first_available):
+ """Sets the first_available of this V1DeviceRequest.
+
+ FirstAvailable contains subrequests, of which exactly one will be selected by the scheduler. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one can not be used. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. # noqa: E501
+
+ :param first_available: The first_available of this V1DeviceRequest. # noqa: E501
+ :type: list[V1DeviceSubRequest]
+ """
+
+ self._first_available = first_available
+
+ @property
+ def name(self):
+ """Gets the name of this V1DeviceRequest. # noqa: E501
+
+ Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler. Must be a DNS label. # noqa: E501
+
+ :return: The name of this V1DeviceRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._name
+
+ @name.setter
+ def name(self, name):
+ """Sets the name of this V1DeviceRequest.
+
+ Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. References using the name in the DeviceRequest will uniquely identify a request when the Exactly field is set. When the FirstAvailable field is set, a reference to the name of the DeviceRequest will match whatever subrequest is chosen by the scheduler. Must be a DNS label. # noqa: E501
+
+ :param name: The name of this V1DeviceRequest. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
+ raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
+
+ self._name = name
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1DeviceRequest):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1DeviceRequest):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_request_allocation_result.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_request_allocation_result.py
index 582bbbd9e8d..7c3f111fbcf 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_request_allocation_result.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_request_allocation_result.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3DeviceRequestAllocationResult(object):
+class V1DeviceRequestAllocationResult(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -34,86 +34,175 @@ class V1alpha3DeviceRequestAllocationResult(object):
"""
openapi_types = {
'admin_access': 'bool',
+ 'binding_conditions': 'list[str]',
+ 'binding_failure_conditions': 'list[str]',
+ 'consumed_capacity': 'dict(str, str)',
'device': 'str',
'driver': 'str',
'pool': 'str',
'request': 'str',
- 'tolerations': 'list[V1alpha3DeviceToleration]'
+ 'share_id': 'str',
+ 'tolerations': 'list[V1DeviceToleration]'
}
attribute_map = {
'admin_access': 'adminAccess',
+ 'binding_conditions': 'bindingConditions',
+ 'binding_failure_conditions': 'bindingFailureConditions',
+ 'consumed_capacity': 'consumedCapacity',
'device': 'device',
'driver': 'driver',
'pool': 'pool',
'request': 'request',
+ 'share_id': 'shareID',
'tolerations': 'tolerations'
}
- def __init__(self, admin_access=None, device=None, driver=None, pool=None, request=None, tolerations=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceRequestAllocationResult - a model defined in OpenAPI""" # noqa: E501
+ def __init__(self, admin_access=None, binding_conditions=None, binding_failure_conditions=None, consumed_capacity=None, device=None, driver=None, pool=None, request=None, share_id=None, tolerations=None, local_vars_configuration=None): # noqa: E501
+ """V1DeviceRequestAllocationResult - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._admin_access = None
+ self._binding_conditions = None
+ self._binding_failure_conditions = None
+ self._consumed_capacity = None
self._device = None
self._driver = None
self._pool = None
self._request = None
+ self._share_id = None
self._tolerations = None
self.discriminator = None
if admin_access is not None:
self.admin_access = admin_access
+ if binding_conditions is not None:
+ self.binding_conditions = binding_conditions
+ if binding_failure_conditions is not None:
+ self.binding_failure_conditions = binding_failure_conditions
+ if consumed_capacity is not None:
+ self.consumed_capacity = consumed_capacity
self.device = device
self.driver = driver
self.pool = pool
self.request = request
+ if share_id is not None:
+ self.share_id = share_id
if tolerations is not None:
self.tolerations = tolerations
@property
def admin_access(self):
- """Gets the admin_access of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ """Gets the admin_access of this V1DeviceRequestAllocationResult. # noqa: E501
AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. # noqa: E501
- :return: The admin_access of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ :return: The admin_access of this V1DeviceRequestAllocationResult. # noqa: E501
:rtype: bool
"""
return self._admin_access
@admin_access.setter
def admin_access(self, admin_access):
- """Sets the admin_access of this V1alpha3DeviceRequestAllocationResult.
+ """Sets the admin_access of this V1DeviceRequestAllocationResult.
AdminAccess indicates that this device was allocated for administrative access. See the corresponding request field for a definition of mode. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. # noqa: E501
- :param admin_access: The admin_access of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ :param admin_access: The admin_access of this V1DeviceRequestAllocationResult. # noqa: E501
:type: bool
"""
self._admin_access = admin_access
@property
+ def binding_conditions(self):
+ """Gets the binding_conditions of this V1DeviceRequestAllocationResult. # noqa: E501
+
+ BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binding_conditions of this V1DeviceRequestAllocationResult. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._binding_conditions
+
+ @binding_conditions.setter
+ def binding_conditions(self, binding_conditions):
+ """Sets the binding_conditions of this V1DeviceRequestAllocationResult.
+
+ BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binding_conditions: The binding_conditions of this V1DeviceRequestAllocationResult. # noqa: E501
+ :type: list[str]
+ """
+
+ self._binding_conditions = binding_conditions
+
+ @property
+ def binding_failure_conditions(self):
+ """Gets the binding_failure_conditions of this V1DeviceRequestAllocationResult. # noqa: E501
+
+ BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binding_failure_conditions of this V1DeviceRequestAllocationResult. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._binding_failure_conditions
+
+ @binding_failure_conditions.setter
+ def binding_failure_conditions(self, binding_failure_conditions):
+ """Sets the binding_failure_conditions of this V1DeviceRequestAllocationResult.
+
+ BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binding_failure_conditions: The binding_failure_conditions of this V1DeviceRequestAllocationResult. # noqa: E501
+ :type: list[str]
+ """
+
+ self._binding_failure_conditions = binding_failure_conditions
+
+ @property
+ def consumed_capacity(self):
+ """Gets the consumed_capacity of this V1DeviceRequestAllocationResult. # noqa: E501
+
+ ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. # noqa: E501
+
+ :return: The consumed_capacity of this V1DeviceRequestAllocationResult. # noqa: E501
+ :rtype: dict(str, str)
+ """
+ return self._consumed_capacity
+
+ @consumed_capacity.setter
+ def consumed_capacity(self, consumed_capacity):
+ """Sets the consumed_capacity of this V1DeviceRequestAllocationResult.
+
+ ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. # noqa: E501
+
+ :param consumed_capacity: The consumed_capacity of this V1DeviceRequestAllocationResult. # noqa: E501
+ :type: dict(str, str)
+ """
+
+ self._consumed_capacity = consumed_capacity
+
+ @property
def device(self):
- """Gets the device of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ """Gets the device of this V1DeviceRequestAllocationResult. # noqa: E501
Device references one device instance via its name in the driver's resource pool. It must be a DNS label. # noqa: E501
- :return: The device of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ :return: The device of this V1DeviceRequestAllocationResult. # noqa: E501
:rtype: str
"""
return self._device
@device.setter
def device(self, device):
- """Sets the device of this V1alpha3DeviceRequestAllocationResult.
+ """Sets the device of this V1DeviceRequestAllocationResult.
Device references one device instance via its name in the driver's resource pool. It must be a DNS label. # noqa: E501
- :param device: The device of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ :param device: The device of this V1DeviceRequestAllocationResult. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and device is None: # noqa: E501
@@ -123,22 +212,22 @@ class V1alpha3DeviceRequestAllocationResult(object):
@property
def driver(self):
- """Gets the driver of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ """Gets the driver of this V1DeviceRequestAllocationResult. # noqa: E501
Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. # noqa: E501
- :return: The driver of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ :return: The driver of this V1DeviceRequestAllocationResult. # noqa: E501
:rtype: str
"""
return self._driver
@driver.setter
def driver(self, driver):
- """Sets the driver of this V1alpha3DeviceRequestAllocationResult.
+ """Sets the driver of this V1DeviceRequestAllocationResult.
Driver specifies the name of the DRA driver whose kubelet plugin should be invoked to process the allocation once the claim is needed on a node. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. # noqa: E501
- :param driver: The driver of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ :param driver: The driver of this V1DeviceRequestAllocationResult. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501
@@ -148,22 +237,22 @@ class V1alpha3DeviceRequestAllocationResult(object):
@property
def pool(self):
- """Gets the pool of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ """Gets the pool of this V1DeviceRequestAllocationResult. # noqa: E501
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. # noqa: E501
- :return: The pool of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ :return: The pool of this V1DeviceRequestAllocationResult. # noqa: E501
:rtype: str
"""
return self._pool
@pool.setter
def pool(self, pool):
- """Sets the pool of this V1alpha3DeviceRequestAllocationResult.
+ """Sets the pool of this V1DeviceRequestAllocationResult.
This name together with the driver name and the device name field identify which device was allocated (`<driver name>/<pool name>/<device name>`). Must not be longer than 253 characters and may contain one or more DNS sub-domains separated by slashes. # noqa: E501
- :param pool: The pool of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ :param pool: The pool of this V1DeviceRequestAllocationResult. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and pool is None: # noqa: E501
@@ -173,22 +262,22 @@ class V1alpha3DeviceRequestAllocationResult(object):
@property
def request(self):
- """Gets the request of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ """Gets the request of this V1DeviceRequestAllocationResult. # noqa: E501
Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. # noqa: E501
- :return: The request of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ :return: The request of this V1DeviceRequestAllocationResult. # noqa: E501
:rtype: str
"""
return self._request
@request.setter
def request(self, request):
- """Sets the request of this V1alpha3DeviceRequestAllocationResult.
+ """Sets the request of this V1DeviceRequestAllocationResult.
Request is the name of the request in the claim which caused this device to be allocated. If it references a subrequest in the firstAvailable list on a DeviceRequest, this field must include both the name of the main request and the subrequest using the format <main request>/<subrequest>. Multiple devices may have been allocated per request. # noqa: E501
- :param request: The request of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ :param request: The request of this V1DeviceRequestAllocationResult. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and request is None: # noqa: E501
@@ -197,24 +286,47 @@ class V1alpha3DeviceRequestAllocationResult(object):
self._request = request
@property
+ def share_id(self):
+ """Gets the share_id of this V1DeviceRequestAllocationResult. # noqa: E501
+
+ ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. # noqa: E501
+
+ :return: The share_id of this V1DeviceRequestAllocationResult. # noqa: E501
+ :rtype: str
+ """
+ return self._share_id
+
+ @share_id.setter
+ def share_id(self, share_id):
+ """Sets the share_id of this V1DeviceRequestAllocationResult.
+
+ ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. # noqa: E501
+
+ :param share_id: The share_id of this V1DeviceRequestAllocationResult. # noqa: E501
+ :type: str
+ """
+
+ self._share_id = share_id
+
+ @property
def tolerations(self):
- """Gets the tolerations of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
+ """Gets the tolerations of this V1DeviceRequestAllocationResult. # noqa: E501
A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501
- :return: The tolerations of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
- :rtype: list[V1alpha3DeviceToleration]
+ :return: The tolerations of this V1DeviceRequestAllocationResult. # noqa: E501
+ :rtype: list[V1DeviceToleration]
"""
return self._tolerations
@tolerations.setter
def tolerations(self, tolerations):
- """Sets the tolerations of this V1alpha3DeviceRequestAllocationResult.
+ """Sets the tolerations of this V1DeviceRequestAllocationResult.
A copy of all tolerations specified in the request at the time when the device got allocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501
- :param tolerations: The tolerations of this V1alpha3DeviceRequestAllocationResult. # noqa: E501
- :type: list[V1alpha3DeviceToleration]
+ :param tolerations: The tolerations of this V1DeviceRequestAllocationResult. # noqa: E501
+ :type: list[V1DeviceToleration]
"""
self._tolerations = tolerations
@@ -253,14 +365,14 @@ class V1alpha3DeviceRequestAllocationResult(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceRequestAllocationResult):
+ if not isinstance(other, V1DeviceRequestAllocationResult):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceRequestAllocationResult):
+ if not isinstance(other, V1DeviceRequestAllocationResult):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_type_checking.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_selector.py
index 55b71e73017..f404483b342 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_type_checking.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1beta1TypeChecking(object):
+class V1DeviceSelector(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -33,47 +33,45 @@ class V1beta1TypeChecking(object):
and the value is json key in definition.
"""
openapi_types = {
- 'expression_warnings': 'list[V1beta1ExpressionWarning]'
+ 'cel': 'V1CELDeviceSelector'
}
attribute_map = {
- 'expression_warnings': 'expressionWarnings'
+ 'cel': 'cel'
}
- def __init__(self, expression_warnings=None, local_vars_configuration=None): # noqa: E501
- """V1beta1TypeChecking - a model defined in OpenAPI""" # noqa: E501
+ def __init__(self, cel=None, local_vars_configuration=None): # noqa: E501
+ """V1DeviceSelector - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
- self._expression_warnings = None
+ self._cel = None
self.discriminator = None
- if expression_warnings is not None:
- self.expression_warnings = expression_warnings
+ if cel is not None:
+ self.cel = cel
@property
- def expression_warnings(self):
- """Gets the expression_warnings of this V1beta1TypeChecking. # noqa: E501
+ def cel(self):
+ """Gets the cel of this V1DeviceSelector. # noqa: E501
- The type checking warnings for each expression. # noqa: E501
- :return: The expression_warnings of this V1beta1TypeChecking. # noqa: E501
- :rtype: list[V1beta1ExpressionWarning]
+ :return: The cel of this V1DeviceSelector. # noqa: E501
+ :rtype: V1CELDeviceSelector
"""
- return self._expression_warnings
+ return self._cel
- @expression_warnings.setter
- def expression_warnings(self, expression_warnings):
- """Sets the expression_warnings of this V1beta1TypeChecking.
+ @cel.setter
+ def cel(self, cel):
+ """Sets the cel of this V1DeviceSelector.
- The type checking warnings for each expression. # noqa: E501
- :param expression_warnings: The expression_warnings of this V1beta1TypeChecking. # noqa: E501
- :type: list[V1beta1ExpressionWarning]
+ :param cel: The cel of this V1DeviceSelector. # noqa: E501
+ :type: V1CELDeviceSelector
"""
- self._expression_warnings = expression_warnings
+ self._cel = cel
def to_dict(self):
"""Returns the model properties as a dict"""
@@ -109,14 +107,14 @@ class V1beta1TypeChecking(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1beta1TypeChecking):
+ if not isinstance(other, V1DeviceSelector):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1beta1TypeChecking):
+ if not isinstance(other, V1DeviceSelector):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_sub_request.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_sub_request.py
index 9c8c1ced947..2d22f81ba2c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_sub_request.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_sub_request.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3DeviceSubRequest(object):
+class V1DeviceSubRequest(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -34,15 +34,17 @@ class V1alpha3DeviceSubRequest(object):
"""
openapi_types = {
'allocation_mode': 'str',
+ 'capacity': 'V1CapacityRequirements',
'count': 'int',
'device_class_name': 'str',
'name': 'str',
- 'selectors': 'list[V1alpha3DeviceSelector]',
- 'tolerations': 'list[V1alpha3DeviceToleration]'
+ 'selectors': 'list[V1DeviceSelector]',
+ 'tolerations': 'list[V1DeviceToleration]'
}
attribute_map = {
'allocation_mode': 'allocationMode',
+ 'capacity': 'capacity',
'count': 'count',
'device_class_name': 'deviceClassName',
'name': 'name',
@@ -50,13 +52,14 @@ class V1alpha3DeviceSubRequest(object):
'tolerations': 'tolerations'
}
- def __init__(self, allocation_mode=None, count=None, device_class_name=None, name=None, selectors=None, tolerations=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceSubRequest - a model defined in OpenAPI""" # noqa: E501
+ def __init__(self, allocation_mode=None, capacity=None, count=None, device_class_name=None, name=None, selectors=None, tolerations=None, local_vars_configuration=None): # noqa: E501
+ """V1DeviceSubRequest - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._allocation_mode = None
+ self._capacity = None
self._count = None
self._device_class_name = None
self._name = None
@@ -66,6 +69,8 @@ class V1alpha3DeviceSubRequest(object):
if allocation_mode is not None:
self.allocation_mode = allocation_mode
+ if capacity is not None:
+ self.capacity = capacity
if count is not None:
self.count = count
self.device_class_name = device_class_name
@@ -77,45 +82,66 @@ class V1alpha3DeviceSubRequest(object):
@property
def allocation_mode(self):
- """Gets the allocation_mode of this V1alpha3DeviceSubRequest. # noqa: E501
+ """Gets the allocation_mode of this V1DeviceSubRequest. # noqa: E501
- AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. # noqa: E501
+ AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This subrequest is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. # noqa: E501
- :return: The allocation_mode of this V1alpha3DeviceSubRequest. # noqa: E501
+ :return: The allocation_mode of this V1DeviceSubRequest. # noqa: E501
:rtype: str
"""
return self._allocation_mode
@allocation_mode.setter
def allocation_mode(self, allocation_mode):
- """Sets the allocation_mode of this V1alpha3DeviceSubRequest.
+ """Sets the allocation_mode of this V1DeviceSubRequest.
- AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. # noqa: E501
+ AllocationMode and its related fields define how devices are allocated to satisfy this subrequest. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This subrequest is for all of the matching devices in a pool. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other subrequests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. # noqa: E501
- :param allocation_mode: The allocation_mode of this V1alpha3DeviceSubRequest. # noqa: E501
+ :param allocation_mode: The allocation_mode of this V1DeviceSubRequest. # noqa: E501
:type: str
"""
self._allocation_mode = allocation_mode
@property
+ def capacity(self):
+ """Gets the capacity of this V1DeviceSubRequest. # noqa: E501
+
+
+ :return: The capacity of this V1DeviceSubRequest. # noqa: E501
+ :rtype: V1CapacityRequirements
+ """
+ return self._capacity
+
+ @capacity.setter
+ def capacity(self, capacity):
+ """Sets the capacity of this V1DeviceSubRequest.
+
+
+ :param capacity: The capacity of this V1DeviceSubRequest. # noqa: E501
+ :type: V1CapacityRequirements
+ """
+
+ self._capacity = capacity
+
+ @property
def count(self):
- """Gets the count of this V1alpha3DeviceSubRequest. # noqa: E501
+ """Gets the count of this V1DeviceSubRequest. # noqa: E501
Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. # noqa: E501
- :return: The count of this V1alpha3DeviceSubRequest. # noqa: E501
+ :return: The count of this V1DeviceSubRequest. # noqa: E501
:rtype: int
"""
return self._count
@count.setter
def count(self, count):
- """Sets the count of this V1alpha3DeviceSubRequest.
+ """Sets the count of this V1DeviceSubRequest.
Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. # noqa: E501
- :param count: The count of this V1alpha3DeviceSubRequest. # noqa: E501
+ :param count: The count of this V1DeviceSubRequest. # noqa: E501
:type: int
"""
@@ -123,22 +149,22 @@ class V1alpha3DeviceSubRequest(object):
@property
def device_class_name(self):
- """Gets the device_class_name of this V1alpha3DeviceSubRequest. # noqa: E501
+ """Gets the device_class_name of this V1DeviceSubRequest. # noqa: E501
DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. # noqa: E501
- :return: The device_class_name of this V1alpha3DeviceSubRequest. # noqa: E501
+ :return: The device_class_name of this V1DeviceSubRequest. # noqa: E501
:rtype: str
"""
return self._device_class_name
@device_class_name.setter
def device_class_name(self, device_class_name):
- """Sets the device_class_name of this V1alpha3DeviceSubRequest.
+ """Sets the device_class_name of this V1DeviceSubRequest.
DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this subrequest. A class is required. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. # noqa: E501
- :param device_class_name: The device_class_name of this V1alpha3DeviceSubRequest. # noqa: E501
+ :param device_class_name: The device_class_name of this V1DeviceSubRequest. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and device_class_name is None: # noqa: E501
@@ -148,22 +174,22 @@ class V1alpha3DeviceSubRequest(object):
@property
def name(self):
- """Gets the name of this V1alpha3DeviceSubRequest. # noqa: E501
+ """Gets the name of this V1DeviceSubRequest. # noqa: E501
Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>. Must be a DNS label. # noqa: E501
- :return: The name of this V1alpha3DeviceSubRequest. # noqa: E501
+ :return: The name of this V1DeviceSubRequest. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
- """Sets the name of this V1alpha3DeviceSubRequest.
+ """Sets the name of this V1DeviceSubRequest.
Name can be used to reference this subrequest in the list of constraints or the list of configurations for the claim. References must use the format <main request>/<subrequest>. Must be a DNS label. # noqa: E501
- :param name: The name of this V1alpha3DeviceSubRequest. # noqa: E501
+ :param name: The name of this V1DeviceSubRequest. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
@@ -173,46 +199,46 @@ class V1alpha3DeviceSubRequest(object):
@property
def selectors(self):
- """Gets the selectors of this V1alpha3DeviceSubRequest. # noqa: E501
+ """Gets the selectors of this V1DeviceSubRequest. # noqa: E501
- Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. # noqa: E501
+ Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered. # noqa: E501
- :return: The selectors of this V1alpha3DeviceSubRequest. # noqa: E501
- :rtype: list[V1alpha3DeviceSelector]
+ :return: The selectors of this V1DeviceSubRequest. # noqa: E501
+ :rtype: list[V1DeviceSelector]
"""
return self._selectors
@selectors.setter
def selectors(self, selectors):
- """Sets the selectors of this V1alpha3DeviceSubRequest.
+ """Sets the selectors of this V1DeviceSubRequest.
- Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. # noqa: E501
+ Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this subrequest. All selectors must be satisfied for a device to be considered. # noqa: E501
- :param selectors: The selectors of this V1alpha3DeviceSubRequest. # noqa: E501
- :type: list[V1alpha3DeviceSelector]
+ :param selectors: The selectors of this V1DeviceSubRequest. # noqa: E501
+ :type: list[V1DeviceSelector]
"""
self._selectors = selectors
@property
def tolerations(self):
- """Gets the tolerations of this V1alpha3DeviceSubRequest. # noqa: E501
+ """Gets the tolerations of this V1DeviceSubRequest. # noqa: E501
If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501
- :return: The tolerations of this V1alpha3DeviceSubRequest. # noqa: E501
- :rtype: list[V1alpha3DeviceToleration]
+ :return: The tolerations of this V1DeviceSubRequest. # noqa: E501
+ :rtype: list[V1DeviceToleration]
"""
return self._tolerations
@tolerations.setter
def tolerations(self, tolerations):
- """Sets the tolerations of this V1alpha3DeviceSubRequest.
+ """Sets the tolerations of this V1DeviceSubRequest.
If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501
- :param tolerations: The tolerations of this V1alpha3DeviceSubRequest. # noqa: E501
- :type: list[V1alpha3DeviceToleration]
+ :param tolerations: The tolerations of this V1DeviceSubRequest. # noqa: E501
+ :type: list[V1DeviceToleration]
"""
self._tolerations = tolerations
@@ -251,14 +277,14 @@ class V1alpha3DeviceSubRequest(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceSubRequest):
+ if not isinstance(other, V1DeviceSubRequest):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceSubRequest):
+ if not isinstance(other, V1DeviceSubRequest):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_device_taint.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_taint.py
new file mode 100644
index 00000000000..969f1f8f41e
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_taint.py
@@ -0,0 +1,208 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1DeviceTaint(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'effect': 'str',
+ 'key': 'str',
+ 'time_added': 'datetime',
+ 'value': 'str'
+ }
+
+ attribute_map = {
+ 'effect': 'effect',
+ 'key': 'key',
+ 'time_added': 'timeAdded',
+ 'value': 'value'
+ }
+
+ def __init__(self, effect=None, key=None, time_added=None, value=None, local_vars_configuration=None): # noqa: E501
+ """V1DeviceTaint - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._effect = None
+ self._key = None
+ self._time_added = None
+ self._value = None
+ self.discriminator = None
+
+ self.effect = effect
+ self.key = key
+ if time_added is not None:
+ self.time_added = time_added
+ if value is not None:
+ self.value = value
+
+ @property
+ def effect(self):
+ """Gets the effect of this V1DeviceTaint. # noqa: E501
+
+ The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. # noqa: E501
+
+ :return: The effect of this V1DeviceTaint. # noqa: E501
+ :rtype: str
+ """
+ return self._effect
+
+ @effect.setter
+ def effect(self, effect):
+ """Sets the effect of this V1DeviceTaint.
+
+ The effect of the taint on claims that do not tolerate the taint and through such claims on the pods using them. Valid effects are NoSchedule and NoExecute. PreferNoSchedule as used for nodes is not valid here. # noqa: E501
+
+ :param effect: The effect of this V1DeviceTaint. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and effect is None: # noqa: E501
+ raise ValueError("Invalid value for `effect`, must not be `None`") # noqa: E501
+
+ self._effect = effect
+
+ @property
+ def key(self):
+ """Gets the key of this V1DeviceTaint. # noqa: E501
+
+ The taint key to be applied to a device. Must be a label name. # noqa: E501
+
+ :return: The key of this V1DeviceTaint. # noqa: E501
+ :rtype: str
+ """
+ return self._key
+
+ @key.setter
+ def key(self, key):
+ """Sets the key of this V1DeviceTaint.
+
+ The taint key to be applied to a device. Must be a label name. # noqa: E501
+
+ :param key: The key of this V1DeviceTaint. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
+ raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
+
+ self._key = key
+
+ @property
+ def time_added(self):
+ """Gets the time_added of this V1DeviceTaint. # noqa: E501
+
+ TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. # noqa: E501
+
+ :return: The time_added of this V1DeviceTaint. # noqa: E501
+ :rtype: datetime
+ """
+ return self._time_added
+
+ @time_added.setter
+ def time_added(self, time_added):
+ """Sets the time_added of this V1DeviceTaint.
+
+ TimeAdded represents the time at which the taint was added. Added automatically during create or update if not set. # noqa: E501
+
+ :param time_added: The time_added of this V1DeviceTaint. # noqa: E501
+ :type: datetime
+ """
+
+ self._time_added = time_added
+
+ @property
+ def value(self):
+ """Gets the value of this V1DeviceTaint. # noqa: E501
+
+ The taint value corresponding to the taint key. Must be a label value. # noqa: E501
+
+ :return: The value of this V1DeviceTaint. # noqa: E501
+ :rtype: str
+ """
+ return self._value
+
+ @value.setter
+ def value(self, value):
+ """Sets the value of this V1DeviceTaint.
+
+ The taint value corresponding to the taint key. Must be a label value. # noqa: E501
+
+ :param value: The value of this V1DeviceTaint. # noqa: E501
+ :type: str
+ """
+
+ self._value = value
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1DeviceTaint):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1DeviceTaint):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_toleration.py b/contrib/python/kubernetes/kubernetes/client/models/v1_device_toleration.py
index 9d8803f8ca6..468d168e251 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_toleration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_device_toleration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3DeviceToleration(object):
+class V1DeviceToleration(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -49,7 +49,7 @@ class V1alpha3DeviceToleration(object):
}
def __init__(self, effect=None, key=None, operator=None, toleration_seconds=None, value=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceToleration - a model defined in OpenAPI""" # noqa: E501
+ """V1DeviceToleration - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -74,22 +74,22 @@ class V1alpha3DeviceToleration(object):
@property
def effect(self):
- """Gets the effect of this V1alpha3DeviceToleration. # noqa: E501
+ """Gets the effect of this V1DeviceToleration. # noqa: E501
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. # noqa: E501
- :return: The effect of this V1alpha3DeviceToleration. # noqa: E501
+ :return: The effect of this V1DeviceToleration. # noqa: E501
:rtype: str
"""
return self._effect
@effect.setter
def effect(self, effect):
- """Sets the effect of this V1alpha3DeviceToleration.
+ """Sets the effect of this V1DeviceToleration.
Effect indicates the taint effect to match. Empty means match all taint effects. When specified, allowed values are NoSchedule and NoExecute. # noqa: E501
- :param effect: The effect of this V1alpha3DeviceToleration. # noqa: E501
+ :param effect: The effect of this V1DeviceToleration. # noqa: E501
:type: str
"""
@@ -97,22 +97,22 @@ class V1alpha3DeviceToleration(object):
@property
def key(self):
- """Gets the key of this V1alpha3DeviceToleration. # noqa: E501
+ """Gets the key of this V1DeviceToleration. # noqa: E501
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name. # noqa: E501
- :return: The key of this V1alpha3DeviceToleration. # noqa: E501
+ :return: The key of this V1DeviceToleration. # noqa: E501
:rtype: str
"""
return self._key
@key.setter
def key(self, key):
- """Sets the key of this V1alpha3DeviceToleration.
+ """Sets the key of this V1DeviceToleration.
Key is the taint key that the toleration applies to. Empty means match all taint keys. If the key is empty, operator must be Exists; this combination means to match all values and all keys. Must be a label name. # noqa: E501
- :param key: The key of this V1alpha3DeviceToleration. # noqa: E501
+ :param key: The key of this V1DeviceToleration. # noqa: E501
:type: str
"""
@@ -120,22 +120,22 @@ class V1alpha3DeviceToleration(object):
@property
def operator(self):
- """Gets the operator of this V1alpha3DeviceToleration. # noqa: E501
+ """Gets the operator of this V1DeviceToleration. # noqa: E501
Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category. # noqa: E501
- :return: The operator of this V1alpha3DeviceToleration. # noqa: E501
+ :return: The operator of this V1DeviceToleration. # noqa: E501
:rtype: str
"""
return self._operator
@operator.setter
def operator(self, operator):
- """Sets the operator of this V1alpha3DeviceToleration.
+ """Sets the operator of this V1DeviceToleration.
Operator represents a key's relationship to the value. Valid operators are Exists and Equal. Defaults to Equal. Exists is equivalent to wildcard for value, so that a ResourceClaim can tolerate all taints of a particular category. # noqa: E501
- :param operator: The operator of this V1alpha3DeviceToleration. # noqa: E501
+ :param operator: The operator of this V1DeviceToleration. # noqa: E501
:type: str
"""
@@ -143,22 +143,22 @@ class V1alpha3DeviceToleration(object):
@property
def toleration_seconds(self):
- """Gets the toleration_seconds of this V1alpha3DeviceToleration. # noqa: E501
+ """Gets the toleration_seconds of this V1DeviceToleration. # noqa: E501
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>. # noqa: E501
- :return: The toleration_seconds of this V1alpha3DeviceToleration. # noqa: E501
+ :return: The toleration_seconds of this V1DeviceToleration. # noqa: E501
:rtype: int
"""
return self._toleration_seconds
@toleration_seconds.setter
def toleration_seconds(self, toleration_seconds):
- """Sets the toleration_seconds of this V1alpha3DeviceToleration.
+ """Sets the toleration_seconds of this V1DeviceToleration.
TolerationSeconds represents the period of time the toleration (which must be of effect NoExecute, otherwise this field is ignored) tolerates the taint. By default, it is not set, which means tolerate the taint forever (do not evict). Zero and negative values will be treated as 0 (evict immediately) by the system. If larger than zero, the time when the pod needs to be evicted is calculated as <time when taint was adedd> + <toleration seconds>. # noqa: E501
- :param toleration_seconds: The toleration_seconds of this V1alpha3DeviceToleration. # noqa: E501
+ :param toleration_seconds: The toleration_seconds of this V1DeviceToleration. # noqa: E501
:type: int
"""
@@ -166,22 +166,22 @@ class V1alpha3DeviceToleration(object):
@property
def value(self):
- """Gets the value of this V1alpha3DeviceToleration. # noqa: E501
+ """Gets the value of this V1DeviceToleration. # noqa: E501
Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value. # noqa: E501
- :return: The value of this V1alpha3DeviceToleration. # noqa: E501
+ :return: The value of this V1DeviceToleration. # noqa: E501
:rtype: str
"""
return self._value
@value.setter
def value(self, value):
- """Sets the value of this V1alpha3DeviceToleration.
+ """Sets the value of this V1DeviceToleration.
Value is the taint value the toleration matches to. If the operator is Exists, the value must be empty, otherwise just a regular string. Must be a label value. # noqa: E501
- :param value: The value of this V1alpha3DeviceToleration. # noqa: E501
+ :param value: The value of this V1DeviceToleration. # noqa: E501
:type: str
"""
@@ -221,14 +221,14 @@ class V1alpha3DeviceToleration(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceToleration):
+ if not isinstance(other, V1DeviceToleration):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceToleration):
+ if not isinstance(other, V1DeviceToleration):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_projection.py b/contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_projection.py
index d87a2007f77..776c8d45f7c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_projection.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_projection.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_volume_file.py b/contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_volume_file.py
index 7ea7c854b83..c613fb044dd 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_volume_file.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_volume_file.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_volume_source.py
index 04a480e2a12..96ed9d3808b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_downward_api_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_empty_dir_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_empty_dir_volume_source.py
index 8800fb94bde..160d27ec271 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_empty_dir_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_empty_dir_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint.py b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint.py
index a06a08c3142..4bceaa8fcfb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_address.py b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_address.py
index 222e36b5a67..599bf9ab501 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_address.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_address.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_conditions.py b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_conditions.py
index 6fa95ea357b..9b6792c93df 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_conditions.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_conditions.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_hints.py b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_hints.py
index d26f0efa0fa..308febe9707 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_hints.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_hints.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_slice.py b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_slice.py
index d52e5e5bbf7..dfca3e85bb6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_slice.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_slice.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_slice_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_slice_list.py
index 652378462b4..47c2089cbd1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_slice_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_slice_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_subset.py b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_subset.py
index a27ff3a758f..6f13a3f7dbb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_subset.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoint_subset.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoints.py b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoints.py
index 8ed2c4e350d..565c7d566e1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoints.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoints.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoints_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoints_list.py
index af4cf76cc70..5a5f15ad563 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_endpoints_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_endpoints_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_env_from_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_env_from_source.py
index 4df30f6fa50..fe012ebd09a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_env_from_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_env_from_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -87,7 +87,7 @@ class V1EnvFromSource(object):
def prefix(self):
"""Gets the prefix of this V1EnvFromSource. # noqa: E501
- Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER. # noqa: E501
+ Optional text to prepend to the name of each environment variable. May consist of any printable ASCII characters except '='. # noqa: E501
:return: The prefix of this V1EnvFromSource. # noqa: E501
:rtype: str
@@ -98,7 +98,7 @@ class V1EnvFromSource(object):
def prefix(self, prefix):
"""Sets the prefix of this V1EnvFromSource.
- Optional text to prepend to the name of each environment variable. Must be a C_IDENTIFIER. # noqa: E501
+ Optional text to prepend to the name of each environment variable. May consist of any printable ASCII characters except '='. # noqa: E501
:param prefix: The prefix of this V1EnvFromSource. # noqa: E501
:type: str
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_env_var.py b/contrib/python/kubernetes/kubernetes/client/models/v1_env_var.py
index 42868789945..ec1330a1245 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_env_var.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_env_var.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -65,7 +65,7 @@ class V1EnvVar(object):
def name(self):
"""Gets the name of this V1EnvVar. # noqa: E501
- Name of the environment variable. Must be a C_IDENTIFIER. # noqa: E501
+ Name of the environment variable. May consist of any printable ASCII characters except '='. # noqa: E501
:return: The name of this V1EnvVar. # noqa: E501
:rtype: str
@@ -76,7 +76,7 @@ class V1EnvVar(object):
def name(self, name):
"""Sets the name of this V1EnvVar.
- Name of the environment variable. Must be a C_IDENTIFIER. # noqa: E501
+ Name of the environment variable. May consist of any printable ASCII characters except '='. # noqa: E501
:param name: The name of this V1EnvVar. # noqa: E501
:type: str
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_env_var_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_env_var_source.py
index 014e5f93a14..75a1f2f127a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_env_var_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_env_var_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -35,6 +35,7 @@ class V1EnvVarSource(object):
openapi_types = {
'config_map_key_ref': 'V1ConfigMapKeySelector',
'field_ref': 'V1ObjectFieldSelector',
+ 'file_key_ref': 'V1FileKeySelector',
'resource_field_ref': 'V1ResourceFieldSelector',
'secret_key_ref': 'V1SecretKeySelector'
}
@@ -42,11 +43,12 @@ class V1EnvVarSource(object):
attribute_map = {
'config_map_key_ref': 'configMapKeyRef',
'field_ref': 'fieldRef',
+ 'file_key_ref': 'fileKeyRef',
'resource_field_ref': 'resourceFieldRef',
'secret_key_ref': 'secretKeyRef'
}
- def __init__(self, config_map_key_ref=None, field_ref=None, resource_field_ref=None, secret_key_ref=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, config_map_key_ref=None, field_ref=None, file_key_ref=None, resource_field_ref=None, secret_key_ref=None, local_vars_configuration=None): # noqa: E501
"""V1EnvVarSource - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
@@ -54,6 +56,7 @@ class V1EnvVarSource(object):
self._config_map_key_ref = None
self._field_ref = None
+ self._file_key_ref = None
self._resource_field_ref = None
self._secret_key_ref = None
self.discriminator = None
@@ -62,6 +65,8 @@ class V1EnvVarSource(object):
self.config_map_key_ref = config_map_key_ref
if field_ref is not None:
self.field_ref = field_ref
+ if file_key_ref is not None:
+ self.file_key_ref = file_key_ref
if resource_field_ref is not None:
self.resource_field_ref = resource_field_ref
if secret_key_ref is not None:
@@ -110,6 +115,27 @@ class V1EnvVarSource(object):
self._field_ref = field_ref
@property
+ def file_key_ref(self):
+ """Gets the file_key_ref of this V1EnvVarSource. # noqa: E501
+
+
+ :return: The file_key_ref of this V1EnvVarSource. # noqa: E501
+ :rtype: V1FileKeySelector
+ """
+ return self._file_key_ref
+
+ @file_key_ref.setter
+ def file_key_ref(self, file_key_ref):
+ """Sets the file_key_ref of this V1EnvVarSource.
+
+
+ :param file_key_ref: The file_key_ref of this V1EnvVarSource. # noqa: E501
+ :type: V1FileKeySelector
+ """
+
+ self._file_key_ref = file_key_ref
+
+ @property
def resource_field_ref(self):
"""Gets the resource_field_ref of this V1EnvVarSource. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ephemeral_container.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ephemeral_container.py
index 954816b3d9e..204e83d9925 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ephemeral_container.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ephemeral_container.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -47,6 +47,7 @@ class V1EphemeralContainer(object):
'resize_policy': 'list[V1ContainerResizePolicy]',
'resources': 'V1ResourceRequirements',
'restart_policy': 'str',
+ 'restart_policy_rules': 'list[V1ContainerRestartRule]',
'security_context': 'V1SecurityContext',
'startup_probe': 'V1Probe',
'stdin': 'bool',
@@ -75,6 +76,7 @@ class V1EphemeralContainer(object):
'resize_policy': 'resizePolicy',
'resources': 'resources',
'restart_policy': 'restartPolicy',
+ 'restart_policy_rules': 'restartPolicyRules',
'security_context': 'securityContext',
'startup_probe': 'startupProbe',
'stdin': 'stdin',
@@ -88,7 +90,7 @@ class V1EphemeralContainer(object):
'working_dir': 'workingDir'
}
- def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resize_policy=None, resources=None, restart_policy=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, target_container_name=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, image_pull_policy=None, lifecycle=None, liveness_probe=None, name=None, ports=None, readiness_probe=None, resize_policy=None, resources=None, restart_policy=None, restart_policy_rules=None, security_context=None, startup_probe=None, stdin=None, stdin_once=None, target_container_name=None, termination_message_path=None, termination_message_policy=None, tty=None, volume_devices=None, volume_mounts=None, working_dir=None, local_vars_configuration=None): # noqa: E501
"""V1EphemeralContainer - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
@@ -108,6 +110,7 @@ class V1EphemeralContainer(object):
self._resize_policy = None
self._resources = None
self._restart_policy = None
+ self._restart_policy_rules = None
self._security_context = None
self._startup_probe = None
self._stdin = None
@@ -148,6 +151,8 @@ class V1EphemeralContainer(object):
self.resources = resources
if restart_policy is not None:
self.restart_policy = restart_policy
+ if restart_policy_rules is not None:
+ self.restart_policy_rules = restart_policy_rules
if security_context is not None:
self.security_context = security_context
if startup_probe is not None:
@@ -244,7 +249,7 @@ class V1EphemeralContainer(object):
def env_from(self):
"""Gets the env_from of this V1EphemeralContainer. # noqa: E501
- List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
+ List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
:return: The env_from of this V1EphemeralContainer. # noqa: E501
:rtype: list[V1EnvFromSource]
@@ -255,7 +260,7 @@ class V1EphemeralContainer(object):
def env_from(self, env_from):
"""Sets the env_from of this V1EphemeralContainer.
- List of sources to populate environment variables in the container. The keys defined within a source must be a C_IDENTIFIER. All invalid keys will be reported as an event when the container is starting. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
+ List of sources to populate environment variables in the container. The keys defined within a source may consist of any printable ASCII characters except '='. When a key exists in multiple sources, the value associated with the last source will take precedence. Values defined by an Env with a duplicate key will take precedence. Cannot be updated. # noqa: E501
:param env_from: The env_from of this V1EphemeralContainer. # noqa: E501
:type: list[V1EnvFromSource]
@@ -468,7 +473,7 @@ class V1EphemeralContainer(object):
def restart_policy(self):
"""Gets the restart_policy of this V1EphemeralContainer. # noqa: E501
- Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers. # noqa: E501
+ Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers. # noqa: E501
:return: The restart_policy of this V1EphemeralContainer. # noqa: E501
:rtype: str
@@ -479,7 +484,7 @@ class V1EphemeralContainer(object):
def restart_policy(self, restart_policy):
"""Sets the restart_policy of this V1EphemeralContainer.
- Restart policy for the container to manage the restart behavior of each container within a pod. This may only be set for init containers. You cannot set this field on ephemeral containers. # noqa: E501
+ Restart policy for the container to manage the restart behavior of each container within a pod. You cannot set this field on ephemeral containers. # noqa: E501
:param restart_policy: The restart_policy of this V1EphemeralContainer. # noqa: E501
:type: str
@@ -488,6 +493,29 @@ class V1EphemeralContainer(object):
self._restart_policy = restart_policy
@property
+ def restart_policy_rules(self):
+ """Gets the restart_policy_rules of this V1EphemeralContainer. # noqa: E501
+
+ Represents a list of rules to be checked to determine if the container should be restarted on exit. You cannot set this field on ephemeral containers. # noqa: E501
+
+ :return: The restart_policy_rules of this V1EphemeralContainer. # noqa: E501
+ :rtype: list[V1ContainerRestartRule]
+ """
+ return self._restart_policy_rules
+
+ @restart_policy_rules.setter
+ def restart_policy_rules(self, restart_policy_rules):
+ """Sets the restart_policy_rules of this V1EphemeralContainer.
+
+ Represents a list of rules to be checked to determine if the container should be restarted on exit. You cannot set this field on ephemeral containers. # noqa: E501
+
+ :param restart_policy_rules: The restart_policy_rules of this V1EphemeralContainer. # noqa: E501
+ :type: list[V1ContainerRestartRule]
+ """
+
+ self._restart_policy_rules = restart_policy_rules
+
+ @property
def security_context(self):
"""Gets the security_context of this V1EphemeralContainer. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ephemeral_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ephemeral_volume_source.py
index 3003f1c2b81..432621f6d03 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ephemeral_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ephemeral_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_event_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_event_source.py
index a4d6ea50d69..065e9a04552 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_event_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_event_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_eviction.py b/contrib/python/kubernetes/kubernetes/client/models/v1_eviction.py
index 2f7b9531b60..a36f4b14b20 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_eviction.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_eviction.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_exact_device_request.py b/contrib/python/kubernetes/kubernetes/client/models/v1_exact_device_request.py
new file mode 100644
index 00000000000..5888860f8fd
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_exact_device_request.py
@@ -0,0 +1,289 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1ExactDeviceRequest(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'admin_access': 'bool',
+ 'allocation_mode': 'str',
+ 'capacity': 'V1CapacityRequirements',
+ 'count': 'int',
+ 'device_class_name': 'str',
+ 'selectors': 'list[V1DeviceSelector]',
+ 'tolerations': 'list[V1DeviceToleration]'
+ }
+
+ attribute_map = {
+ 'admin_access': 'adminAccess',
+ 'allocation_mode': 'allocationMode',
+ 'capacity': 'capacity',
+ 'count': 'count',
+ 'device_class_name': 'deviceClassName',
+ 'selectors': 'selectors',
+ 'tolerations': 'tolerations'
+ }
+
+ def __init__(self, admin_access=None, allocation_mode=None, capacity=None, count=None, device_class_name=None, selectors=None, tolerations=None, local_vars_configuration=None): # noqa: E501
+ """V1ExactDeviceRequest - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._admin_access = None
+ self._allocation_mode = None
+ self._capacity = None
+ self._count = None
+ self._device_class_name = None
+ self._selectors = None
+ self._tolerations = None
+ self.discriminator = None
+
+ if admin_access is not None:
+ self.admin_access = admin_access
+ if allocation_mode is not None:
+ self.allocation_mode = allocation_mode
+ if capacity is not None:
+ self.capacity = capacity
+ if count is not None:
+ self.count = count
+ self.device_class_name = device_class_name
+ if selectors is not None:
+ self.selectors = selectors
+ if tolerations is not None:
+ self.tolerations = tolerations
+
+ @property
+ def admin_access(self):
+ """Gets the admin_access of this V1ExactDeviceRequest. # noqa: E501
+
+ AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. # noqa: E501
+
+ :return: The admin_access of this V1ExactDeviceRequest. # noqa: E501
+ :rtype: bool
+ """
+ return self._admin_access
+
+ @admin_access.setter
+ def admin_access(self, admin_access):
+ """Sets the admin_access of this V1ExactDeviceRequest.
+
+ AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. # noqa: E501
+
+ :param admin_access: The admin_access of this V1ExactDeviceRequest. # noqa: E501
+ :type: bool
+ """
+
+ self._admin_access = admin_access
+
+ @property
+ def allocation_mode(self):
+ """Gets the allocation_mode of this V1ExactDeviceRequest. # noqa: E501
+
+ AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. # noqa: E501
+
+ :return: The allocation_mode of this V1ExactDeviceRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._allocation_mode
+
+ @allocation_mode.setter
+ def allocation_mode(self, allocation_mode):
+ """Sets the allocation_mode of this V1ExactDeviceRequest.
+
+ AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. # noqa: E501
+
+ :param allocation_mode: The allocation_mode of this V1ExactDeviceRequest. # noqa: E501
+ :type: str
+ """
+
+ self._allocation_mode = allocation_mode
+
+ @property
+ def capacity(self):
+ """Gets the capacity of this V1ExactDeviceRequest. # noqa: E501
+
+
+ :return: The capacity of this V1ExactDeviceRequest. # noqa: E501
+ :rtype: V1CapacityRequirements
+ """
+ return self._capacity
+
+ @capacity.setter
+ def capacity(self, capacity):
+ """Sets the capacity of this V1ExactDeviceRequest.
+
+
+ :param capacity: The capacity of this V1ExactDeviceRequest. # noqa: E501
+ :type: V1CapacityRequirements
+ """
+
+ self._capacity = capacity
+
+ @property
+ def count(self):
+ """Gets the count of this V1ExactDeviceRequest. # noqa: E501
+
+ Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. # noqa: E501
+
+ :return: The count of this V1ExactDeviceRequest. # noqa: E501
+ :rtype: int
+ """
+ return self._count
+
+ @count.setter
+ def count(self, count):
+ """Sets the count of this V1ExactDeviceRequest.
+
+ Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. # noqa: E501
+
+ :param count: The count of this V1ExactDeviceRequest. # noqa: E501
+ :type: int
+ """
+
+ self._count = count
+
+ @property
+ def device_class_name(self):
+ """Gets the device_class_name of this V1ExactDeviceRequest. # noqa: E501
+
+ DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A DeviceClassName is required. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. # noqa: E501
+
+ :return: The device_class_name of this V1ExactDeviceRequest. # noqa: E501
+ :rtype: str
+ """
+ return self._device_class_name
+
+ @device_class_name.setter
+ def device_class_name(self, device_class_name):
+ """Sets the device_class_name of this V1ExactDeviceRequest.
+
+ DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A DeviceClassName is required. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. # noqa: E501
+
+ :param device_class_name: The device_class_name of this V1ExactDeviceRequest. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and device_class_name is None: # noqa: E501
+ raise ValueError("Invalid value for `device_class_name`, must not be `None`") # noqa: E501
+
+ self._device_class_name = device_class_name
+
+ @property
+ def selectors(self):
+ """Gets the selectors of this V1ExactDeviceRequest. # noqa: E501
+
+ Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. # noqa: E501
+
+ :return: The selectors of this V1ExactDeviceRequest. # noqa: E501
+ :rtype: list[V1DeviceSelector]
+ """
+ return self._selectors
+
+ @selectors.setter
+ def selectors(self, selectors):
+ """Sets the selectors of this V1ExactDeviceRequest.
+
+ Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. # noqa: E501
+
+ :param selectors: The selectors of this V1ExactDeviceRequest. # noqa: E501
+ :type: list[V1DeviceSelector]
+ """
+
+ self._selectors = selectors
+
+ @property
+ def tolerations(self):
+ """Gets the tolerations of this V1ExactDeviceRequest. # noqa: E501
+
+ If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501
+
+ :return: The tolerations of this V1ExactDeviceRequest. # noqa: E501
+ :rtype: list[V1DeviceToleration]
+ """
+ return self._tolerations
+
+ @tolerations.setter
+ def tolerations(self, tolerations):
+ """Sets the tolerations of this V1ExactDeviceRequest.
+
+ If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501
+
+ :param tolerations: The tolerations of this V1ExactDeviceRequest. # noqa: E501
+ :type: list[V1DeviceToleration]
+ """
+
+ self._tolerations = tolerations
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1ExactDeviceRequest):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1ExactDeviceRequest):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_exec_action.py b/contrib/python/kubernetes/kubernetes/client/models/v1_exec_action.py
index e3c1c76e65b..7801d7de3ec 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_exec_action.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_exec_action.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_exempt_priority_level_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1_exempt_priority_level_configuration.py
index fb40310b109..37287470578 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_exempt_priority_level_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_exempt_priority_level_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_expression_warning.py b/contrib/python/kubernetes/kubernetes/client/models/v1_expression_warning.py
index 2b1733d49b4..ebfe2fa7a94 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_expression_warning.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_expression_warning.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_external_documentation.py b/contrib/python/kubernetes/kubernetes/client/models/v1_external_documentation.py
index d761e1973ce..6551bf5a071 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_external_documentation.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_external_documentation.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_fc_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_fc_volume_source.py
index 04200a4409d..d6b2ca75db2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_fc_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_fc_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_field_selector_attributes.py b/contrib/python/kubernetes/kubernetes/client/models/v1_field_selector_attributes.py
index 84afbaafbc3..a38d3da9dfc 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_field_selector_attributes.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_field_selector_attributes.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_field_selector_requirement.py b/contrib/python/kubernetes/kubernetes/client/models/v1_field_selector_requirement.py
index 0e10f429c6c..06756f31cf4 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_field_selector_requirement.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_field_selector_requirement.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_file_key_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1_file_key_selector.py
new file mode 100644
index 00000000000..323c7bdbb5d
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_file_key_selector.py
@@ -0,0 +1,209 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1FileKeySelector(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'key': 'str',
+ 'optional': 'bool',
+ 'path': 'str',
+ 'volume_name': 'str'
+ }
+
+ attribute_map = {
+ 'key': 'key',
+ 'optional': 'optional',
+ 'path': 'path',
+ 'volume_name': 'volumeName'
+ }
+
+ def __init__(self, key=None, optional=None, path=None, volume_name=None, local_vars_configuration=None): # noqa: E501
+ """V1FileKeySelector - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._key = None
+ self._optional = None
+ self._path = None
+ self._volume_name = None
+ self.discriminator = None
+
+ self.key = key
+ if optional is not None:
+ self.optional = optional
+ self.path = path
+ self.volume_name = volume_name
+
+ @property
+ def key(self):
+ """Gets the key of this V1FileKeySelector. # noqa: E501
+
+ The key within the env file. An invalid key will prevent the pod from starting. The keys defined within a source may consist of any printable ASCII characters except '='. During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters. # noqa: E501
+
+ :return: The key of this V1FileKeySelector. # noqa: E501
+ :rtype: str
+ """
+ return self._key
+
+ @key.setter
+ def key(self, key):
+ """Sets the key of this V1FileKeySelector.
+
+ The key within the env file. An invalid key will prevent the pod from starting. The keys defined within a source may consist of any printable ASCII characters except '='. During Alpha stage of the EnvFiles feature gate, the key size is limited to 128 characters. # noqa: E501
+
+ :param key: The key of this V1FileKeySelector. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
+ raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
+
+ self._key = key
+
+ @property
+ def optional(self):
+ """Gets the optional of this V1FileKeySelector. # noqa: E501
+
+ Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod's containers. If optional is set to false and the specified key does not exist, an error will be returned during Pod creation. # noqa: E501
+
+ :return: The optional of this V1FileKeySelector. # noqa: E501
+ :rtype: bool
+ """
+ return self._optional
+
+ @optional.setter
+ def optional(self, optional):
+ """Sets the optional of this V1FileKeySelector.
+
+ Specify whether the file or its key must be defined. If the file or key does not exist, then the env var is not published. If optional is set to true and the specified key does not exist, the environment variable will not be set in the Pod's containers. If optional is set to false and the specified key does not exist, an error will be returned during Pod creation. # noqa: E501
+
+ :param optional: The optional of this V1FileKeySelector. # noqa: E501
+ :type: bool
+ """
+
+ self._optional = optional
+
+ @property
+ def path(self):
+ """Gets the path of this V1FileKeySelector. # noqa: E501
+
+ The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'. # noqa: E501
+
+ :return: The path of this V1FileKeySelector. # noqa: E501
+ :rtype: str
+ """
+ return self._path
+
+ @path.setter
+ def path(self, path):
+ """Sets the path of this V1FileKeySelector.
+
+ The path within the volume from which to select the file. Must be relative and may not contain the '..' path or start with '..'. # noqa: E501
+
+ :param path: The path of this V1FileKeySelector. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and path is None: # noqa: E501
+ raise ValueError("Invalid value for `path`, must not be `None`") # noqa: E501
+
+ self._path = path
+
+ @property
+ def volume_name(self):
+ """Gets the volume_name of this V1FileKeySelector. # noqa: E501
+
+ The name of the volume mount containing the env file. # noqa: E501
+
+ :return: The volume_name of this V1FileKeySelector. # noqa: E501
+ :rtype: str
+ """
+ return self._volume_name
+
+ @volume_name.setter
+ def volume_name(self, volume_name):
+ """Sets the volume_name of this V1FileKeySelector.
+
+ The name of the volume mount containing the env file. # noqa: E501
+
+ :param volume_name: The volume_name of this V1FileKeySelector. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and volume_name is None: # noqa: E501
+ raise ValueError("Invalid value for `volume_name`, must not be `None`") # noqa: E501
+
+ self._volume_name = volume_name
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1FileKeySelector):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1FileKeySelector):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_flex_persistent_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_flex_persistent_volume_source.py
index 6fa3db432be..a121e4a6d51 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_flex_persistent_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_flex_persistent_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_flex_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_flex_volume_source.py
index 91a7f617e4a..c7a1d0c33b7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_flex_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_flex_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_flocker_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_flocker_volume_source.py
index 8ede8b65982..38d3139524f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_flocker_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_flocker_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_flow_distinguisher_method.py b/contrib/python/kubernetes/kubernetes/client/models/v1_flow_distinguisher_method.py
index 3d045546246..43a5529f0f1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_flow_distinguisher_method.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_flow_distinguisher_method.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema.py b/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema.py
index d893474bc53..ae584207662 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_condition.py
index 573ed8b8a43..8746e9d2e07 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_list.py
index 4fd31dca8c9..ab5b452bba1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_spec.py
index 1400d1248ee..8a1d6bce361 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_status.py
index da9ce9ec80b..3da97ba9a86 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_flow_schema_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_for_node.py b/contrib/python/kubernetes/kubernetes/client/models/v1_for_node.py
index 6cce66f6025..99c4d0336e8 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_for_node.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_for_node.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_for_zone.py b/contrib/python/kubernetes/kubernetes/client/models/v1_for_zone.py
index f752e6d15b5..96589ae24a2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_for_zone.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_for_zone.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py
index 343885c434d..13e3defbd33 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_gce_persistent_disk_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_git_repo_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_git_repo_volume_source.py
index ddf4de6e8ed..14e7f9ec493 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_git_repo_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_git_repo_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py
index 9b15d2c495c..2ecdbe93f26 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_glusterfs_persistent_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_glusterfs_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_glusterfs_volume_source.py
index 8108a629fb5..2bf18a7400d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_glusterfs_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_glusterfs_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -64,7 +64,7 @@ class V1GlusterfsVolumeSource(object):
def endpoints(self):
"""Gets the endpoints of this V1GlusterfsVolumeSource. # noqa: E501
- endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod # noqa: E501
+ endpoints is the endpoint name that details Glusterfs topology. # noqa: E501
:return: The endpoints of this V1GlusterfsVolumeSource. # noqa: E501
:rtype: str
@@ -75,7 +75,7 @@ class V1GlusterfsVolumeSource(object):
def endpoints(self, endpoints):
"""Sets the endpoints of this V1GlusterfsVolumeSource.
- endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod # noqa: E501
+ endpoints is the endpoint name that details Glusterfs topology. # noqa: E501
:param endpoints: The endpoints of this V1GlusterfsVolumeSource. # noqa: E501
:type: str
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_group_subject.py b/contrib/python/kubernetes/kubernetes/client/models/v1_group_subject.py
index 2ca56868490..ea1647f867f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_group_subject.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_group_subject.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_group_version_for_discovery.py b/contrib/python/kubernetes/kubernetes/client/models/v1_group_version_for_discovery.py
index 36dbe893659..66554106033 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_group_version_for_discovery.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_group_version_for_discovery.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_grpc_action.py b/contrib/python/kubernetes/kubernetes/client/models/v1_grpc_action.py
index 78a4e9e94ca..c07bfc74bd5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_grpc_action.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_grpc_action.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler.py b/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler.py
index e33a89022bb..db11fe3ef17 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py
index 7f02258168f..930d7be0c69 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py
index a2e7763085f..12943928f84 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py
index 456f1215e54..5e8d8dda71b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_horizontal_pod_autoscaler_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_host_alias.py b/contrib/python/kubernetes/kubernetes/client/models/v1_host_alias.py
index a5c19cacfdf..60dfd3dbe1e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_host_alias.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_host_alias.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_host_ip.py b/contrib/python/kubernetes/kubernetes/client/models/v1_host_ip.py
index 6250f8c979a..4adaa0713c2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_host_ip.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_host_ip.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_host_path_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_host_path_volume_source.py
index 113904d1d68..cbfdaeaeaf0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_host_path_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_host_path_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_http_get_action.py b/contrib/python/kubernetes/kubernetes/client/models/v1_http_get_action.py
index 4e896809d64..984f809b668 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_http_get_action.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_http_get_action.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_http_header.py b/contrib/python/kubernetes/kubernetes/client/models/v1_http_header.py
index ba9f38afcf2..5d08875a0e0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_http_header.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_http_header.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_http_ingress_path.py b/contrib/python/kubernetes/kubernetes/client/models/v1_http_ingress_path.py
index 59ed42eda6a..48aff91cb3e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_http_ingress_path.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_http_ingress_path.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_http_ingress_rule_value.py b/contrib/python/kubernetes/kubernetes/client/models/v1_http_ingress_rule_value.py
index d6fe4a727f0..600de038a77 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_http_ingress_rule_value.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_http_ingress_rule_value.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_image_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_image_volume_source.py
index da6363db3ed..cf74b4dbf4f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_image_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_image_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress.py
index a100bd27191..9757d5594dd 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_backend.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_backend.py
index 9d41bdbc6e1..f14a824300c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_backend.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_backend.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class.py
index c9b0c1f7206..eb7dcf1eaf9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_list.py
index 3e842fcf159..04dd1a65506 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_parameters_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_parameters_reference.py
index 3d615cfd390..b9c4a1dbcc5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_parameters_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_parameters_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_spec.py
index ed6e54551a7..f7838c2836e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_class_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_list.py
index 88eed4e4ee3..5133b70446a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_load_balancer_ingress.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_load_balancer_ingress.py
index 7a1a28d3ce3..5f05a61f515 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_load_balancer_ingress.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_load_balancer_ingress.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_load_balancer_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_load_balancer_status.py
index 2862de7bcd8..7b49940829b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_load_balancer_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_load_balancer_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_port_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_port_status.py
index 40d33def1e9..12db9a1fbf8 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_port_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_port_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_rule.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_rule.py
index b866034634c..a20385d4978 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_rule.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_rule.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_service_backend.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_service_backend.py
index 90e4f9b6707..070d2a925f7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_service_backend.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_service_backend.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_spec.py
index 5d77bd72cd9..08b562accd7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_status.py
index 2cc4c94a5ef..41c9871eeea 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_tls.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_tls.py
index 3a40d1b4ab8..c09e23b5f9c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_tls.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ingress_tls.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ip_address.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ip_address.py
index 08943f2b4d8..5ca132fe7a5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ip_address.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ip_address.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ip_address_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ip_address_list.py
index a9862597d24..12261863030 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ip_address_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ip_address_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ip_address_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ip_address_spec.py
index 912359c35ed..ad8ba6897a6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ip_address_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ip_address_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_ip_block.py b/contrib/python/kubernetes/kubernetes/client/models/v1_ip_block.py
index 5cbc02e5d8c..64f37043595 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_ip_block.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_ip_block.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_iscsi_persistent_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_iscsi_persistent_volume_source.py
index ed7dfb352fa..6368c27f7d8 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_iscsi_persistent_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_iscsi_persistent_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_iscsi_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_iscsi_volume_source.py
index 55561b39654..7dc252fdfe3 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_iscsi_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_iscsi_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_job.py b/contrib/python/kubernetes/kubernetes/client/models/v1_job.py
index 9ab9bf909f2..0f1251d53cb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_job.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_job.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_job_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_job_condition.py
index c1ae8f2e5fb..135a2c5bd61 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_job_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_job_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_job_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_job_list.py
index 54208bc5a48..87976d1da09 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_job_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_job_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_job_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_job_spec.py
index 189887f9536..83ac0d0e481 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_job_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_job_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -153,7 +153,7 @@ class V1JobSpec(object):
def backoff_limit(self):
"""Gets the backoff_limit of this V1JobSpec. # noqa: E501
- Specifies the number of retries before marking this job failed. Defaults to 6 # noqa: E501
+ Specifies the number of retries before marking this job failed. Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified. When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647. # noqa: E501
:return: The backoff_limit of this V1JobSpec. # noqa: E501
:rtype: int
@@ -164,7 +164,7 @@ class V1JobSpec(object):
def backoff_limit(self, backoff_limit):
"""Sets the backoff_limit of this V1JobSpec.
- Specifies the number of retries before marking this job failed. Defaults to 6 # noqa: E501
+ Specifies the number of retries before marking this job failed. Defaults to 6, unless backoffLimitPerIndex (only Indexed Job) is specified. When backoffLimitPerIndex is specified, backoffLimit defaults to 2147483647. # noqa: E501
:param backoff_limit: The backoff_limit of this V1JobSpec. # noqa: E501
:type: int
@@ -358,7 +358,7 @@ class V1JobSpec(object):
def pod_replacement_policy(self):
"""Gets the pod_replacement_policy of this V1JobSpec. # noqa: E501
- podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default. # noqa: E501
+ podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. # noqa: E501
:return: The pod_replacement_policy of this V1JobSpec. # noqa: E501
:rtype: str
@@ -369,7 +369,7 @@ class V1JobSpec(object):
def pod_replacement_policy(self, pod_replacement_policy):
"""Sets the pod_replacement_policy of this V1JobSpec.
- podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. This is an beta field. To use this, enable the JobPodReplacementPolicy feature toggle. This is on by default. # noqa: E501
+ podReplacementPolicy specifies when to create replacement Pods. Possible values are: - TerminatingOrFailed means that we recreate pods when they are terminating (has a metadata.deletionTimestamp) or failed. - Failed means to wait until a previously created Pod is fully terminated (has phase Failed or Succeeded) before creating a replacement Pod. When using podFailurePolicy, Failed is the the only allowed value. TerminatingOrFailed and Failed are allowed values when podFailurePolicy is not in use. # noqa: E501
:param pod_replacement_policy: The pod_replacement_policy of this V1JobSpec. # noqa: E501
:type: str
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_job_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_job_status.py
index e1d6cabc536..af72be46aba 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_job_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_job_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_job_template_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_job_template_spec.py
index ecf6fe0575d..3af1dcd790a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_job_template_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_job_template_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_json_schema_props.py b/contrib/python/kubernetes/kubernetes/client/models/v1_json_schema_props.py
index 900d1c0b061..20c0de1941a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_json_schema_props.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_json_schema_props.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_key_to_path.py b/contrib/python/kubernetes/kubernetes/client/models/v1_key_to_path.py
index e081fc4ef56..4274cc36fe7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_key_to_path.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_key_to_path.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_label_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1_label_selector.py
index 6a2a5d3918b..6c11880ae90 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_label_selector.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_label_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_label_selector_attributes.py b/contrib/python/kubernetes/kubernetes/client/models/v1_label_selector_attributes.py
index 9bf0a7594ab..3fe7dde1266 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_label_selector_attributes.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_label_selector_attributes.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_label_selector_requirement.py b/contrib/python/kubernetes/kubernetes/client/models/v1_label_selector_requirement.py
index c3c7d6615e0..de785a216db 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_label_selector_requirement.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_label_selector_requirement.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_lease.py b/contrib/python/kubernetes/kubernetes/client/models/v1_lease.py
index 3c30a125934..1d8fd9316d9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_lease.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_lease.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_lease_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_lease_list.py
index 5e6bb5fb828..2bcaebe757a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_lease_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_lease_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_lease_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_lease_spec.py
index 7d623858297..7a2e3833d5a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_lease_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_lease_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_lifecycle.py b/contrib/python/kubernetes/kubernetes/client/models/v1_lifecycle.py
index 164fcb02191..ea099511f61 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_lifecycle.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_lifecycle.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_lifecycle_handler.py b/contrib/python/kubernetes/kubernetes/client/models/v1_lifecycle_handler.py
index bc6cfb64cce..5a099eb9fd1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_lifecycle_handler.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_lifecycle_handler.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range.py b/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range.py
index 3eb6be6351a..15b43e074ea 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_item.py b/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_item.py
index df6c94b9a63..2f49e63d2f2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_item.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_item.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_list.py
index 94361103084..26073c46d4d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_spec.py
index b05901db188..b0b3abf7f36 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_limit_range_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_limit_response.py b/contrib/python/kubernetes/kubernetes/client/models/v1_limit_response.py
index 67f1c4cfb80..04c09651120 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_limit_response.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_limit_response.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_limited_priority_level_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1_limited_priority_level_configuration.py
index a3f3dd21678..e68efef0ed8 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_limited_priority_level_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_limited_priority_level_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_linux_container_user.py b/contrib/python/kubernetes/kubernetes/client/models/v1_linux_container_user.py
index 0c15e2514ee..efa421234c0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_linux_container_user.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_linux_container_user.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_list_meta.py b/contrib/python/kubernetes/kubernetes/client/models/v1_list_meta.py
index 5bd9f324d68..3afeefa254c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_list_meta.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_list_meta.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_load_balancer_ingress.py b/contrib/python/kubernetes/kubernetes/client/models/v1_load_balancer_ingress.py
index f5e50aeb711..6a36f98721e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_load_balancer_ingress.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_load_balancer_ingress.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_load_balancer_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_load_balancer_status.py
index 5622d2bef90..9987d0089a5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_load_balancer_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_load_balancer_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_local_object_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1_local_object_reference.py
index e4023cf0c6e..961a4c7a9d9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_local_object_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_local_object_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_local_subject_access_review.py b/contrib/python/kubernetes/kubernetes/client/models/v1_local_subject_access_review.py
index 2c1efb4da08..99befc078c0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_local_subject_access_review.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_local_subject_access_review.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_local_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_local_volume_source.py
index d7e20cdb703..08a3d9b2875 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_local_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_local_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_managed_fields_entry.py b/contrib/python/kubernetes/kubernetes/client/models/v1_managed_fields_entry.py
index 17532f6cb1f..f04e5258b34 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_managed_fields_entry.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_managed_fields_entry.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_match_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_match_condition.py
index 2c048562867..4e1d8b73e1d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_match_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_match_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_match_resources.py b/contrib/python/kubernetes/kubernetes/client/models/v1_match_resources.py
index 4fd99d647ee..bd04f8a16f0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_match_resources.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_match_resources.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_modify_volume_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_modify_volume_status.py
index 713cd5d2bf7..03b426b8fe9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_modify_volume_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_modify_volume_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook.py b/contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook.py
index cb4b86b015b..39bb864f2d6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook_configuration.py
index f0755b874f8..dcfb60dd21a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook_configuration_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook_configuration_list.py
index 526e8e939f9..b7b02ea7986 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook_configuration_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_mutating_webhook_configuration_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_named_rule_with_operations.py b/contrib/python/kubernetes/kubernetes/client/models/v1_named_rule_with_operations.py
index 04f9ee1c5ec..681b2567a14 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_named_rule_with_operations.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_named_rule_with_operations.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_namespace.py b/contrib/python/kubernetes/kubernetes/client/models/v1_namespace.py
index cbda60af407..19f0391c896 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_namespace.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_namespace.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_condition.py
index a342914f774..16bff6963f9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_list.py
index 4c31f7a19f5..a461666a13b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_spec.py
index ab9a0d0308c..aee6bf87dc1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_status.py
index b154803fe09..0cd6741bf2f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_namespace_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_network_device_data.py b/contrib/python/kubernetes/kubernetes/client/models/v1_network_device_data.py
index 9f25dfae33f..65738c57a6a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_network_device_data.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_network_device_data.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3NetworkDeviceData(object):
+class V1NetworkDeviceData(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -45,7 +45,7 @@ class V1alpha3NetworkDeviceData(object):
}
def __init__(self, hardware_address=None, interface_name=None, ips=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3NetworkDeviceData - a model defined in OpenAPI""" # noqa: E501
+ """V1NetworkDeviceData - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -64,22 +64,22 @@ class V1alpha3NetworkDeviceData(object):
@property
def hardware_address(self):
- """Gets the hardware_address of this V1alpha3NetworkDeviceData. # noqa: E501
+ """Gets the hardware_address of this V1NetworkDeviceData. # noqa: E501
HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. # noqa: E501
- :return: The hardware_address of this V1alpha3NetworkDeviceData. # noqa: E501
+ :return: The hardware_address of this V1NetworkDeviceData. # noqa: E501
:rtype: str
"""
return self._hardware_address
@hardware_address.setter
def hardware_address(self, hardware_address):
- """Sets the hardware_address of this V1alpha3NetworkDeviceData.
+ """Sets the hardware_address of this V1NetworkDeviceData.
HardwareAddress represents the hardware address (e.g. MAC Address) of the device's network interface. Must not be longer than 128 characters. # noqa: E501
- :param hardware_address: The hardware_address of this V1alpha3NetworkDeviceData. # noqa: E501
+ :param hardware_address: The hardware_address of this V1NetworkDeviceData. # noqa: E501
:type: str
"""
@@ -87,22 +87,22 @@ class V1alpha3NetworkDeviceData(object):
@property
def interface_name(self):
- """Gets the interface_name of this V1alpha3NetworkDeviceData. # noqa: E501
+ """Gets the interface_name of this V1NetworkDeviceData. # noqa: E501
InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. # noqa: E501
- :return: The interface_name of this V1alpha3NetworkDeviceData. # noqa: E501
+ :return: The interface_name of this V1NetworkDeviceData. # noqa: E501
:rtype: str
"""
return self._interface_name
@interface_name.setter
def interface_name(self, interface_name):
- """Sets the interface_name of this V1alpha3NetworkDeviceData.
+ """Sets the interface_name of this V1NetworkDeviceData.
InterfaceName specifies the name of the network interface associated with the allocated device. This might be the name of a physical or virtual network interface being configured in the pod. Must not be longer than 256 characters. # noqa: E501
- :param interface_name: The interface_name of this V1alpha3NetworkDeviceData. # noqa: E501
+ :param interface_name: The interface_name of this V1NetworkDeviceData. # noqa: E501
:type: str
"""
@@ -110,22 +110,22 @@ class V1alpha3NetworkDeviceData(object):
@property
def ips(self):
- """Gets the ips of this V1alpha3NetworkDeviceData. # noqa: E501
+ """Gets the ips of this V1NetworkDeviceData. # noqa: E501
- IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. Must not contain more than 16 entries. # noqa: E501
+ IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. # noqa: E501
- :return: The ips of this V1alpha3NetworkDeviceData. # noqa: E501
+ :return: The ips of this V1NetworkDeviceData. # noqa: E501
:rtype: list[str]
"""
return self._ips
@ips.setter
def ips(self, ips):
- """Sets the ips of this V1alpha3NetworkDeviceData.
+ """Sets the ips of this V1NetworkDeviceData.
- IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. Must not contain more than 16 entries. # noqa: E501
+ IPs lists the network addresses assigned to the device's network interface. This can include both IPv4 and IPv6 addresses. The IPs are in the CIDR notation, which includes both the address and the associated subnet mask. e.g.: \"192.0.2.5/24\" for IPv4 and \"2001:db8::5/64\" for IPv6. # noqa: E501
- :param ips: The ips of this V1alpha3NetworkDeviceData. # noqa: E501
+ :param ips: The ips of this V1NetworkDeviceData. # noqa: E501
:type: list[str]
"""
@@ -165,14 +165,14 @@ class V1alpha3NetworkDeviceData(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3NetworkDeviceData):
+ if not isinstance(other, V1NetworkDeviceData):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3NetworkDeviceData):
+ if not isinstance(other, V1NetworkDeviceData):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy.py b/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy.py
index f90bb0070f7..9f82593829b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_egress_rule.py b/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_egress_rule.py
index eda7ef1f466..09ccfeaa3e2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_egress_rule.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_egress_rule.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_ingress_rule.py b/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_ingress_rule.py
index 96dc0973a91..756ed636c69 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_ingress_rule.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_ingress_rule.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_list.py
index 4e302bc220d..d82d00d564c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_peer.py b/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_peer.py
index d49a81360f7..9ec98614809 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_peer.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_peer.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_port.py b/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_port.py
index 69a8a02ff26..24261eeb821 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_port.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_port.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_spec.py
index 404f1f4b992..bb98e26fb52 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_network_policy_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -62,7 +62,8 @@ class V1NetworkPolicySpec(object):
self.egress = egress
if ingress is not None:
self.ingress = ingress
- self.pod_selector = pod_selector
+ if pod_selector is not None:
+ self.pod_selector = pod_selector
if policy_types is not None:
self.policy_types = policy_types
@@ -130,8 +131,6 @@ class V1NetworkPolicySpec(object):
:param pod_selector: The pod_selector of this V1NetworkPolicySpec. # noqa: E501
:type: V1LabelSelector
"""
- if self.local_vars_configuration.client_side_validation and pod_selector is None: # noqa: E501
- raise ValueError("Invalid value for `pod_selector`, must not be `None`") # noqa: E501
self._pod_selector = pod_selector
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_nfs_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_nfs_volume_source.py
index 8c9ccfcbd0c..2956f771166 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_nfs_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_nfs_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node.py
index a41a077bb87..9c45b750184 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_address.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_address.py
index a5b4cdcd734..8a23135ac62 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_address.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_address.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_affinity.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_affinity.py
index 52abd5eabdc..9e622b28b33 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_affinity.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_affinity.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_condition.py
index 1da94ac87b8..f4314a0ea1e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_config_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_config_source.py
index 9f5fe3a2242..32f063305ac 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_config_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_config_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_config_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_config_status.py
index 34359d547a9..e9c56985d58 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_config_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_config_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_daemon_endpoints.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_daemon_endpoints.py
index 0b8941c3df5..01335d9c987 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_daemon_endpoints.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_daemon_endpoints.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_features.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_features.py
index 294febb2541..a585752e95a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_features.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_features.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_list.py
index 6a1df68b56f..039295a0a05 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_runtime_handler.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_runtime_handler.py
index cdd7ec6e838..2a27296bdd6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_runtime_handler.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_runtime_handler.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_runtime_handler_features.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_runtime_handler_features.py
index bff5623128b..9c100225bdf 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_runtime_handler_features.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_runtime_handler_features.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_selector.py
index 441335e6f1e..add232fcfd3 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_selector.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_selector_requirement.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_selector_requirement.py
index fe05c009335..6912b565381 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_selector_requirement.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_selector_requirement.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_selector_term.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_selector_term.py
index 71d15aa4e36..c0c48ca81c6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_selector_term.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_selector_term.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_spec.py
index f440ab66c5d..b825df65a18 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_status.py
index 5bf9602a797..6a6813ff6b8 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_swap_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_swap_status.py
index 20908eab15e..dbfd9cbafdc 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_swap_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_swap_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_node_system_info.py b/contrib/python/kubernetes/kubernetes/client/models/v1_node_system_info.py
index 8aec82b3f8b..b45381fcb06 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_node_system_info.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_node_system_info.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_attributes.py b/contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_attributes.py
index d10efbb7390..19de5c1490e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_attributes.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_attributes.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_policy_rule.py b/contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_policy_rule.py
index 3cb6bc67651..12816761539 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_policy_rule.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_policy_rule.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_rule.py b/contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_rule.py
index 79478d79581..257d1454851 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_rule.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_non_resource_rule.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_object_field_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1_object_field_selector.py
index f33086d6dcc..865a2852e9d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_object_field_selector.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_object_field_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_object_meta.py b/contrib/python/kubernetes/kubernetes/client/models/v1_object_meta.py
index 90bf830de99..f511b4cc94d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_object_meta.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_object_meta.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_object_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1_object_reference.py
index 337980dd4d9..758b2c9876b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_object_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_object_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_opaque_device_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1_opaque_device_configuration.py
index 4022ca465e9..0f7cd4565bb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_opaque_device_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_opaque_device_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3OpaqueDeviceConfiguration(object):
+class V1OpaqueDeviceConfiguration(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -43,7 +43,7 @@ class V1alpha3OpaqueDeviceConfiguration(object):
}
def __init__(self, driver=None, parameters=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3OpaqueDeviceConfiguration - a model defined in OpenAPI""" # noqa: E501
+ """V1OpaqueDeviceConfiguration - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -57,22 +57,22 @@ class V1alpha3OpaqueDeviceConfiguration(object):
@property
def driver(self):
- """Gets the driver of this V1alpha3OpaqueDeviceConfiguration. # noqa: E501
+ """Gets the driver of this V1OpaqueDeviceConfiguration. # noqa: E501
Driver is used to determine which kubelet plugin needs to be passed these configuration parameters. An admission policy provided by the driver developer could use this to decide whether it needs to validate them. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. # noqa: E501
- :return: The driver of this V1alpha3OpaqueDeviceConfiguration. # noqa: E501
+ :return: The driver of this V1OpaqueDeviceConfiguration. # noqa: E501
:rtype: str
"""
return self._driver
@driver.setter
def driver(self, driver):
- """Sets the driver of this V1alpha3OpaqueDeviceConfiguration.
+ """Sets the driver of this V1OpaqueDeviceConfiguration.
Driver is used to determine which kubelet plugin needs to be passed these configuration parameters. An admission policy provided by the driver developer could use this to decide whether it needs to validate them. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. # noqa: E501
- :param driver: The driver of this V1alpha3OpaqueDeviceConfiguration. # noqa: E501
+ :param driver: The driver of this V1OpaqueDeviceConfiguration. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501
@@ -82,22 +82,22 @@ class V1alpha3OpaqueDeviceConfiguration(object):
@property
def parameters(self):
- """Gets the parameters of this V1alpha3OpaqueDeviceConfiguration. # noqa: E501
+ """Gets the parameters of this V1OpaqueDeviceConfiguration. # noqa: E501
Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version (\"kind\" + \"apiVersion\" for Kubernetes types), with conversion between different versions. The length of the raw data must be smaller or equal to 10 Ki. # noqa: E501
- :return: The parameters of this V1alpha3OpaqueDeviceConfiguration. # noqa: E501
+ :return: The parameters of this V1OpaqueDeviceConfiguration. # noqa: E501
:rtype: object
"""
return self._parameters
@parameters.setter
def parameters(self, parameters):
- """Sets the parameters of this V1alpha3OpaqueDeviceConfiguration.
+ """Sets the parameters of this V1OpaqueDeviceConfiguration.
Parameters can contain arbitrary data. It is the responsibility of the driver developer to handle validation and versioning. Typically this includes self-identification and a version (\"kind\" + \"apiVersion\" for Kubernetes types), with conversion between different versions. The length of the raw data must be smaller or equal to 10 Ki. # noqa: E501
- :param parameters: The parameters of this V1alpha3OpaqueDeviceConfiguration. # noqa: E501
+ :param parameters: The parameters of this V1OpaqueDeviceConfiguration. # noqa: E501
:type: object
"""
if self.local_vars_configuration.client_side_validation and parameters is None: # noqa: E501
@@ -139,14 +139,14 @@ class V1alpha3OpaqueDeviceConfiguration(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3OpaqueDeviceConfiguration):
+ if not isinstance(other, V1OpaqueDeviceConfiguration):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3OpaqueDeviceConfiguration):
+ if not isinstance(other, V1OpaqueDeviceConfiguration):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_overhead.py b/contrib/python/kubernetes/kubernetes/client/models/v1_overhead.py
index ada4101ead1..1357b503308 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_overhead.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_overhead.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_owner_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1_owner_reference.py
index 0e943ae9eea..95cd2e51acc 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_owner_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_owner_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_param_kind.py b/contrib/python/kubernetes/kubernetes/client/models/v1_param_kind.py
index dab1990d165..5a89455279b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_param_kind.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_param_kind.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_param_ref.py b/contrib/python/kubernetes/kubernetes/client/models/v1_param_ref.py
index 48edb3ab54d..36ebe5f7359 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_param_ref.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_param_ref.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_parent_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1_parent_reference.py
index 9988b506473..48314ea4868 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_parent_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_parent_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume.py b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume.py
index d59ebf91d9d..26330c80257 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim.py b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim.py
index 2ca5c141b9c..b6f5e2aef98 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_condition.py
index 62d57414689..faf57eace59 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_list.py
index 4233a118665..3b04f6d6c43 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_spec.py
index 86cbb6931fb..e87f6350100 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -226,7 +226,7 @@ class V1PersistentVolumeClaimSpec(object):
def volume_attributes_class_name(self):
"""Gets the volume_attributes_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501
- volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). # noqa: E501
+ volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ # noqa: E501
:return: The volume_attributes_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501
:rtype: str
@@ -237,7 +237,7 @@ class V1PersistentVolumeClaimSpec(object):
def volume_attributes_class_name(self, volume_attributes_class_name):
"""Sets the volume_attributes_class_name of this V1PersistentVolumeClaimSpec.
- volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string value means that no VolumeAttributesClass will be applied to the claim but it's not allowed to reset this field to empty string once it is set. If unspecified and the PersistentVolumeClaim is unbound, the default VolumeAttributesClass will be set by the persistentvolume controller if it exists. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ (Beta) Using this field requires the VolumeAttributesClass feature gate to be enabled (off by default). # noqa: E501
+ volumeAttributesClassName may be used to set the VolumeAttributesClass used by this claim. If specified, the CSI driver will create or update the volume with the attributes defined in the corresponding VolumeAttributesClass. This has a different purpose than storageClassName, it can be changed after the claim is created. An empty string or nil value indicates that no VolumeAttributesClass will be applied to the claim. If the claim enters an Infeasible error state, this field can be reset to its previous value (including nil) to cancel the modification. If the resource referred to by volumeAttributesClass does not exist, this PersistentVolumeClaim will be set to a Pending state, as reflected by the modifyVolumeStatus field, until such as a resource exists. More info: https://kubernetes.io/docs/concepts/storage/volume-attributes-classes/ # noqa: E501
:param volume_attributes_class_name: The volume_attributes_class_name of this V1PersistentVolumeClaimSpec. # noqa: E501
:type: str
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_status.py
index 07287a48bd6..bf9fae84385 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -206,7 +206,7 @@ class V1PersistentVolumeClaimStatus(object):
def current_volume_attributes_class_name(self):
"""Gets the current_volume_attributes_class_name of this V1PersistentVolumeClaimStatus. # noqa: E501
- currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default). # noqa: E501
+ currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim # noqa: E501
:return: The current_volume_attributes_class_name of this V1PersistentVolumeClaimStatus. # noqa: E501
:rtype: str
@@ -217,7 +217,7 @@ class V1PersistentVolumeClaimStatus(object):
def current_volume_attributes_class_name(self, current_volume_attributes_class_name):
"""Sets the current_volume_attributes_class_name of this V1PersistentVolumeClaimStatus.
- currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim This is a beta field and requires enabling VolumeAttributesClass feature (off by default). # noqa: E501
+ currentVolumeAttributesClassName is the current name of the VolumeAttributesClass the PVC is using. When unset, there is no VolumeAttributeClass applied to this PersistentVolumeClaim # noqa: E501
:param current_volume_attributes_class_name: The current_volume_attributes_class_name of this V1PersistentVolumeClaimStatus. # noqa: E501
:type: str
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_template.py b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_template.py
index 416fbed9658..d17a7a349b3 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_template.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_template.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py
index 18a63c1c9ea..5ba94fa7eb6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_claim_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_list.py
index dcfaad94c93..9685f56746c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_spec.py
index 731924c0415..c65968820bd 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -804,7 +804,7 @@ class V1PersistentVolumeSpec(object):
def volume_attributes_class_name(self):
"""Gets the volume_attributes_class_name of this V1PersistentVolumeSpec. # noqa: E501
- Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default). # noqa: E501
+ Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. # noqa: E501
:return: The volume_attributes_class_name of this V1PersistentVolumeSpec. # noqa: E501
:rtype: str
@@ -815,7 +815,7 @@ class V1PersistentVolumeSpec(object):
def volume_attributes_class_name(self, volume_attributes_class_name):
"""Sets the volume_attributes_class_name of this V1PersistentVolumeSpec.
- Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. This is a beta field and requires enabling VolumeAttributesClass feature (off by default). # noqa: E501
+ Name of VolumeAttributesClass to which this persistent volume belongs. Empty value is not allowed. When this field is not set, it indicates that this volume does not belong to any VolumeAttributesClass. This field is mutable and can be changed by the CSI driver after a volume has been updated successfully to a new class. For an unbound PersistentVolume, the volumeAttributesClassName will be matched with unbound PersistentVolumeClaims during the binding process. # noqa: E501
:param volume_attributes_class_name: The volume_attributes_class_name of this V1PersistentVolumeSpec. # noqa: E501
:type: str
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_status.py
index 56b17651482..3fc04d54897 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_persistent_volume_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py
index 77bf33c7ff0..ad7f64a9919 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_photon_persistent_disk_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod.py
index 302fdb774e5..01b75cad0df 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_affinity.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_affinity.py
index a8308d8280b..5f523eeb097 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_affinity.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_affinity.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_affinity_term.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_affinity_term.py
index 5ca260bd841..07bc0c4108d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_affinity_term.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_affinity_term.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_anti_affinity.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_anti_affinity.py
index 71b5309c73d..b53b9ceeaef 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_anti_affinity.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_anti_affinity.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -61,7 +61,7 @@ class V1PodAntiAffinity(object):
def preferred_during_scheduling_ignored_during_execution(self):
"""Gets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501
- The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. # noqa: E501
+ The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. # noqa: E501
:return: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501
:rtype: list[V1WeightedPodAffinityTerm]
@@ -72,7 +72,7 @@ class V1PodAntiAffinity(object):
def preferred_during_scheduling_ignored_during_execution(self, preferred_during_scheduling_ignored_during_execution):
"""Sets the preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity.
- The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and adding \"weight\" to the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. # noqa: E501
+ The scheduler will prefer to schedule pods to nodes that satisfy the anti-affinity expressions specified by this field, but it may choose a node that violates one or more of the expressions. The node that is most preferred is the one with the greatest sum of weights, i.e. for each node that meets all of the scheduling requirements (resource request, requiredDuringScheduling anti-affinity expressions, etc.), compute a sum by iterating through the elements of this field and subtracting \"weight\" from the sum if the node has pods which matches the corresponding podAffinityTerm; the node(s) with the highest sum are the most preferred. # noqa: E501
:param preferred_during_scheduling_ignored_during_execution: The preferred_during_scheduling_ignored_during_execution of this V1PodAntiAffinity. # noqa: E501
:type: list[V1WeightedPodAffinityTerm]
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_certificate_projection.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_certificate_projection.py
new file mode 100644
index 00000000000..6769611a617
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_certificate_projection.py
@@ -0,0 +1,264 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1PodCertificateProjection(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'certificate_chain_path': 'str',
+ 'credential_bundle_path': 'str',
+ 'key_path': 'str',
+ 'key_type': 'str',
+ 'max_expiration_seconds': 'int',
+ 'signer_name': 'str'
+ }
+
+ attribute_map = {
+ 'certificate_chain_path': 'certificateChainPath',
+ 'credential_bundle_path': 'credentialBundlePath',
+ 'key_path': 'keyPath',
+ 'key_type': 'keyType',
+ 'max_expiration_seconds': 'maxExpirationSeconds',
+ 'signer_name': 'signerName'
+ }
+
+ def __init__(self, certificate_chain_path=None, credential_bundle_path=None, key_path=None, key_type=None, max_expiration_seconds=None, signer_name=None, local_vars_configuration=None): # noqa: E501
+ """V1PodCertificateProjection - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._certificate_chain_path = None
+ self._credential_bundle_path = None
+ self._key_path = None
+ self._key_type = None
+ self._max_expiration_seconds = None
+ self._signer_name = None
+ self.discriminator = None
+
+ if certificate_chain_path is not None:
+ self.certificate_chain_path = certificate_chain_path
+ if credential_bundle_path is not None:
+ self.credential_bundle_path = credential_bundle_path
+ if key_path is not None:
+ self.key_path = key_path
+ self.key_type = key_type
+ if max_expiration_seconds is not None:
+ self.max_expiration_seconds = max_expiration_seconds
+ self.signer_name = signer_name
+
+ @property
+ def certificate_chain_path(self):
+ """Gets the certificate_chain_path of this V1PodCertificateProjection. # noqa: E501
+
+ Write the certificate chain at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. # noqa: E501
+
+ :return: The certificate_chain_path of this V1PodCertificateProjection. # noqa: E501
+ :rtype: str
+ """
+ return self._certificate_chain_path
+
+ @certificate_chain_path.setter
+ def certificate_chain_path(self, certificate_chain_path):
+ """Sets the certificate_chain_path of this V1PodCertificateProjection.
+
+ Write the certificate chain at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. # noqa: E501
+
+ :param certificate_chain_path: The certificate_chain_path of this V1PodCertificateProjection. # noqa: E501
+ :type: str
+ """
+
+ self._certificate_chain_path = certificate_chain_path
+
+ @property
+ def credential_bundle_path(self):
+ """Gets the credential_bundle_path of this V1PodCertificateProjection. # noqa: E501
+
+ Write the credential bundle at this path in the projected volume. The credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key. The remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates). Using credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key. # noqa: E501
+
+ :return: The credential_bundle_path of this V1PodCertificateProjection. # noqa: E501
+ :rtype: str
+ """
+ return self._credential_bundle_path
+
+ @credential_bundle_path.setter
+ def credential_bundle_path(self, credential_bundle_path):
+ """Sets the credential_bundle_path of this V1PodCertificateProjection.
+
+ Write the credential bundle at this path in the projected volume. The credential bundle is a single file that contains multiple PEM blocks. The first PEM block is a PRIVATE KEY block, containing a PKCS#8 private key. The remaining blocks are CERTIFICATE blocks, containing the issued certificate chain from the signer (leaf and any intermediates). Using credentialBundlePath lets your Pod's application code make a single atomic read that retrieves a consistent key and certificate chain. If you project them to separate files, your application code will need to additionally check that the leaf certificate was issued to the key. # noqa: E501
+
+ :param credential_bundle_path: The credential_bundle_path of this V1PodCertificateProjection. # noqa: E501
+ :type: str
+ """
+
+ self._credential_bundle_path = credential_bundle_path
+
+ @property
+ def key_path(self):
+ """Gets the key_path of this V1PodCertificateProjection. # noqa: E501
+
+ Write the key at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. # noqa: E501
+
+ :return: The key_path of this V1PodCertificateProjection. # noqa: E501
+ :rtype: str
+ """
+ return self._key_path
+
+ @key_path.setter
+ def key_path(self, key_path):
+ """Sets the key_path of this V1PodCertificateProjection.
+
+ Write the key at this path in the projected volume. Most applications should use credentialBundlePath. When using keyPath and certificateChainPath, your application needs to check that the key and leaf certificate are consistent, because it is possible to read the files mid-rotation. # noqa: E501
+
+ :param key_path: The key_path of this V1PodCertificateProjection. # noqa: E501
+ :type: str
+ """
+
+ self._key_path = key_path
+
+ @property
+ def key_type(self):
+ """Gets the key_type of this V1PodCertificateProjection. # noqa: E501
+
+ The type of keypair Kubelet will generate for the pod. Valid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\". # noqa: E501
+
+ :return: The key_type of this V1PodCertificateProjection. # noqa: E501
+ :rtype: str
+ """
+ return self._key_type
+
+ @key_type.setter
+ def key_type(self, key_type):
+ """Sets the key_type of this V1PodCertificateProjection.
+
+ The type of keypair Kubelet will generate for the pod. Valid values are \"RSA3072\", \"RSA4096\", \"ECDSAP256\", \"ECDSAP384\", \"ECDSAP521\", and \"ED25519\". # noqa: E501
+
+ :param key_type: The key_type of this V1PodCertificateProjection. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and key_type is None: # noqa: E501
+ raise ValueError("Invalid value for `key_type`, must not be `None`") # noqa: E501
+
+ self._key_type = key_type
+
+ @property
+ def max_expiration_seconds(self):
+ """Gets the max_expiration_seconds of this V1PodCertificateProjection. # noqa: E501
+
+ maxExpirationSeconds is the maximum lifetime permitted for the certificate. Kubelet copies this value verbatim into the PodCertificateRequests it generates for this projection. If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. # noqa: E501
+
+ :return: The max_expiration_seconds of this V1PodCertificateProjection. # noqa: E501
+ :rtype: int
+ """
+ return self._max_expiration_seconds
+
+ @max_expiration_seconds.setter
+ def max_expiration_seconds(self, max_expiration_seconds):
+ """Sets the max_expiration_seconds of this V1PodCertificateProjection.
+
+ maxExpirationSeconds is the maximum lifetime permitted for the certificate. Kubelet copies this value verbatim into the PodCertificateRequests it generates for this projection. If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. # noqa: E501
+
+ :param max_expiration_seconds: The max_expiration_seconds of this V1PodCertificateProjection. # noqa: E501
+ :type: int
+ """
+
+ self._max_expiration_seconds = max_expiration_seconds
+
+ @property
+ def signer_name(self):
+ """Gets the signer_name of this V1PodCertificateProjection. # noqa: E501
+
+ Kubelet's generated CSRs will be addressed to this signer. # noqa: E501
+
+ :return: The signer_name of this V1PodCertificateProjection. # noqa: E501
+ :rtype: str
+ """
+ return self._signer_name
+
+ @signer_name.setter
+ def signer_name(self, signer_name):
+ """Sets the signer_name of this V1PodCertificateProjection.
+
+ Kubelet's generated CSRs will be addressed to this signer. # noqa: E501
+
+ :param signer_name: The signer_name of this V1PodCertificateProjection. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and signer_name is None: # noqa: E501
+ raise ValueError("Invalid value for `signer_name`, must not be `None`") # noqa: E501
+
+ self._signer_name = signer_name
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1PodCertificateProjection):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1PodCertificateProjection):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_condition.py
index df58dd580e8..a20ef66ba32 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget.py
index f4ced43577f..b1ac0f427da 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_list.py
index 1a9bfd038a6..3f41186eea1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_spec.py
index b1ccd90ef23..d320020f4e3 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_status.py
index 1f4913b5430..87d83a3fa9c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_disruption_budget_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_dns_config.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_dns_config.py
index 1de3ef23f61..9b9d78c37c2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_dns_config.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_dns_config.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_dns_config_option.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_dns_config_option.py
index 253861a9cfe..3df72a1b857 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_dns_config_option.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_dns_config_option.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_extended_resource_claim_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_extended_resource_claim_status.py
new file mode 100644
index 00000000000..6bddcd7a1a3
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_extended_resource_claim_status.py
@@ -0,0 +1,152 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1PodExtendedResourceClaimStatus(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'request_mappings': 'list[V1ContainerExtendedResourceRequest]',
+ 'resource_claim_name': 'str'
+ }
+
+ attribute_map = {
+ 'request_mappings': 'requestMappings',
+ 'resource_claim_name': 'resourceClaimName'
+ }
+
+ def __init__(self, request_mappings=None, resource_claim_name=None, local_vars_configuration=None): # noqa: E501
+ """V1PodExtendedResourceClaimStatus - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._request_mappings = None
+ self._resource_claim_name = None
+ self.discriminator = None
+
+ self.request_mappings = request_mappings
+ self.resource_claim_name = resource_claim_name
+
+ @property
+ def request_mappings(self):
+ """Gets the request_mappings of this V1PodExtendedResourceClaimStatus. # noqa: E501
+
+ RequestMappings identifies the mapping of <container, extended resource backed by DRA> to device request in the generated ResourceClaim. # noqa: E501
+
+ :return: The request_mappings of this V1PodExtendedResourceClaimStatus. # noqa: E501
+ :rtype: list[V1ContainerExtendedResourceRequest]
+ """
+ return self._request_mappings
+
+ @request_mappings.setter
+ def request_mappings(self, request_mappings):
+ """Sets the request_mappings of this V1PodExtendedResourceClaimStatus.
+
+ RequestMappings identifies the mapping of <container, extended resource backed by DRA> to device request in the generated ResourceClaim. # noqa: E501
+
+ :param request_mappings: The request_mappings of this V1PodExtendedResourceClaimStatus. # noqa: E501
+ :type: list[V1ContainerExtendedResourceRequest]
+ """
+ if self.local_vars_configuration.client_side_validation and request_mappings is None: # noqa: E501
+ raise ValueError("Invalid value for `request_mappings`, must not be `None`") # noqa: E501
+
+ self._request_mappings = request_mappings
+
+ @property
+ def resource_claim_name(self):
+ """Gets the resource_claim_name of this V1PodExtendedResourceClaimStatus. # noqa: E501
+
+ ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. # noqa: E501
+
+ :return: The resource_claim_name of this V1PodExtendedResourceClaimStatus. # noqa: E501
+ :rtype: str
+ """
+ return self._resource_claim_name
+
+ @resource_claim_name.setter
+ def resource_claim_name(self, resource_claim_name):
+ """Sets the resource_claim_name of this V1PodExtendedResourceClaimStatus.
+
+ ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. # noqa: E501
+
+ :param resource_claim_name: The resource_claim_name of this V1PodExtendedResourceClaimStatus. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and resource_claim_name is None: # noqa: E501
+ raise ValueError("Invalid value for `resource_claim_name`, must not be `None`") # noqa: E501
+
+ self._resource_claim_name = resource_claim_name
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1PodExtendedResourceClaimStatus):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1PodExtendedResourceClaimStatus):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy.py
index 24735a7552d..1ea0353cdd8 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py
index b22aad2424a..428ce095ba4 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py
index 8bff4188591..aea817918ae 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_rule.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_rule.py
index dd7593afb7f..8a99a55b53e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_rule.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_failure_policy_rule.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_ip.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_ip.py
index 9527215cff2..699582fe181 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_ip.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_ip.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_list.py
index c5f5506b68a..d5784f4b0ab 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_os.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_os.py
index 79d212fc47b..aefe6cecb6a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_os.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_os.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_readiness_gate.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_readiness_gate.py
index 6d8f4b227bb..7346d676c97 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_readiness_gate.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_readiness_gate.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_resource_claim.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_resource_claim.py
index 27346a5b424..5514a128caf 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_resource_claim.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_resource_claim.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_resource_claim_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_resource_claim_status.py
index fb2ff9c27a5..71bff73bcfa 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_resource_claim_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_resource_claim_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_scheduling_gate.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_scheduling_gate.py
index 91e65caeb53..e8802ec8fb3 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_scheduling_gate.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_scheduling_gate.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_security_context.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_security_context.py
index f131057672f..0921b032276 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_security_context.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_security_context.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_spec.py
index d3af1239694..5ff6f7fe372 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -47,6 +47,7 @@ class V1PodSpec(object):
'host_pid': 'bool',
'host_users': 'bool',
'hostname': 'str',
+ 'hostname_override': 'str',
'image_pull_secrets': 'list[V1LocalObjectReference]',
'init_containers': 'list[V1Container]',
'node_name': 'str',
@@ -90,6 +91,7 @@ class V1PodSpec(object):
'host_pid': 'hostPID',
'host_users': 'hostUsers',
'hostname': 'hostname',
+ 'hostname_override': 'hostnameOverride',
'image_pull_secrets': 'imagePullSecrets',
'init_containers': 'initContainers',
'node_name': 'nodeName',
@@ -118,7 +120,7 @@ class V1PodSpec(object):
'volumes': 'volumes'
}
- def __init__(self, active_deadline_seconds=None, affinity=None, automount_service_account_token=None, containers=None, dns_config=None, dns_policy=None, enable_service_links=None, ephemeral_containers=None, host_aliases=None, host_ipc=None, host_network=None, host_pid=None, host_users=None, hostname=None, image_pull_secrets=None, init_containers=None, node_name=None, node_selector=None, os=None, overhead=None, preemption_policy=None, priority=None, priority_class_name=None, readiness_gates=None, resource_claims=None, resources=None, restart_policy=None, runtime_class_name=None, scheduler_name=None, scheduling_gates=None, security_context=None, service_account=None, service_account_name=None, set_hostname_as_fqdn=None, share_process_namespace=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, topology_spread_constraints=None, volumes=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, active_deadline_seconds=None, affinity=None, automount_service_account_token=None, containers=None, dns_config=None, dns_policy=None, enable_service_links=None, ephemeral_containers=None, host_aliases=None, host_ipc=None, host_network=None, host_pid=None, host_users=None, hostname=None, hostname_override=None, image_pull_secrets=None, init_containers=None, node_name=None, node_selector=None, os=None, overhead=None, preemption_policy=None, priority=None, priority_class_name=None, readiness_gates=None, resource_claims=None, resources=None, restart_policy=None, runtime_class_name=None, scheduler_name=None, scheduling_gates=None, security_context=None, service_account=None, service_account_name=None, set_hostname_as_fqdn=None, share_process_namespace=None, subdomain=None, termination_grace_period_seconds=None, tolerations=None, topology_spread_constraints=None, volumes=None, local_vars_configuration=None): # noqa: E501
"""V1PodSpec - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
@@ -138,6 +140,7 @@ class V1PodSpec(object):
self._host_pid = None
self._host_users = None
self._hostname = None
+ self._hostname_override = None
self._image_pull_secrets = None
self._init_containers = None
self._node_name = None
@@ -193,6 +196,8 @@ class V1PodSpec(object):
self.host_users = host_users
if hostname is not None:
self.hostname = hostname
+ if hostname_override is not None:
+ self.hostname_override = hostname_override
if image_pull_secrets is not None:
self.image_pull_secrets = image_pull_secrets
if init_containers is not None:
@@ -478,7 +483,7 @@ class V1PodSpec(object):
def host_network(self):
"""Gets the host_network of this V1PodSpec. # noqa: E501
- Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
+ Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false. # noqa: E501
:return: The host_network of this V1PodSpec. # noqa: E501
:rtype: bool
@@ -489,7 +494,7 @@ class V1PodSpec(object):
def host_network(self, host_network):
"""Sets the host_network of this V1PodSpec.
- Host networking requested for this pod. Use the host's network namespace. If this option is set, the ports that will be used must be specified. Default to false. # noqa: E501
+ Host networking requested for this pod. Use the host's network namespace. When using HostNetwork you should specify ports so the scheduler is aware. When `hostNetwork` is true, specified `hostPort` fields in port definitions must match `containerPort`, and unspecified `hostPort` fields in port definitions are defaulted to match `containerPort`. Default to false. # noqa: E501
:param host_network: The host_network of this V1PodSpec. # noqa: E501
:type: bool
@@ -567,6 +572,29 @@ class V1PodSpec(object):
self._hostname = hostname
@property
+ def hostname_override(self):
+ """Gets the hostname_override of this V1PodSpec. # noqa: E501
+
+ HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false. This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled. # noqa: E501
+
+ :return: The hostname_override of this V1PodSpec. # noqa: E501
+ :rtype: str
+ """
+ return self._hostname_override
+
+ @hostname_override.setter
+ def hostname_override(self, hostname_override):
+ """Sets the hostname_override of this V1PodSpec.
+
+ HostnameOverride specifies an explicit override for the pod's hostname as perceived by the pod. This field only specifies the pod's hostname and does not affect its DNS records. When this field is set to a non-empty string: - It takes precedence over the values set in `hostname` and `subdomain`. - The Pod's hostname will be set to this value. - `setHostnameAsFQDN` must be nil or set to false. - `hostNetwork` must be set to false. This field must be a valid DNS subdomain as defined in RFC 1123 and contain at most 64 characters. Requires the HostnameOverride feature gate to be enabled. # noqa: E501
+
+ :param hostname_override: The hostname_override of this V1PodSpec. # noqa: E501
+ :type: str
+ """
+
+ self._hostname_override = hostname_override
+
+ @property
def image_pull_secrets(self):
"""Gets the image_pull_secrets of this V1PodSpec. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_status.py
index 4430e2dfafd..1d9bf5aeb33 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -36,6 +36,7 @@ class V1PodStatus(object):
'conditions': 'list[V1PodCondition]',
'container_statuses': 'list[V1ContainerStatus]',
'ephemeral_container_statuses': 'list[V1ContainerStatus]',
+ 'extended_resource_claim_status': 'V1PodExtendedResourceClaimStatus',
'host_ip': 'str',
'host_i_ps': 'list[V1HostIP]',
'init_container_statuses': 'list[V1ContainerStatus]',
@@ -56,6 +57,7 @@ class V1PodStatus(object):
'conditions': 'conditions',
'container_statuses': 'containerStatuses',
'ephemeral_container_statuses': 'ephemeralContainerStatuses',
+ 'extended_resource_claim_status': 'extendedResourceClaimStatus',
'host_ip': 'hostIP',
'host_i_ps': 'hostIPs',
'init_container_statuses': 'initContainerStatuses',
@@ -72,7 +74,7 @@ class V1PodStatus(object):
'start_time': 'startTime'
}
- def __init__(self, conditions=None, container_statuses=None, ephemeral_container_statuses=None, host_ip=None, host_i_ps=None, init_container_statuses=None, message=None, nominated_node_name=None, observed_generation=None, phase=None, pod_ip=None, pod_i_ps=None, qos_class=None, reason=None, resize=None, resource_claim_statuses=None, start_time=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, conditions=None, container_statuses=None, ephemeral_container_statuses=None, extended_resource_claim_status=None, host_ip=None, host_i_ps=None, init_container_statuses=None, message=None, nominated_node_name=None, observed_generation=None, phase=None, pod_ip=None, pod_i_ps=None, qos_class=None, reason=None, resize=None, resource_claim_statuses=None, start_time=None, local_vars_configuration=None): # noqa: E501
"""V1PodStatus - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
@@ -81,6 +83,7 @@ class V1PodStatus(object):
self._conditions = None
self._container_statuses = None
self._ephemeral_container_statuses = None
+ self._extended_resource_claim_status = None
self._host_ip = None
self._host_i_ps = None
self._init_container_statuses = None
@@ -103,6 +106,8 @@ class V1PodStatus(object):
self.container_statuses = container_statuses
if ephemeral_container_statuses is not None:
self.ephemeral_container_statuses = ephemeral_container_statuses
+ if extended_resource_claim_status is not None:
+ self.extended_resource_claim_status = extended_resource_claim_status
if host_ip is not None:
self.host_ip = host_ip
if host_i_ps is not None:
@@ -202,6 +207,27 @@ class V1PodStatus(object):
self._ephemeral_container_statuses = ephemeral_container_statuses
@property
+ def extended_resource_claim_status(self):
+ """Gets the extended_resource_claim_status of this V1PodStatus. # noqa: E501
+
+
+ :return: The extended_resource_claim_status of this V1PodStatus. # noqa: E501
+ :rtype: V1PodExtendedResourceClaimStatus
+ """
+ return self._extended_resource_claim_status
+
+ @extended_resource_claim_status.setter
+ def extended_resource_claim_status(self, extended_resource_claim_status):
+ """Sets the extended_resource_claim_status of this V1PodStatus.
+
+
+ :param extended_resource_claim_status: The extended_resource_claim_status of this V1PodStatus. # noqa: E501
+ :type: V1PodExtendedResourceClaimStatus
+ """
+
+ self._extended_resource_claim_status = extended_resource_claim_status
+
+ @property
def host_ip(self):
"""Gets the host_ip of this V1PodStatus. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_template.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_template.py
index 4589badf600..5a79513c8c4 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_template.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_template.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_template_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_template_list.py
index e98ab25d31c..1c9c22f9006 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_template_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_template_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_template_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_template_spec.py
index 62457ca9726..548ea6240e2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_pod_template_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_pod_template_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_policy_rule.py b/contrib/python/kubernetes/kubernetes/client/models/v1_policy_rule.py
index acd22b65f62..0cdcce88d55 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_policy_rule.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_policy_rule.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_policy_rules_with_subjects.py b/contrib/python/kubernetes/kubernetes/client/models/v1_policy_rules_with_subjects.py
index ecac0a65ebd..74a68401ae5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_policy_rules_with_subjects.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_policy_rules_with_subjects.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_port_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_port_status.py
index 320d980a34e..5888f44fe63 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_port_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_port_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_portworx_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_portworx_volume_source.py
index d86ecbf68c8..3e19d142d5a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_portworx_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_portworx_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_preconditions.py b/contrib/python/kubernetes/kubernetes/client/models/v1_preconditions.py
index e30303ca2d9..52a414e3080 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_preconditions.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_preconditions.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_preferred_scheduling_term.py b/contrib/python/kubernetes/kubernetes/client/models/v1_preferred_scheduling_term.py
index fd66bb2eff5..8bf32d6316a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_preferred_scheduling_term.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_preferred_scheduling_term.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_class.py b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_class.py
index d6808b4d827..059bdcb4d58 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_class.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_class.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_class_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_class_list.py
index 4ceece8c780..daee5d4df44 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_class_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_class_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration.py
index d5524589027..3d9d62b3db6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_condition.py
index 6b586855c5c..6c62762548b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_list.py
index 1529ccc6c80..3a59a82d69f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_reference.py
index ea048377d49..aba241cb1b5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_spec.py
index 8d1a7bf1f35..bfe8f9dd257 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_status.py
index 38f51b9198e..2aa3598b7bd 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_priority_level_configuration_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_probe.py b/contrib/python/kubernetes/kubernetes/client/models/v1_probe.py
index c71ec51ef0e..7bfddc2642c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_probe.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_probe.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_projected_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_projected_volume_source.py
index 268623cdc28..424ca2b0ae0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_projected_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_projected_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_queuing_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1_queuing_configuration.py
index a5644ba58b3..784a9b6c115 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_queuing_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_queuing_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_quobyte_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_quobyte_volume_source.py
index fec13447fd3..9372359ee0d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_quobyte_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_quobyte_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_rbd_persistent_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_rbd_persistent_volume_source.py
index fee7c44076f..727da2a9325 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_rbd_persistent_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_rbd_persistent_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_rbd_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_rbd_volume_source.py
index e47f43e2903..31366b2b62a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_rbd_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_rbd_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set.py b/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set.py
index 91080ff54b1..e2082d810aa 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_condition.py
index ac88cabc7cc..3314048d11d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_list.py
index c6bf9bd52a0..feb0ab12605 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_spec.py
index db07c4f84db..03900d71ec7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_status.py
index 55ae0741f3d..667fb745c0c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_replica_set_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller.py b/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller.py
index 9313e863b6f..6a1f376fec5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_condition.py
index 8a868881f38..dc802464400 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_list.py
index f909bf05c54..5d777a0d3d4 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_spec.py
index 2c206087934..bc1547b4852 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_status.py
index 22c513a7320..bf13a4e9d55 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_replication_controller_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_attributes.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_attributes.py
index 5595310776e..bf8823dbbc7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_attributes.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_attributes.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_consumer_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_consumer_reference.py
index b9542799eb7..50af1ce6303 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_consumer_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_consumer_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3ResourceClaimConsumerReference(object):
+class V1ResourceClaimConsumerReference(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -47,7 +47,7 @@ class V1alpha3ResourceClaimConsumerReference(object):
}
def __init__(self, api_group=None, name=None, resource=None, uid=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3ResourceClaimConsumerReference - a model defined in OpenAPI""" # noqa: E501
+ """V1ResourceClaimConsumerReference - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -66,22 +66,22 @@ class V1alpha3ResourceClaimConsumerReference(object):
@property
def api_group(self):
- """Gets the api_group of this V1alpha3ResourceClaimConsumerReference. # noqa: E501
+ """Gets the api_group of this V1ResourceClaimConsumerReference. # noqa: E501
APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. # noqa: E501
- :return: The api_group of this V1alpha3ResourceClaimConsumerReference. # noqa: E501
+ :return: The api_group of this V1ResourceClaimConsumerReference. # noqa: E501
:rtype: str
"""
return self._api_group
@api_group.setter
def api_group(self, api_group):
- """Sets the api_group of this V1alpha3ResourceClaimConsumerReference.
+ """Sets the api_group of this V1ResourceClaimConsumerReference.
APIGroup is the group for the resource being referenced. It is empty for the core API. This matches the group in the APIVersion that is used when creating the resources. # noqa: E501
- :param api_group: The api_group of this V1alpha3ResourceClaimConsumerReference. # noqa: E501
+ :param api_group: The api_group of this V1ResourceClaimConsumerReference. # noqa: E501
:type: str
"""
@@ -89,22 +89,22 @@ class V1alpha3ResourceClaimConsumerReference(object):
@property
def name(self):
- """Gets the name of this V1alpha3ResourceClaimConsumerReference. # noqa: E501
+ """Gets the name of this V1ResourceClaimConsumerReference. # noqa: E501
Name is the name of resource being referenced. # noqa: E501
- :return: The name of this V1alpha3ResourceClaimConsumerReference. # noqa: E501
+ :return: The name of this V1ResourceClaimConsumerReference. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
- """Sets the name of this V1alpha3ResourceClaimConsumerReference.
+ """Sets the name of this V1ResourceClaimConsumerReference.
Name is the name of resource being referenced. # noqa: E501
- :param name: The name of this V1alpha3ResourceClaimConsumerReference. # noqa: E501
+ :param name: The name of this V1ResourceClaimConsumerReference. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
@@ -114,22 +114,22 @@ class V1alpha3ResourceClaimConsumerReference(object):
@property
def resource(self):
- """Gets the resource of this V1alpha3ResourceClaimConsumerReference. # noqa: E501
+ """Gets the resource of this V1ResourceClaimConsumerReference. # noqa: E501
Resource is the type of resource being referenced, for example \"pods\". # noqa: E501
- :return: The resource of this V1alpha3ResourceClaimConsumerReference. # noqa: E501
+ :return: The resource of this V1ResourceClaimConsumerReference. # noqa: E501
:rtype: str
"""
return self._resource
@resource.setter
def resource(self, resource):
- """Sets the resource of this V1alpha3ResourceClaimConsumerReference.
+ """Sets the resource of this V1ResourceClaimConsumerReference.
Resource is the type of resource being referenced, for example \"pods\". # noqa: E501
- :param resource: The resource of this V1alpha3ResourceClaimConsumerReference. # noqa: E501
+ :param resource: The resource of this V1ResourceClaimConsumerReference. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and resource is None: # noqa: E501
@@ -139,22 +139,22 @@ class V1alpha3ResourceClaimConsumerReference(object):
@property
def uid(self):
- """Gets the uid of this V1alpha3ResourceClaimConsumerReference. # noqa: E501
+ """Gets the uid of this V1ResourceClaimConsumerReference. # noqa: E501
UID identifies exactly one incarnation of the resource. # noqa: E501
- :return: The uid of this V1alpha3ResourceClaimConsumerReference. # noqa: E501
+ :return: The uid of this V1ResourceClaimConsumerReference. # noqa: E501
:rtype: str
"""
return self._uid
@uid.setter
def uid(self, uid):
- """Sets the uid of this V1alpha3ResourceClaimConsumerReference.
+ """Sets the uid of this V1ResourceClaimConsumerReference.
UID identifies exactly one incarnation of the resource. # noqa: E501
- :param uid: The uid of this V1alpha3ResourceClaimConsumerReference. # noqa: E501
+ :param uid: The uid of this V1ResourceClaimConsumerReference. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and uid is None: # noqa: E501
@@ -196,14 +196,14 @@ class V1alpha3ResourceClaimConsumerReference(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3ResourceClaimConsumerReference):
+ if not isinstance(other, V1ResourceClaimConsumerReference):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3ResourceClaimConsumerReference):
+ if not isinstance(other, V1ResourceClaimConsumerReference):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_list.py
index bcf05b7e156..d075edcad08 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3ResourceClaimList(object):
+class V1ResourceClaimList(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -34,7 +34,7 @@ class V1alpha3ResourceClaimList(object):
"""
openapi_types = {
'api_version': 'str',
- 'items': 'list[V1alpha3ResourceClaim]',
+ 'items': 'list[ResourceV1ResourceClaim]',
'kind': 'str',
'metadata': 'V1ListMeta'
}
@@ -47,7 +47,7 @@ class V1alpha3ResourceClaimList(object):
}
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3ResourceClaimList - a model defined in OpenAPI""" # noqa: E501
+ """V1ResourceClaimList - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -68,22 +68,22 @@ class V1alpha3ResourceClaimList(object):
@property
def api_version(self):
- """Gets the api_version of this V1alpha3ResourceClaimList. # noqa: E501
+ """Gets the api_version of this V1ResourceClaimList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :return: The api_version of this V1alpha3ResourceClaimList. # noqa: E501
+ :return: The api_version of this V1ResourceClaimList. # noqa: E501
:rtype: str
"""
return self._api_version
@api_version.setter
def api_version(self, api_version):
- """Sets the api_version of this V1alpha3ResourceClaimList.
+ """Sets the api_version of this V1ResourceClaimList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :param api_version: The api_version of this V1alpha3ResourceClaimList. # noqa: E501
+ :param api_version: The api_version of this V1ResourceClaimList. # noqa: E501
:type: str
"""
@@ -91,23 +91,23 @@ class V1alpha3ResourceClaimList(object):
@property
def items(self):
- """Gets the items of this V1alpha3ResourceClaimList. # noqa: E501
+ """Gets the items of this V1ResourceClaimList. # noqa: E501
Items is the list of resource claims. # noqa: E501
- :return: The items of this V1alpha3ResourceClaimList. # noqa: E501
- :rtype: list[V1alpha3ResourceClaim]
+ :return: The items of this V1ResourceClaimList. # noqa: E501
+ :rtype: list[ResourceV1ResourceClaim]
"""
return self._items
@items.setter
def items(self, items):
- """Sets the items of this V1alpha3ResourceClaimList.
+ """Sets the items of this V1ResourceClaimList.
Items is the list of resource claims. # noqa: E501
- :param items: The items of this V1alpha3ResourceClaimList. # noqa: E501
- :type: list[V1alpha3ResourceClaim]
+ :param items: The items of this V1ResourceClaimList. # noqa: E501
+ :type: list[ResourceV1ResourceClaim]
"""
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
@@ -116,22 +116,22 @@ class V1alpha3ResourceClaimList(object):
@property
def kind(self):
- """Gets the kind of this V1alpha3ResourceClaimList. # noqa: E501
+ """Gets the kind of this V1ResourceClaimList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :return: The kind of this V1alpha3ResourceClaimList. # noqa: E501
+ :return: The kind of this V1ResourceClaimList. # noqa: E501
:rtype: str
"""
return self._kind
@kind.setter
def kind(self, kind):
- """Sets the kind of this V1alpha3ResourceClaimList.
+ """Sets the kind of this V1ResourceClaimList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :param kind: The kind of this V1alpha3ResourceClaimList. # noqa: E501
+ :param kind: The kind of this V1ResourceClaimList. # noqa: E501
:type: str
"""
@@ -139,20 +139,20 @@ class V1alpha3ResourceClaimList(object):
@property
def metadata(self):
- """Gets the metadata of this V1alpha3ResourceClaimList. # noqa: E501
+ """Gets the metadata of this V1ResourceClaimList. # noqa: E501
- :return: The metadata of this V1alpha3ResourceClaimList. # noqa: E501
+ :return: The metadata of this V1ResourceClaimList. # noqa: E501
:rtype: V1ListMeta
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
- """Sets the metadata of this V1alpha3ResourceClaimList.
+ """Sets the metadata of this V1ResourceClaimList.
- :param metadata: The metadata of this V1alpha3ResourceClaimList. # noqa: E501
+ :param metadata: The metadata of this V1ResourceClaimList. # noqa: E501
:type: V1ListMeta
"""
@@ -192,14 +192,14 @@ class V1alpha3ResourceClaimList(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3ResourceClaimList):
+ if not isinstance(other, V1ResourceClaimList):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3ResourceClaimList):
+ if not isinstance(other, V1ResourceClaimList):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_spec.py
index c381f823f16..97f5e3b79fe 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3ResourceClaimSpec(object):
+class V1ResourceClaimSpec(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -33,7 +33,7 @@ class V1alpha3ResourceClaimSpec(object):
and the value is json key in definition.
"""
openapi_types = {
- 'devices': 'V1alpha3DeviceClaim'
+ 'devices': 'V1DeviceClaim'
}
attribute_map = {
@@ -41,7 +41,7 @@ class V1alpha3ResourceClaimSpec(object):
}
def __init__(self, devices=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3ResourceClaimSpec - a model defined in OpenAPI""" # noqa: E501
+ """V1ResourceClaimSpec - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -54,21 +54,21 @@ class V1alpha3ResourceClaimSpec(object):
@property
def devices(self):
- """Gets the devices of this V1alpha3ResourceClaimSpec. # noqa: E501
+ """Gets the devices of this V1ResourceClaimSpec. # noqa: E501
- :return: The devices of this V1alpha3ResourceClaimSpec. # noqa: E501
- :rtype: V1alpha3DeviceClaim
+ :return: The devices of this V1ResourceClaimSpec. # noqa: E501
+ :rtype: V1DeviceClaim
"""
return self._devices
@devices.setter
def devices(self, devices):
- """Sets the devices of this V1alpha3ResourceClaimSpec.
+ """Sets the devices of this V1ResourceClaimSpec.
- :param devices: The devices of this V1alpha3ResourceClaimSpec. # noqa: E501
- :type: V1alpha3DeviceClaim
+ :param devices: The devices of this V1ResourceClaimSpec. # noqa: E501
+ :type: V1DeviceClaim
"""
self._devices = devices
@@ -107,14 +107,14 @@ class V1alpha3ResourceClaimSpec(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3ResourceClaimSpec):
+ if not isinstance(other, V1ResourceClaimSpec):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3ResourceClaimSpec):
+ if not isinstance(other, V1ResourceClaimSpec):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_status.py
index c0f8ac76d52..e9d03b08807 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3ResourceClaimStatus(object):
+class V1ResourceClaimStatus(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -33,9 +33,9 @@ class V1alpha3ResourceClaimStatus(object):
and the value is json key in definition.
"""
openapi_types = {
- 'allocation': 'V1alpha3AllocationResult',
- 'devices': 'list[V1alpha3AllocatedDeviceStatus]',
- 'reserved_for': 'list[V1alpha3ResourceClaimConsumerReference]'
+ 'allocation': 'V1AllocationResult',
+ 'devices': 'list[V1AllocatedDeviceStatus]',
+ 'reserved_for': 'list[V1ResourceClaimConsumerReference]'
}
attribute_map = {
@@ -45,7 +45,7 @@ class V1alpha3ResourceClaimStatus(object):
}
def __init__(self, allocation=None, devices=None, reserved_for=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3ResourceClaimStatus - a model defined in OpenAPI""" # noqa: E501
+ """V1ResourceClaimStatus - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -64,67 +64,67 @@ class V1alpha3ResourceClaimStatus(object):
@property
def allocation(self):
- """Gets the allocation of this V1alpha3ResourceClaimStatus. # noqa: E501
+ """Gets the allocation of this V1ResourceClaimStatus. # noqa: E501
- :return: The allocation of this V1alpha3ResourceClaimStatus. # noqa: E501
- :rtype: V1alpha3AllocationResult
+ :return: The allocation of this V1ResourceClaimStatus. # noqa: E501
+ :rtype: V1AllocationResult
"""
return self._allocation
@allocation.setter
def allocation(self, allocation):
- """Sets the allocation of this V1alpha3ResourceClaimStatus.
+ """Sets the allocation of this V1ResourceClaimStatus.
- :param allocation: The allocation of this V1alpha3ResourceClaimStatus. # noqa: E501
- :type: V1alpha3AllocationResult
+ :param allocation: The allocation of this V1ResourceClaimStatus. # noqa: E501
+ :type: V1AllocationResult
"""
self._allocation = allocation
@property
def devices(self):
- """Gets the devices of this V1alpha3ResourceClaimStatus. # noqa: E501
+ """Gets the devices of this V1ResourceClaimStatus. # noqa: E501
Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers. # noqa: E501
- :return: The devices of this V1alpha3ResourceClaimStatus. # noqa: E501
- :rtype: list[V1alpha3AllocatedDeviceStatus]
+ :return: The devices of this V1ResourceClaimStatus. # noqa: E501
+ :rtype: list[V1AllocatedDeviceStatus]
"""
return self._devices
@devices.setter
def devices(self, devices):
- """Sets the devices of this V1alpha3ResourceClaimStatus.
+ """Sets the devices of this V1ResourceClaimStatus.
Devices contains the status of each device allocated for this claim, as reported by the driver. This can include driver-specific information. Entries are owned by their respective drivers. # noqa: E501
- :param devices: The devices of this V1alpha3ResourceClaimStatus. # noqa: E501
- :type: list[V1alpha3AllocatedDeviceStatus]
+ :param devices: The devices of this V1ResourceClaimStatus. # noqa: E501
+ :type: list[V1AllocatedDeviceStatus]
"""
self._devices = devices
@property
def reserved_for(self):
- """Gets the reserved_for of this V1alpha3ResourceClaimStatus. # noqa: E501
+ """Gets the reserved_for of this V1ResourceClaimStatus. # noqa: E501
ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated. In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled. Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again. There can be at most 256 such reservations. This may get increased in the future, but not reduced. # noqa: E501
- :return: The reserved_for of this V1alpha3ResourceClaimStatus. # noqa: E501
- :rtype: list[V1alpha3ResourceClaimConsumerReference]
+ :return: The reserved_for of this V1ResourceClaimStatus. # noqa: E501
+ :rtype: list[V1ResourceClaimConsumerReference]
"""
return self._reserved_for
@reserved_for.setter
def reserved_for(self, reserved_for):
- """Sets the reserved_for of this V1alpha3ResourceClaimStatus.
+ """Sets the reserved_for of this V1ResourceClaimStatus.
ReservedFor indicates which entities are currently allowed to use the claim. A Pod which references a ResourceClaim which is not reserved for that Pod will not be started. A claim that is in use or might be in use because it has been reserved must not get deallocated. In a cluster with multiple scheduler instances, two pods might get scheduled concurrently by different schedulers. When they reference the same ResourceClaim which already has reached its maximum number of consumers, only one pod can be scheduled. Both schedulers try to add their pod to the claim.status.reservedFor field, but only the update that reaches the API server first gets stored. The other one fails with an error and the scheduler which issued it knows that it must put the pod back into the queue, waiting for the ResourceClaim to become usable again. There can be at most 256 such reservations. This may get increased in the future, but not reduced. # noqa: E501
- :param reserved_for: The reserved_for of this V1alpha3ResourceClaimStatus. # noqa: E501
- :type: list[V1alpha3ResourceClaimConsumerReference]
+ :param reserved_for: The reserved_for of this V1ResourceClaimStatus. # noqa: E501
+ :type: list[V1ResourceClaimConsumerReference]
"""
self._reserved_for = reserved_for
@@ -163,14 +163,14 @@ class V1alpha3ResourceClaimStatus(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3ResourceClaimStatus):
+ if not isinstance(other, V1ResourceClaimStatus):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3ResourceClaimStatus):
+ if not isinstance(other, V1ResourceClaimStatus):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_template.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_template.py
index f552a16cdb8..e29870c8eaf 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_template.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_template.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3ResourceClaimTemplate(object):
+class V1ResourceClaimTemplate(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -36,7 +36,7 @@ class V1alpha3ResourceClaimTemplate(object):
'api_version': 'str',
'kind': 'str',
'metadata': 'V1ObjectMeta',
- 'spec': 'V1alpha3ResourceClaimTemplateSpec'
+ 'spec': 'V1ResourceClaimTemplateSpec'
}
attribute_map = {
@@ -47,7 +47,7 @@ class V1alpha3ResourceClaimTemplate(object):
}
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3ResourceClaimTemplate - a model defined in OpenAPI""" # noqa: E501
+ """V1ResourceClaimTemplate - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -68,22 +68,22 @@ class V1alpha3ResourceClaimTemplate(object):
@property
def api_version(self):
- """Gets the api_version of this V1alpha3ResourceClaimTemplate. # noqa: E501
+ """Gets the api_version of this V1ResourceClaimTemplate. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :return: The api_version of this V1alpha3ResourceClaimTemplate. # noqa: E501
+ :return: The api_version of this V1ResourceClaimTemplate. # noqa: E501
:rtype: str
"""
return self._api_version
@api_version.setter
def api_version(self, api_version):
- """Sets the api_version of this V1alpha3ResourceClaimTemplate.
+ """Sets the api_version of this V1ResourceClaimTemplate.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :param api_version: The api_version of this V1alpha3ResourceClaimTemplate. # noqa: E501
+ :param api_version: The api_version of this V1ResourceClaimTemplate. # noqa: E501
:type: str
"""
@@ -91,22 +91,22 @@ class V1alpha3ResourceClaimTemplate(object):
@property
def kind(self):
- """Gets the kind of this V1alpha3ResourceClaimTemplate. # noqa: E501
+ """Gets the kind of this V1ResourceClaimTemplate. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :return: The kind of this V1alpha3ResourceClaimTemplate. # noqa: E501
+ :return: The kind of this V1ResourceClaimTemplate. # noqa: E501
:rtype: str
"""
return self._kind
@kind.setter
def kind(self, kind):
- """Sets the kind of this V1alpha3ResourceClaimTemplate.
+ """Sets the kind of this V1ResourceClaimTemplate.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :param kind: The kind of this V1alpha3ResourceClaimTemplate. # noqa: E501
+ :param kind: The kind of this V1ResourceClaimTemplate. # noqa: E501
:type: str
"""
@@ -114,20 +114,20 @@ class V1alpha3ResourceClaimTemplate(object):
@property
def metadata(self):
- """Gets the metadata of this V1alpha3ResourceClaimTemplate. # noqa: E501
+ """Gets the metadata of this V1ResourceClaimTemplate. # noqa: E501
- :return: The metadata of this V1alpha3ResourceClaimTemplate. # noqa: E501
+ :return: The metadata of this V1ResourceClaimTemplate. # noqa: E501
:rtype: V1ObjectMeta
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
- """Sets the metadata of this V1alpha3ResourceClaimTemplate.
+ """Sets the metadata of this V1ResourceClaimTemplate.
- :param metadata: The metadata of this V1alpha3ResourceClaimTemplate. # noqa: E501
+ :param metadata: The metadata of this V1ResourceClaimTemplate. # noqa: E501
:type: V1ObjectMeta
"""
@@ -135,21 +135,21 @@ class V1alpha3ResourceClaimTemplate(object):
@property
def spec(self):
- """Gets the spec of this V1alpha3ResourceClaimTemplate. # noqa: E501
+ """Gets the spec of this V1ResourceClaimTemplate. # noqa: E501
- :return: The spec of this V1alpha3ResourceClaimTemplate. # noqa: E501
- :rtype: V1alpha3ResourceClaimTemplateSpec
+ :return: The spec of this V1ResourceClaimTemplate. # noqa: E501
+ :rtype: V1ResourceClaimTemplateSpec
"""
return self._spec
@spec.setter
def spec(self, spec):
- """Sets the spec of this V1alpha3ResourceClaimTemplate.
+ """Sets the spec of this V1ResourceClaimTemplate.
- :param spec: The spec of this V1alpha3ResourceClaimTemplate. # noqa: E501
- :type: V1alpha3ResourceClaimTemplateSpec
+ :param spec: The spec of this V1ResourceClaimTemplate. # noqa: E501
+ :type: V1ResourceClaimTemplateSpec
"""
if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501
raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501
@@ -190,14 +190,14 @@ class V1alpha3ResourceClaimTemplate(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3ResourceClaimTemplate):
+ if not isinstance(other, V1ResourceClaimTemplate):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3ResourceClaimTemplate):
+ if not isinstance(other, V1ResourceClaimTemplate):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_template_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_template_list.py
index 2085243c206..25d38b1f139 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_template_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_template_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3ResourceClaimTemplateList(object):
+class V1ResourceClaimTemplateList(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -34,7 +34,7 @@ class V1alpha3ResourceClaimTemplateList(object):
"""
openapi_types = {
'api_version': 'str',
- 'items': 'list[V1alpha3ResourceClaimTemplate]',
+ 'items': 'list[V1ResourceClaimTemplate]',
'kind': 'str',
'metadata': 'V1ListMeta'
}
@@ -47,7 +47,7 @@ class V1alpha3ResourceClaimTemplateList(object):
}
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3ResourceClaimTemplateList - a model defined in OpenAPI""" # noqa: E501
+ """V1ResourceClaimTemplateList - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -68,22 +68,22 @@ class V1alpha3ResourceClaimTemplateList(object):
@property
def api_version(self):
- """Gets the api_version of this V1alpha3ResourceClaimTemplateList. # noqa: E501
+ """Gets the api_version of this V1ResourceClaimTemplateList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :return: The api_version of this V1alpha3ResourceClaimTemplateList. # noqa: E501
+ :return: The api_version of this V1ResourceClaimTemplateList. # noqa: E501
:rtype: str
"""
return self._api_version
@api_version.setter
def api_version(self, api_version):
- """Sets the api_version of this V1alpha3ResourceClaimTemplateList.
+ """Sets the api_version of this V1ResourceClaimTemplateList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :param api_version: The api_version of this V1alpha3ResourceClaimTemplateList. # noqa: E501
+ :param api_version: The api_version of this V1ResourceClaimTemplateList. # noqa: E501
:type: str
"""
@@ -91,23 +91,23 @@ class V1alpha3ResourceClaimTemplateList(object):
@property
def items(self):
- """Gets the items of this V1alpha3ResourceClaimTemplateList. # noqa: E501
+ """Gets the items of this V1ResourceClaimTemplateList. # noqa: E501
Items is the list of resource claim templates. # noqa: E501
- :return: The items of this V1alpha3ResourceClaimTemplateList. # noqa: E501
- :rtype: list[V1alpha3ResourceClaimTemplate]
+ :return: The items of this V1ResourceClaimTemplateList. # noqa: E501
+ :rtype: list[V1ResourceClaimTemplate]
"""
return self._items
@items.setter
def items(self, items):
- """Sets the items of this V1alpha3ResourceClaimTemplateList.
+ """Sets the items of this V1ResourceClaimTemplateList.
Items is the list of resource claim templates. # noqa: E501
- :param items: The items of this V1alpha3ResourceClaimTemplateList. # noqa: E501
- :type: list[V1alpha3ResourceClaimTemplate]
+ :param items: The items of this V1ResourceClaimTemplateList. # noqa: E501
+ :type: list[V1ResourceClaimTemplate]
"""
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
@@ -116,22 +116,22 @@ class V1alpha3ResourceClaimTemplateList(object):
@property
def kind(self):
- """Gets the kind of this V1alpha3ResourceClaimTemplateList. # noqa: E501
+ """Gets the kind of this V1ResourceClaimTemplateList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :return: The kind of this V1alpha3ResourceClaimTemplateList. # noqa: E501
+ :return: The kind of this V1ResourceClaimTemplateList. # noqa: E501
:rtype: str
"""
return self._kind
@kind.setter
def kind(self, kind):
- """Sets the kind of this V1alpha3ResourceClaimTemplateList.
+ """Sets the kind of this V1ResourceClaimTemplateList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :param kind: The kind of this V1alpha3ResourceClaimTemplateList. # noqa: E501
+ :param kind: The kind of this V1ResourceClaimTemplateList. # noqa: E501
:type: str
"""
@@ -139,20 +139,20 @@ class V1alpha3ResourceClaimTemplateList(object):
@property
def metadata(self):
- """Gets the metadata of this V1alpha3ResourceClaimTemplateList. # noqa: E501
+ """Gets the metadata of this V1ResourceClaimTemplateList. # noqa: E501
- :return: The metadata of this V1alpha3ResourceClaimTemplateList. # noqa: E501
+ :return: The metadata of this V1ResourceClaimTemplateList. # noqa: E501
:rtype: V1ListMeta
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
- """Sets the metadata of this V1alpha3ResourceClaimTemplateList.
+ """Sets the metadata of this V1ResourceClaimTemplateList.
- :param metadata: The metadata of this V1alpha3ResourceClaimTemplateList. # noqa: E501
+ :param metadata: The metadata of this V1ResourceClaimTemplateList. # noqa: E501
:type: V1ListMeta
"""
@@ -192,14 +192,14 @@ class V1alpha3ResourceClaimTemplateList(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3ResourceClaimTemplateList):
+ if not isinstance(other, V1ResourceClaimTemplateList):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3ResourceClaimTemplateList):
+ if not isinstance(other, V1ResourceClaimTemplateList):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_template_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_template_spec.py
index a4b39b529b1..9c6ca51e5d6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_claim_template_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_claim_template_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3ResourceClaimTemplateSpec(object):
+class V1ResourceClaimTemplateSpec(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -34,7 +34,7 @@ class V1alpha3ResourceClaimTemplateSpec(object):
"""
openapi_types = {
'metadata': 'V1ObjectMeta',
- 'spec': 'V1alpha3ResourceClaimSpec'
+ 'spec': 'V1ResourceClaimSpec'
}
attribute_map = {
@@ -43,7 +43,7 @@ class V1alpha3ResourceClaimTemplateSpec(object):
}
def __init__(self, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3ResourceClaimTemplateSpec - a model defined in OpenAPI""" # noqa: E501
+ """V1ResourceClaimTemplateSpec - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -58,20 +58,20 @@ class V1alpha3ResourceClaimTemplateSpec(object):
@property
def metadata(self):
- """Gets the metadata of this V1alpha3ResourceClaimTemplateSpec. # noqa: E501
+ """Gets the metadata of this V1ResourceClaimTemplateSpec. # noqa: E501
- :return: The metadata of this V1alpha3ResourceClaimTemplateSpec. # noqa: E501
+ :return: The metadata of this V1ResourceClaimTemplateSpec. # noqa: E501
:rtype: V1ObjectMeta
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
- """Sets the metadata of this V1alpha3ResourceClaimTemplateSpec.
+ """Sets the metadata of this V1ResourceClaimTemplateSpec.
- :param metadata: The metadata of this V1alpha3ResourceClaimTemplateSpec. # noqa: E501
+ :param metadata: The metadata of this V1ResourceClaimTemplateSpec. # noqa: E501
:type: V1ObjectMeta
"""
@@ -79,21 +79,21 @@ class V1alpha3ResourceClaimTemplateSpec(object):
@property
def spec(self):
- """Gets the spec of this V1alpha3ResourceClaimTemplateSpec. # noqa: E501
+ """Gets the spec of this V1ResourceClaimTemplateSpec. # noqa: E501
- :return: The spec of this V1alpha3ResourceClaimTemplateSpec. # noqa: E501
- :rtype: V1alpha3ResourceClaimSpec
+ :return: The spec of this V1ResourceClaimTemplateSpec. # noqa: E501
+ :rtype: V1ResourceClaimSpec
"""
return self._spec
@spec.setter
def spec(self, spec):
- """Sets the spec of this V1alpha3ResourceClaimTemplateSpec.
+ """Sets the spec of this V1ResourceClaimTemplateSpec.
- :param spec: The spec of this V1alpha3ResourceClaimTemplateSpec. # noqa: E501
- :type: V1alpha3ResourceClaimSpec
+ :param spec: The spec of this V1ResourceClaimTemplateSpec. # noqa: E501
+ :type: V1ResourceClaimSpec
"""
if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501
raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501
@@ -134,14 +134,14 @@ class V1alpha3ResourceClaimTemplateSpec(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3ResourceClaimTemplateSpec):
+ if not isinstance(other, V1ResourceClaimTemplateSpec):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3ResourceClaimTemplateSpec):
+ if not isinstance(other, V1ResourceClaimTemplateSpec):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_field_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_field_selector.py
index 4cbea683352..c3143156526 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_field_selector.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_field_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_health.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_health.py
index 22034411891..59da068cf2a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_health.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_health.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_policy_rule.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_policy_rule.py
index c0f59088804..9606dfaa803 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_policy_rule.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_policy_rule.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_pool.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_pool.py
index b640c871e6b..2671b5d0d47 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_pool.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_pool.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3ResourcePool(object):
+class V1ResourcePool(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -45,7 +45,7 @@ class V1alpha3ResourcePool(object):
}
def __init__(self, generation=None, name=None, resource_slice_count=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3ResourcePool - a model defined in OpenAPI""" # noqa: E501
+ """V1ResourcePool - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -61,22 +61,22 @@ class V1alpha3ResourcePool(object):
@property
def generation(self):
- """Gets the generation of this V1alpha3ResourcePool. # noqa: E501
+ """Gets the generation of this V1ResourcePool. # noqa: E501
Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted. Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state. # noqa: E501
- :return: The generation of this V1alpha3ResourcePool. # noqa: E501
+ :return: The generation of this V1ResourcePool. # noqa: E501
:rtype: int
"""
return self._generation
@generation.setter
def generation(self, generation):
- """Sets the generation of this V1alpha3ResourcePool.
+ """Sets the generation of this V1ResourcePool.
Generation tracks the change in a pool over time. Whenever a driver changes something about one or more of the resources in a pool, it must change the generation in all ResourceSlices which are part of that pool. Consumers of ResourceSlices should only consider resources from the pool with the highest generation number. The generation may be reset by drivers, which should be fine for consumers, assuming that all ResourceSlices in a pool are updated to match or deleted. Combined with ResourceSliceCount, this mechanism enables consumers to detect pools which are comprised of multiple ResourceSlices and are in an incomplete state. # noqa: E501
- :param generation: The generation of this V1alpha3ResourcePool. # noqa: E501
+ :param generation: The generation of this V1ResourcePool. # noqa: E501
:type: int
"""
if self.local_vars_configuration.client_side_validation and generation is None: # noqa: E501
@@ -86,22 +86,22 @@ class V1alpha3ResourcePool(object):
@property
def name(self):
- """Gets the name of this V1alpha3ResourcePool. # noqa: E501
+ """Gets the name of this V1ResourcePool. # noqa: E501
Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable. # noqa: E501
- :return: The name of this V1alpha3ResourcePool. # noqa: E501
+ :return: The name of this V1ResourcePool. # noqa: E501
:rtype: str
"""
return self._name
@name.setter
def name(self, name):
- """Sets the name of this V1alpha3ResourcePool.
+ """Sets the name of this V1ResourcePool.
Name is used to identify the pool. For node-local devices, this is often the node name, but this is not required. It must not be longer than 253 characters and must consist of one or more DNS sub-domains separated by slashes. This field is immutable. # noqa: E501
- :param name: The name of this V1alpha3ResourcePool. # noqa: E501
+ :param name: The name of this V1ResourcePool. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
@@ -111,22 +111,22 @@ class V1alpha3ResourcePool(object):
@property
def resource_slice_count(self):
- """Gets the resource_slice_count of this V1alpha3ResourcePool. # noqa: E501
+ """Gets the resource_slice_count of this V1ResourcePool. # noqa: E501
ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero. Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool. # noqa: E501
- :return: The resource_slice_count of this V1alpha3ResourcePool. # noqa: E501
+ :return: The resource_slice_count of this V1ResourcePool. # noqa: E501
:rtype: int
"""
return self._resource_slice_count
@resource_slice_count.setter
def resource_slice_count(self, resource_slice_count):
- """Sets the resource_slice_count of this V1alpha3ResourcePool.
+ """Sets the resource_slice_count of this V1ResourcePool.
ResourceSliceCount is the total number of ResourceSlices in the pool at this generation number. Must be greater than zero. Consumers can use this to check whether they have seen all ResourceSlices belonging to the same pool. # noqa: E501
- :param resource_slice_count: The resource_slice_count of this V1alpha3ResourcePool. # noqa: E501
+ :param resource_slice_count: The resource_slice_count of this V1ResourcePool. # noqa: E501
:type: int
"""
if self.local_vars_configuration.client_side_validation and resource_slice_count is None: # noqa: E501
@@ -168,14 +168,14 @@ class V1alpha3ResourcePool(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3ResourcePool):
+ if not isinstance(other, V1ResourcePool):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3ResourcePool):
+ if not isinstance(other, V1ResourcePool):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota.py
index 92489506015..fd4e07998b4 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_list.py
index f0bb0adb42f..fb5f2638725 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_spec.py
index 604aebda029..a343b49d1cd 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_status.py
index f5b5f89abc0..35716e00b18 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_quota_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_requirements.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_requirements.py
index af9958e3775..5ed40e94b36 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_requirements.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_requirements.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -33,7 +33,7 @@ class V1ResourceRequirements(object):
and the value is json key in definition.
"""
openapi_types = {
- 'claims': 'list[V1ResourceClaim]',
+ 'claims': 'list[CoreV1ResourceClaim]',
'limits': 'dict(str, str)',
'requests': 'dict(str, str)'
}
@@ -66,10 +66,10 @@ class V1ResourceRequirements(object):
def claims(self):
"""Gets the claims of this V1ResourceRequirements. # noqa: E501
- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. # noqa: E501
+ Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This field depends on the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. # noqa: E501
:return: The claims of this V1ResourceRequirements. # noqa: E501
- :rtype: list[V1ResourceClaim]
+ :rtype: list[CoreV1ResourceClaim]
"""
return self._claims
@@ -77,10 +77,10 @@ class V1ResourceRequirements(object):
def claims(self, claims):
"""Sets the claims of this V1ResourceRequirements.
- Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. # noqa: E501
+ Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This field depends on the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. # noqa: E501
:param claims: The claims of this V1ResourceRequirements. # noqa: E501
- :type: list[V1ResourceClaim]
+ :type: list[CoreV1ResourceClaim]
"""
self._claims = claims
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_rule.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_rule.py
index 6d1d08ede5d..ac8d148d84c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_rule.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_rule.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_class.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_slice.py
index 41560e22923..2c20c97b35c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_class.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_slice.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3DeviceClass(object):
+class V1ResourceSlice(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -36,7 +36,7 @@ class V1alpha3DeviceClass(object):
'api_version': 'str',
'kind': 'str',
'metadata': 'V1ObjectMeta',
- 'spec': 'V1alpha3DeviceClassSpec'
+ 'spec': 'V1ResourceSliceSpec'
}
attribute_map = {
@@ -47,7 +47,7 @@ class V1alpha3DeviceClass(object):
}
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceClass - a model defined in OpenAPI""" # noqa: E501
+ """V1ResourceSlice - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -68,22 +68,22 @@ class V1alpha3DeviceClass(object):
@property
def api_version(self):
- """Gets the api_version of this V1alpha3DeviceClass. # noqa: E501
+ """Gets the api_version of this V1ResourceSlice. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :return: The api_version of this V1alpha3DeviceClass. # noqa: E501
+ :return: The api_version of this V1ResourceSlice. # noqa: E501
:rtype: str
"""
return self._api_version
@api_version.setter
def api_version(self, api_version):
- """Sets the api_version of this V1alpha3DeviceClass.
+ """Sets the api_version of this V1ResourceSlice.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :param api_version: The api_version of this V1alpha3DeviceClass. # noqa: E501
+ :param api_version: The api_version of this V1ResourceSlice. # noqa: E501
:type: str
"""
@@ -91,22 +91,22 @@ class V1alpha3DeviceClass(object):
@property
def kind(self):
- """Gets the kind of this V1alpha3DeviceClass. # noqa: E501
+ """Gets the kind of this V1ResourceSlice. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :return: The kind of this V1alpha3DeviceClass. # noqa: E501
+ :return: The kind of this V1ResourceSlice. # noqa: E501
:rtype: str
"""
return self._kind
@kind.setter
def kind(self, kind):
- """Sets the kind of this V1alpha3DeviceClass.
+ """Sets the kind of this V1ResourceSlice.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :param kind: The kind of this V1alpha3DeviceClass. # noqa: E501
+ :param kind: The kind of this V1ResourceSlice. # noqa: E501
:type: str
"""
@@ -114,20 +114,20 @@ class V1alpha3DeviceClass(object):
@property
def metadata(self):
- """Gets the metadata of this V1alpha3DeviceClass. # noqa: E501
+ """Gets the metadata of this V1ResourceSlice. # noqa: E501
- :return: The metadata of this V1alpha3DeviceClass. # noqa: E501
+ :return: The metadata of this V1ResourceSlice. # noqa: E501
:rtype: V1ObjectMeta
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
- """Sets the metadata of this V1alpha3DeviceClass.
+ """Sets the metadata of this V1ResourceSlice.
- :param metadata: The metadata of this V1alpha3DeviceClass. # noqa: E501
+ :param metadata: The metadata of this V1ResourceSlice. # noqa: E501
:type: V1ObjectMeta
"""
@@ -135,21 +135,21 @@ class V1alpha3DeviceClass(object):
@property
def spec(self):
- """Gets the spec of this V1alpha3DeviceClass. # noqa: E501
+ """Gets the spec of this V1ResourceSlice. # noqa: E501
- :return: The spec of this V1alpha3DeviceClass. # noqa: E501
- :rtype: V1alpha3DeviceClassSpec
+ :return: The spec of this V1ResourceSlice. # noqa: E501
+ :rtype: V1ResourceSliceSpec
"""
return self._spec
@spec.setter
def spec(self, spec):
- """Sets the spec of this V1alpha3DeviceClass.
+ """Sets the spec of this V1ResourceSlice.
- :param spec: The spec of this V1alpha3DeviceClass. # noqa: E501
- :type: V1alpha3DeviceClassSpec
+ :param spec: The spec of this V1ResourceSlice. # noqa: E501
+ :type: V1ResourceSliceSpec
"""
if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501
raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501
@@ -190,14 +190,14 @@ class V1alpha3DeviceClass(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceClass):
+ if not isinstance(other, V1ResourceSlice):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceClass):
+ if not isinstance(other, V1ResourceSlice):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_slice_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_slice_list.py
index 61c22e70f00..7897889d327 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_slice_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_slice_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3ResourceSliceList(object):
+class V1ResourceSliceList(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -34,7 +34,7 @@ class V1alpha3ResourceSliceList(object):
"""
openapi_types = {
'api_version': 'str',
- 'items': 'list[V1alpha3ResourceSlice]',
+ 'items': 'list[V1ResourceSlice]',
'kind': 'str',
'metadata': 'V1ListMeta'
}
@@ -47,7 +47,7 @@ class V1alpha3ResourceSliceList(object):
}
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3ResourceSliceList - a model defined in OpenAPI""" # noqa: E501
+ """V1ResourceSliceList - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -68,22 +68,22 @@ class V1alpha3ResourceSliceList(object):
@property
def api_version(self):
- """Gets the api_version of this V1alpha3ResourceSliceList. # noqa: E501
+ """Gets the api_version of this V1ResourceSliceList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :return: The api_version of this V1alpha3ResourceSliceList. # noqa: E501
+ :return: The api_version of this V1ResourceSliceList. # noqa: E501
:rtype: str
"""
return self._api_version
@api_version.setter
def api_version(self, api_version):
- """Sets the api_version of this V1alpha3ResourceSliceList.
+ """Sets the api_version of this V1ResourceSliceList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :param api_version: The api_version of this V1alpha3ResourceSliceList. # noqa: E501
+ :param api_version: The api_version of this V1ResourceSliceList. # noqa: E501
:type: str
"""
@@ -91,23 +91,23 @@ class V1alpha3ResourceSliceList(object):
@property
def items(self):
- """Gets the items of this V1alpha3ResourceSliceList. # noqa: E501
+ """Gets the items of this V1ResourceSliceList. # noqa: E501
Items is the list of resource ResourceSlices. # noqa: E501
- :return: The items of this V1alpha3ResourceSliceList. # noqa: E501
- :rtype: list[V1alpha3ResourceSlice]
+ :return: The items of this V1ResourceSliceList. # noqa: E501
+ :rtype: list[V1ResourceSlice]
"""
return self._items
@items.setter
def items(self, items):
- """Sets the items of this V1alpha3ResourceSliceList.
+ """Sets the items of this V1ResourceSliceList.
Items is the list of resource ResourceSlices. # noqa: E501
- :param items: The items of this V1alpha3ResourceSliceList. # noqa: E501
- :type: list[V1alpha3ResourceSlice]
+ :param items: The items of this V1ResourceSliceList. # noqa: E501
+ :type: list[V1ResourceSlice]
"""
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
@@ -116,22 +116,22 @@ class V1alpha3ResourceSliceList(object):
@property
def kind(self):
- """Gets the kind of this V1alpha3ResourceSliceList. # noqa: E501
+ """Gets the kind of this V1ResourceSliceList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :return: The kind of this V1alpha3ResourceSliceList. # noqa: E501
+ :return: The kind of this V1ResourceSliceList. # noqa: E501
:rtype: str
"""
return self._kind
@kind.setter
def kind(self, kind):
- """Sets the kind of this V1alpha3ResourceSliceList.
+ """Sets the kind of this V1ResourceSliceList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :param kind: The kind of this V1alpha3ResourceSliceList. # noqa: E501
+ :param kind: The kind of this V1ResourceSliceList. # noqa: E501
:type: str
"""
@@ -139,20 +139,20 @@ class V1alpha3ResourceSliceList(object):
@property
def metadata(self):
- """Gets the metadata of this V1alpha3ResourceSliceList. # noqa: E501
+ """Gets the metadata of this V1ResourceSliceList. # noqa: E501
- :return: The metadata of this V1alpha3ResourceSliceList. # noqa: E501
+ :return: The metadata of this V1ResourceSliceList. # noqa: E501
:rtype: V1ListMeta
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
- """Sets the metadata of this V1alpha3ResourceSliceList.
+ """Sets the metadata of this V1ResourceSliceList.
- :param metadata: The metadata of this V1alpha3ResourceSliceList. # noqa: E501
+ :param metadata: The metadata of this V1ResourceSliceList. # noqa: E501
:type: V1ListMeta
"""
@@ -192,14 +192,14 @@ class V1alpha3ResourceSliceList(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3ResourceSliceList):
+ if not isinstance(other, V1ResourceSliceList):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3ResourceSliceList):
+ if not isinstance(other, V1ResourceSliceList):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_slice_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_slice_spec.py
index 2136880d363..256dd786ce4 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_resource_slice_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_slice_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1alpha3ResourceSliceSpec(object):
+class V1ResourceSliceSpec(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -34,13 +34,13 @@ class V1alpha3ResourceSliceSpec(object):
"""
openapi_types = {
'all_nodes': 'bool',
- 'devices': 'list[V1alpha3Device]',
+ 'devices': 'list[V1Device]',
'driver': 'str',
'node_name': 'str',
'node_selector': 'V1NodeSelector',
'per_device_node_selection': 'bool',
- 'pool': 'V1alpha3ResourcePool',
- 'shared_counters': 'list[V1alpha3CounterSet]'
+ 'pool': 'V1ResourcePool',
+ 'shared_counters': 'list[V1CounterSet]'
}
attribute_map = {
@@ -55,7 +55,7 @@ class V1alpha3ResourceSliceSpec(object):
}
def __init__(self, all_nodes=None, devices=None, driver=None, node_name=None, node_selector=None, per_device_node_selection=None, pool=None, shared_counters=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3ResourceSliceSpec - a model defined in OpenAPI""" # noqa: E501
+ """V1ResourceSliceSpec - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -87,22 +87,22 @@ class V1alpha3ResourceSliceSpec(object):
@property
def all_nodes(self):
- """Gets the all_nodes of this V1alpha3ResourceSliceSpec. # noqa: E501
+ """Gets the all_nodes of this V1ResourceSliceSpec. # noqa: E501
AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. # noqa: E501
- :return: The all_nodes of this V1alpha3ResourceSliceSpec. # noqa: E501
+ :return: The all_nodes of this V1ResourceSliceSpec. # noqa: E501
:rtype: bool
"""
return self._all_nodes
@all_nodes.setter
def all_nodes(self, all_nodes):
- """Sets the all_nodes of this V1alpha3ResourceSliceSpec.
+ """Sets the all_nodes of this V1ResourceSliceSpec.
AllNodes indicates that all nodes have access to the resources in the pool. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. # noqa: E501
- :param all_nodes: The all_nodes of this V1alpha3ResourceSliceSpec. # noqa: E501
+ :param all_nodes: The all_nodes of this V1ResourceSliceSpec. # noqa: E501
:type: bool
"""
@@ -110,45 +110,45 @@ class V1alpha3ResourceSliceSpec(object):
@property
def devices(self):
- """Gets the devices of this V1alpha3ResourceSliceSpec. # noqa: E501
+ """Gets the devices of this V1ResourceSliceSpec. # noqa: E501
Devices lists some or all of the devices in this pool. Must not have more than 128 entries. # noqa: E501
- :return: The devices of this V1alpha3ResourceSliceSpec. # noqa: E501
- :rtype: list[V1alpha3Device]
+ :return: The devices of this V1ResourceSliceSpec. # noqa: E501
+ :rtype: list[V1Device]
"""
return self._devices
@devices.setter
def devices(self, devices):
- """Sets the devices of this V1alpha3ResourceSliceSpec.
+ """Sets the devices of this V1ResourceSliceSpec.
Devices lists some or all of the devices in this pool. Must not have more than 128 entries. # noqa: E501
- :param devices: The devices of this V1alpha3ResourceSliceSpec. # noqa: E501
- :type: list[V1alpha3Device]
+ :param devices: The devices of this V1ResourceSliceSpec. # noqa: E501
+ :type: list[V1Device]
"""
self._devices = devices
@property
def driver(self):
- """Gets the driver of this V1alpha3ResourceSliceSpec. # noqa: E501
+ """Gets the driver of this V1ResourceSliceSpec. # noqa: E501
Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable. # noqa: E501
- :return: The driver of this V1alpha3ResourceSliceSpec. # noqa: E501
+ :return: The driver of this V1ResourceSliceSpec. # noqa: E501
:rtype: str
"""
return self._driver
@driver.setter
def driver(self, driver):
- """Sets the driver of this V1alpha3ResourceSliceSpec.
+ """Sets the driver of this V1ResourceSliceSpec.
Driver identifies the DRA driver providing the capacity information. A field selector can be used to list only ResourceSlice objects with a certain driver name. Must be a DNS subdomain and should end with a DNS domain owned by the vendor of the driver. This field is immutable. # noqa: E501
- :param driver: The driver of this V1alpha3ResourceSliceSpec. # noqa: E501
+ :param driver: The driver of this V1ResourceSliceSpec. # noqa: E501
:type: str
"""
if self.local_vars_configuration.client_side_validation and driver is None: # noqa: E501
@@ -158,22 +158,22 @@ class V1alpha3ResourceSliceSpec(object):
@property
def node_name(self):
- """Gets the node_name of this V1alpha3ResourceSliceSpec. # noqa: E501
+ """Gets the node_name of this V1ResourceSliceSpec. # noqa: E501
NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. # noqa: E501
- :return: The node_name of this V1alpha3ResourceSliceSpec. # noqa: E501
+ :return: The node_name of this V1ResourceSliceSpec. # noqa: E501
:rtype: str
"""
return self._node_name
@node_name.setter
def node_name(self, node_name):
- """Sets the node_name of this V1alpha3ResourceSliceSpec.
+ """Sets the node_name of this V1ResourceSliceSpec.
NodeName identifies the node which provides the resources in this pool. A field selector can be used to list only ResourceSlice objects belonging to a certain node. This field can be used to limit access from nodes to ResourceSlices with the same node name. It also indicates to autoscalers that adding new nodes of the same type as some old node might also make new resources available. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. This field is immutable. # noqa: E501
- :param node_name: The node_name of this V1alpha3ResourceSliceSpec. # noqa: E501
+ :param node_name: The node_name of this V1ResourceSliceSpec. # noqa: E501
:type: str
"""
@@ -181,20 +181,20 @@ class V1alpha3ResourceSliceSpec(object):
@property
def node_selector(self):
- """Gets the node_selector of this V1alpha3ResourceSliceSpec. # noqa: E501
+ """Gets the node_selector of this V1ResourceSliceSpec. # noqa: E501
- :return: The node_selector of this V1alpha3ResourceSliceSpec. # noqa: E501
+ :return: The node_selector of this V1ResourceSliceSpec. # noqa: E501
:rtype: V1NodeSelector
"""
return self._node_selector
@node_selector.setter
def node_selector(self, node_selector):
- """Sets the node_selector of this V1alpha3ResourceSliceSpec.
+ """Sets the node_selector of this V1ResourceSliceSpec.
- :param node_selector: The node_selector of this V1alpha3ResourceSliceSpec. # noqa: E501
+ :param node_selector: The node_selector of this V1ResourceSliceSpec. # noqa: E501
:type: V1NodeSelector
"""
@@ -202,22 +202,22 @@ class V1alpha3ResourceSliceSpec(object):
@property
def per_device_node_selection(self):
- """Gets the per_device_node_selection of this V1alpha3ResourceSliceSpec. # noqa: E501
+ """Gets the per_device_node_selection of this V1ResourceSliceSpec. # noqa: E501
PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. # noqa: E501
- :return: The per_device_node_selection of this V1alpha3ResourceSliceSpec. # noqa: E501
+ :return: The per_device_node_selection of this V1ResourceSliceSpec. # noqa: E501
:rtype: bool
"""
return self._per_device_node_selection
@per_device_node_selection.setter
def per_device_node_selection(self, per_device_node_selection):
- """Sets the per_device_node_selection of this V1alpha3ResourceSliceSpec.
+ """Sets the per_device_node_selection of this V1ResourceSliceSpec.
PerDeviceNodeSelection defines whether the access from nodes to resources in the pool is set on the ResourceSlice level or on each device. If it is set to true, every device defined the ResourceSlice must specify this individually. Exactly one of NodeName, NodeSelector, AllNodes, and PerDeviceNodeSelection must be set. # noqa: E501
- :param per_device_node_selection: The per_device_node_selection of this V1alpha3ResourceSliceSpec. # noqa: E501
+ :param per_device_node_selection: The per_device_node_selection of this V1ResourceSliceSpec. # noqa: E501
:type: bool
"""
@@ -225,21 +225,21 @@ class V1alpha3ResourceSliceSpec(object):
@property
def pool(self):
- """Gets the pool of this V1alpha3ResourceSliceSpec. # noqa: E501
+ """Gets the pool of this V1ResourceSliceSpec. # noqa: E501
- :return: The pool of this V1alpha3ResourceSliceSpec. # noqa: E501
- :rtype: V1alpha3ResourcePool
+ :return: The pool of this V1ResourceSliceSpec. # noqa: E501
+ :rtype: V1ResourcePool
"""
return self._pool
@pool.setter
def pool(self, pool):
- """Sets the pool of this V1alpha3ResourceSliceSpec.
+ """Sets the pool of this V1ResourceSliceSpec.
- :param pool: The pool of this V1alpha3ResourceSliceSpec. # noqa: E501
- :type: V1alpha3ResourcePool
+ :param pool: The pool of this V1ResourceSliceSpec. # noqa: E501
+ :type: V1ResourcePool
"""
if self.local_vars_configuration.client_side_validation and pool is None: # noqa: E501
raise ValueError("Invalid value for `pool`, must not be `None`") # noqa: E501
@@ -248,23 +248,23 @@ class V1alpha3ResourceSliceSpec(object):
@property
def shared_counters(self):
- """Gets the shared_counters of this V1alpha3ResourceSliceSpec. # noqa: E501
+ """Gets the shared_counters of this V1ResourceSliceSpec. # noqa: E501
- SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of SharedCounters is 32. # noqa: E501
+ SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of counters in all sets is 32. # noqa: E501
- :return: The shared_counters of this V1alpha3ResourceSliceSpec. # noqa: E501
- :rtype: list[V1alpha3CounterSet]
+ :return: The shared_counters of this V1ResourceSliceSpec. # noqa: E501
+ :rtype: list[V1CounterSet]
"""
return self._shared_counters
@shared_counters.setter
def shared_counters(self, shared_counters):
- """Sets the shared_counters of this V1alpha3ResourceSliceSpec.
+ """Sets the shared_counters of this V1ResourceSliceSpec.
- SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of SharedCounters is 32. # noqa: E501
+ SharedCounters defines a list of counter sets, each of which has a name and a list of counters available. The names of the SharedCounters must be unique in the ResourceSlice. The maximum number of counters in all sets is 32. # noqa: E501
- :param shared_counters: The shared_counters of this V1alpha3ResourceSliceSpec. # noqa: E501
- :type: list[V1alpha3CounterSet]
+ :param shared_counters: The shared_counters of this V1ResourceSliceSpec. # noqa: E501
+ :type: list[V1CounterSet]
"""
self._shared_counters = shared_counters
@@ -303,14 +303,14 @@ class V1alpha3ResourceSliceSpec(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3ResourceSliceSpec):
+ if not isinstance(other, V1ResourceSliceSpec):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3ResourceSliceSpec):
+ if not isinstance(other, V1ResourceSliceSpec):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_status.py
index 80092039cf5..adc9f1df3f2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_resource_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_resource_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_role.py b/contrib/python/kubernetes/kubernetes/client/models/v1_role.py
index 421746d47bc..ad57e769604 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_role.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_role.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_role_binding.py b/contrib/python/kubernetes/kubernetes/client/models/v1_role_binding.py
index 35fa351ec93..1168b46b6a0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_role_binding.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_role_binding.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_role_binding_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_role_binding_list.py
index 06a35a76e72..74e7bdc3aa9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_role_binding_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_role_binding_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_role_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_role_list.py
index de4f89230d0..d21796cf3d5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_role_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_role_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_role_ref.py b/contrib/python/kubernetes/kubernetes/client/models/v1_role_ref.py
index bee863ca7cd..f2f53838a1b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_role_ref.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_role_ref.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_daemon_set.py b/contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_daemon_set.py
index 690db4241bb..d51f3ce2e55 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_daemon_set.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_daemon_set.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -61,7 +61,7 @@ class V1RollingUpdateDaemonSet(object):
def max_surge(self):
"""Gets the max_surge of this V1RollingUpdateDaemonSet. # noqa: E501
- The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. # noqa: E501
+ The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. # noqa: E501
:return: The max_surge of this V1RollingUpdateDaemonSet. # noqa: E501
:rtype: object
@@ -72,7 +72,7 @@ class V1RollingUpdateDaemonSet(object):
def max_surge(self, max_surge):
"""Sets the max_surge of this V1RollingUpdateDaemonSet.
- The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediatedly created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. # noqa: E501
+ The maximum number of nodes with an existing available DaemonSet pod that can have an updated DaemonSet pod during during an update. Value can be an absolute number (ex: 5) or a percentage of desired pods (ex: 10%). This can not be 0 if MaxUnavailable is 0. Absolute number is calculated from percentage by rounding up to a minimum of 1. Default value is 0. Example: when this is set to 30%, at most 30% of the total number of nodes that should be running the daemon pod (i.e. status.desiredNumberScheduled) can have their a new pod created before the old pod is marked as deleted. The update starts by launching new pods on 30% of nodes. Once an updated pod is available (Ready for at least minReadySeconds) the old DaemonSet pod on that node is marked deleted. If the old pod becomes unavailable for any reason (Ready transitions to false, is evicted, or is drained) an updated pod is immediately created on that node without considering surge limits. Allowing surge implies the possibility that the resources consumed by the daemonset on any given node can double if the readiness check fails, and so resource intensive daemonsets should take into account that they may cause evictions during disruption. # noqa: E501
:param max_surge: The max_surge of this V1RollingUpdateDaemonSet. # noqa: E501
:type: object
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_deployment.py b/contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_deployment.py
index bc4fd93303b..2e32a5bfbfd 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_deployment.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_deployment.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py b/contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py
index bf75c45e757..40912352eba 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_rolling_update_stateful_set_strategy.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_rule_with_operations.py b/contrib/python/kubernetes/kubernetes/client/models/v1_rule_with_operations.py
index 5c3dbdcf0af..79bd885a6ee 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_rule_with_operations.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_rule_with_operations.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_runtime_class.py b/contrib/python/kubernetes/kubernetes/client/models/v1_runtime_class.py
index 5a35ab599dd..8d1797e7c6e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_runtime_class.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_runtime_class.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_runtime_class_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_runtime_class_list.py
index 07fca8d13ac..dceb822bfd5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_runtime_class_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_runtime_class_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_scale.py b/contrib/python/kubernetes/kubernetes/client/models/v1_scale.py
index 08830a93156..bd71436d061 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_scale.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_scale.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_scale_io_persistent_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_scale_io_persistent_volume_source.py
index 8e6500f1531..9b5b39af86b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_scale_io_persistent_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_scale_io_persistent_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_scale_io_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_scale_io_volume_source.py
index 41be97e1530..3211b87a482 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_scale_io_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_scale_io_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_scale_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_scale_spec.py
index 47a1a5e96c4..e36629ab624 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_scale_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_scale_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_scale_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_scale_status.py
index 8042495d950..2797ffd982b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_scale_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_scale_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_scheduling.py b/contrib/python/kubernetes/kubernetes/client/models/v1_scheduling.py
index 2e69fa2fb42..7b18876d3b3 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_scheduling.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_scheduling.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_scope_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1_scope_selector.py
index c0f2133a2e1..340ee11e844 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_scope_selector.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_scope_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_scoped_resource_selector_requirement.py b/contrib/python/kubernetes/kubernetes/client/models/v1_scoped_resource_selector_requirement.py
index 8f60e24d912..051be53cccd 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_scoped_resource_selector_requirement.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_scoped_resource_selector_requirement.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_se_linux_options.py b/contrib/python/kubernetes/kubernetes/client/models/v1_se_linux_options.py
index ca2a0fd1674..50aac0aa741 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_se_linux_options.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_se_linux_options.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_seccomp_profile.py b/contrib/python/kubernetes/kubernetes/client/models/v1_seccomp_profile.py
index 61a446297e6..22e2bd2fed7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_seccomp_profile.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_seccomp_profile.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_secret.py b/contrib/python/kubernetes/kubernetes/client/models/v1_secret.py
index b88eed3d780..4b0d6d31c05 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_secret.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_secret.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_secret_env_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_secret_env_source.py
index f10f317d154..40a963bf280 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_secret_env_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_secret_env_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_secret_key_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1_secret_key_selector.py
index 0be2680c53d..846ddb3b0c2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_secret_key_selector.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_secret_key_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_secret_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_secret_list.py
index f2254b49184..b2bf957828c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_secret_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_secret_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_secret_projection.py b/contrib/python/kubernetes/kubernetes/client/models/v1_secret_projection.py
index ac5e8e09f37..af8055c2069 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_secret_projection.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_secret_projection.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_secret_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1_secret_reference.py
index 22e8a020f91..2791a08fd63 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_secret_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_secret_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_secret_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_secret_volume_source.py
index 6132e555a86..3b170502e95 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_secret_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_secret_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_security_context.py b/contrib/python/kubernetes/kubernetes/client/models/v1_security_context.py
index f1a81954699..32399b55be7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_security_context.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_security_context.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_selectable_field.py b/contrib/python/kubernetes/kubernetes/client/models/v1_selectable_field.py
index 8ea1339cf68..cbbf6194e43 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_selectable_field.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_selectable_field.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_access_review.py b/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_access_review.py
index 8b1f74a918f..fc4bfc04dd0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_access_review.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_access_review.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_access_review_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_access_review_spec.py
index 31bfb83f776..5f6bcd36d35 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_access_review_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_access_review_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_review.py b/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_review.py
index ce67c178115..638eeb6f27f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_review.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_review.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_review_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_review_status.py
index 2ead41ee34e..370ae09b56d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_review_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_review_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_rules_review.py b/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_rules_review.py
index 30da0dc5a43..f601a2eecec 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_rules_review.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_rules_review.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_rules_review_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_rules_review_spec.py
index 85f69ada3b0..a972f6e7721 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_rules_review_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_self_subject_rules_review_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_server_address_by_client_cidr.py b/contrib/python/kubernetes/kubernetes/client/models/v1_server_address_by_client_cidr.py
index 90bc0c35bc9..ed21b03e71f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_server_address_by_client_cidr.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_server_address_by_client_cidr.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_service.py b/contrib/python/kubernetes/kubernetes/client/models/v1_service.py
index ae4d7d19dde..9af150a8efc 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_service.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_service.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_service_account.py b/contrib/python/kubernetes/kubernetes/client/models/v1_service_account.py
index af094cd1a08..7b6077ff416 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_service_account.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_service_account.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_service_account_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_service_account_list.py
index f10f69dd461..69de3200a9b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_service_account_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_service_account_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_service_account_subject.py b/contrib/python/kubernetes/kubernetes/client/models/v1_service_account_subject.py
index 2c372a342e2..28797e59cde 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_service_account_subject.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_service_account_subject.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_service_account_token_projection.py b/contrib/python/kubernetes/kubernetes/client/models/v1_service_account_token_projection.py
index d74ee4a358c..c8e02cb5b92 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_service_account_token_projection.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_service_account_token_projection.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_service_backend_port.py b/contrib/python/kubernetes/kubernetes/client/models/v1_service_backend_port.py
index 849d258506b..81225fc72d7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_service_backend_port.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_service_backend_port.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr.py b/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr.py
index 301706f8152..705bddcf801 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_list.py
index 45cd8d62dea..bfac6d915ac 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_spec.py
index 4aa2a03a5a8..fb46d4ad952 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_status.py
index 9aaad031eb5..2c3897a3689 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_service_cidr_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_service_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_service_list.py
index 682c869ea18..a4052400162 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_service_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_service_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_service_port.py b/contrib/python/kubernetes/kubernetes/client/models/v1_service_port.py
index 5501aef9112..ed913b0b764 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_service_port.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_service_port.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_service_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_service_spec.py
index fc6f45e7b71..85d7a906c84 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_service_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_service_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_service_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_service_status.py
index 35f979bb6fd..46cb9fd4ec0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_service_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_service_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_session_affinity_config.py b/contrib/python/kubernetes/kubernetes/client/models/v1_session_affinity_config.py
index 0b1f3c6a137..cc1775d00e7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_session_affinity_config.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_session_affinity_config.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_sleep_action.py b/contrib/python/kubernetes/kubernetes/client/models/v1_sleep_action.py
index e3fc769ef3b..dd0707233cd 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_sleep_action.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_sleep_action.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set.py b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set.py
index 5959ef6d744..e96f011ed07 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_condition.py
index 1132bfba927..844cbc8cca5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_list.py
index 6f448b4f255..80c4f399f5c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_ordinals.py b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_ordinals.py
index f66b6dd0028..280214e3707 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_ordinals.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_ordinals.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py
index 02a70965a27..fad9e60d823 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_persistent_volume_claim_retention_policy.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_spec.py
index 17b78b0e1cb..b9686970487 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_status.py
index 3205dee0afd..c9c2028a8b9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_update_strategy.py b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_update_strategy.py
index db132f05aad..8752aaaf479 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_update_strategy.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_stateful_set_update_strategy.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_status.py
index e104125ca85..50a24333e8d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_status_cause.py b/contrib/python/kubernetes/kubernetes/client/models/v1_status_cause.py
index de703a904fd..eac017cbe24 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_status_cause.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_status_cause.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_status_details.py b/contrib/python/kubernetes/kubernetes/client/models/v1_status_details.py
index 40485d182f2..9e67d3bbcd8 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_status_details.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_status_details.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_storage_class.py b/contrib/python/kubernetes/kubernetes/client/models/v1_storage_class.py
index de6fb95c7d6..b0e26b7cef7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_storage_class.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_storage_class.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_storage_class_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_storage_class_list.py
index da36cc85dcc..3223c030f31 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_storage_class_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_storage_class_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_storage_os_persistent_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_storage_os_persistent_volume_source.py
index fdb94867550..bf42194f53c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_storage_os_persistent_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_storage_os_persistent_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_storage_os_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_storage_os_volume_source.py
index 43587db08a3..6163052ba22 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_storage_os_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_storage_os_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review.py b/contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review.py
index 428f326928b..156f6aac454 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review_spec.py
index 57979f45607..188b39eef04 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review_status.py
index e022606ebda..cbc4f0b40fa 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_subject_access_review_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_subject_rules_review_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_subject_rules_review_status.py
index dbcd7ab52d4..a1650e8a953 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_subject_rules_review_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_subject_rules_review_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_success_policy.py b/contrib/python/kubernetes/kubernetes/client/models/v1_success_policy.py
index 7d46ca8ea09..917f70c5e08 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_success_policy.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_success_policy.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -55,7 +55,7 @@ class V1SuccessPolicy(object):
def rules(self):
"""Gets the rules of this V1SuccessPolicy. # noqa: E501
- rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed. # noqa: E501
+ rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SuccessCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed. # noqa: E501
:return: The rules of this V1SuccessPolicy. # noqa: E501
:rtype: list[V1SuccessPolicyRule]
@@ -66,7 +66,7 @@ class V1SuccessPolicy(object):
def rules(self, rules):
"""Sets the rules of this V1SuccessPolicy.
- rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SucceededCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed. # noqa: E501
+ rules represents the list of alternative rules for the declaring the Jobs as successful before `.status.succeeded >= .spec.completions`. Once any of the rules are met, the \"SuccessCriteriaMet\" condition is added, and the lingering pods are removed. The terminal state for such a Job has the \"Complete\" condition. Additionally, these rules are evaluated in order; Once the Job meets one of the rules, other rules are ignored. At most 20 elements are allowed. # noqa: E501
:param rules: The rules of this V1SuccessPolicy. # noqa: E501
:type: list[V1SuccessPolicyRule]
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_success_policy_rule.py b/contrib/python/kubernetes/kubernetes/client/models/v1_success_policy_rule.py
index fe97c440dd4..03b8d7dfc26 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_success_policy_rule.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_success_policy_rule.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_sysctl.py b/contrib/python/kubernetes/kubernetes/client/models/v1_sysctl.py
index 4520255a6e7..1567f3a5181 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_sysctl.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_sysctl.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_taint.py b/contrib/python/kubernetes/kubernetes/client/models/v1_taint.py
index 045a9a2a2ef..a973f0a3948 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_taint.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_taint.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -119,7 +119,7 @@ class V1Taint(object):
def time_added(self):
"""Gets the time_added of this V1Taint. # noqa: E501
- TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. # noqa: E501
+ TimeAdded represents the time at which the taint was added. # noqa: E501
:return: The time_added of this V1Taint. # noqa: E501
:rtype: datetime
@@ -130,7 +130,7 @@ class V1Taint(object):
def time_added(self, time_added):
"""Sets the time_added of this V1Taint.
- TimeAdded represents the time at which the taint was added. It is only written for NoExecute taints. # noqa: E501
+ TimeAdded represents the time at which the taint was added. # noqa: E501
:param time_added: The time_added of this V1Taint. # noqa: E501
:type: datetime
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_tcp_socket_action.py b/contrib/python/kubernetes/kubernetes/client/models/v1_tcp_socket_action.py
index e942960f8ee..431971460f6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_tcp_socket_action.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_tcp_socket_action.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_token_request_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_token_request_spec.py
index dc4e68a0c98..5390a387447 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_token_request_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_token_request_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_token_request_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_token_request_status.py
index 645f2836f20..2e47cb67cd9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_token_request_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_token_request_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_token_review.py b/contrib/python/kubernetes/kubernetes/client/models/v1_token_review.py
index 1f935320d08..73284d42525 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_token_review.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_token_review.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_token_review_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_token_review_spec.py
index 419077dc706..b3721649946 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_token_review_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_token_review_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_token_review_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_token_review_status.py
index 03fb4f2e9a0..5c46cc917b9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_token_review_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_token_review_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_toleration.py b/contrib/python/kubernetes/kubernetes/client/models/v1_toleration.py
index c525665085d..fc3d4d8605c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_toleration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_toleration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_topology_selector_label_requirement.py b/contrib/python/kubernetes/kubernetes/client/models/v1_topology_selector_label_requirement.py
index cdc10d4b65f..0d89ea2e16f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_topology_selector_label_requirement.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_topology_selector_label_requirement.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_topology_selector_term.py b/contrib/python/kubernetes/kubernetes/client/models/v1_topology_selector_term.py
index 9b7c90b9abd..6ebc15db97a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_topology_selector_term.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_topology_selector_term.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_topology_spread_constraint.py b/contrib/python/kubernetes/kubernetes/client/models/v1_topology_spread_constraint.py
index ab2e21d05ff..d4deef62dbc 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_topology_spread_constraint.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_topology_spread_constraint.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_type_checking.py b/contrib/python/kubernetes/kubernetes/client/models/v1_type_checking.py
index ddae6e9656a..82396390eeb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_type_checking.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_type_checking.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_typed_local_object_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1_typed_local_object_reference.py
index 5cf0772b26b..7f9c0623b3d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_typed_local_object_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_typed_local_object_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_typed_object_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1_typed_object_reference.py
index 268c50461ec..36a8c2fd73c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_typed_object_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_typed_object_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_uncounted_terminated_pods.py b/contrib/python/kubernetes/kubernetes/client/models/v1_uncounted_terminated_pods.py
index 40d30c4e903..3c29c83614d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_uncounted_terminated_pods.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_uncounted_terminated_pods.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_user_info.py b/contrib/python/kubernetes/kubernetes/client/models/v1_user_info.py
index 51ffc67c710..acf25b4bea8 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_user_info.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_user_info.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_user_subject.py b/contrib/python/kubernetes/kubernetes/client/models/v1_user_subject.py
index 5b8a1db6e44..3c2fe1f7f8b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_user_subject.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_user_subject.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy.py b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy.py
index 3248ed48470..1ffb7936a9c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding.py b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding.py
index 36dff9d10b5..d0f95c05650 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding_list.py
index 7edb7529ac4..93cb18f5364 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding_spec.py
index 41809006ad8..1a296df825a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_binding_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_list.py
index aed3447f4c6..23573661ccc 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_spec.py
index ce35a624d89..453308de72f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_status.py
index adc2387325d..31f85a96c2e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_admission_policy_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook.py b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook.py
index 30327af82b5..ecb3dc7562d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook_configuration.py
index 2af76083d9b..dedbe015dec 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook_configuration_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook_configuration_list.py
index 58c047a618a..7acb09e3d47 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook_configuration_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_validating_webhook_configuration_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_validation.py b/contrib/python/kubernetes/kubernetes/client/models/v1_validation.py
index 297ffa8017a..b673b8097ee 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_validation.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_validation.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_validation_rule.py b/contrib/python/kubernetes/kubernetes/client/models/v1_validation_rule.py
index 792d08393e1..53ec7ba5ae6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_validation_rule.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_validation_rule.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_variable.py b/contrib/python/kubernetes/kubernetes/client/models/v1_variable.py
index 3954428c63d..f6026fa1c3a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_variable.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_variable.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume.py
index 31fe775dd2a..81cbb3999fc 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_volume.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment.py
index f88eb3a676a..583a3f7a7bb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_list.py
index 73a722c4396..d77696ec9e5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_source.py
index 70efbb96241..716c03a9b63 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_spec.py
index a4753abe140..11eede437f1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_status.py
index e9ddb15424b..1e88042bac1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attachment_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attributes_class.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attributes_class.py
new file mode 100644
index 00000000000..fea31280406
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attributes_class.py
@@ -0,0 +1,233 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1VolumeAttributesClass(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'api_version': 'str',
+ 'driver_name': 'str',
+ 'kind': 'str',
+ 'metadata': 'V1ObjectMeta',
+ 'parameters': 'dict(str, str)'
+ }
+
+ attribute_map = {
+ 'api_version': 'apiVersion',
+ 'driver_name': 'driverName',
+ 'kind': 'kind',
+ 'metadata': 'metadata',
+ 'parameters': 'parameters'
+ }
+
+ def __init__(self, api_version=None, driver_name=None, kind=None, metadata=None, parameters=None, local_vars_configuration=None): # noqa: E501
+ """V1VolumeAttributesClass - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._api_version = None
+ self._driver_name = None
+ self._kind = None
+ self._metadata = None
+ self._parameters = None
+ self.discriminator = None
+
+ if api_version is not None:
+ self.api_version = api_version
+ self.driver_name = driver_name
+ if kind is not None:
+ self.kind = kind
+ if metadata is not None:
+ self.metadata = metadata
+ if parameters is not None:
+ self.parameters = parameters
+
+ @property
+ def api_version(self):
+ """Gets the api_version of this V1VolumeAttributesClass. # noqa: E501
+
+ APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
+
+ :return: The api_version of this V1VolumeAttributesClass. # noqa: E501
+ :rtype: str
+ """
+ return self._api_version
+
+ @api_version.setter
+ def api_version(self, api_version):
+ """Sets the api_version of this V1VolumeAttributesClass.
+
+ APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
+
+ :param api_version: The api_version of this V1VolumeAttributesClass. # noqa: E501
+ :type: str
+ """
+
+ self._api_version = api_version
+
+ @property
+ def driver_name(self):
+ """Gets the driver_name of this V1VolumeAttributesClass. # noqa: E501
+
+ Name of the CSI driver This field is immutable. # noqa: E501
+
+ :return: The driver_name of this V1VolumeAttributesClass. # noqa: E501
+ :rtype: str
+ """
+ return self._driver_name
+
+ @driver_name.setter
+ def driver_name(self, driver_name):
+ """Sets the driver_name of this V1VolumeAttributesClass.
+
+ Name of the CSI driver This field is immutable. # noqa: E501
+
+ :param driver_name: The driver_name of this V1VolumeAttributesClass. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and driver_name is None: # noqa: E501
+ raise ValueError("Invalid value for `driver_name`, must not be `None`") # noqa: E501
+
+ self._driver_name = driver_name
+
+ @property
+ def kind(self):
+ """Gets the kind of this V1VolumeAttributesClass. # noqa: E501
+
+ Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
+
+ :return: The kind of this V1VolumeAttributesClass. # noqa: E501
+ :rtype: str
+ """
+ return self._kind
+
+ @kind.setter
+ def kind(self, kind):
+ """Sets the kind of this V1VolumeAttributesClass.
+
+ Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
+
+ :param kind: The kind of this V1VolumeAttributesClass. # noqa: E501
+ :type: str
+ """
+
+ self._kind = kind
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this V1VolumeAttributesClass. # noqa: E501
+
+
+ :return: The metadata of this V1VolumeAttributesClass. # noqa: E501
+ :rtype: V1ObjectMeta
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this V1VolumeAttributesClass.
+
+
+ :param metadata: The metadata of this V1VolumeAttributesClass. # noqa: E501
+ :type: V1ObjectMeta
+ """
+
+ self._metadata = metadata
+
+ @property
+ def parameters(self):
+ """Gets the parameters of this V1VolumeAttributesClass. # noqa: E501
+
+ parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field. # noqa: E501
+
+ :return: The parameters of this V1VolumeAttributesClass. # noqa: E501
+ :rtype: dict(str, str)
+ """
+ return self._parameters
+
+ @parameters.setter
+ def parameters(self, parameters):
+ """Sets the parameters of this V1VolumeAttributesClass.
+
+ parameters hold volume attributes defined by the CSI driver. These values are opaque to the Kubernetes and are passed directly to the CSI driver. The underlying storage provider supports changing these attributes on an existing volume, however the parameters field itself is immutable. To invoke a volume update, a new VolumeAttributesClass should be created with new parameters, and the PersistentVolumeClaim should be updated to reference the new VolumeAttributesClass. This field is required and must contain at least one key/value pair. The keys cannot be empty, and the maximum number of parameters is 512, with a cumulative max size of 256K. If the CSI driver rejects invalid parameters, the target PersistentVolumeClaim will be set to an \"Infeasible\" state in the modifyVolumeStatus field. # noqa: E501
+
+ :param parameters: The parameters of this V1VolumeAttributesClass. # noqa: E501
+ :type: dict(str, str)
+ """
+
+ self._parameters = parameters
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1VolumeAttributesClass):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1VolumeAttributesClass):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attributes_class_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attributes_class_list.py
new file mode 100644
index 00000000000..dbb8f775333
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_attributes_class_list.py
@@ -0,0 +1,205 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1VolumeAttributesClassList(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'api_version': 'str',
+ 'items': 'list[V1VolumeAttributesClass]',
+ 'kind': 'str',
+ 'metadata': 'V1ListMeta'
+ }
+
+ attribute_map = {
+ 'api_version': 'apiVersion',
+ 'items': 'items',
+ 'kind': 'kind',
+ 'metadata': 'metadata'
+ }
+
+ def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
+ """V1VolumeAttributesClassList - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._api_version = None
+ self._items = None
+ self._kind = None
+ self._metadata = None
+ self.discriminator = None
+
+ if api_version is not None:
+ self.api_version = api_version
+ self.items = items
+ if kind is not None:
+ self.kind = kind
+ if metadata is not None:
+ self.metadata = metadata
+
+ @property
+ def api_version(self):
+ """Gets the api_version of this V1VolumeAttributesClassList. # noqa: E501
+
+ APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
+
+ :return: The api_version of this V1VolumeAttributesClassList. # noqa: E501
+ :rtype: str
+ """
+ return self._api_version
+
+ @api_version.setter
+ def api_version(self, api_version):
+ """Sets the api_version of this V1VolumeAttributesClassList.
+
+ APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
+
+ :param api_version: The api_version of this V1VolumeAttributesClassList. # noqa: E501
+ :type: str
+ """
+
+ self._api_version = api_version
+
+ @property
+ def items(self):
+ """Gets the items of this V1VolumeAttributesClassList. # noqa: E501
+
+ items is the list of VolumeAttributesClass objects. # noqa: E501
+
+ :return: The items of this V1VolumeAttributesClassList. # noqa: E501
+ :rtype: list[V1VolumeAttributesClass]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """Sets the items of this V1VolumeAttributesClassList.
+
+ items is the list of VolumeAttributesClass objects. # noqa: E501
+
+ :param items: The items of this V1VolumeAttributesClassList. # noqa: E501
+ :type: list[V1VolumeAttributesClass]
+ """
+ if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
+ raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
+
+ self._items = items
+
+ @property
+ def kind(self):
+ """Gets the kind of this V1VolumeAttributesClassList. # noqa: E501
+
+ Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
+
+ :return: The kind of this V1VolumeAttributesClassList. # noqa: E501
+ :rtype: str
+ """
+ return self._kind
+
+ @kind.setter
+ def kind(self, kind):
+ """Sets the kind of this V1VolumeAttributesClassList.
+
+ Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
+
+ :param kind: The kind of this V1VolumeAttributesClassList. # noqa: E501
+ :type: str
+ """
+
+ self._kind = kind
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this V1VolumeAttributesClassList. # noqa: E501
+
+
+ :return: The metadata of this V1VolumeAttributesClassList. # noqa: E501
+ :rtype: V1ListMeta
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this V1VolumeAttributesClassList.
+
+
+ :param metadata: The metadata of this V1VolumeAttributesClassList. # noqa: E501
+ :type: V1ListMeta
+ """
+
+ self._metadata = metadata
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1VolumeAttributesClassList):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1VolumeAttributesClassList):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_device.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_device.py
index 91c1bb628f2..5cc3268d4e3 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_device.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_device.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_error.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_error.py
index 0d833c8c7a2..e8be1194f6e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_error.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_error.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -66,7 +66,7 @@ class V1VolumeError(object):
def error_code(self):
"""Gets the error_code of this V1VolumeError. # noqa: E501
- errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. # noqa: E501
+ errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. # noqa: E501
:return: The error_code of this V1VolumeError. # noqa: E501
:rtype: int
@@ -77,7 +77,7 @@ class V1VolumeError(object):
def error_code(self, error_code):
"""Sets the error_code of this V1VolumeError.
- errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, alpha field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. # noqa: E501
+ errorCode is a numeric gRPC code representing the error encountered during Attach or Detach operations. This is an optional, beta field that requires the MutableCSINodeAllocatableCount feature gate being enabled to be set. # noqa: E501
:param error_code: The error_code of this V1VolumeError. # noqa: E501
:type: int
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_mount.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_mount.py
index 8c02b6027d4..020c765c1ba 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_mount.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_mount.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_mount_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_mount_status.py
index a9917e8f86b..c40e68c3bc4 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_mount_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_mount_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_node_affinity.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_node_affinity.py
index 1eac2380ec7..5da4436aa72 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_node_affinity.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_node_affinity.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_node_resources.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_node_resources.py
index c6ea9abcceb..9dbceb0ae8b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_node_resources.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_node_resources.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_projection.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_projection.py
index ddd3bb99a03..bcd585cc0b8 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_projection.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_projection.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -36,6 +36,7 @@ class V1VolumeProjection(object):
'cluster_trust_bundle': 'V1ClusterTrustBundleProjection',
'config_map': 'V1ConfigMapProjection',
'downward_api': 'V1DownwardAPIProjection',
+ 'pod_certificate': 'V1PodCertificateProjection',
'secret': 'V1SecretProjection',
'service_account_token': 'V1ServiceAccountTokenProjection'
}
@@ -44,11 +45,12 @@ class V1VolumeProjection(object):
'cluster_trust_bundle': 'clusterTrustBundle',
'config_map': 'configMap',
'downward_api': 'downwardAPI',
+ 'pod_certificate': 'podCertificate',
'secret': 'secret',
'service_account_token': 'serviceAccountToken'
}
- def __init__(self, cluster_trust_bundle=None, config_map=None, downward_api=None, secret=None, service_account_token=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, cluster_trust_bundle=None, config_map=None, downward_api=None, pod_certificate=None, secret=None, service_account_token=None, local_vars_configuration=None): # noqa: E501
"""V1VolumeProjection - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
@@ -57,6 +59,7 @@ class V1VolumeProjection(object):
self._cluster_trust_bundle = None
self._config_map = None
self._downward_api = None
+ self._pod_certificate = None
self._secret = None
self._service_account_token = None
self.discriminator = None
@@ -67,6 +70,8 @@ class V1VolumeProjection(object):
self.config_map = config_map
if downward_api is not None:
self.downward_api = downward_api
+ if pod_certificate is not None:
+ self.pod_certificate = pod_certificate
if secret is not None:
self.secret = secret
if service_account_token is not None:
@@ -136,6 +141,27 @@ class V1VolumeProjection(object):
self._downward_api = downward_api
@property
+ def pod_certificate(self):
+ """Gets the pod_certificate of this V1VolumeProjection. # noqa: E501
+
+
+ :return: The pod_certificate of this V1VolumeProjection. # noqa: E501
+ :rtype: V1PodCertificateProjection
+ """
+ return self._pod_certificate
+
+ @pod_certificate.setter
+ def pod_certificate(self, pod_certificate):
+ """Sets the pod_certificate of this V1VolumeProjection.
+
+
+ :param pod_certificate: The pod_certificate of this V1VolumeProjection. # noqa: E501
+ :type: V1PodCertificateProjection
+ """
+
+ self._pod_certificate = pod_certificate
+
+ @property
def secret(self):
"""Gets the secret of this V1VolumeProjection. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_resource_requirements.py b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_resource_requirements.py
index 22927caa6a5..7e8cd55c0ed 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_volume_resource_requirements.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_volume_resource_requirements.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py b/contrib/python/kubernetes/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py
index f823e2369ce..a7e6805e0eb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_vsphere_virtual_disk_volume_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_watch_event.py b/contrib/python/kubernetes/kubernetes/client/models/v1_watch_event.py
index 3eebaebc8ef..c52f458a4c3 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_watch_event.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_watch_event.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_webhook_conversion.py b/contrib/python/kubernetes/kubernetes/client/models/v1_webhook_conversion.py
index 451498c0a7f..bbfdf370f4d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_webhook_conversion.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_webhook_conversion.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_weighted_pod_affinity_term.py b/contrib/python/kubernetes/kubernetes/client/models/v1_weighted_pod_affinity_term.py
index ff4142bacc4..c3ccf5bde9e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_weighted_pod_affinity_term.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_weighted_pod_affinity_term.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1_windows_security_context_options.py b/contrib/python/kubernetes/kubernetes/client/models/v1_windows_security_context_options.py
index 3369b024ac3..f39166ce5e2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1_windows_security_context_options.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1_windows_security_context_options.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_apply_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_apply_configuration.py
index 58a618c2aad..69d993459ad 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_apply_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_apply_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle.py
index 04edba9fb65..5a4e90acaa6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle_list.py
index 53eeebc1e3d..421422c9393 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle_spec.py
index 0be936810a8..99c276b3a2d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_cluster_trust_bundle_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_group_version_resource.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_group_version_resource.py
index 05e085e4ed0..6efbb6b12ab 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_group_version_resource.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_group_version_resource.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_json_patch.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_json_patch.py
index 990a092caa0..19526782960 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_json_patch.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_json_patch.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_match_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_match_condition.py
index 06ee19ef8b3..90facd81a75 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_match_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_match_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_match_resources.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_match_resources.py
index b07f2cb6b39..f52c43ba556 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_match_resources.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_match_resources.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_migration_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_migration_condition.py
index 12d6d128212..1d7dd921630 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_migration_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_migration_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy.py
index 43e520d50b9..f11d2ef4eec 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding.py
index ab6fb798126..9e51ba2a9b2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_list.py
index c522709b8f7..7a393f59723 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_spec.py
index d455d243b1b..b4c5a32db63 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_binding_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_list.py
index 81a3a775969..b43fba3f5cc 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_spec.py
index 70a83f2da64..30bd3322b5b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutating_admission_policy_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutation.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutation.py
index ff80b7ee6e1..32cbb604102 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutation.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_mutation.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_named_rule_with_operations.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_named_rule_with_operations.py
index 28c5c3c16a9..e1a653894da 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_named_rule_with_operations.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_named_rule_with_operations.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_param_kind.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_param_kind.py
index 32cd6f2fffc..20d0fc6e89b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_param_kind.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_param_kind.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_param_ref.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_param_ref.py
index 80dfe0f7d35..d20852657fc 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_param_ref.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_param_ref.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request.py
index b7b5ea8e25f..a6e770b0084 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1beta1ValidatingAdmissionPolicy(object):
+class V1alpha1PodCertificateRequest(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -36,8 +36,8 @@ class V1beta1ValidatingAdmissionPolicy(object):
'api_version': 'str',
'kind': 'str',
'metadata': 'V1ObjectMeta',
- 'spec': 'V1beta1ValidatingAdmissionPolicySpec',
- 'status': 'V1beta1ValidatingAdmissionPolicyStatus'
+ 'spec': 'V1alpha1PodCertificateRequestSpec',
+ 'status': 'V1alpha1PodCertificateRequestStatus'
}
attribute_map = {
@@ -49,7 +49,7 @@ class V1beta1ValidatingAdmissionPolicy(object):
}
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, status=None, local_vars_configuration=None): # noqa: E501
- """V1beta1ValidatingAdmissionPolicy - a model defined in OpenAPI""" # noqa: E501
+ """V1alpha1PodCertificateRequest - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -67,29 +67,28 @@ class V1beta1ValidatingAdmissionPolicy(object):
self.kind = kind
if metadata is not None:
self.metadata = metadata
- if spec is not None:
- self.spec = spec
+ self.spec = spec
if status is not None:
self.status = status
@property
def api_version(self):
- """Gets the api_version of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
+ """Gets the api_version of this V1alpha1PodCertificateRequest. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :return: The api_version of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
+ :return: The api_version of this V1alpha1PodCertificateRequest. # noqa: E501
:rtype: str
"""
return self._api_version
@api_version.setter
def api_version(self, api_version):
- """Sets the api_version of this V1beta1ValidatingAdmissionPolicy.
+ """Sets the api_version of this V1alpha1PodCertificateRequest.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :param api_version: The api_version of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
+ :param api_version: The api_version of this V1alpha1PodCertificateRequest. # noqa: E501
:type: str
"""
@@ -97,22 +96,22 @@ class V1beta1ValidatingAdmissionPolicy(object):
@property
def kind(self):
- """Gets the kind of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
+ """Gets the kind of this V1alpha1PodCertificateRequest. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :return: The kind of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
+ :return: The kind of this V1alpha1PodCertificateRequest. # noqa: E501
:rtype: str
"""
return self._kind
@kind.setter
def kind(self, kind):
- """Sets the kind of this V1beta1ValidatingAdmissionPolicy.
+ """Sets the kind of this V1alpha1PodCertificateRequest.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :param kind: The kind of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
+ :param kind: The kind of this V1alpha1PodCertificateRequest. # noqa: E501
:type: str
"""
@@ -120,20 +119,20 @@ class V1beta1ValidatingAdmissionPolicy(object):
@property
def metadata(self):
- """Gets the metadata of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
+ """Gets the metadata of this V1alpha1PodCertificateRequest. # noqa: E501
- :return: The metadata of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
+ :return: The metadata of this V1alpha1PodCertificateRequest. # noqa: E501
:rtype: V1ObjectMeta
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
- """Sets the metadata of this V1beta1ValidatingAdmissionPolicy.
+ """Sets the metadata of this V1alpha1PodCertificateRequest.
- :param metadata: The metadata of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
+ :param metadata: The metadata of this V1alpha1PodCertificateRequest. # noqa: E501
:type: V1ObjectMeta
"""
@@ -141,42 +140,44 @@ class V1beta1ValidatingAdmissionPolicy(object):
@property
def spec(self):
- """Gets the spec of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
+ """Gets the spec of this V1alpha1PodCertificateRequest. # noqa: E501
- :return: The spec of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
- :rtype: V1beta1ValidatingAdmissionPolicySpec
+ :return: The spec of this V1alpha1PodCertificateRequest. # noqa: E501
+ :rtype: V1alpha1PodCertificateRequestSpec
"""
return self._spec
@spec.setter
def spec(self, spec):
- """Sets the spec of this V1beta1ValidatingAdmissionPolicy.
+ """Sets the spec of this V1alpha1PodCertificateRequest.
- :param spec: The spec of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
- :type: V1beta1ValidatingAdmissionPolicySpec
+ :param spec: The spec of this V1alpha1PodCertificateRequest. # noqa: E501
+ :type: V1alpha1PodCertificateRequestSpec
"""
+ if self.local_vars_configuration.client_side_validation and spec is None: # noqa: E501
+ raise ValueError("Invalid value for `spec`, must not be `None`") # noqa: E501
self._spec = spec
@property
def status(self):
- """Gets the status of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
+ """Gets the status of this V1alpha1PodCertificateRequest. # noqa: E501
- :return: The status of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
- :rtype: V1beta1ValidatingAdmissionPolicyStatus
+ :return: The status of this V1alpha1PodCertificateRequest. # noqa: E501
+ :rtype: V1alpha1PodCertificateRequestStatus
"""
return self._status
@status.setter
def status(self, status):
- """Sets the status of this V1beta1ValidatingAdmissionPolicy.
+ """Sets the status of this V1alpha1PodCertificateRequest.
- :param status: The status of this V1beta1ValidatingAdmissionPolicy. # noqa: E501
- :type: V1beta1ValidatingAdmissionPolicyStatus
+ :param status: The status of this V1alpha1PodCertificateRequest. # noqa: E501
+ :type: V1alpha1PodCertificateRequestStatus
"""
self._status = status
@@ -215,14 +216,14 @@ class V1beta1ValidatingAdmissionPolicy(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1beta1ValidatingAdmissionPolicy):
+ if not isinstance(other, V1alpha1PodCertificateRequest):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1beta1ValidatingAdmissionPolicy):
+ if not isinstance(other, V1alpha1PodCertificateRequest):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request_list.py
new file mode 100644
index 00000000000..26d631f9f32
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request_list.py
@@ -0,0 +1,205 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1alpha1PodCertificateRequestList(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'api_version': 'str',
+ 'items': 'list[V1alpha1PodCertificateRequest]',
+ 'kind': 'str',
+ 'metadata': 'V1ListMeta'
+ }
+
+ attribute_map = {
+ 'api_version': 'apiVersion',
+ 'items': 'items',
+ 'kind': 'kind',
+ 'metadata': 'metadata'
+ }
+
+ def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
+ """V1alpha1PodCertificateRequestList - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._api_version = None
+ self._items = None
+ self._kind = None
+ self._metadata = None
+ self.discriminator = None
+
+ if api_version is not None:
+ self.api_version = api_version
+ self.items = items
+ if kind is not None:
+ self.kind = kind
+ if metadata is not None:
+ self.metadata = metadata
+
+ @property
+ def api_version(self):
+ """Gets the api_version of this V1alpha1PodCertificateRequestList. # noqa: E501
+
+ APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
+
+ :return: The api_version of this V1alpha1PodCertificateRequestList. # noqa: E501
+ :rtype: str
+ """
+ return self._api_version
+
+ @api_version.setter
+ def api_version(self, api_version):
+ """Sets the api_version of this V1alpha1PodCertificateRequestList.
+
+ APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
+
+ :param api_version: The api_version of this V1alpha1PodCertificateRequestList. # noqa: E501
+ :type: str
+ """
+
+ self._api_version = api_version
+
+ @property
+ def items(self):
+ """Gets the items of this V1alpha1PodCertificateRequestList. # noqa: E501
+
+ items is a collection of PodCertificateRequest objects # noqa: E501
+
+ :return: The items of this V1alpha1PodCertificateRequestList. # noqa: E501
+ :rtype: list[V1alpha1PodCertificateRequest]
+ """
+ return self._items
+
+ @items.setter
+ def items(self, items):
+ """Sets the items of this V1alpha1PodCertificateRequestList.
+
+ items is a collection of PodCertificateRequest objects # noqa: E501
+
+ :param items: The items of this V1alpha1PodCertificateRequestList. # noqa: E501
+ :type: list[V1alpha1PodCertificateRequest]
+ """
+ if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
+ raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
+
+ self._items = items
+
+ @property
+ def kind(self):
+ """Gets the kind of this V1alpha1PodCertificateRequestList. # noqa: E501
+
+ Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
+
+ :return: The kind of this V1alpha1PodCertificateRequestList. # noqa: E501
+ :rtype: str
+ """
+ return self._kind
+
+ @kind.setter
+ def kind(self, kind):
+ """Sets the kind of this V1alpha1PodCertificateRequestList.
+
+ Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
+
+ :param kind: The kind of this V1alpha1PodCertificateRequestList. # noqa: E501
+ :type: str
+ """
+
+ self._kind = kind
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this V1alpha1PodCertificateRequestList. # noqa: E501
+
+
+ :return: The metadata of this V1alpha1PodCertificateRequestList. # noqa: E501
+ :rtype: V1ListMeta
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this V1alpha1PodCertificateRequestList.
+
+
+ :param metadata: The metadata of this V1alpha1PodCertificateRequestList. # noqa: E501
+ :type: V1ListMeta
+ """
+
+ self._metadata = metadata
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1alpha1PodCertificateRequestList):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1alpha1PodCertificateRequestList):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request_spec.py
new file mode 100644
index 00000000000..a4730234488
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request_spec.py
@@ -0,0 +1,389 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1alpha1PodCertificateRequestSpec(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'max_expiration_seconds': 'int',
+ 'node_name': 'str',
+ 'node_uid': 'str',
+ 'pkix_public_key': 'str',
+ 'pod_name': 'str',
+ 'pod_uid': 'str',
+ 'proof_of_possession': 'str',
+ 'service_account_name': 'str',
+ 'service_account_uid': 'str',
+ 'signer_name': 'str'
+ }
+
+ attribute_map = {
+ 'max_expiration_seconds': 'maxExpirationSeconds',
+ 'node_name': 'nodeName',
+ 'node_uid': 'nodeUID',
+ 'pkix_public_key': 'pkixPublicKey',
+ 'pod_name': 'podName',
+ 'pod_uid': 'podUID',
+ 'proof_of_possession': 'proofOfPossession',
+ 'service_account_name': 'serviceAccountName',
+ 'service_account_uid': 'serviceAccountUID',
+ 'signer_name': 'signerName'
+ }
+
+ def __init__(self, max_expiration_seconds=None, node_name=None, node_uid=None, pkix_public_key=None, pod_name=None, pod_uid=None, proof_of_possession=None, service_account_name=None, service_account_uid=None, signer_name=None, local_vars_configuration=None): # noqa: E501
+ """V1alpha1PodCertificateRequestSpec - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._max_expiration_seconds = None
+ self._node_name = None
+ self._node_uid = None
+ self._pkix_public_key = None
+ self._pod_name = None
+ self._pod_uid = None
+ self._proof_of_possession = None
+ self._service_account_name = None
+ self._service_account_uid = None
+ self._signer_name = None
+ self.discriminator = None
+
+ if max_expiration_seconds is not None:
+ self.max_expiration_seconds = max_expiration_seconds
+ self.node_name = node_name
+ self.node_uid = node_uid
+ self.pkix_public_key = pkix_public_key
+ self.pod_name = pod_name
+ self.pod_uid = pod_uid
+ self.proof_of_possession = proof_of_possession
+ self.service_account_name = service_account_name
+ self.service_account_uid = service_account_uid
+ self.signer_name = signer_name
+
+ @property
+ def max_expiration_seconds(self):
+ """Gets the max_expiration_seconds of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+
+ maxExpirationSeconds is the maximum lifetime permitted for the certificate. If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. # noqa: E501
+
+ :return: The max_expiration_seconds of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :rtype: int
+ """
+ return self._max_expiration_seconds
+
+ @max_expiration_seconds.setter
+ def max_expiration_seconds(self, max_expiration_seconds):
+ """Sets the max_expiration_seconds of this V1alpha1PodCertificateRequestSpec.
+
+ maxExpirationSeconds is the maximum lifetime permitted for the certificate. If omitted, kube-apiserver will set it to 86400(24 hours). kube-apiserver will reject values shorter than 3600 (1 hour). The maximum allowable value is 7862400 (91 days). The signer implementation is then free to issue a certificate with any lifetime *shorter* than MaxExpirationSeconds, but no shorter than 3600 seconds (1 hour). This constraint is enforced by kube-apiserver. `kubernetes.io` signers will never issue certificates with a lifetime longer than 24 hours. # noqa: E501
+
+ :param max_expiration_seconds: The max_expiration_seconds of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :type: int
+ """
+
+ self._max_expiration_seconds = max_expiration_seconds
+
+ @property
+ def node_name(self):
+ """Gets the node_name of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+
+ nodeName is the name of the node the pod is assigned to. # noqa: E501
+
+ :return: The node_name of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :rtype: str
+ """
+ return self._node_name
+
+ @node_name.setter
+ def node_name(self, node_name):
+ """Sets the node_name of this V1alpha1PodCertificateRequestSpec.
+
+ nodeName is the name of the node the pod is assigned to. # noqa: E501
+
+ :param node_name: The node_name of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and node_name is None: # noqa: E501
+ raise ValueError("Invalid value for `node_name`, must not be `None`") # noqa: E501
+
+ self._node_name = node_name
+
+ @property
+ def node_uid(self):
+ """Gets the node_uid of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+
+ nodeUID is the UID of the node the pod is assigned to. # noqa: E501
+
+ :return: The node_uid of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :rtype: str
+ """
+ return self._node_uid
+
+ @node_uid.setter
+ def node_uid(self, node_uid):
+ """Sets the node_uid of this V1alpha1PodCertificateRequestSpec.
+
+ nodeUID is the UID of the node the pod is assigned to. # noqa: E501
+
+ :param node_uid: The node_uid of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and node_uid is None: # noqa: E501
+ raise ValueError("Invalid value for `node_uid`, must not be `None`") # noqa: E501
+
+ self._node_uid = node_uid
+
+ @property
+ def pkix_public_key(self):
+ """Gets the pkix_public_key of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+
+ pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to. The key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field. # noqa: E501
+
+ :return: The pkix_public_key of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :rtype: str
+ """
+ return self._pkix_public_key
+
+ @pkix_public_key.setter
+ def pkix_public_key(self, pkix_public_key):
+ """Sets the pkix_public_key of this V1alpha1PodCertificateRequestSpec.
+
+ pkixPublicKey is the PKIX-serialized public key the signer will issue the certificate to. The key must be one of RSA3072, RSA4096, ECDSAP256, ECDSAP384, ECDSAP521, or ED25519. Note that this list may be expanded in the future. Signer implementations do not need to support all key types supported by kube-apiserver and kubelet. If a signer does not support the key type used for a given PodCertificateRequest, it must deny the request by setting a status.conditions entry with a type of \"Denied\" and a reason of \"UnsupportedKeyType\". It may also suggest a key type that it does support in the message field. # noqa: E501
+
+ :param pkix_public_key: The pkix_public_key of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and pkix_public_key is None: # noqa: E501
+ raise ValueError("Invalid value for `pkix_public_key`, must not be `None`") # noqa: E501
+ if (self.local_vars_configuration.client_side_validation and
+ pkix_public_key is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', pkix_public_key)): # noqa: E501
+ raise ValueError(r"Invalid value for `pkix_public_key`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501
+
+ self._pkix_public_key = pkix_public_key
+
+ @property
+ def pod_name(self):
+ """Gets the pod_name of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+
+ podName is the name of the pod into which the certificate will be mounted. # noqa: E501
+
+ :return: The pod_name of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :rtype: str
+ """
+ return self._pod_name
+
+ @pod_name.setter
+ def pod_name(self, pod_name):
+ """Sets the pod_name of this V1alpha1PodCertificateRequestSpec.
+
+ podName is the name of the pod into which the certificate will be mounted. # noqa: E501
+
+ :param pod_name: The pod_name of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and pod_name is None: # noqa: E501
+ raise ValueError("Invalid value for `pod_name`, must not be `None`") # noqa: E501
+
+ self._pod_name = pod_name
+
+ @property
+ def pod_uid(self):
+ """Gets the pod_uid of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+
+ podUID is the UID of the pod into which the certificate will be mounted. # noqa: E501
+
+ :return: The pod_uid of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :rtype: str
+ """
+ return self._pod_uid
+
+ @pod_uid.setter
+ def pod_uid(self, pod_uid):
+ """Sets the pod_uid of this V1alpha1PodCertificateRequestSpec.
+
+ podUID is the UID of the pod into which the certificate will be mounted. # noqa: E501
+
+ :param pod_uid: The pod_uid of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and pod_uid is None: # noqa: E501
+ raise ValueError("Invalid value for `pod_uid`, must not be `None`") # noqa: E501
+
+ self._pod_uid = pod_uid
+
+ @property
+ def proof_of_possession(self):
+ """Gets the proof_of_possession of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+
+ proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey. It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. kube-apiserver validates the proof of possession during creation of the PodCertificateRequest. If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options). If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign). # noqa: E501
+
+ :return: The proof_of_possession of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :rtype: str
+ """
+ return self._proof_of_possession
+
+ @proof_of_possession.setter
+ def proof_of_possession(self, proof_of_possession):
+ """Sets the proof_of_possession of this V1alpha1PodCertificateRequestSpec.
+
+ proofOfPossession proves that the requesting kubelet holds the private key corresponding to pkixPublicKey. It is contructed by signing the ASCII bytes of the pod's UID using `pkixPublicKey`. kube-apiserver validates the proof of possession during creation of the PodCertificateRequest. If the key is an RSA key, then the signature is over the ASCII bytes of the pod UID, using RSASSA-PSS from RFC 8017 (as implemented by the golang function crypto/rsa.SignPSS with nil options). If the key is an ECDSA key, then the signature is as described by [SEC 1, Version 2.0](https://www.secg.org/sec1-v2.pdf) (as implemented by the golang library function crypto/ecdsa.SignASN1) If the key is an ED25519 key, the the signature is as described by the [ED25519 Specification](https://ed25519.cr.yp.to/) (as implemented by the golang library crypto/ed25519.Sign). # noqa: E501
+
+ :param proof_of_possession: The proof_of_possession of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and proof_of_possession is None: # noqa: E501
+ raise ValueError("Invalid value for `proof_of_possession`, must not be `None`") # noqa: E501
+ if (self.local_vars_configuration.client_side_validation and
+ proof_of_possession is not None and not re.search(r'^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$', proof_of_possession)): # noqa: E501
+ raise ValueError(r"Invalid value for `proof_of_possession`, must be a follow pattern or equal to `/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/`") # noqa: E501
+
+ self._proof_of_possession = proof_of_possession
+
+ @property
+ def service_account_name(self):
+ """Gets the service_account_name of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+
+ serviceAccountName is the name of the service account the pod is running as. # noqa: E501
+
+ :return: The service_account_name of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :rtype: str
+ """
+ return self._service_account_name
+
+ @service_account_name.setter
+ def service_account_name(self, service_account_name):
+ """Sets the service_account_name of this V1alpha1PodCertificateRequestSpec.
+
+ serviceAccountName is the name of the service account the pod is running as. # noqa: E501
+
+ :param service_account_name: The service_account_name of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and service_account_name is None: # noqa: E501
+ raise ValueError("Invalid value for `service_account_name`, must not be `None`") # noqa: E501
+
+ self._service_account_name = service_account_name
+
+ @property
+ def service_account_uid(self):
+ """Gets the service_account_uid of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+
+ serviceAccountUID is the UID of the service account the pod is running as. # noqa: E501
+
+ :return: The service_account_uid of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :rtype: str
+ """
+ return self._service_account_uid
+
+ @service_account_uid.setter
+ def service_account_uid(self, service_account_uid):
+ """Sets the service_account_uid of this V1alpha1PodCertificateRequestSpec.
+
+ serviceAccountUID is the UID of the service account the pod is running as. # noqa: E501
+
+ :param service_account_uid: The service_account_uid of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and service_account_uid is None: # noqa: E501
+ raise ValueError("Invalid value for `service_account_uid`, must not be `None`") # noqa: E501
+
+ self._service_account_uid = service_account_uid
+
+ @property
+ def signer_name(self):
+ """Gets the signer_name of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+
+ signerName indicates the requested signer. All signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented. # noqa: E501
+
+ :return: The signer_name of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :rtype: str
+ """
+ return self._signer_name
+
+ @signer_name.setter
+ def signer_name(self, signer_name):
+ """Sets the signer_name of this V1alpha1PodCertificateRequestSpec.
+
+ signerName indicates the requested signer. All signer names beginning with `kubernetes.io` are reserved for use by the Kubernetes project. There is currently one well-known signer documented by the Kubernetes project, `kubernetes.io/kube-apiserver-client-pod`, which will issue client certificates understood by kube-apiserver. It is currently unimplemented. # noqa: E501
+
+ :param signer_name: The signer_name of this V1alpha1PodCertificateRequestSpec. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and signer_name is None: # noqa: E501
+ raise ValueError("Invalid value for `signer_name`, must not be `None`") # noqa: E501
+
+ self._signer_name = signer_name
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1alpha1PodCertificateRequestSpec):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1alpha1PodCertificateRequestSpec):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request_status.py
new file mode 100644
index 00000000000..5ed0861313a
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_pod_certificate_request_status.py
@@ -0,0 +1,234 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1alpha1PodCertificateRequestStatus(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'begin_refresh_at': 'datetime',
+ 'certificate_chain': 'str',
+ 'conditions': 'list[V1Condition]',
+ 'not_after': 'datetime',
+ 'not_before': 'datetime'
+ }
+
+ attribute_map = {
+ 'begin_refresh_at': 'beginRefreshAt',
+ 'certificate_chain': 'certificateChain',
+ 'conditions': 'conditions',
+ 'not_after': 'notAfter',
+ 'not_before': 'notBefore'
+ }
+
+ def __init__(self, begin_refresh_at=None, certificate_chain=None, conditions=None, not_after=None, not_before=None, local_vars_configuration=None): # noqa: E501
+ """V1alpha1PodCertificateRequestStatus - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._begin_refresh_at = None
+ self._certificate_chain = None
+ self._conditions = None
+ self._not_after = None
+ self._not_before = None
+ self.discriminator = None
+
+ if begin_refresh_at is not None:
+ self.begin_refresh_at = begin_refresh_at
+ if certificate_chain is not None:
+ self.certificate_chain = certificate_chain
+ if conditions is not None:
+ self.conditions = conditions
+ if not_after is not None:
+ self.not_after = not_after
+ if not_before is not None:
+ self.not_before = not_before
+
+ @property
+ def begin_refresh_at(self):
+ """Gets the begin_refresh_at of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+
+ beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable. This field is only a hint. Kubelet may start refreshing before or after this time if necessary. # noqa: E501
+
+ :return: The begin_refresh_at of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+ :rtype: datetime
+ """
+ return self._begin_refresh_at
+
+ @begin_refresh_at.setter
+ def begin_refresh_at(self, begin_refresh_at):
+ """Sets the begin_refresh_at of this V1alpha1PodCertificateRequestStatus.
+
+ beginRefreshAt is the time at which the kubelet should begin trying to refresh the certificate. This field is set via the /status subresource, and must be set at the same time as certificateChain. Once populated, this field is immutable. This field is only a hint. Kubelet may start refreshing before or after this time if necessary. # noqa: E501
+
+ :param begin_refresh_at: The begin_refresh_at of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+ :type: datetime
+ """
+
+ self._begin_refresh_at = begin_refresh_at
+
+ @property
+ def certificate_chain(self):
+ """Gets the certificate_chain of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+
+ certificateChain is populated with an issued certificate by the signer. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty. Validation requirements: 1. certificateChain must consist of one or more PEM-formatted certificates. 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as described in section 4 of RFC5280. If more than one block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers. # noqa: E501
+
+ :return: The certificate_chain of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+ :rtype: str
+ """
+ return self._certificate_chain
+
+ @certificate_chain.setter
+ def certificate_chain(self, certificate_chain):
+ """Sets the certificate_chain of this V1alpha1PodCertificateRequestStatus.
+
+ certificateChain is populated with an issued certificate by the signer. This field is set via the /status subresource. Once populated, this field is immutable. If the certificate signing request is denied, a condition of type \"Denied\" is added and this field remains empty. If the signer cannot issue the certificate, a condition of type \"Failed\" is added and this field remains empty. Validation requirements: 1. certificateChain must consist of one or more PEM-formatted certificates. 2. Each entry must be a valid PEM-wrapped, DER-encoded ASN.1 Certificate as described in section 4 of RFC5280. If more than one block is present, and the definition of the requested spec.signerName does not indicate otherwise, the first block is the issued certificate, and subsequent blocks should be treated as intermediate certificates and presented in TLS handshakes. When projecting the chain into a pod volume, kubelet will drop any data in-between the PEM blocks, as well as any PEM block headers. # noqa: E501
+
+ :param certificate_chain: The certificate_chain of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+ :type: str
+ """
+
+ self._certificate_chain = certificate_chain
+
+ @property
+ def conditions(self):
+ """Gets the conditions of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+
+ conditions applied to the request. The types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\". If the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field. # noqa: E501
+
+ :return: The conditions of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+ :rtype: list[V1Condition]
+ """
+ return self._conditions
+
+ @conditions.setter
+ def conditions(self, conditions):
+ """Sets the conditions of this V1alpha1PodCertificateRequestStatus.
+
+ conditions applied to the request. The types \"Issued\", \"Denied\", and \"Failed\" have special handling. At most one of these conditions may be present, and they must have status \"True\". If the request is denied with `Reason=UnsupportedKeyType`, the signer may suggest a key type that will work in the message field. # noqa: E501
+
+ :param conditions: The conditions of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+ :type: list[V1Condition]
+ """
+
+ self._conditions = conditions
+
+ @property
+ def not_after(self):
+ """Gets the not_after of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+
+ notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. # noqa: E501
+
+ :return: The not_after of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+ :rtype: datetime
+ """
+ return self._not_after
+
+ @not_after.setter
+ def not_after(self, not_after):
+ """Sets the not_after of this V1alpha1PodCertificateRequestStatus.
+
+ notAfter is the time at which the certificate expires. The value must be the same as the notAfter value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. # noqa: E501
+
+ :param not_after: The not_after of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+ :type: datetime
+ """
+
+ self._not_after = not_after
+
+ @property
+ def not_before(self):
+ """Gets the not_before of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+
+ notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. # noqa: E501
+
+ :return: The not_before of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+ :rtype: datetime
+ """
+ return self._not_before
+
+ @not_before.setter
+ def not_before(self, not_before):
+ """Sets the not_before of this V1alpha1PodCertificateRequestStatus.
+
+ notBefore is the time at which the certificate becomes valid. The value must be the same as the notBefore value in the leaf certificate in certificateChain. This field is set via the /status subresource. Once populated, it is immutable. The signer must set this field at the same time it sets certificateChain. # noqa: E501
+
+ :param not_before: The not_before of this V1alpha1PodCertificateRequestStatus. # noqa: E501
+ :type: datetime
+ """
+
+ self._not_before = not_before
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1alpha1PodCertificateRequestStatus):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1alpha1PodCertificateRequestStatus):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_server_storage_version.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_server_storage_version.py
index c0aaf232d11..b6f6beee22b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_server_storage_version.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_server_storage_version.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version.py
index f3f4e1bcf17..f2505d29598 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_condition.py
index 82e01786fe0..05aea5285bf 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_list.py
index 2452a51fc99..aaa5f49d504 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration.py
index 39bf0b47cd4..90e57a92726 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_list.py
index 2033cf1fd4a..c43a7a57b39 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_spec.py
index 8b5ea9b2938..2d7431ad2ba 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_status.py
index 33da35a6343..333228a1631 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_migration_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_status.py
index 8dbf7e1a96f..59ae6b0211d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_storage_version_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_variable.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_variable.py
index 561167c4747..2510fe65b63 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_variable.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_variable.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_volume_attributes_class.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_volume_attributes_class.py
index 0b91d46af41..590c8d90afb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_volume_attributes_class.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_volume_attributes_class.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_volume_attributes_class_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_volume_attributes_class_list.py
index 80c5366a2ba..6fcabf712d4 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_volume_attributes_class_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha1_volume_attributes_class_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate.py
index d66d7cfa44f..9ca6a75dfc9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate_list.py
index 4e40bdbe291..7edfab45a84 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate_spec.py
index af1fcfde095..bf51374422e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha2_lease_candidate_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_basic_device.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_basic_device.py
deleted file mode 100644
index b5515cc8797..00000000000
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_basic_device.py
+++ /dev/null
@@ -1,288 +0,0 @@
-# coding: utf-8
-
-"""
- Kubernetes
-
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
-
- The version of the OpenAPI document: release-1.33
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from kubernetes.client.configuration import Configuration
-
-
-class V1alpha3BasicDevice(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'all_nodes': 'bool',
- 'attributes': 'dict(str, V1alpha3DeviceAttribute)',
- 'capacity': 'dict(str, str)',
- 'consumes_counters': 'list[V1alpha3DeviceCounterConsumption]',
- 'node_name': 'str',
- 'node_selector': 'V1NodeSelector',
- 'taints': 'list[V1alpha3DeviceTaint]'
- }
-
- attribute_map = {
- 'all_nodes': 'allNodes',
- 'attributes': 'attributes',
- 'capacity': 'capacity',
- 'consumes_counters': 'consumesCounters',
- 'node_name': 'nodeName',
- 'node_selector': 'nodeSelector',
- 'taints': 'taints'
- }
-
- def __init__(self, all_nodes=None, attributes=None, capacity=None, consumes_counters=None, node_name=None, node_selector=None, taints=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3BasicDevice - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._all_nodes = None
- self._attributes = None
- self._capacity = None
- self._consumes_counters = None
- self._node_name = None
- self._node_selector = None
- self._taints = None
- self.discriminator = None
-
- if all_nodes is not None:
- self.all_nodes = all_nodes
- if attributes is not None:
- self.attributes = attributes
- if capacity is not None:
- self.capacity = capacity
- if consumes_counters is not None:
- self.consumes_counters = consumes_counters
- if node_name is not None:
- self.node_name = node_name
- if node_selector is not None:
- self.node_selector = node_selector
- if taints is not None:
- self.taints = taints
-
- @property
- def all_nodes(self):
- """Gets the all_nodes of this V1alpha3BasicDevice. # noqa: E501
-
- AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. # noqa: E501
-
- :return: The all_nodes of this V1alpha3BasicDevice. # noqa: E501
- :rtype: bool
- """
- return self._all_nodes
-
- @all_nodes.setter
- def all_nodes(self, all_nodes):
- """Sets the all_nodes of this V1alpha3BasicDevice.
-
- AllNodes indicates that all nodes have access to the device. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. # noqa: E501
-
- :param all_nodes: The all_nodes of this V1alpha3BasicDevice. # noqa: E501
- :type: bool
- """
-
- self._all_nodes = all_nodes
-
- @property
- def attributes(self):
- """Gets the attributes of this V1alpha3BasicDevice. # noqa: E501
-
- Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. # noqa: E501
-
- :return: The attributes of this V1alpha3BasicDevice. # noqa: E501
- :rtype: dict(str, V1alpha3DeviceAttribute)
- """
- return self._attributes
-
- @attributes.setter
- def attributes(self, attributes):
- """Sets the attributes of this V1alpha3BasicDevice.
-
- Attributes defines the set of attributes for this device. The name of each attribute must be unique in that set. The maximum number of attributes and capacities combined is 32. # noqa: E501
-
- :param attributes: The attributes of this V1alpha3BasicDevice. # noqa: E501
- :type: dict(str, V1alpha3DeviceAttribute)
- """
-
- self._attributes = attributes
-
- @property
- def capacity(self):
- """Gets the capacity of this V1alpha3BasicDevice. # noqa: E501
-
- Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. # noqa: E501
-
- :return: The capacity of this V1alpha3BasicDevice. # noqa: E501
- :rtype: dict(str, str)
- """
- return self._capacity
-
- @capacity.setter
- def capacity(self, capacity):
- """Sets the capacity of this V1alpha3BasicDevice.
-
- Capacity defines the set of capacities for this device. The name of each capacity must be unique in that set. The maximum number of attributes and capacities combined is 32. # noqa: E501
-
- :param capacity: The capacity of this V1alpha3BasicDevice. # noqa: E501
- :type: dict(str, str)
- """
-
- self._capacity = capacity
-
- @property
- def consumes_counters(self):
- """Gets the consumes_counters of this V1alpha3BasicDevice. # noqa: E501
-
- ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). # noqa: E501
-
- :return: The consumes_counters of this V1alpha3BasicDevice. # noqa: E501
- :rtype: list[V1alpha3DeviceCounterConsumption]
- """
- return self._consumes_counters
-
- @consumes_counters.setter
- def consumes_counters(self, consumes_counters):
- """Sets the consumes_counters of this V1alpha3BasicDevice.
-
- ConsumesCounters defines a list of references to sharedCounters and the set of counters that the device will consume from those counter sets. There can only be a single entry per counterSet. The total number of device counter consumption entries must be <= 32. In addition, the total number in the entire ResourceSlice must be <= 1024 (for example, 64 devices with 16 counters each). # noqa: E501
-
- :param consumes_counters: The consumes_counters of this V1alpha3BasicDevice. # noqa: E501
- :type: list[V1alpha3DeviceCounterConsumption]
- """
-
- self._consumes_counters = consumes_counters
-
- @property
- def node_name(self):
- """Gets the node_name of this V1alpha3BasicDevice. # noqa: E501
-
- NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. # noqa: E501
-
- :return: The node_name of this V1alpha3BasicDevice. # noqa: E501
- :rtype: str
- """
- return self._node_name
-
- @node_name.setter
- def node_name(self, node_name):
- """Sets the node_name of this V1alpha3BasicDevice.
-
- NodeName identifies the node where the device is available. Must only be set if Spec.PerDeviceNodeSelection is set to true. At most one of NodeName, NodeSelector and AllNodes can be set. # noqa: E501
-
- :param node_name: The node_name of this V1alpha3BasicDevice. # noqa: E501
- :type: str
- """
-
- self._node_name = node_name
-
- @property
- def node_selector(self):
- """Gets the node_selector of this V1alpha3BasicDevice. # noqa: E501
-
-
- :return: The node_selector of this V1alpha3BasicDevice. # noqa: E501
- :rtype: V1NodeSelector
- """
- return self._node_selector
-
- @node_selector.setter
- def node_selector(self, node_selector):
- """Sets the node_selector of this V1alpha3BasicDevice.
-
-
- :param node_selector: The node_selector of this V1alpha3BasicDevice. # noqa: E501
- :type: V1NodeSelector
- """
-
- self._node_selector = node_selector
-
- @property
- def taints(self):
- """Gets the taints of this V1alpha3BasicDevice. # noqa: E501
-
- If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501
-
- :return: The taints of this V1alpha3BasicDevice. # noqa: E501
- :rtype: list[V1alpha3DeviceTaint]
- """
- return self._taints
-
- @taints.setter
- def taints(self, taints):
- """Sets the taints of this V1alpha3BasicDevice.
-
- If specified, these are the driver-defined taints. The maximum number of taints is 4. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501
-
- :param taints: The taints of this V1alpha3BasicDevice. # noqa: E501
- :type: list[V1alpha3DeviceTaint]
- """
-
- self._taints = taints
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3BasicDevice):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3BasicDevice):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_cel_device_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_cel_device_selector.py
index 5705a78d4dc..d8892724e84 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_cel_device_selector.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_cel_device_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_request.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_request.py
deleted file mode 100644
index 1702a840d43..00000000000
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_request.py
+++ /dev/null
@@ -1,319 +0,0 @@
-# coding: utf-8
-
-"""
- Kubernetes
-
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
-
- The version of the OpenAPI document: release-1.33
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from kubernetes.client.configuration import Configuration
-
-
-class V1alpha3DeviceRequest(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'admin_access': 'bool',
- 'allocation_mode': 'str',
- 'count': 'int',
- 'device_class_name': 'str',
- 'first_available': 'list[V1alpha3DeviceSubRequest]',
- 'name': 'str',
- 'selectors': 'list[V1alpha3DeviceSelector]',
- 'tolerations': 'list[V1alpha3DeviceToleration]'
- }
-
- attribute_map = {
- 'admin_access': 'adminAccess',
- 'allocation_mode': 'allocationMode',
- 'count': 'count',
- 'device_class_name': 'deviceClassName',
- 'first_available': 'firstAvailable',
- 'name': 'name',
- 'selectors': 'selectors',
- 'tolerations': 'tolerations'
- }
-
- def __init__(self, admin_access=None, allocation_mode=None, count=None, device_class_name=None, first_available=None, name=None, selectors=None, tolerations=None, local_vars_configuration=None): # noqa: E501
- """V1alpha3DeviceRequest - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._admin_access = None
- self._allocation_mode = None
- self._count = None
- self._device_class_name = None
- self._first_available = None
- self._name = None
- self._selectors = None
- self._tolerations = None
- self.discriminator = None
-
- if admin_access is not None:
- self.admin_access = admin_access
- if allocation_mode is not None:
- self.allocation_mode = allocation_mode
- if count is not None:
- self.count = count
- if device_class_name is not None:
- self.device_class_name = device_class_name
- if first_available is not None:
- self.first_available = first_available
- self.name = name
- if selectors is not None:
- self.selectors = selectors
- if tolerations is not None:
- self.tolerations = tolerations
-
- @property
- def admin_access(self):
- """Gets the admin_access of this V1alpha3DeviceRequest. # noqa: E501
-
- AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. # noqa: E501
-
- :return: The admin_access of this V1alpha3DeviceRequest. # noqa: E501
- :rtype: bool
- """
- return self._admin_access
-
- @admin_access.setter
- def admin_access(self, admin_access):
- """Sets the admin_access of this V1alpha3DeviceRequest.
-
- AdminAccess indicates that this is a claim for administrative access to the device(s). Claims with AdminAccess are expected to be used for monitoring or other management services for a device. They ignore all ordinary claims to the device with respect to access modes and any resource allocations. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRAAdminAccess feature gate. Admin access is disabled if this field is unset or set to false, otherwise it is enabled. # noqa: E501
-
- :param admin_access: The admin_access of this V1alpha3DeviceRequest. # noqa: E501
- :type: bool
- """
-
- self._admin_access = admin_access
-
- @property
- def allocation_mode(self):
- """Gets the allocation_mode of this V1alpha3DeviceRequest. # noqa: E501
-
- AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. # noqa: E501
-
- :return: The allocation_mode of this V1alpha3DeviceRequest. # noqa: E501
- :rtype: str
- """
- return self._allocation_mode
-
- @allocation_mode.setter
- def allocation_mode(self, allocation_mode):
- """Sets the allocation_mode of this V1alpha3DeviceRequest.
-
- AllocationMode and its related fields define how devices are allocated to satisfy this request. Supported values are: - ExactCount: This request is for a specific number of devices. This is the default. The exact number is provided in the count field. - All: This request is for all of the matching devices in a pool. At least one device must exist on the node for the allocation to succeed. Allocation will fail if some devices are already allocated, unless adminAccess is requested. If AllocationMode is not specified, the default mode is ExactCount. If the mode is ExactCount and count is not specified, the default count is one. Any other requests must specify this field. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. More modes may get added in the future. Clients must refuse to handle requests with unknown modes. # noqa: E501
-
- :param allocation_mode: The allocation_mode of this V1alpha3DeviceRequest. # noqa: E501
- :type: str
- """
-
- self._allocation_mode = allocation_mode
-
- @property
- def count(self):
- """Gets the count of this V1alpha3DeviceRequest. # noqa: E501
-
- Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. # noqa: E501
-
- :return: The count of this V1alpha3DeviceRequest. # noqa: E501
- :rtype: int
- """
- return self._count
-
- @count.setter
- def count(self, count):
- """Sets the count of this V1alpha3DeviceRequest.
-
- Count is used only when the count mode is \"ExactCount\". Must be greater than zero. If AllocationMode is ExactCount and this field is not specified, the default is one. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. # noqa: E501
-
- :param count: The count of this V1alpha3DeviceRequest. # noqa: E501
- :type: int
- """
-
- self._count = count
-
- @property
- def device_class_name(self):
- """Gets the device_class_name of this V1alpha3DeviceRequest. # noqa: E501
-
- DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. # noqa: E501
-
- :return: The device_class_name of this V1alpha3DeviceRequest. # noqa: E501
- :rtype: str
- """
- return self._device_class_name
-
- @device_class_name.setter
- def device_class_name(self, device_class_name):
- """Sets the device_class_name of this V1alpha3DeviceRequest.
-
- DeviceClassName references a specific DeviceClass, which can define additional configuration and selectors to be inherited by this request. A class is required if no subrequests are specified in the firstAvailable list and no class can be set if subrequests are specified in the firstAvailable list. Which classes are available depends on the cluster. Administrators may use this to restrict which devices may get requested by only installing classes with selectors for permitted devices. If users are free to request anything without restrictions, then administrators can create an empty DeviceClass for users to reference. # noqa: E501
-
- :param device_class_name: The device_class_name of this V1alpha3DeviceRequest. # noqa: E501
- :type: str
- """
-
- self._device_class_name = device_class_name
-
- @property
- def first_available(self):
- """Gets the first_available of this V1alpha3DeviceRequest. # noqa: E501
-
- FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. # noqa: E501
-
- :return: The first_available of this V1alpha3DeviceRequest. # noqa: E501
- :rtype: list[V1alpha3DeviceSubRequest]
- """
- return self._first_available
-
- @first_available.setter
- def first_available(self, first_available):
- """Sets the first_available of this V1alpha3DeviceRequest.
-
- FirstAvailable contains subrequests, of which exactly one will be satisfied by the scheduler to satisfy this request. It tries to satisfy them in the order in which they are listed here. So if there are two entries in the list, the scheduler will only check the second one if it determines that the first one cannot be used. This field may only be set in the entries of DeviceClaim.Requests. DRA does not yet implement scoring, so the scheduler will select the first set of devices that satisfies all the requests in the claim. And if the requirements can be satisfied on more than one node, other scheduling features will determine which node is chosen. This means that the set of devices allocated to a claim might not be the optimal set available to the cluster. Scoring will be implemented later. # noqa: E501
-
- :param first_available: The first_available of this V1alpha3DeviceRequest. # noqa: E501
- :type: list[V1alpha3DeviceSubRequest]
- """
-
- self._first_available = first_available
-
- @property
- def name(self):
- """Gets the name of this V1alpha3DeviceRequest. # noqa: E501
-
- Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label. # noqa: E501
-
- :return: The name of this V1alpha3DeviceRequest. # noqa: E501
- :rtype: str
- """
- return self._name
-
- @name.setter
- def name(self, name):
- """Sets the name of this V1alpha3DeviceRequest.
-
- Name can be used to reference this request in a pod.spec.containers[].resources.claims entry and in a constraint of the claim. Must be a DNS label. # noqa: E501
-
- :param name: The name of this V1alpha3DeviceRequest. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and name is None: # noqa: E501
- raise ValueError("Invalid value for `name`, must not be `None`") # noqa: E501
-
- self._name = name
-
- @property
- def selectors(self):
- """Gets the selectors of this V1alpha3DeviceRequest. # noqa: E501
-
- Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. # noqa: E501
-
- :return: The selectors of this V1alpha3DeviceRequest. # noqa: E501
- :rtype: list[V1alpha3DeviceSelector]
- """
- return self._selectors
-
- @selectors.setter
- def selectors(self, selectors):
- """Sets the selectors of this V1alpha3DeviceRequest.
-
- Selectors define criteria which must be satisfied by a specific device in order for that device to be considered for this request. All selectors must be satisfied for a device to be considered. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. # noqa: E501
-
- :param selectors: The selectors of this V1alpha3DeviceRequest. # noqa: E501
- :type: list[V1alpha3DeviceSelector]
- """
-
- self._selectors = selectors
-
- @property
- def tolerations(self):
- """Gets the tolerations of this V1alpha3DeviceRequest. # noqa: E501
-
- If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501
-
- :return: The tolerations of this V1alpha3DeviceRequest. # noqa: E501
- :rtype: list[V1alpha3DeviceToleration]
- """
- return self._tolerations
-
- @tolerations.setter
- def tolerations(self, tolerations):
- """Sets the tolerations of this V1alpha3DeviceRequest.
-
- If specified, the request's tolerations. Tolerations for NoSchedule are required to allocate a device which has a taint with that effect. The same applies to NoExecute. In addition, should any of the allocated devices get tainted with NoExecute after allocation and that effect is not tolerated, then all pods consuming the ResourceClaim get deleted to evict them. The scheduler will not let new pods reserve the claim while it has these tainted devices. Once all pods are evicted, the claim will get deallocated. The maximum number of tolerations is 16. This field can only be set when deviceClassName is set and no subrequests are specified in the firstAvailable list. This is an alpha field and requires enabling the DRADeviceTaints feature gate. # noqa: E501
-
- :param tolerations: The tolerations of this V1alpha3DeviceRequest. # noqa: E501
- :type: list[V1alpha3DeviceToleration]
- """
-
- self._tolerations = tolerations
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, V1alpha3DeviceRequest):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, V1alpha3DeviceRequest):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_selector.py
index 03db1285a5e..d8c43c0860d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_selector.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint.py
index 89ebd4dc4a5..e6ec0e5c325 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule.py
index 343e44b28d8..bcc39dace9b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule_list.py
index e015a27ec71..9289bed9ed3 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule_spec.py
index 20c573c7863..59785931f48 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_rule_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_selector.py
index e5b30a4fd4d..07bdb4a88b5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_selector.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1alpha3_device_taint_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_allocated_device_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_allocated_device_status.py
index ce6738c3a4b..b6b41255f57 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_allocated_device_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_allocated_device_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -38,7 +38,8 @@ class V1beta1AllocatedDeviceStatus(object):
'device': 'str',
'driver': 'str',
'network_data': 'V1beta1NetworkDeviceData',
- 'pool': 'str'
+ 'pool': 'str',
+ 'share_id': 'str'
}
attribute_map = {
@@ -47,10 +48,11 @@ class V1beta1AllocatedDeviceStatus(object):
'device': 'device',
'driver': 'driver',
'network_data': 'networkData',
- 'pool': 'pool'
+ 'pool': 'pool',
+ 'share_id': 'shareID'
}
- def __init__(self, conditions=None, data=None, device=None, driver=None, network_data=None, pool=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, conditions=None, data=None, device=None, driver=None, network_data=None, pool=None, share_id=None, local_vars_configuration=None): # noqa: E501
"""V1beta1AllocatedDeviceStatus - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
@@ -62,6 +64,7 @@ class V1beta1AllocatedDeviceStatus(object):
self._driver = None
self._network_data = None
self._pool = None
+ self._share_id = None
self.discriminator = None
if conditions is not None:
@@ -73,6 +76,8 @@ class V1beta1AllocatedDeviceStatus(object):
if network_data is not None:
self.network_data = network_data
self.pool = pool
+ if share_id is not None:
+ self.share_id = share_id
@property
def conditions(self):
@@ -216,6 +221,29 @@ class V1beta1AllocatedDeviceStatus(object):
self._pool = pool
+ @property
+ def share_id(self):
+ """Gets the share_id of this V1beta1AllocatedDeviceStatus. # noqa: E501
+
+ ShareID uniquely identifies an individual allocation share of the device. # noqa: E501
+
+ :return: The share_id of this V1beta1AllocatedDeviceStatus. # noqa: E501
+ :rtype: str
+ """
+ return self._share_id
+
+ @share_id.setter
+ def share_id(self, share_id):
+ """Sets the share_id of this V1beta1AllocatedDeviceStatus.
+
+ ShareID uniquely identifies an individual allocation share of the device. # noqa: E501
+
+ :param share_id: The share_id of this V1beta1AllocatedDeviceStatus. # noqa: E501
+ :type: str
+ """
+
+ self._share_id = share_id
+
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_allocation_result.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_allocation_result.py
index 6c0c4bc872f..a726798897b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_allocation_result.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_allocation_result.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -33,31 +33,59 @@ class V1beta1AllocationResult(object):
and the value is json key in definition.
"""
openapi_types = {
+ 'allocation_timestamp': 'datetime',
'devices': 'V1beta1DeviceAllocationResult',
'node_selector': 'V1NodeSelector'
}
attribute_map = {
+ 'allocation_timestamp': 'allocationTimestamp',
'devices': 'devices',
'node_selector': 'nodeSelector'
}
- def __init__(self, devices=None, node_selector=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, allocation_timestamp=None, devices=None, node_selector=None, local_vars_configuration=None): # noqa: E501
"""V1beta1AllocationResult - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
+ self._allocation_timestamp = None
self._devices = None
self._node_selector = None
self.discriminator = None
+ if allocation_timestamp is not None:
+ self.allocation_timestamp = allocation_timestamp
if devices is not None:
self.devices = devices
if node_selector is not None:
self.node_selector = node_selector
@property
+ def allocation_timestamp(self):
+ """Gets the allocation_timestamp of this V1beta1AllocationResult. # noqa: E501
+
+ AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. # noqa: E501
+
+ :return: The allocation_timestamp of this V1beta1AllocationResult. # noqa: E501
+ :rtype: datetime
+ """
+ return self._allocation_timestamp
+
+ @allocation_timestamp.setter
+ def allocation_timestamp(self, allocation_timestamp):
+ """Sets the allocation_timestamp of this V1beta1AllocationResult.
+
+ AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. # noqa: E501
+
+ :param allocation_timestamp: The allocation_timestamp of this V1beta1AllocationResult. # noqa: E501
+ :type: datetime
+ """
+
+ self._allocation_timestamp = allocation_timestamp
+
+ @property
def devices(self):
"""Gets the devices of this V1beta1AllocationResult. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_apply_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_apply_configuration.py
new file mode 100644
index 00000000000..f22eba737e3
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_apply_configuration.py
@@ -0,0 +1,122 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1beta1ApplyConfiguration(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'expression': 'str'
+ }
+
+ attribute_map = {
+ 'expression': 'expression'
+ }
+
+ def __init__(self, expression=None, local_vars_configuration=None): # noqa: E501
+ """V1beta1ApplyConfiguration - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._expression = None
+ self.discriminator = None
+
+ if expression is not None:
+ self.expression = expression
+
+ @property
+ def expression(self):
+ """Gets the expression of this V1beta1ApplyConfiguration. # noqa: E501
+
+ expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: \"example\" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. # noqa: E501
+
+ :return: The expression of this V1beta1ApplyConfiguration. # noqa: E501
+ :rtype: str
+ """
+ return self._expression
+
+ @expression.setter
+ def expression(self, expression):
+ """Sets the expression of this V1beta1ApplyConfiguration.
+
+ expression will be evaluated by CEL to create an apply configuration. ref: https://github.com/google/cel-spec Apply configurations are declared in CEL using object initialization. For example, this CEL expression returns an apply configuration to set a single field: Object{ spec: Object.spec{ serviceAccountName: \"example\" } } Apply configurations may not modify atomic structs, maps or arrays due to the risk of accidental deletion of values not included in the apply configuration. CEL expressions have access to the object types needed to create apply configurations: - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. # noqa: E501
+
+ :param expression: The expression of this V1beta1ApplyConfiguration. # noqa: E501
+ :type: str
+ """
+
+ self._expression = expression
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1beta1ApplyConfiguration):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1beta1ApplyConfiguration):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_audit_annotation.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_audit_annotation.py
deleted file mode 100644
index fb18874fd4d..00000000000
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_audit_annotation.py
+++ /dev/null
@@ -1,152 +0,0 @@
-# coding: utf-8
-
-"""
- Kubernetes
-
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
-
- The version of the OpenAPI document: release-1.33
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from kubernetes.client.configuration import Configuration
-
-
-class V1beta1AuditAnnotation(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'key': 'str',
- 'value_expression': 'str'
- }
-
- attribute_map = {
- 'key': 'key',
- 'value_expression': 'valueExpression'
- }
-
- def __init__(self, key=None, value_expression=None, local_vars_configuration=None): # noqa: E501
- """V1beta1AuditAnnotation - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._key = None
- self._value_expression = None
- self.discriminator = None
-
- self.key = key
- self.value_expression = value_expression
-
- @property
- def key(self):
- """Gets the key of this V1beta1AuditAnnotation. # noqa: E501
-
- key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required. # noqa: E501
-
- :return: The key of this V1beta1AuditAnnotation. # noqa: E501
- :rtype: str
- """
- return self._key
-
- @key.setter
- def key(self, key):
- """Sets the key of this V1beta1AuditAnnotation.
-
- key specifies the audit annotation key. The audit annotation keys of a ValidatingAdmissionPolicy must be unique. The key must be a qualified name ([A-Za-z0-9][-A-Za-z0-9_.]*) no more than 63 bytes in length. The key is combined with the resource name of the ValidatingAdmissionPolicy to construct an audit annotation key: \"{ValidatingAdmissionPolicy name}/{key}\". If an admission webhook uses the same resource name as this ValidatingAdmissionPolicy and the same audit annotation key, the annotation key will be identical. In this case, the first annotation written with the key will be included in the audit event and all subsequent annotations with the same key will be discarded. Required. # noqa: E501
-
- :param key: The key of this V1beta1AuditAnnotation. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and key is None: # noqa: E501
- raise ValueError("Invalid value for `key`, must not be `None`") # noqa: E501
-
- self._key = key
-
- @property
- def value_expression(self):
- """Gets the value_expression of this V1beta1AuditAnnotation. # noqa: E501
-
- valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required. # noqa: E501
-
- :return: The value_expression of this V1beta1AuditAnnotation. # noqa: E501
- :rtype: str
- """
- return self._value_expression
-
- @value_expression.setter
- def value_expression(self, value_expression):
- """Sets the value_expression of this V1beta1AuditAnnotation.
-
- valueExpression represents the expression which is evaluated by CEL to produce an audit annotation value. The expression must evaluate to either a string or null value. If the expression evaluates to a string, the audit annotation is included with the string value. If the expression evaluates to null or empty string the audit annotation will be omitted. The valueExpression may be no longer than 5kb in length. If the result of the valueExpression is more than 10kb in length, it will be truncated to 10kb. If multiple ValidatingAdmissionPolicyBinding resources match an API request, then the valueExpression will be evaluated for each binding. All unique values produced by the valueExpressions will be joined together in a comma-separated list. Required. # noqa: E501
-
- :param value_expression: The value_expression of this V1beta1AuditAnnotation. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and value_expression is None: # noqa: E501
- raise ValueError("Invalid value for `value_expression`, must not be `None`") # noqa: E501
-
- self._value_expression = value_expression
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, V1beta1AuditAnnotation):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, V1beta1AuditAnnotation):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_basic_device.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_basic_device.py
index b3507513b59..6d35d1e030b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_basic_device.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_basic_device.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -34,7 +34,11 @@ class V1beta1BasicDevice(object):
"""
openapi_types = {
'all_nodes': 'bool',
+ 'allow_multiple_allocations': 'bool',
'attributes': 'dict(str, V1beta1DeviceAttribute)',
+ 'binding_conditions': 'list[str]',
+ 'binding_failure_conditions': 'list[str]',
+ 'binds_to_node': 'bool',
'capacity': 'dict(str, V1beta1DeviceCapacity)',
'consumes_counters': 'list[V1beta1DeviceCounterConsumption]',
'node_name': 'str',
@@ -44,7 +48,11 @@ class V1beta1BasicDevice(object):
attribute_map = {
'all_nodes': 'allNodes',
+ 'allow_multiple_allocations': 'allowMultipleAllocations',
'attributes': 'attributes',
+ 'binding_conditions': 'bindingConditions',
+ 'binding_failure_conditions': 'bindingFailureConditions',
+ 'binds_to_node': 'bindsToNode',
'capacity': 'capacity',
'consumes_counters': 'consumesCounters',
'node_name': 'nodeName',
@@ -52,14 +60,18 @@ class V1beta1BasicDevice(object):
'taints': 'taints'
}
- def __init__(self, all_nodes=None, attributes=None, capacity=None, consumes_counters=None, node_name=None, node_selector=None, taints=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, all_nodes=None, allow_multiple_allocations=None, attributes=None, binding_conditions=None, binding_failure_conditions=None, binds_to_node=None, capacity=None, consumes_counters=None, node_name=None, node_selector=None, taints=None, local_vars_configuration=None): # noqa: E501
"""V1beta1BasicDevice - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._all_nodes = None
+ self._allow_multiple_allocations = None
self._attributes = None
+ self._binding_conditions = None
+ self._binding_failure_conditions = None
+ self._binds_to_node = None
self._capacity = None
self._consumes_counters = None
self._node_name = None
@@ -69,8 +81,16 @@ class V1beta1BasicDevice(object):
if all_nodes is not None:
self.all_nodes = all_nodes
+ if allow_multiple_allocations is not None:
+ self.allow_multiple_allocations = allow_multiple_allocations
if attributes is not None:
self.attributes = attributes
+ if binding_conditions is not None:
+ self.binding_conditions = binding_conditions
+ if binding_failure_conditions is not None:
+ self.binding_failure_conditions = binding_failure_conditions
+ if binds_to_node is not None:
+ self.binds_to_node = binds_to_node
if capacity is not None:
self.capacity = capacity
if consumes_counters is not None:
@@ -106,6 +126,29 @@ class V1beta1BasicDevice(object):
self._all_nodes = all_nodes
@property
+ def allow_multiple_allocations(self):
+ """Gets the allow_multiple_allocations of this V1beta1BasicDevice. # noqa: E501
+
+ AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. # noqa: E501
+
+ :return: The allow_multiple_allocations of this V1beta1BasicDevice. # noqa: E501
+ :rtype: bool
+ """
+ return self._allow_multiple_allocations
+
+ @allow_multiple_allocations.setter
+ def allow_multiple_allocations(self, allow_multiple_allocations):
+ """Sets the allow_multiple_allocations of this V1beta1BasicDevice.
+
+ AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. # noqa: E501
+
+ :param allow_multiple_allocations: The allow_multiple_allocations of this V1beta1BasicDevice. # noqa: E501
+ :type: bool
+ """
+
+ self._allow_multiple_allocations = allow_multiple_allocations
+
+ @property
def attributes(self):
"""Gets the attributes of this V1beta1BasicDevice. # noqa: E501
@@ -129,6 +172,75 @@ class V1beta1BasicDevice(object):
self._attributes = attributes
@property
+ def binding_conditions(self):
+ """Gets the binding_conditions of this V1beta1BasicDevice. # noqa: E501
+
+ BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binding_conditions of this V1beta1BasicDevice. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._binding_conditions
+
+ @binding_conditions.setter
+ def binding_conditions(self, binding_conditions):
+ """Sets the binding_conditions of this V1beta1BasicDevice.
+
+ BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binding_conditions: The binding_conditions of this V1beta1BasicDevice. # noqa: E501
+ :type: list[str]
+ """
+
+ self._binding_conditions = binding_conditions
+
+ @property
+ def binding_failure_conditions(self):
+ """Gets the binding_failure_conditions of this V1beta1BasicDevice. # noqa: E501
+
+ BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is true, a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binding_failure_conditions of this V1beta1BasicDevice. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._binding_failure_conditions
+
+ @binding_failure_conditions.setter
+ def binding_failure_conditions(self, binding_failure_conditions):
+ """Sets the binding_failure_conditions of this V1beta1BasicDevice.
+
+ BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is true, a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binding_failure_conditions: The binding_failure_conditions of this V1beta1BasicDevice. # noqa: E501
+ :type: list[str]
+ """
+
+ self._binding_failure_conditions = binding_failure_conditions
+
+ @property
+ def binds_to_node(self):
+ """Gets the binds_to_node of this V1beta1BasicDevice. # noqa: E501
+
+ BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binds_to_node of this V1beta1BasicDevice. # noqa: E501
+ :rtype: bool
+ """
+ return self._binds_to_node
+
+ @binds_to_node.setter
+ def binds_to_node(self, binds_to_node):
+ """Sets the binds_to_node of this V1beta1BasicDevice.
+
+ BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binds_to_node: The binds_to_node of this V1beta1BasicDevice. # noqa: E501
+ :type: bool
+ """
+
+ self._binds_to_node = binds_to_node
+
+ @property
def capacity(self):
"""Gets the capacity of this V1beta1BasicDevice. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_capacity_request_policy.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_capacity_request_policy.py
new file mode 100644
index 00000000000..74c759d3970
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_capacity_request_policy.py
@@ -0,0 +1,176 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1beta1CapacityRequestPolicy(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'default': 'str',
+ 'valid_range': 'V1beta1CapacityRequestPolicyRange',
+ 'valid_values': 'list[str]'
+ }
+
+ attribute_map = {
+ 'default': 'default',
+ 'valid_range': 'validRange',
+ 'valid_values': 'validValues'
+ }
+
+ def __init__(self, default=None, valid_range=None, valid_values=None, local_vars_configuration=None): # noqa: E501
+ """V1beta1CapacityRequestPolicy - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._default = None
+ self._valid_range = None
+ self._valid_values = None
+ self.discriminator = None
+
+ if default is not None:
+ self.default = default
+ if valid_range is not None:
+ self.valid_range = valid_range
+ if valid_values is not None:
+ self.valid_values = valid_values
+
+ @property
+ def default(self):
+ """Gets the default of this V1beta1CapacityRequestPolicy. # noqa: E501
+
+ Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest's Capacity. # noqa: E501
+
+ :return: The default of this V1beta1CapacityRequestPolicy. # noqa: E501
+ :rtype: str
+ """
+ return self._default
+
+ @default.setter
+ def default(self, default):
+ """Sets the default of this V1beta1CapacityRequestPolicy.
+
+ Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest's Capacity. # noqa: E501
+
+ :param default: The default of this V1beta1CapacityRequestPolicy. # noqa: E501
+ :type: str
+ """
+
+ self._default = default
+
+ @property
+ def valid_range(self):
+ """Gets the valid_range of this V1beta1CapacityRequestPolicy. # noqa: E501
+
+
+ :return: The valid_range of this V1beta1CapacityRequestPolicy. # noqa: E501
+ :rtype: V1beta1CapacityRequestPolicyRange
+ """
+ return self._valid_range
+
+ @valid_range.setter
+ def valid_range(self, valid_range):
+ """Sets the valid_range of this V1beta1CapacityRequestPolicy.
+
+
+ :param valid_range: The valid_range of this V1beta1CapacityRequestPolicy. # noqa: E501
+ :type: V1beta1CapacityRequestPolicyRange
+ """
+
+ self._valid_range = valid_range
+
+ @property
+ def valid_values(self):
+ """Gets the valid_values of this V1beta1CapacityRequestPolicy. # noqa: E501
+
+ ValidValues defines a set of acceptable quantity values in consuming requests. Must not contain more than 10 entries. Must be sorted in ascending order. If this field is set, Default must be defined and it must be included in ValidValues list. If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. # noqa: E501
+
+ :return: The valid_values of this V1beta1CapacityRequestPolicy. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._valid_values
+
+ @valid_values.setter
+ def valid_values(self, valid_values):
+ """Sets the valid_values of this V1beta1CapacityRequestPolicy.
+
+ ValidValues defines a set of acceptable quantity values in consuming requests. Must not contain more than 10 entries. Must be sorted in ascending order. If this field is set, Default must be defined and it must be included in ValidValues list. If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. # noqa: E501
+
+ :param valid_values: The valid_values of this V1beta1CapacityRequestPolicy. # noqa: E501
+ :type: list[str]
+ """
+
+ self._valid_values = valid_values
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1beta1CapacityRequestPolicy):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1beta1CapacityRequestPolicy):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_capacity_request_policy_range.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_capacity_request_policy_range.py
new file mode 100644
index 00000000000..13b4cb30a85
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_capacity_request_policy_range.py
@@ -0,0 +1,179 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1beta1CapacityRequestPolicyRange(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'max': 'str',
+ 'min': 'str',
+ 'step': 'str'
+ }
+
+ attribute_map = {
+ 'max': 'max',
+ 'min': 'min',
+ 'step': 'step'
+ }
+
+ def __init__(self, max=None, min=None, step=None, local_vars_configuration=None): # noqa: E501
+ """V1beta1CapacityRequestPolicyRange - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._max = None
+ self._min = None
+ self._step = None
+ self.discriminator = None
+
+ if max is not None:
+ self.max = max
+ self.min = min
+ if step is not None:
+ self.step = step
+
+ @property
+ def max(self):
+ """Gets the max of this V1beta1CapacityRequestPolicyRange. # noqa: E501
+
+ Max defines the upper limit for capacity that can be requested. Max must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum. # noqa: E501
+
+ :return: The max of this V1beta1CapacityRequestPolicyRange. # noqa: E501
+ :rtype: str
+ """
+ return self._max
+
+ @max.setter
+ def max(self, max):
+ """Sets the max of this V1beta1CapacityRequestPolicyRange.
+
+ Max defines the upper limit for capacity that can be requested. Max must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum. # noqa: E501
+
+ :param max: The max of this V1beta1CapacityRequestPolicyRange. # noqa: E501
+ :type: str
+ """
+
+ self._max = max
+
+ @property
+ def min(self):
+ """Gets the min of this V1beta1CapacityRequestPolicyRange. # noqa: E501
+
+ Min specifies the minimum capacity allowed for a consumption request. Min must be greater than or equal to zero, and less than or equal to the capacity value. requestPolicy.default must be more than or equal to the minimum. # noqa: E501
+
+ :return: The min of this V1beta1CapacityRequestPolicyRange. # noqa: E501
+ :rtype: str
+ """
+ return self._min
+
+ @min.setter
+ def min(self, min):
+ """Sets the min of this V1beta1CapacityRequestPolicyRange.
+
+ Min specifies the minimum capacity allowed for a consumption request. Min must be greater than or equal to zero, and less than or equal to the capacity value. requestPolicy.default must be more than or equal to the minimum. # noqa: E501
+
+ :param min: The min of this V1beta1CapacityRequestPolicyRange. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and min is None: # noqa: E501
+ raise ValueError("Invalid value for `min`, must not be `None`") # noqa: E501
+
+ self._min = min
+
+ @property
+ def step(self):
+ """Gets the step of this V1beta1CapacityRequestPolicyRange. # noqa: E501
+
+ Step defines the step size between valid capacity amounts within the range. Max (if set) and requestPolicy.default must be a multiple of Step. Min + Step must be less than or equal to the capacity value. # noqa: E501
+
+ :return: The step of this V1beta1CapacityRequestPolicyRange. # noqa: E501
+ :rtype: str
+ """
+ return self._step
+
+ @step.setter
+ def step(self, step):
+ """Sets the step of this V1beta1CapacityRequestPolicyRange.
+
+ Step defines the step size between valid capacity amounts within the range. Max (if set) and requestPolicy.default must be a multiple of Step. Min + Step must be less than or equal to the capacity value. # noqa: E501
+
+ :param step: The step of this V1beta1CapacityRequestPolicyRange. # noqa: E501
+ :type: str
+ """
+
+ self._step = step
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1beta1CapacityRequestPolicyRange):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1beta1CapacityRequestPolicyRange):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_capacity_requirements.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_capacity_requirements.py
new file mode 100644
index 00000000000..bc1d3f3c54f
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_capacity_requirements.py
@@ -0,0 +1,122 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1beta1CapacityRequirements(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'requests': 'dict(str, str)'
+ }
+
+ attribute_map = {
+ 'requests': 'requests'
+ }
+
+ def __init__(self, requests=None, local_vars_configuration=None): # noqa: E501
+ """V1beta1CapacityRequirements - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._requests = None
+ self.discriminator = None
+
+ if requests is not None:
+ self.requests = requests
+
+ @property
+ def requests(self):
+ """Gets the requests of this V1beta1CapacityRequirements. # noqa: E501
+
+ Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. # noqa: E501
+
+ :return: The requests of this V1beta1CapacityRequirements. # noqa: E501
+ :rtype: dict(str, str)
+ """
+ return self._requests
+
+ @requests.setter
+ def requests(self, requests):
+ """Sets the requests of this V1beta1CapacityRequirements.
+
+ Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. # noqa: E501
+
+ :param requests: The requests of this V1beta1CapacityRequirements. # noqa: E501
+ :type: dict(str, str)
+ """
+
+ self._requests = requests
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1beta1CapacityRequirements):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1beta1CapacityRequirements):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cel_device_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cel_device_selector.py
index 06b7d0d968b..901885cbbd2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cel_device_selector.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cel_device_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -55,7 +55,7 @@ class V1beta1CELDeviceSelector(object):
def expression(self):
"""Gets the expression of this V1beta1CELDeviceSelector. # noqa: E501
- Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. # noqa: E501
+ Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. # noqa: E501
:return: The expression of this V1beta1CELDeviceSelector. # noqa: E501
:rtype: str
@@ -66,7 +66,7 @@ class V1beta1CELDeviceSelector(object):
def expression(self, expression):
"""Sets the expression of this V1beta1CELDeviceSelector.
- Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. # noqa: E501
+ Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. # noqa: E501
:param expression: The expression of this V1beta1CELDeviceSelector. # noqa: E501
:type: str
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle.py
index 323e19ae3df..adb02622388 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle_list.py
index 728f47c234a..a3c6f0e8ef1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle_spec.py
index 5751af14522..e9045348270 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_cluster_trust_bundle_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_counter.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_counter.py
index 1026d14a6c7..b2ba05c50fd 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_counter.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_counter.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_counter_set.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_counter_set.py
index 4a31de8f59f..22a96070cfa 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_counter_set.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_counter_set.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device.py
index 05622bd0728..2d9e49f56ad 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_allocation_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_allocation_configuration.py
index 885f5b50502..f9d2845daff 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_allocation_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_allocation_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_allocation_result.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_allocation_result.py
index fe1fef81edc..9ca0e8b34bd 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_allocation_result.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_allocation_result.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_attribute.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_attribute.py
index cbea47fcca4..a9a5691d0a1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_attribute.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_attribute.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_capacity.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_capacity.py
index a1fe5e04aab..150003376ee 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_capacity.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_capacity.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -33,29 +33,55 @@ class V1beta1DeviceCapacity(object):
and the value is json key in definition.
"""
openapi_types = {
+ 'request_policy': 'V1beta1CapacityRequestPolicy',
'value': 'str'
}
attribute_map = {
+ 'request_policy': 'requestPolicy',
'value': 'value'
}
- def __init__(self, value=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, request_policy=None, value=None, local_vars_configuration=None): # noqa: E501
"""V1beta1DeviceCapacity - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
+ self._request_policy = None
self._value = None
self.discriminator = None
+ if request_policy is not None:
+ self.request_policy = request_policy
self.value = value
@property
+ def request_policy(self):
+ """Gets the request_policy of this V1beta1DeviceCapacity. # noqa: E501
+
+
+ :return: The request_policy of this V1beta1DeviceCapacity. # noqa: E501
+ :rtype: V1beta1CapacityRequestPolicy
+ """
+ return self._request_policy
+
+ @request_policy.setter
+ def request_policy(self, request_policy):
+ """Sets the request_policy of this V1beta1DeviceCapacity.
+
+
+ :param request_policy: The request_policy of this V1beta1DeviceCapacity. # noqa: E501
+ :type: V1beta1CapacityRequestPolicy
+ """
+
+ self._request_policy = request_policy
+
+ @property
def value(self):
"""Gets the value of this V1beta1DeviceCapacity. # noqa: E501
- Value defines how much of a certain device capacity is available. # noqa: E501
+ Value defines how much of a certain capacity that device has. This field reflects the fixed total capacity and does not change. The consumed amount is tracked separately by scheduler and does not affect this value. # noqa: E501
:return: The value of this V1beta1DeviceCapacity. # noqa: E501
:rtype: str
@@ -66,7 +92,7 @@ class V1beta1DeviceCapacity(object):
def value(self, value):
"""Sets the value of this V1beta1DeviceCapacity.
- Value defines how much of a certain device capacity is available. # noqa: E501
+ Value defines how much of a certain capacity that device has. This field reflects the fixed total capacity and does not change. The consumed amount is tracked separately by scheduler and does not affect this value. # noqa: E501
:param value: The value of this V1beta1DeviceCapacity. # noqa: E501
:type: str
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_claim.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_claim.py
index 0b1e9470b91..f366d572a43 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_claim.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_claim.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_claim_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_claim_configuration.py
index 33d5d3ccd49..35af6a11a0f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_claim_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_claim_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class.py
index 6091093021f..fa99ce7fb37 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_configuration.py
index 700507e6975..a0818e3edd0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_list.py
index 1d04dfe5335..61b462a3272 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_spec.py
index fadba48f2c7..c8c43b8be8b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_class_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -34,26 +34,31 @@ class V1beta1DeviceClassSpec(object):
"""
openapi_types = {
'config': 'list[V1beta1DeviceClassConfiguration]',
+ 'extended_resource_name': 'str',
'selectors': 'list[V1beta1DeviceSelector]'
}
attribute_map = {
'config': 'config',
+ 'extended_resource_name': 'extendedResourceName',
'selectors': 'selectors'
}
- def __init__(self, config=None, selectors=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, config=None, extended_resource_name=None, selectors=None, local_vars_configuration=None): # noqa: E501
"""V1beta1DeviceClassSpec - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._config = None
+ self._extended_resource_name = None
self._selectors = None
self.discriminator = None
if config is not None:
self.config = config
+ if extended_resource_name is not None:
+ self.extended_resource_name = extended_resource_name
if selectors is not None:
self.selectors = selectors
@@ -81,6 +86,29 @@ class V1beta1DeviceClassSpec(object):
self._config = config
@property
+ def extended_resource_name(self):
+ """Gets the extended_resource_name of this V1beta1DeviceClassSpec. # noqa: E501
+
+ ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. # noqa: E501
+
+ :return: The extended_resource_name of this V1beta1DeviceClassSpec. # noqa: E501
+ :rtype: str
+ """
+ return self._extended_resource_name
+
+ @extended_resource_name.setter
+ def extended_resource_name(self, extended_resource_name):
+ """Sets the extended_resource_name of this V1beta1DeviceClassSpec.
+
+ ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. # noqa: E501
+
+ :param extended_resource_name: The extended_resource_name of this V1beta1DeviceClassSpec. # noqa: E501
+ :type: str
+ """
+
+ self._extended_resource_name = extended_resource_name
+
+ @property
def selectors(self):
"""Gets the selectors of this V1beta1DeviceClassSpec. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_constraint.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_constraint.py
index 616f8ab9571..f89dab4ea1f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_constraint.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_constraint.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -33,31 +33,59 @@ class V1beta1DeviceConstraint(object):
and the value is json key in definition.
"""
openapi_types = {
+ 'distinct_attribute': 'str',
'match_attribute': 'str',
'requests': 'list[str]'
}
attribute_map = {
+ 'distinct_attribute': 'distinctAttribute',
'match_attribute': 'matchAttribute',
'requests': 'requests'
}
- def __init__(self, match_attribute=None, requests=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, distinct_attribute=None, match_attribute=None, requests=None, local_vars_configuration=None): # noqa: E501
"""V1beta1DeviceConstraint - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
+ self._distinct_attribute = None
self._match_attribute = None
self._requests = None
self.discriminator = None
+ if distinct_attribute is not None:
+ self.distinct_attribute = distinct_attribute
if match_attribute is not None:
self.match_attribute = match_attribute
if requests is not None:
self.requests = requests
@property
+ def distinct_attribute(self):
+ """Gets the distinct_attribute of this V1beta1DeviceConstraint. # noqa: E501
+
+ DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. # noqa: E501
+
+ :return: The distinct_attribute of this V1beta1DeviceConstraint. # noqa: E501
+ :rtype: str
+ """
+ return self._distinct_attribute
+
+ @distinct_attribute.setter
+ def distinct_attribute(self, distinct_attribute):
+ """Sets the distinct_attribute of this V1beta1DeviceConstraint.
+
+ DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. # noqa: E501
+
+ :param distinct_attribute: The distinct_attribute of this V1beta1DeviceConstraint. # noqa: E501
+ :type: str
+ """
+
+ self._distinct_attribute = distinct_attribute
+
+ @property
def match_attribute(self):
"""Gets the match_attribute of this V1beta1DeviceConstraint. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_counter_consumption.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_counter_consumption.py
index ee27f1d27d6..caa4fe18951 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_counter_consumption.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_counter_consumption.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_request.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_request.py
index 842df311a8f..60307edc50d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_request.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_request.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -35,6 +35,7 @@ class V1beta1DeviceRequest(object):
openapi_types = {
'admin_access': 'bool',
'allocation_mode': 'str',
+ 'capacity': 'V1beta1CapacityRequirements',
'count': 'int',
'device_class_name': 'str',
'first_available': 'list[V1beta1DeviceSubRequest]',
@@ -46,6 +47,7 @@ class V1beta1DeviceRequest(object):
attribute_map = {
'admin_access': 'adminAccess',
'allocation_mode': 'allocationMode',
+ 'capacity': 'capacity',
'count': 'count',
'device_class_name': 'deviceClassName',
'first_available': 'firstAvailable',
@@ -54,7 +56,7 @@ class V1beta1DeviceRequest(object):
'tolerations': 'tolerations'
}
- def __init__(self, admin_access=None, allocation_mode=None, count=None, device_class_name=None, first_available=None, name=None, selectors=None, tolerations=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, admin_access=None, allocation_mode=None, capacity=None, count=None, device_class_name=None, first_available=None, name=None, selectors=None, tolerations=None, local_vars_configuration=None): # noqa: E501
"""V1beta1DeviceRequest - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
@@ -62,6 +64,7 @@ class V1beta1DeviceRequest(object):
self._admin_access = None
self._allocation_mode = None
+ self._capacity = None
self._count = None
self._device_class_name = None
self._first_available = None
@@ -74,6 +77,8 @@ class V1beta1DeviceRequest(object):
self.admin_access = admin_access
if allocation_mode is not None:
self.allocation_mode = allocation_mode
+ if capacity is not None:
+ self.capacity = capacity
if count is not None:
self.count = count
if device_class_name is not None:
@@ -133,6 +138,27 @@ class V1beta1DeviceRequest(object):
self._allocation_mode = allocation_mode
@property
+ def capacity(self):
+ """Gets the capacity of this V1beta1DeviceRequest. # noqa: E501
+
+
+ :return: The capacity of this V1beta1DeviceRequest. # noqa: E501
+ :rtype: V1beta1CapacityRequirements
+ """
+ return self._capacity
+
+ @capacity.setter
+ def capacity(self, capacity):
+ """Sets the capacity of this V1beta1DeviceRequest.
+
+
+ :param capacity: The capacity of this V1beta1DeviceRequest. # noqa: E501
+ :type: V1beta1CapacityRequirements
+ """
+
+ self._capacity = capacity
+
+ @property
def count(self):
"""Gets the count of this V1beta1DeviceRequest. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_request_allocation_result.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_request_allocation_result.py
index 77df476828f..7a08ed6575d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_request_allocation_result.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_request_allocation_result.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -34,42 +34,62 @@ class V1beta1DeviceRequestAllocationResult(object):
"""
openapi_types = {
'admin_access': 'bool',
+ 'binding_conditions': 'list[str]',
+ 'binding_failure_conditions': 'list[str]',
+ 'consumed_capacity': 'dict(str, str)',
'device': 'str',
'driver': 'str',
'pool': 'str',
'request': 'str',
+ 'share_id': 'str',
'tolerations': 'list[V1beta1DeviceToleration]'
}
attribute_map = {
'admin_access': 'adminAccess',
+ 'binding_conditions': 'bindingConditions',
+ 'binding_failure_conditions': 'bindingFailureConditions',
+ 'consumed_capacity': 'consumedCapacity',
'device': 'device',
'driver': 'driver',
'pool': 'pool',
'request': 'request',
+ 'share_id': 'shareID',
'tolerations': 'tolerations'
}
- def __init__(self, admin_access=None, device=None, driver=None, pool=None, request=None, tolerations=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, admin_access=None, binding_conditions=None, binding_failure_conditions=None, consumed_capacity=None, device=None, driver=None, pool=None, request=None, share_id=None, tolerations=None, local_vars_configuration=None): # noqa: E501
"""V1beta1DeviceRequestAllocationResult - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._admin_access = None
+ self._binding_conditions = None
+ self._binding_failure_conditions = None
+ self._consumed_capacity = None
self._device = None
self._driver = None
self._pool = None
self._request = None
+ self._share_id = None
self._tolerations = None
self.discriminator = None
if admin_access is not None:
self.admin_access = admin_access
+ if binding_conditions is not None:
+ self.binding_conditions = binding_conditions
+ if binding_failure_conditions is not None:
+ self.binding_failure_conditions = binding_failure_conditions
+ if consumed_capacity is not None:
+ self.consumed_capacity = consumed_capacity
self.device = device
self.driver = driver
self.pool = pool
self.request = request
+ if share_id is not None:
+ self.share_id = share_id
if tolerations is not None:
self.tolerations = tolerations
@@ -97,6 +117,75 @@ class V1beta1DeviceRequestAllocationResult(object):
self._admin_access = admin_access
@property
+ def binding_conditions(self):
+ """Gets the binding_conditions of this V1beta1DeviceRequestAllocationResult. # noqa: E501
+
+ BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binding_conditions of this V1beta1DeviceRequestAllocationResult. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._binding_conditions
+
+ @binding_conditions.setter
+ def binding_conditions(self, binding_conditions):
+ """Sets the binding_conditions of this V1beta1DeviceRequestAllocationResult.
+
+ BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binding_conditions: The binding_conditions of this V1beta1DeviceRequestAllocationResult. # noqa: E501
+ :type: list[str]
+ """
+
+ self._binding_conditions = binding_conditions
+
+ @property
+ def binding_failure_conditions(self):
+ """Gets the binding_failure_conditions of this V1beta1DeviceRequestAllocationResult. # noqa: E501
+
+ BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binding_failure_conditions of this V1beta1DeviceRequestAllocationResult. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._binding_failure_conditions
+
+ @binding_failure_conditions.setter
+ def binding_failure_conditions(self, binding_failure_conditions):
+ """Sets the binding_failure_conditions of this V1beta1DeviceRequestAllocationResult.
+
+ BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binding_failure_conditions: The binding_failure_conditions of this V1beta1DeviceRequestAllocationResult. # noqa: E501
+ :type: list[str]
+ """
+
+ self._binding_failure_conditions = binding_failure_conditions
+
+ @property
+ def consumed_capacity(self):
+ """Gets the consumed_capacity of this V1beta1DeviceRequestAllocationResult. # noqa: E501
+
+ ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. # noqa: E501
+
+ :return: The consumed_capacity of this V1beta1DeviceRequestAllocationResult. # noqa: E501
+ :rtype: dict(str, str)
+ """
+ return self._consumed_capacity
+
+ @consumed_capacity.setter
+ def consumed_capacity(self, consumed_capacity):
+ """Sets the consumed_capacity of this V1beta1DeviceRequestAllocationResult.
+
+ ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. # noqa: E501
+
+ :param consumed_capacity: The consumed_capacity of this V1beta1DeviceRequestAllocationResult. # noqa: E501
+ :type: dict(str, str)
+ """
+
+ self._consumed_capacity = consumed_capacity
+
+ @property
def device(self):
"""Gets the device of this V1beta1DeviceRequestAllocationResult. # noqa: E501
@@ -197,6 +286,29 @@ class V1beta1DeviceRequestAllocationResult(object):
self._request = request
@property
+ def share_id(self):
+ """Gets the share_id of this V1beta1DeviceRequestAllocationResult. # noqa: E501
+
+ ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. # noqa: E501
+
+ :return: The share_id of this V1beta1DeviceRequestAllocationResult. # noqa: E501
+ :rtype: str
+ """
+ return self._share_id
+
+ @share_id.setter
+ def share_id(self, share_id):
+ """Sets the share_id of this V1beta1DeviceRequestAllocationResult.
+
+ ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. # noqa: E501
+
+ :param share_id: The share_id of this V1beta1DeviceRequestAllocationResult. # noqa: E501
+ :type: str
+ """
+
+ self._share_id = share_id
+
+ @property
def tolerations(self):
"""Gets the tolerations of this V1beta1DeviceRequestAllocationResult. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_selector.py
index 941645a7302..93465cae6f6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_selector.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_sub_request.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_sub_request.py
index b538e386058..a6c5c45692a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_sub_request.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_sub_request.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -34,6 +34,7 @@ class V1beta1DeviceSubRequest(object):
"""
openapi_types = {
'allocation_mode': 'str',
+ 'capacity': 'V1beta1CapacityRequirements',
'count': 'int',
'device_class_name': 'str',
'name': 'str',
@@ -43,6 +44,7 @@ class V1beta1DeviceSubRequest(object):
attribute_map = {
'allocation_mode': 'allocationMode',
+ 'capacity': 'capacity',
'count': 'count',
'device_class_name': 'deviceClassName',
'name': 'name',
@@ -50,13 +52,14 @@ class V1beta1DeviceSubRequest(object):
'tolerations': 'tolerations'
}
- def __init__(self, allocation_mode=None, count=None, device_class_name=None, name=None, selectors=None, tolerations=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, allocation_mode=None, capacity=None, count=None, device_class_name=None, name=None, selectors=None, tolerations=None, local_vars_configuration=None): # noqa: E501
"""V1beta1DeviceSubRequest - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._allocation_mode = None
+ self._capacity = None
self._count = None
self._device_class_name = None
self._name = None
@@ -66,6 +69,8 @@ class V1beta1DeviceSubRequest(object):
if allocation_mode is not None:
self.allocation_mode = allocation_mode
+ if capacity is not None:
+ self.capacity = capacity
if count is not None:
self.count = count
self.device_class_name = device_class_name
@@ -99,6 +104,27 @@ class V1beta1DeviceSubRequest(object):
self._allocation_mode = allocation_mode
@property
+ def capacity(self):
+ """Gets the capacity of this V1beta1DeviceSubRequest. # noqa: E501
+
+
+ :return: The capacity of this V1beta1DeviceSubRequest. # noqa: E501
+ :rtype: V1beta1CapacityRequirements
+ """
+ return self._capacity
+
+ @capacity.setter
+ def capacity(self, capacity):
+ """Sets the capacity of this V1beta1DeviceSubRequest.
+
+
+ :param capacity: The capacity of this V1beta1DeviceSubRequest. # noqa: E501
+ :type: V1beta1CapacityRequirements
+ """
+
+ self._capacity = capacity
+
+ @property
def count(self):
"""Gets the count of this V1beta1DeviceSubRequest. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_taint.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_taint.py
index 2e73051b0d2..53c44988855 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_taint.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_taint.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_toleration.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_toleration.py
index 3677050b09a..ab55caa9b5d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_toleration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_device_toleration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_expression_warning.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_expression_warning.py
deleted file mode 100644
index d63bac73840..00000000000
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_expression_warning.py
+++ /dev/null
@@ -1,152 +0,0 @@
-# coding: utf-8
-
-"""
- Kubernetes
-
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
-
- The version of the OpenAPI document: release-1.33
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from kubernetes.client.configuration import Configuration
-
-
-class V1beta1ExpressionWarning(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'field_ref': 'str',
- 'warning': 'str'
- }
-
- attribute_map = {
- 'field_ref': 'fieldRef',
- 'warning': 'warning'
- }
-
- def __init__(self, field_ref=None, warning=None, local_vars_configuration=None): # noqa: E501
- """V1beta1ExpressionWarning - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._field_ref = None
- self._warning = None
- self.discriminator = None
-
- self.field_ref = field_ref
- self.warning = warning
-
- @property
- def field_ref(self):
- """Gets the field_ref of this V1beta1ExpressionWarning. # noqa: E501
-
- The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\" # noqa: E501
-
- :return: The field_ref of this V1beta1ExpressionWarning. # noqa: E501
- :rtype: str
- """
- return self._field_ref
-
- @field_ref.setter
- def field_ref(self, field_ref):
- """Sets the field_ref of this V1beta1ExpressionWarning.
-
- The path to the field that refers the expression. For example, the reference to the expression of the first item of validations is \"spec.validations[0].expression\" # noqa: E501
-
- :param field_ref: The field_ref of this V1beta1ExpressionWarning. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and field_ref is None: # noqa: E501
- raise ValueError("Invalid value for `field_ref`, must not be `None`") # noqa: E501
-
- self._field_ref = field_ref
-
- @property
- def warning(self):
- """Gets the warning of this V1beta1ExpressionWarning. # noqa: E501
-
- The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. # noqa: E501
-
- :return: The warning of this V1beta1ExpressionWarning. # noqa: E501
- :rtype: str
- """
- return self._warning
-
- @warning.setter
- def warning(self, warning):
- """Sets the warning of this V1beta1ExpressionWarning.
-
- The content of type checking information in a human-readable form. Each line of the warning contains the type that the expression is checked against, followed by the type check error from the compiler. # noqa: E501
-
- :param warning: The warning of this V1beta1ExpressionWarning. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and warning is None: # noqa: E501
- raise ValueError("Invalid value for `warning`, must not be `None`") # noqa: E501
-
- self._warning = warning
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, V1beta1ExpressionWarning):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, V1beta1ExpressionWarning):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address.py
index e3e2886a721..8a88a966760 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address_list.py
index 0b5ae6a845e..8ce18f8da68 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address_spec.py
index eb7037a3a87..ee7d2e3a581 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_ip_address_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_json_patch.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_json_patch.py
new file mode 100644
index 00000000000..746d4e011fd
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_json_patch.py
@@ -0,0 +1,122 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1beta1JSONPatch(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'expression': 'str'
+ }
+
+ attribute_map = {
+ 'expression': 'expression'
+ }
+
+ def __init__(self, expression=None, local_vars_configuration=None): # noqa: E501
+ """V1beta1JSONPatch - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._expression = None
+ self.discriminator = None
+
+ if expression is not None:
+ self.expression = expression
+
+ @property
+ def expression(self):
+ """Gets the expression of this V1beta1JSONPatch. # noqa: E501
+
+ expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec expression must return an array of JSONPatch values. For example, this CEL expression returns a JSON patch to conditionally modify a value: [ JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"}, JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"} ] To define an object for the patch value, use Object types. For example: [ JSONPatch{ op: \"add\", path: \"/spec/selector\", value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}} } ] To use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example: [ JSONPatch{ op: \"add\", path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"), value: \"test\" }, ] CEL expressions have access to the types needed to create JSON patches and objects: - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, integer, array, map or object. If set, the 'path' and 'from' fields must be set to a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as: - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. # noqa: E501
+
+ :return: The expression of this V1beta1JSONPatch. # noqa: E501
+ :rtype: str
+ """
+ return self._expression
+
+ @expression.setter
+ def expression(self, expression):
+ """Sets the expression of this V1beta1JSONPatch.
+
+ expression will be evaluated by CEL to create a [JSON patch](https://jsonpatch.com/). ref: https://github.com/google/cel-spec expression must return an array of JSONPatch values. For example, this CEL expression returns a JSON patch to conditionally modify a value: [ JSONPatch{op: \"test\", path: \"/spec/example\", value: \"Red\"}, JSONPatch{op: \"replace\", path: \"/spec/example\", value: \"Green\"} ] To define an object for the patch value, use Object types. For example: [ JSONPatch{ op: \"add\", path: \"/spec/selector\", value: Object.spec.selector{matchLabels: {\"environment\": \"test\"}} } ] To use strings containing '/' and '~' as JSONPatch path keys, use \"jsonpatch.escapeKey\". For example: [ JSONPatch{ op: \"add\", path: \"/metadata/labels/\" + jsonpatch.escapeKey(\"example.com/environment\"), value: \"test\" }, ] CEL expressions have access to the types needed to create JSON patches and objects: - 'JSONPatch' - CEL type of JSON Patch operations. JSONPatch has the fields 'op', 'from', 'path' and 'value'. See [JSON patch](https://jsonpatch.com/) for more details. The 'value' field may be set to any of: string, integer, array, map or object. If set, the 'path' and 'from' fields must be set to a [JSON pointer](https://datatracker.ietf.org/doc/html/rfc6901/) string, where the 'jsonpatch.escapeKey()' CEL function may be used to escape path keys containing '/' and '~'. - 'Object' - CEL type of the resource object. - 'Object.<fieldName>' - CEL type of object field (such as 'Object.spec') - 'Object.<fieldName1>.<fieldName2>...<fieldNameN>` - CEL type of nested field (such as 'Object.spec.containers') CEL expressions have access to the contents of the API request, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. CEL expressions have access to [Kubernetes CEL function libraries](https://kubernetes.io/docs/reference/using-api/cel/#cel-options-language-features-and-libraries) as well as: - 'jsonpatch.escapeKey' - Performs JSONPatch key escaping. '~' and '/' are escaped as '~0' and `~1' respectively). Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Required. # noqa: E501
+
+ :param expression: The expression of this V1beta1JSONPatch. # noqa: E501
+ :type: str
+ """
+
+ self._expression = expression
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1beta1JSONPatch):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1beta1JSONPatch):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate.py
index 0b47a9cb926..27142b0fddb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate_list.py
index fc9f58e1375..a883a060543 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate_spec.py
index 6438e180626..85010084ffc 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_lease_candidate_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_match_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_match_condition.py
index a426375d825..15f156d80e1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_match_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_match_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_match_resources.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_match_resources.py
index 66cfe270f2f..514917c4634 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_match_resources.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_match_resources.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy.py
new file mode 100644
index 00000000000..b64474ead0c
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy.py
@@ -0,0 +1,202 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1beta1MutatingAdmissionPolicy(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'api_version': 'str',
+ 'kind': 'str',
+ 'metadata': 'V1ObjectMeta',
+ 'spec': 'V1beta1MutatingAdmissionPolicySpec'
+ }
+
+ attribute_map = {
+ 'api_version': 'apiVersion',
+ 'kind': 'kind',
+ 'metadata': 'metadata',
+ 'spec': 'spec'
+ }
+
+ def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501
+ """V1beta1MutatingAdmissionPolicy - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._api_version = None
+ self._kind = None
+ self._metadata = None
+ self._spec = None
+ self.discriminator = None
+
+ if api_version is not None:
+ self.api_version = api_version
+ if kind is not None:
+ self.kind = kind
+ if metadata is not None:
+ self.metadata = metadata
+ if spec is not None:
+ self.spec = spec
+
+ @property
+ def api_version(self):
+ """Gets the api_version of this V1beta1MutatingAdmissionPolicy. # noqa: E501
+
+ APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
+
+ :return: The api_version of this V1beta1MutatingAdmissionPolicy. # noqa: E501
+ :rtype: str
+ """
+ return self._api_version
+
+ @api_version.setter
+ def api_version(self, api_version):
+ """Sets the api_version of this V1beta1MutatingAdmissionPolicy.
+
+ APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
+
+ :param api_version: The api_version of this V1beta1MutatingAdmissionPolicy. # noqa: E501
+ :type: str
+ """
+
+ self._api_version = api_version
+
+ @property
+ def kind(self):
+ """Gets the kind of this V1beta1MutatingAdmissionPolicy. # noqa: E501
+
+ Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
+
+ :return: The kind of this V1beta1MutatingAdmissionPolicy. # noqa: E501
+ :rtype: str
+ """
+ return self._kind
+
+ @kind.setter
+ def kind(self, kind):
+ """Sets the kind of this V1beta1MutatingAdmissionPolicy.
+
+ Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
+
+ :param kind: The kind of this V1beta1MutatingAdmissionPolicy. # noqa: E501
+ :type: str
+ """
+
+ self._kind = kind
+
+ @property
+ def metadata(self):
+ """Gets the metadata of this V1beta1MutatingAdmissionPolicy. # noqa: E501
+
+
+ :return: The metadata of this V1beta1MutatingAdmissionPolicy. # noqa: E501
+ :rtype: V1ObjectMeta
+ """
+ return self._metadata
+
+ @metadata.setter
+ def metadata(self, metadata):
+ """Sets the metadata of this V1beta1MutatingAdmissionPolicy.
+
+
+ :param metadata: The metadata of this V1beta1MutatingAdmissionPolicy. # noqa: E501
+ :type: V1ObjectMeta
+ """
+
+ self._metadata = metadata
+
+ @property
+ def spec(self):
+ """Gets the spec of this V1beta1MutatingAdmissionPolicy. # noqa: E501
+
+
+ :return: The spec of this V1beta1MutatingAdmissionPolicy. # noqa: E501
+ :rtype: V1beta1MutatingAdmissionPolicySpec
+ """
+ return self._spec
+
+ @spec.setter
+ def spec(self, spec):
+ """Sets the spec of this V1beta1MutatingAdmissionPolicy.
+
+
+ :param spec: The spec of this V1beta1MutatingAdmissionPolicy. # noqa: E501
+ :type: V1beta1MutatingAdmissionPolicySpec
+ """
+
+ self._spec = spec
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1beta1MutatingAdmissionPolicy):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1beta1MutatingAdmissionPolicy):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_binding.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_binding.py
index 63a1f022382..b3096d0052b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_binding.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_binding.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1beta1ValidatingAdmissionPolicyBinding(object):
+class V1beta1MutatingAdmissionPolicyBinding(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -36,7 +36,7 @@ class V1beta1ValidatingAdmissionPolicyBinding(object):
'api_version': 'str',
'kind': 'str',
'metadata': 'V1ObjectMeta',
- 'spec': 'V1beta1ValidatingAdmissionPolicyBindingSpec'
+ 'spec': 'V1beta1MutatingAdmissionPolicyBindingSpec'
}
attribute_map = {
@@ -47,7 +47,7 @@ class V1beta1ValidatingAdmissionPolicyBinding(object):
}
def __init__(self, api_version=None, kind=None, metadata=None, spec=None, local_vars_configuration=None): # noqa: E501
- """V1beta1ValidatingAdmissionPolicyBinding - a model defined in OpenAPI""" # noqa: E501
+ """V1beta1MutatingAdmissionPolicyBinding - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -69,22 +69,22 @@ class V1beta1ValidatingAdmissionPolicyBinding(object):
@property
def api_version(self):
- """Gets the api_version of this V1beta1ValidatingAdmissionPolicyBinding. # noqa: E501
+ """Gets the api_version of this V1beta1MutatingAdmissionPolicyBinding. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :return: The api_version of this V1beta1ValidatingAdmissionPolicyBinding. # noqa: E501
+ :return: The api_version of this V1beta1MutatingAdmissionPolicyBinding. # noqa: E501
:rtype: str
"""
return self._api_version
@api_version.setter
def api_version(self, api_version):
- """Sets the api_version of this V1beta1ValidatingAdmissionPolicyBinding.
+ """Sets the api_version of this V1beta1MutatingAdmissionPolicyBinding.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :param api_version: The api_version of this V1beta1ValidatingAdmissionPolicyBinding. # noqa: E501
+ :param api_version: The api_version of this V1beta1MutatingAdmissionPolicyBinding. # noqa: E501
:type: str
"""
@@ -92,22 +92,22 @@ class V1beta1ValidatingAdmissionPolicyBinding(object):
@property
def kind(self):
- """Gets the kind of this V1beta1ValidatingAdmissionPolicyBinding. # noqa: E501
+ """Gets the kind of this V1beta1MutatingAdmissionPolicyBinding. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :return: The kind of this V1beta1ValidatingAdmissionPolicyBinding. # noqa: E501
+ :return: The kind of this V1beta1MutatingAdmissionPolicyBinding. # noqa: E501
:rtype: str
"""
return self._kind
@kind.setter
def kind(self, kind):
- """Sets the kind of this V1beta1ValidatingAdmissionPolicyBinding.
+ """Sets the kind of this V1beta1MutatingAdmissionPolicyBinding.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :param kind: The kind of this V1beta1ValidatingAdmissionPolicyBinding. # noqa: E501
+ :param kind: The kind of this V1beta1MutatingAdmissionPolicyBinding. # noqa: E501
:type: str
"""
@@ -115,20 +115,20 @@ class V1beta1ValidatingAdmissionPolicyBinding(object):
@property
def metadata(self):
- """Gets the metadata of this V1beta1ValidatingAdmissionPolicyBinding. # noqa: E501
+ """Gets the metadata of this V1beta1MutatingAdmissionPolicyBinding. # noqa: E501
- :return: The metadata of this V1beta1ValidatingAdmissionPolicyBinding. # noqa: E501
+ :return: The metadata of this V1beta1MutatingAdmissionPolicyBinding. # noqa: E501
:rtype: V1ObjectMeta
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
- """Sets the metadata of this V1beta1ValidatingAdmissionPolicyBinding.
+ """Sets the metadata of this V1beta1MutatingAdmissionPolicyBinding.
- :param metadata: The metadata of this V1beta1ValidatingAdmissionPolicyBinding. # noqa: E501
+ :param metadata: The metadata of this V1beta1MutatingAdmissionPolicyBinding. # noqa: E501
:type: V1ObjectMeta
"""
@@ -136,21 +136,21 @@ class V1beta1ValidatingAdmissionPolicyBinding(object):
@property
def spec(self):
- """Gets the spec of this V1beta1ValidatingAdmissionPolicyBinding. # noqa: E501
+ """Gets the spec of this V1beta1MutatingAdmissionPolicyBinding. # noqa: E501
- :return: The spec of this V1beta1ValidatingAdmissionPolicyBinding. # noqa: E501
- :rtype: V1beta1ValidatingAdmissionPolicyBindingSpec
+ :return: The spec of this V1beta1MutatingAdmissionPolicyBinding. # noqa: E501
+ :rtype: V1beta1MutatingAdmissionPolicyBindingSpec
"""
return self._spec
@spec.setter
def spec(self, spec):
- """Sets the spec of this V1beta1ValidatingAdmissionPolicyBinding.
+ """Sets the spec of this V1beta1MutatingAdmissionPolicyBinding.
- :param spec: The spec of this V1beta1ValidatingAdmissionPolicyBinding. # noqa: E501
- :type: V1beta1ValidatingAdmissionPolicyBindingSpec
+ :param spec: The spec of this V1beta1MutatingAdmissionPolicyBinding. # noqa: E501
+ :type: V1beta1MutatingAdmissionPolicyBindingSpec
"""
self._spec = spec
@@ -189,14 +189,14 @@ class V1beta1ValidatingAdmissionPolicyBinding(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1beta1ValidatingAdmissionPolicyBinding):
+ if not isinstance(other, V1beta1MutatingAdmissionPolicyBinding):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1beta1ValidatingAdmissionPolicyBinding):
+ if not isinstance(other, V1beta1MutatingAdmissionPolicyBinding):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_binding_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_list.py
index 73f9913bc92..18c05a93c60 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_binding_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1beta1ValidatingAdmissionPolicyBindingList(object):
+class V1beta1MutatingAdmissionPolicyBindingList(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -34,7 +34,7 @@ class V1beta1ValidatingAdmissionPolicyBindingList(object):
"""
openapi_types = {
'api_version': 'str',
- 'items': 'list[V1beta1ValidatingAdmissionPolicyBinding]',
+ 'items': 'list[V1beta1MutatingAdmissionPolicyBinding]',
'kind': 'str',
'metadata': 'V1ListMeta'
}
@@ -47,7 +47,7 @@ class V1beta1ValidatingAdmissionPolicyBindingList(object):
}
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
- """V1beta1ValidatingAdmissionPolicyBindingList - a model defined in OpenAPI""" # noqa: E501
+ """V1beta1MutatingAdmissionPolicyBindingList - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -68,22 +68,22 @@ class V1beta1ValidatingAdmissionPolicyBindingList(object):
@property
def api_version(self):
- """Gets the api_version of this V1beta1ValidatingAdmissionPolicyBindingList. # noqa: E501
+ """Gets the api_version of this V1beta1MutatingAdmissionPolicyBindingList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :return: The api_version of this V1beta1ValidatingAdmissionPolicyBindingList. # noqa: E501
+ :return: The api_version of this V1beta1MutatingAdmissionPolicyBindingList. # noqa: E501
:rtype: str
"""
return self._api_version
@api_version.setter
def api_version(self, api_version):
- """Sets the api_version of this V1beta1ValidatingAdmissionPolicyBindingList.
+ """Sets the api_version of this V1beta1MutatingAdmissionPolicyBindingList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :param api_version: The api_version of this V1beta1ValidatingAdmissionPolicyBindingList. # noqa: E501
+ :param api_version: The api_version of this V1beta1MutatingAdmissionPolicyBindingList. # noqa: E501
:type: str
"""
@@ -91,23 +91,23 @@ class V1beta1ValidatingAdmissionPolicyBindingList(object):
@property
def items(self):
- """Gets the items of this V1beta1ValidatingAdmissionPolicyBindingList. # noqa: E501
+ """Gets the items of this V1beta1MutatingAdmissionPolicyBindingList. # noqa: E501
List of PolicyBinding. # noqa: E501
- :return: The items of this V1beta1ValidatingAdmissionPolicyBindingList. # noqa: E501
- :rtype: list[V1beta1ValidatingAdmissionPolicyBinding]
+ :return: The items of this V1beta1MutatingAdmissionPolicyBindingList. # noqa: E501
+ :rtype: list[V1beta1MutatingAdmissionPolicyBinding]
"""
return self._items
@items.setter
def items(self, items):
- """Sets the items of this V1beta1ValidatingAdmissionPolicyBindingList.
+ """Sets the items of this V1beta1MutatingAdmissionPolicyBindingList.
List of PolicyBinding. # noqa: E501
- :param items: The items of this V1beta1ValidatingAdmissionPolicyBindingList. # noqa: E501
- :type: list[V1beta1ValidatingAdmissionPolicyBinding]
+ :param items: The items of this V1beta1MutatingAdmissionPolicyBindingList. # noqa: E501
+ :type: list[V1beta1MutatingAdmissionPolicyBinding]
"""
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
@@ -116,22 +116,22 @@ class V1beta1ValidatingAdmissionPolicyBindingList(object):
@property
def kind(self):
- """Gets the kind of this V1beta1ValidatingAdmissionPolicyBindingList. # noqa: E501
+ """Gets the kind of this V1beta1MutatingAdmissionPolicyBindingList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :return: The kind of this V1beta1ValidatingAdmissionPolicyBindingList. # noqa: E501
+ :return: The kind of this V1beta1MutatingAdmissionPolicyBindingList. # noqa: E501
:rtype: str
"""
return self._kind
@kind.setter
def kind(self, kind):
- """Sets the kind of this V1beta1ValidatingAdmissionPolicyBindingList.
+ """Sets the kind of this V1beta1MutatingAdmissionPolicyBindingList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :param kind: The kind of this V1beta1ValidatingAdmissionPolicyBindingList. # noqa: E501
+ :param kind: The kind of this V1beta1MutatingAdmissionPolicyBindingList. # noqa: E501
:type: str
"""
@@ -139,20 +139,20 @@ class V1beta1ValidatingAdmissionPolicyBindingList(object):
@property
def metadata(self):
- """Gets the metadata of this V1beta1ValidatingAdmissionPolicyBindingList. # noqa: E501
+ """Gets the metadata of this V1beta1MutatingAdmissionPolicyBindingList. # noqa: E501
- :return: The metadata of this V1beta1ValidatingAdmissionPolicyBindingList. # noqa: E501
+ :return: The metadata of this V1beta1MutatingAdmissionPolicyBindingList. # noqa: E501
:rtype: V1ListMeta
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
- """Sets the metadata of this V1beta1ValidatingAdmissionPolicyBindingList.
+ """Sets the metadata of this V1beta1MutatingAdmissionPolicyBindingList.
- :param metadata: The metadata of this V1beta1ValidatingAdmissionPolicyBindingList. # noqa: E501
+ :param metadata: The metadata of this V1beta1MutatingAdmissionPolicyBindingList. # noqa: E501
:type: V1ListMeta
"""
@@ -192,14 +192,14 @@ class V1beta1ValidatingAdmissionPolicyBindingList(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1beta1ValidatingAdmissionPolicyBindingList):
+ if not isinstance(other, V1beta1MutatingAdmissionPolicyBindingList):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1beta1ValidatingAdmissionPolicyBindingList):
+ if not isinstance(other, V1beta1MutatingAdmissionPolicyBindingList):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_spec.py
new file mode 100644
index 00000000000..14dc5f513d1
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_binding_spec.py
@@ -0,0 +1,174 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1beta1MutatingAdmissionPolicyBindingSpec(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'match_resources': 'V1beta1MatchResources',
+ 'param_ref': 'V1beta1ParamRef',
+ 'policy_name': 'str'
+ }
+
+ attribute_map = {
+ 'match_resources': 'matchResources',
+ 'param_ref': 'paramRef',
+ 'policy_name': 'policyName'
+ }
+
+ def __init__(self, match_resources=None, param_ref=None, policy_name=None, local_vars_configuration=None): # noqa: E501
+ """V1beta1MutatingAdmissionPolicyBindingSpec - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._match_resources = None
+ self._param_ref = None
+ self._policy_name = None
+ self.discriminator = None
+
+ if match_resources is not None:
+ self.match_resources = match_resources
+ if param_ref is not None:
+ self.param_ref = param_ref
+ if policy_name is not None:
+ self.policy_name = policy_name
+
+ @property
+ def match_resources(self):
+ """Gets the match_resources of this V1beta1MutatingAdmissionPolicyBindingSpec. # noqa: E501
+
+
+ :return: The match_resources of this V1beta1MutatingAdmissionPolicyBindingSpec. # noqa: E501
+ :rtype: V1beta1MatchResources
+ """
+ return self._match_resources
+
+ @match_resources.setter
+ def match_resources(self, match_resources):
+ """Sets the match_resources of this V1beta1MutatingAdmissionPolicyBindingSpec.
+
+
+ :param match_resources: The match_resources of this V1beta1MutatingAdmissionPolicyBindingSpec. # noqa: E501
+ :type: V1beta1MatchResources
+ """
+
+ self._match_resources = match_resources
+
+ @property
+ def param_ref(self):
+ """Gets the param_ref of this V1beta1MutatingAdmissionPolicyBindingSpec. # noqa: E501
+
+
+ :return: The param_ref of this V1beta1MutatingAdmissionPolicyBindingSpec. # noqa: E501
+ :rtype: V1beta1ParamRef
+ """
+ return self._param_ref
+
+ @param_ref.setter
+ def param_ref(self, param_ref):
+ """Sets the param_ref of this V1beta1MutatingAdmissionPolicyBindingSpec.
+
+
+ :param param_ref: The param_ref of this V1beta1MutatingAdmissionPolicyBindingSpec. # noqa: E501
+ :type: V1beta1ParamRef
+ """
+
+ self._param_ref = param_ref
+
+ @property
+ def policy_name(self):
+ """Gets the policy_name of this V1beta1MutatingAdmissionPolicyBindingSpec. # noqa: E501
+
+ policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. # noqa: E501
+
+ :return: The policy_name of this V1beta1MutatingAdmissionPolicyBindingSpec. # noqa: E501
+ :rtype: str
+ """
+ return self._policy_name
+
+ @policy_name.setter
+ def policy_name(self, policy_name):
+ """Sets the policy_name of this V1beta1MutatingAdmissionPolicyBindingSpec.
+
+ policyName references a MutatingAdmissionPolicy name which the MutatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. # noqa: E501
+
+ :param policy_name: The policy_name of this V1beta1MutatingAdmissionPolicyBindingSpec. # noqa: E501
+ :type: str
+ """
+
+ self._policy_name = policy_name
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1beta1MutatingAdmissionPolicyBindingSpec):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1beta1MutatingAdmissionPolicyBindingSpec):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_list.py
index f51fbee74f3..b796c90fa25 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -18,7 +18,7 @@ import six
from kubernetes.client.configuration import Configuration
-class V1beta1ValidatingAdmissionPolicyList(object):
+class V1beta1MutatingAdmissionPolicyList(object):
"""NOTE: This class is auto generated by OpenAPI Generator.
Ref: https://openapi-generator.tech
@@ -34,7 +34,7 @@ class V1beta1ValidatingAdmissionPolicyList(object):
"""
openapi_types = {
'api_version': 'str',
- 'items': 'list[V1beta1ValidatingAdmissionPolicy]',
+ 'items': 'list[V1beta1MutatingAdmissionPolicy]',
'kind': 'str',
'metadata': 'V1ListMeta'
}
@@ -47,7 +47,7 @@ class V1beta1ValidatingAdmissionPolicyList(object):
}
def __init__(self, api_version=None, items=None, kind=None, metadata=None, local_vars_configuration=None): # noqa: E501
- """V1beta1ValidatingAdmissionPolicyList - a model defined in OpenAPI""" # noqa: E501
+ """V1beta1MutatingAdmissionPolicyList - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
@@ -68,22 +68,22 @@ class V1beta1ValidatingAdmissionPolicyList(object):
@property
def api_version(self):
- """Gets the api_version of this V1beta1ValidatingAdmissionPolicyList. # noqa: E501
+ """Gets the api_version of this V1beta1MutatingAdmissionPolicyList. # noqa: E501
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :return: The api_version of this V1beta1ValidatingAdmissionPolicyList. # noqa: E501
+ :return: The api_version of this V1beta1MutatingAdmissionPolicyList. # noqa: E501
:rtype: str
"""
return self._api_version
@api_version.setter
def api_version(self, api_version):
- """Sets the api_version of this V1beta1ValidatingAdmissionPolicyList.
+ """Sets the api_version of this V1beta1MutatingAdmissionPolicyList.
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources # noqa: E501
- :param api_version: The api_version of this V1beta1ValidatingAdmissionPolicyList. # noqa: E501
+ :param api_version: The api_version of this V1beta1MutatingAdmissionPolicyList. # noqa: E501
:type: str
"""
@@ -91,23 +91,23 @@ class V1beta1ValidatingAdmissionPolicyList(object):
@property
def items(self):
- """Gets the items of this V1beta1ValidatingAdmissionPolicyList. # noqa: E501
+ """Gets the items of this V1beta1MutatingAdmissionPolicyList. # noqa: E501
List of ValidatingAdmissionPolicy. # noqa: E501
- :return: The items of this V1beta1ValidatingAdmissionPolicyList. # noqa: E501
- :rtype: list[V1beta1ValidatingAdmissionPolicy]
+ :return: The items of this V1beta1MutatingAdmissionPolicyList. # noqa: E501
+ :rtype: list[V1beta1MutatingAdmissionPolicy]
"""
return self._items
@items.setter
def items(self, items):
- """Sets the items of this V1beta1ValidatingAdmissionPolicyList.
+ """Sets the items of this V1beta1MutatingAdmissionPolicyList.
List of ValidatingAdmissionPolicy. # noqa: E501
- :param items: The items of this V1beta1ValidatingAdmissionPolicyList. # noqa: E501
- :type: list[V1beta1ValidatingAdmissionPolicy]
+ :param items: The items of this V1beta1MutatingAdmissionPolicyList. # noqa: E501
+ :type: list[V1beta1MutatingAdmissionPolicy]
"""
if self.local_vars_configuration.client_side_validation and items is None: # noqa: E501
raise ValueError("Invalid value for `items`, must not be `None`") # noqa: E501
@@ -116,22 +116,22 @@ class V1beta1ValidatingAdmissionPolicyList(object):
@property
def kind(self):
- """Gets the kind of this V1beta1ValidatingAdmissionPolicyList. # noqa: E501
+ """Gets the kind of this V1beta1MutatingAdmissionPolicyList. # noqa: E501
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :return: The kind of this V1beta1ValidatingAdmissionPolicyList. # noqa: E501
+ :return: The kind of this V1beta1MutatingAdmissionPolicyList. # noqa: E501
:rtype: str
"""
return self._kind
@kind.setter
def kind(self, kind):
- """Sets the kind of this V1beta1ValidatingAdmissionPolicyList.
+ """Sets the kind of this V1beta1MutatingAdmissionPolicyList.
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501
- :param kind: The kind of this V1beta1ValidatingAdmissionPolicyList. # noqa: E501
+ :param kind: The kind of this V1beta1MutatingAdmissionPolicyList. # noqa: E501
:type: str
"""
@@ -139,20 +139,20 @@ class V1beta1ValidatingAdmissionPolicyList(object):
@property
def metadata(self):
- """Gets the metadata of this V1beta1ValidatingAdmissionPolicyList. # noqa: E501
+ """Gets the metadata of this V1beta1MutatingAdmissionPolicyList. # noqa: E501
- :return: The metadata of this V1beta1ValidatingAdmissionPolicyList. # noqa: E501
+ :return: The metadata of this V1beta1MutatingAdmissionPolicyList. # noqa: E501
:rtype: V1ListMeta
"""
return self._metadata
@metadata.setter
def metadata(self, metadata):
- """Sets the metadata of this V1beta1ValidatingAdmissionPolicyList.
+ """Sets the metadata of this V1beta1MutatingAdmissionPolicyList.
- :param metadata: The metadata of this V1beta1ValidatingAdmissionPolicyList. # noqa: E501
+ :param metadata: The metadata of this V1beta1MutatingAdmissionPolicyList. # noqa: E501
:type: V1ListMeta
"""
@@ -192,14 +192,14 @@ class V1beta1ValidatingAdmissionPolicyList(object):
def __eq__(self, other):
"""Returns true if both objects are equal"""
- if not isinstance(other, V1beta1ValidatingAdmissionPolicyList):
+ if not isinstance(other, V1beta1MutatingAdmissionPolicyList):
return False
return self.to_dict() == other.to_dict()
def __ne__(self, other):
"""Returns true if both objects are not equal"""
- if not isinstance(other, V1beta1ValidatingAdmissionPolicyList):
+ if not isinstance(other, V1beta1MutatingAdmissionPolicyList):
return True
return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_spec.py
new file mode 100644
index 00000000000..ed365d663ec
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutating_admission_policy_spec.py
@@ -0,0 +1,286 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1beta1MutatingAdmissionPolicySpec(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'failure_policy': 'str',
+ 'match_conditions': 'list[V1beta1MatchCondition]',
+ 'match_constraints': 'V1beta1MatchResources',
+ 'mutations': 'list[V1beta1Mutation]',
+ 'param_kind': 'V1beta1ParamKind',
+ 'reinvocation_policy': 'str',
+ 'variables': 'list[V1beta1Variable]'
+ }
+
+ attribute_map = {
+ 'failure_policy': 'failurePolicy',
+ 'match_conditions': 'matchConditions',
+ 'match_constraints': 'matchConstraints',
+ 'mutations': 'mutations',
+ 'param_kind': 'paramKind',
+ 'reinvocation_policy': 'reinvocationPolicy',
+ 'variables': 'variables'
+ }
+
+ def __init__(self, failure_policy=None, match_conditions=None, match_constraints=None, mutations=None, param_kind=None, reinvocation_policy=None, variables=None, local_vars_configuration=None): # noqa: E501
+ """V1beta1MutatingAdmissionPolicySpec - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._failure_policy = None
+ self._match_conditions = None
+ self._match_constraints = None
+ self._mutations = None
+ self._param_kind = None
+ self._reinvocation_policy = None
+ self._variables = None
+ self.discriminator = None
+
+ if failure_policy is not None:
+ self.failure_policy = failure_policy
+ if match_conditions is not None:
+ self.match_conditions = match_conditions
+ if match_constraints is not None:
+ self.match_constraints = match_constraints
+ if mutations is not None:
+ self.mutations = mutations
+ if param_kind is not None:
+ self.param_kind = param_kind
+ if reinvocation_policy is not None:
+ self.reinvocation_policy = reinvocation_policy
+ if variables is not None:
+ self.variables = variables
+
+ @property
+ def failure_policy(self):
+ """Gets the failure_policy of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+
+ failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. Allowed values are Ignore or Fail. Defaults to Fail. # noqa: E501
+
+ :return: The failure_policy of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+ :rtype: str
+ """
+ return self._failure_policy
+
+ @failure_policy.setter
+ def failure_policy(self, failure_policy):
+ """Sets the failure_policy of this V1beta1MutatingAdmissionPolicySpec.
+
+ failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if paramKind refers to a non-existent Kind. A binding is invalid if paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. Allowed values are Ignore or Fail. Defaults to Fail. # noqa: E501
+
+ :param failure_policy: The failure_policy of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+ :type: str
+ """
+
+ self._failure_policy = failure_policy
+
+ @property
+ def match_conditions(self):
+ """Gets the match_conditions of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+
+ matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped # noqa: E501
+
+ :return: The match_conditions of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+ :rtype: list[V1beta1MatchCondition]
+ """
+ return self._match_conditions
+
+ @match_conditions.setter
+ def match_conditions(self, match_conditions):
+ """Sets the match_conditions of this V1beta1MutatingAdmissionPolicySpec.
+
+ matchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the matchConstraints. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped # noqa: E501
+
+ :param match_conditions: The match_conditions of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+ :type: list[V1beta1MatchCondition]
+ """
+
+ self._match_conditions = match_conditions
+
+ @property
+ def match_constraints(self):
+ """Gets the match_constraints of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+
+
+ :return: The match_constraints of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+ :rtype: V1beta1MatchResources
+ """
+ return self._match_constraints
+
+ @match_constraints.setter
+ def match_constraints(self, match_constraints):
+ """Sets the match_constraints of this V1beta1MutatingAdmissionPolicySpec.
+
+
+ :param match_constraints: The match_constraints of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+ :type: V1beta1MatchResources
+ """
+
+ self._match_constraints = match_constraints
+
+ @property
+ def mutations(self):
+ """Gets the mutations of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+
+ mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis. # noqa: E501
+
+ :return: The mutations of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+ :rtype: list[V1beta1Mutation]
+ """
+ return self._mutations
+
+ @mutations.setter
+ def mutations(self, mutations):
+ """Sets the mutations of this V1beta1MutatingAdmissionPolicySpec.
+
+ mutations contain operations to perform on matching objects. mutations may not be empty; a minimum of one mutation is required. mutations are evaluated in order, and are reinvoked according to the reinvocationPolicy. The mutations of a policy are invoked for each binding of this policy and reinvocation of mutations occurs on a per binding basis. # noqa: E501
+
+ :param mutations: The mutations of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+ :type: list[V1beta1Mutation]
+ """
+
+ self._mutations = mutations
+
+ @property
+ def param_kind(self):
+ """Gets the param_kind of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+
+
+ :return: The param_kind of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+ :rtype: V1beta1ParamKind
+ """
+ return self._param_kind
+
+ @param_kind.setter
+ def param_kind(self, param_kind):
+ """Sets the param_kind of this V1beta1MutatingAdmissionPolicySpec.
+
+
+ :param param_kind: The param_kind of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+ :type: V1beta1ParamKind
+ """
+
+ self._param_kind = param_kind
+
+ @property
+ def reinvocation_policy(self):
+ """Gets the reinvocation_policy of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+
+ reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: These mutations will not be called more than once per binding in a single admission evaluation. IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required. # noqa: E501
+
+ :return: The reinvocation_policy of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+ :rtype: str
+ """
+ return self._reinvocation_policy
+
+ @reinvocation_policy.setter
+ def reinvocation_policy(self, reinvocation_policy):
+ """Sets the reinvocation_policy of this V1beta1MutatingAdmissionPolicySpec.
+
+ reinvocationPolicy indicates whether mutations may be called multiple times per MutatingAdmissionPolicyBinding as part of a single admission evaluation. Allowed values are \"Never\" and \"IfNeeded\". Never: These mutations will not be called more than once per binding in a single admission evaluation. IfNeeded: These mutations may be invoked more than once per binding for a single admission request and there is no guarantee of order with respect to other admission plugins, admission webhooks, bindings of this policy and admission policies. Mutations are only reinvoked when mutations change the object after this mutation is invoked. Required. # noqa: E501
+
+ :param reinvocation_policy: The reinvocation_policy of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+ :type: str
+ """
+
+ self._reinvocation_policy = reinvocation_policy
+
+ @property
+ def variables(self):
+ """Gets the variables of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+
+ variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic. # noqa: E501
+
+ :return: The variables of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+ :rtype: list[V1beta1Variable]
+ """
+ return self._variables
+
+ @variables.setter
+ def variables(self, variables):
+ """Sets the variables of this V1beta1MutatingAdmissionPolicySpec.
+
+ variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except matchConditions because matchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, variables must be sorted by the order of first appearance and acyclic. # noqa: E501
+
+ :param variables: The variables of this V1beta1MutatingAdmissionPolicySpec. # noqa: E501
+ :type: list[V1beta1Variable]
+ """
+
+ self._variables = variables
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1beta1MutatingAdmissionPolicySpec):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1beta1MutatingAdmissionPolicySpec):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutation.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutation.py
new file mode 100644
index 00000000000..8602df1655b
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_mutation.py
@@ -0,0 +1,175 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1beta1Mutation(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'apply_configuration': 'V1beta1ApplyConfiguration',
+ 'json_patch': 'V1beta1JSONPatch',
+ 'patch_type': 'str'
+ }
+
+ attribute_map = {
+ 'apply_configuration': 'applyConfiguration',
+ 'json_patch': 'jsonPatch',
+ 'patch_type': 'patchType'
+ }
+
+ def __init__(self, apply_configuration=None, json_patch=None, patch_type=None, local_vars_configuration=None): # noqa: E501
+ """V1beta1Mutation - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._apply_configuration = None
+ self._json_patch = None
+ self._patch_type = None
+ self.discriminator = None
+
+ if apply_configuration is not None:
+ self.apply_configuration = apply_configuration
+ if json_patch is not None:
+ self.json_patch = json_patch
+ self.patch_type = patch_type
+
+ @property
+ def apply_configuration(self):
+ """Gets the apply_configuration of this V1beta1Mutation. # noqa: E501
+
+
+ :return: The apply_configuration of this V1beta1Mutation. # noqa: E501
+ :rtype: V1beta1ApplyConfiguration
+ """
+ return self._apply_configuration
+
+ @apply_configuration.setter
+ def apply_configuration(self, apply_configuration):
+ """Sets the apply_configuration of this V1beta1Mutation.
+
+
+ :param apply_configuration: The apply_configuration of this V1beta1Mutation. # noqa: E501
+ :type: V1beta1ApplyConfiguration
+ """
+
+ self._apply_configuration = apply_configuration
+
+ @property
+ def json_patch(self):
+ """Gets the json_patch of this V1beta1Mutation. # noqa: E501
+
+
+ :return: The json_patch of this V1beta1Mutation. # noqa: E501
+ :rtype: V1beta1JSONPatch
+ """
+ return self._json_patch
+
+ @json_patch.setter
+ def json_patch(self, json_patch):
+ """Sets the json_patch of this V1beta1Mutation.
+
+
+ :param json_patch: The json_patch of this V1beta1Mutation. # noqa: E501
+ :type: V1beta1JSONPatch
+ """
+
+ self._json_patch = json_patch
+
+ @property
+ def patch_type(self):
+ """Gets the patch_type of this V1beta1Mutation. # noqa: E501
+
+ patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required. # noqa: E501
+
+ :return: The patch_type of this V1beta1Mutation. # noqa: E501
+ :rtype: str
+ """
+ return self._patch_type
+
+ @patch_type.setter
+ def patch_type(self, patch_type):
+ """Sets the patch_type of this V1beta1Mutation.
+
+ patchType indicates the patch strategy used. Allowed values are \"ApplyConfiguration\" and \"JSONPatch\". Required. # noqa: E501
+
+ :param patch_type: The patch_type of this V1beta1Mutation. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and patch_type is None: # noqa: E501
+ raise ValueError("Invalid value for `patch_type`, must not be `None`") # noqa: E501
+
+ self._patch_type = patch_type
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1beta1Mutation):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1beta1Mutation):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_named_rule_with_operations.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_named_rule_with_operations.py
index 555d9e6c80b..d384736fda1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_named_rule_with_operations.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_named_rule_with_operations.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_network_device_data.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_network_device_data.py
index 2e6dca10a00..57db3ae987f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_network_device_data.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_network_device_data.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_opaque_device_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_opaque_device_configuration.py
index 12b56b5c80c..7ccd3fd9e47 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_opaque_device_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_opaque_device_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_param_kind.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_param_kind.py
index a632153458d..82d44c57192 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_param_kind.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_param_kind.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_param_ref.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_param_ref.py
index 8eaf04c3df5..23dc27ab020 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_param_ref.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_param_ref.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_parent_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_parent_reference.py
index 3deefc9a730..6fe9befc856 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_parent_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_parent_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim.py
index d3506523ed2..c5d7d7e2ad3 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_consumer_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_consumer_reference.py
index 34066aea8f9..7975b5236e2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_consumer_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_consumer_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_list.py
index 6e76760de01..16d4d699966 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_spec.py
index 45b341b23b5..58e788ba866 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_status.py
index b07c07e8168..bc57acf3bab 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template.py
index 735982769d5..43b276f4649 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template_list.py
index 9275093daac..bd4bc2cf6de 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template_spec.py
index c8ade8ef278..eacc8262c5e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_claim_template_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_pool.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_pool.py
index 763e4c8ad6a..c59100415a9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_pool.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_pool.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice.py
index 392ab6dd2af..3e4cbab10b3 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice_list.py
index b4a7113f47c..074a17a6c6d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice_spec.py
index 3fc97a3d308..6eea55afcb0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_resource_slice_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr.py
index 4ad1c4990e2..6126820a05d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_list.py
index fa2ab122232..f2e5c7d0d4c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_spec.py
index b4ee9b076fb..0d5169a8c15 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_status.py
index 274970a533d..53897196ba3 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_service_cidr_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_binding_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_binding_spec.py
deleted file mode 100644
index 62cf0a181e1..00000000000
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_binding_spec.py
+++ /dev/null
@@ -1,202 +0,0 @@
-# coding: utf-8
-
-"""
- Kubernetes
-
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
-
- The version of the OpenAPI document: release-1.33
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from kubernetes.client.configuration import Configuration
-
-
-class V1beta1ValidatingAdmissionPolicyBindingSpec(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'match_resources': 'V1beta1MatchResources',
- 'param_ref': 'V1beta1ParamRef',
- 'policy_name': 'str',
- 'validation_actions': 'list[str]'
- }
-
- attribute_map = {
- 'match_resources': 'matchResources',
- 'param_ref': 'paramRef',
- 'policy_name': 'policyName',
- 'validation_actions': 'validationActions'
- }
-
- def __init__(self, match_resources=None, param_ref=None, policy_name=None, validation_actions=None, local_vars_configuration=None): # noqa: E501
- """V1beta1ValidatingAdmissionPolicyBindingSpec - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._match_resources = None
- self._param_ref = None
- self._policy_name = None
- self._validation_actions = None
- self.discriminator = None
-
- if match_resources is not None:
- self.match_resources = match_resources
- if param_ref is not None:
- self.param_ref = param_ref
- if policy_name is not None:
- self.policy_name = policy_name
- if validation_actions is not None:
- self.validation_actions = validation_actions
-
- @property
- def match_resources(self):
- """Gets the match_resources of this V1beta1ValidatingAdmissionPolicyBindingSpec. # noqa: E501
-
-
- :return: The match_resources of this V1beta1ValidatingAdmissionPolicyBindingSpec. # noqa: E501
- :rtype: V1beta1MatchResources
- """
- return self._match_resources
-
- @match_resources.setter
- def match_resources(self, match_resources):
- """Sets the match_resources of this V1beta1ValidatingAdmissionPolicyBindingSpec.
-
-
- :param match_resources: The match_resources of this V1beta1ValidatingAdmissionPolicyBindingSpec. # noqa: E501
- :type: V1beta1MatchResources
- """
-
- self._match_resources = match_resources
-
- @property
- def param_ref(self):
- """Gets the param_ref of this V1beta1ValidatingAdmissionPolicyBindingSpec. # noqa: E501
-
-
- :return: The param_ref of this V1beta1ValidatingAdmissionPolicyBindingSpec. # noqa: E501
- :rtype: V1beta1ParamRef
- """
- return self._param_ref
-
- @param_ref.setter
- def param_ref(self, param_ref):
- """Sets the param_ref of this V1beta1ValidatingAdmissionPolicyBindingSpec.
-
-
- :param param_ref: The param_ref of this V1beta1ValidatingAdmissionPolicyBindingSpec. # noqa: E501
- :type: V1beta1ParamRef
- """
-
- self._param_ref = param_ref
-
- @property
- def policy_name(self):
- """Gets the policy_name of this V1beta1ValidatingAdmissionPolicyBindingSpec. # noqa: E501
-
- PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. # noqa: E501
-
- :return: The policy_name of this V1beta1ValidatingAdmissionPolicyBindingSpec. # noqa: E501
- :rtype: str
- """
- return self._policy_name
-
- @policy_name.setter
- def policy_name(self, policy_name):
- """Sets the policy_name of this V1beta1ValidatingAdmissionPolicyBindingSpec.
-
- PolicyName references a ValidatingAdmissionPolicy name which the ValidatingAdmissionPolicyBinding binds to. If the referenced resource does not exist, this binding is considered invalid and will be ignored Required. # noqa: E501
-
- :param policy_name: The policy_name of this V1beta1ValidatingAdmissionPolicyBindingSpec. # noqa: E501
- :type: str
- """
-
- self._policy_name = policy_name
-
- @property
- def validation_actions(self):
- """Gets the validation_actions of this V1beta1ValidatingAdmissionPolicyBindingSpec. # noqa: E501
-
- validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required. # noqa: E501
-
- :return: The validation_actions of this V1beta1ValidatingAdmissionPolicyBindingSpec. # noqa: E501
- :rtype: list[str]
- """
- return self._validation_actions
-
- @validation_actions.setter
- def validation_actions(self, validation_actions):
- """Sets the validation_actions of this V1beta1ValidatingAdmissionPolicyBindingSpec.
-
- validationActions declares how Validations of the referenced ValidatingAdmissionPolicy are enforced. If a validation evaluates to false it is always enforced according to these actions. Failures defined by the ValidatingAdmissionPolicy's FailurePolicy are enforced according to these actions only if the FailurePolicy is set to Fail, otherwise the failures are ignored. This includes compilation errors, runtime errors and misconfigurations of the policy. validationActions is declared as a set of action values. Order does not matter. validationActions may not contain duplicates of the same action. The supported actions values are: \"Deny\" specifies that a validation failure results in a denied request. \"Warn\" specifies that a validation failure is reported to the request client in HTTP Warning headers, with a warning code of 299. Warnings can be sent both for allowed or denied admission responses. \"Audit\" specifies that a validation failure is included in the published audit event for the request. The audit event will contain a `validation.policy.admission.k8s.io/validation_failure` audit annotation with a value containing the details of the validation failures, formatted as a JSON list of objects, each with the following fields: - message: The validation failure message string - policy: The resource name of the ValidatingAdmissionPolicy - binding: The resource name of the ValidatingAdmissionPolicyBinding - expressionIndex: The index of the failed validations in the ValidatingAdmissionPolicy - validationActions: The enforcement actions enacted for the validation failure Example audit annotation: `\"validation.policy.admission.k8s.io/validation_failure\": \"[{\\\"message\\\": \\\"Invalid value\\\", {\\\"policy\\\": \\\"policy.example.com\\\", {\\\"binding\\\": \\\"policybinding.example.com\\\", {\\\"expressionIndex\\\": \\\"1\\\", {\\\"validationActions\\\": [\\\"Audit\\\"]}]\"` Clients should expect to handle additional values by ignoring any values not recognized. \"Deny\" and \"Warn\" may not be used together since this combination needlessly duplicates the validation failure both in the API response body and the HTTP warning headers. Required. # noqa: E501
-
- :param validation_actions: The validation_actions of this V1beta1ValidatingAdmissionPolicyBindingSpec. # noqa: E501
- :type: list[str]
- """
-
- self._validation_actions = validation_actions
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, V1beta1ValidatingAdmissionPolicyBindingSpec):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, V1beta1ValidatingAdmissionPolicyBindingSpec):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_spec.py
deleted file mode 100644
index aba69be2b5a..00000000000
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_spec.py
+++ /dev/null
@@ -1,286 +0,0 @@
-# coding: utf-8
-
-"""
- Kubernetes
-
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
-
- The version of the OpenAPI document: release-1.33
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from kubernetes.client.configuration import Configuration
-
-
-class V1beta1ValidatingAdmissionPolicySpec(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'audit_annotations': 'list[V1beta1AuditAnnotation]',
- 'failure_policy': 'str',
- 'match_conditions': 'list[V1beta1MatchCondition]',
- 'match_constraints': 'V1beta1MatchResources',
- 'param_kind': 'V1beta1ParamKind',
- 'validations': 'list[V1beta1Validation]',
- 'variables': 'list[V1beta1Variable]'
- }
-
- attribute_map = {
- 'audit_annotations': 'auditAnnotations',
- 'failure_policy': 'failurePolicy',
- 'match_conditions': 'matchConditions',
- 'match_constraints': 'matchConstraints',
- 'param_kind': 'paramKind',
- 'validations': 'validations',
- 'variables': 'variables'
- }
-
- def __init__(self, audit_annotations=None, failure_policy=None, match_conditions=None, match_constraints=None, param_kind=None, validations=None, variables=None, local_vars_configuration=None): # noqa: E501
- """V1beta1ValidatingAdmissionPolicySpec - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._audit_annotations = None
- self._failure_policy = None
- self._match_conditions = None
- self._match_constraints = None
- self._param_kind = None
- self._validations = None
- self._variables = None
- self.discriminator = None
-
- if audit_annotations is not None:
- self.audit_annotations = audit_annotations
- if failure_policy is not None:
- self.failure_policy = failure_policy
- if match_conditions is not None:
- self.match_conditions = match_conditions
- if match_constraints is not None:
- self.match_constraints = match_constraints
- if param_kind is not None:
- self.param_kind = param_kind
- if validations is not None:
- self.validations = validations
- if variables is not None:
- self.variables = variables
-
- @property
- def audit_annotations(self):
- """Gets the audit_annotations of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
-
- auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. # noqa: E501
-
- :return: The audit_annotations of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
- :rtype: list[V1beta1AuditAnnotation]
- """
- return self._audit_annotations
-
- @audit_annotations.setter
- def audit_annotations(self, audit_annotations):
- """Sets the audit_annotations of this V1beta1ValidatingAdmissionPolicySpec.
-
- auditAnnotations contains CEL expressions which are used to produce audit annotations for the audit event of the API request. validations and auditAnnotations may not both be empty; a least one of validations or auditAnnotations is required. # noqa: E501
-
- :param audit_annotations: The audit_annotations of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
- :type: list[V1beta1AuditAnnotation]
- """
-
- self._audit_annotations = audit_annotations
-
- @property
- def failure_policy(self):
- """Gets the failure_policy of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
-
- failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail. # noqa: E501
-
- :return: The failure_policy of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
- :rtype: str
- """
- return self._failure_policy
-
- @failure_policy.setter
- def failure_policy(self, failure_policy):
- """Sets the failure_policy of this V1beta1ValidatingAdmissionPolicySpec.
-
- failurePolicy defines how to handle failures for the admission policy. Failures can occur from CEL expression parse errors, type check errors, runtime errors and invalid or mis-configured policy definitions or bindings. A policy is invalid if spec.paramKind refers to a non-existent Kind. A binding is invalid if spec.paramRef.name refers to a non-existent resource. failurePolicy does not define how validations that evaluate to false are handled. When failurePolicy is set to Fail, ValidatingAdmissionPolicyBinding validationActions define how failures are enforced. Allowed values are Ignore or Fail. Defaults to Fail. # noqa: E501
-
- :param failure_policy: The failure_policy of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
- :type: str
- """
-
- self._failure_policy = failure_policy
-
- @property
- def match_conditions(self):
- """Gets the match_conditions of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
-
- MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped # noqa: E501
-
- :return: The match_conditions of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
- :rtype: list[V1beta1MatchCondition]
- """
- return self._match_conditions
-
- @match_conditions.setter
- def match_conditions(self, match_conditions):
- """Sets the match_conditions of this V1beta1ValidatingAdmissionPolicySpec.
-
- MatchConditions is a list of conditions that must be met for a request to be validated. Match conditions filter requests that have already been matched by the rules, namespaceSelector, and objectSelector. An empty list of matchConditions matches all requests. There are a maximum of 64 match conditions allowed. If a parameter object is provided, it can be accessed via the `params` handle in the same manner as validation expressions. The exact matching logic is (in order): 1. If ANY matchCondition evaluates to FALSE, the policy is skipped. 2. If ALL matchConditions evaluate to TRUE, the policy is evaluated. 3. If any matchCondition evaluates to an error (but none are FALSE): - If failurePolicy=Fail, reject the request - If failurePolicy=Ignore, the policy is skipped # noqa: E501
-
- :param match_conditions: The match_conditions of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
- :type: list[V1beta1MatchCondition]
- """
-
- self._match_conditions = match_conditions
-
- @property
- def match_constraints(self):
- """Gets the match_constraints of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
-
-
- :return: The match_constraints of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
- :rtype: V1beta1MatchResources
- """
- return self._match_constraints
-
- @match_constraints.setter
- def match_constraints(self, match_constraints):
- """Sets the match_constraints of this V1beta1ValidatingAdmissionPolicySpec.
-
-
- :param match_constraints: The match_constraints of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
- :type: V1beta1MatchResources
- """
-
- self._match_constraints = match_constraints
-
- @property
- def param_kind(self):
- """Gets the param_kind of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
-
-
- :return: The param_kind of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
- :rtype: V1beta1ParamKind
- """
- return self._param_kind
-
- @param_kind.setter
- def param_kind(self, param_kind):
- """Sets the param_kind of this V1beta1ValidatingAdmissionPolicySpec.
-
-
- :param param_kind: The param_kind of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
- :type: V1beta1ParamKind
- """
-
- self._param_kind = param_kind
-
- @property
- def validations(self):
- """Gets the validations of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
-
- Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. # noqa: E501
-
- :return: The validations of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
- :rtype: list[V1beta1Validation]
- """
- return self._validations
-
- @validations.setter
- def validations(self, validations):
- """Sets the validations of this V1beta1ValidatingAdmissionPolicySpec.
-
- Validations contain CEL expressions which is used to apply the validation. Validations and AuditAnnotations may not both be empty; a minimum of one Validations or AuditAnnotations is required. # noqa: E501
-
- :param validations: The validations of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
- :type: list[V1beta1Validation]
- """
-
- self._validations = validations
-
- @property
- def variables(self):
- """Gets the variables of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
-
- Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. # noqa: E501
-
- :return: The variables of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
- :rtype: list[V1beta1Variable]
- """
- return self._variables
-
- @variables.setter
- def variables(self, variables):
- """Sets the variables of this V1beta1ValidatingAdmissionPolicySpec.
-
- Variables contain definitions of variables that can be used in composition of other expressions. Each variable is defined as a named CEL expression. The variables defined here will be available under `variables` in other expressions of the policy except MatchConditions because MatchConditions are evaluated before the rest of the policy. The expression of a variable can refer to other variables defined earlier in the list but not those after. Thus, Variables must be sorted by the order of first appearance and acyclic. # noqa: E501
-
- :param variables: The variables of this V1beta1ValidatingAdmissionPolicySpec. # noqa: E501
- :type: list[V1beta1Variable]
- """
-
- self._variables = variables
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, V1beta1ValidatingAdmissionPolicySpec):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, V1beta1ValidatingAdmissionPolicySpec):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_status.py
deleted file mode 100644
index f5496b252fc..00000000000
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validating_admission_policy_status.py
+++ /dev/null
@@ -1,176 +0,0 @@
-# coding: utf-8
-
-"""
- Kubernetes
-
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
-
- The version of the OpenAPI document: release-1.33
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from kubernetes.client.configuration import Configuration
-
-
-class V1beta1ValidatingAdmissionPolicyStatus(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'conditions': 'list[V1Condition]',
- 'observed_generation': 'int',
- 'type_checking': 'V1beta1TypeChecking'
- }
-
- attribute_map = {
- 'conditions': 'conditions',
- 'observed_generation': 'observedGeneration',
- 'type_checking': 'typeChecking'
- }
-
- def __init__(self, conditions=None, observed_generation=None, type_checking=None, local_vars_configuration=None): # noqa: E501
- """V1beta1ValidatingAdmissionPolicyStatus - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._conditions = None
- self._observed_generation = None
- self._type_checking = None
- self.discriminator = None
-
- if conditions is not None:
- self.conditions = conditions
- if observed_generation is not None:
- self.observed_generation = observed_generation
- if type_checking is not None:
- self.type_checking = type_checking
-
- @property
- def conditions(self):
- """Gets the conditions of this V1beta1ValidatingAdmissionPolicyStatus. # noqa: E501
-
- The conditions represent the latest available observations of a policy's current state. # noqa: E501
-
- :return: The conditions of this V1beta1ValidatingAdmissionPolicyStatus. # noqa: E501
- :rtype: list[V1Condition]
- """
- return self._conditions
-
- @conditions.setter
- def conditions(self, conditions):
- """Sets the conditions of this V1beta1ValidatingAdmissionPolicyStatus.
-
- The conditions represent the latest available observations of a policy's current state. # noqa: E501
-
- :param conditions: The conditions of this V1beta1ValidatingAdmissionPolicyStatus. # noqa: E501
- :type: list[V1Condition]
- """
-
- self._conditions = conditions
-
- @property
- def observed_generation(self):
- """Gets the observed_generation of this V1beta1ValidatingAdmissionPolicyStatus. # noqa: E501
-
- The generation observed by the controller. # noqa: E501
-
- :return: The observed_generation of this V1beta1ValidatingAdmissionPolicyStatus. # noqa: E501
- :rtype: int
- """
- return self._observed_generation
-
- @observed_generation.setter
- def observed_generation(self, observed_generation):
- """Sets the observed_generation of this V1beta1ValidatingAdmissionPolicyStatus.
-
- The generation observed by the controller. # noqa: E501
-
- :param observed_generation: The observed_generation of this V1beta1ValidatingAdmissionPolicyStatus. # noqa: E501
- :type: int
- """
-
- self._observed_generation = observed_generation
-
- @property
- def type_checking(self):
- """Gets the type_checking of this V1beta1ValidatingAdmissionPolicyStatus. # noqa: E501
-
-
- :return: The type_checking of this V1beta1ValidatingAdmissionPolicyStatus. # noqa: E501
- :rtype: V1beta1TypeChecking
- """
- return self._type_checking
-
- @type_checking.setter
- def type_checking(self, type_checking):
- """Sets the type_checking of this V1beta1ValidatingAdmissionPolicyStatus.
-
-
- :param type_checking: The type_checking of this V1beta1ValidatingAdmissionPolicyStatus. # noqa: E501
- :type: V1beta1TypeChecking
- """
-
- self._type_checking = type_checking
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, V1beta1ValidatingAdmissionPolicyStatus):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, V1beta1ValidatingAdmissionPolicyStatus):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validation.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validation.py
deleted file mode 100644
index 4dbd490b5b5..00000000000
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_validation.py
+++ /dev/null
@@ -1,207 +0,0 @@
-# coding: utf-8
-
-"""
- Kubernetes
-
- No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
-
- The version of the OpenAPI document: release-1.33
- Generated by: https://openapi-generator.tech
-"""
-
-
-import pprint
-import re # noqa: F401
-
-import six
-
-from kubernetes.client.configuration import Configuration
-
-
-class V1beta1Validation(object):
- """NOTE: This class is auto generated by OpenAPI Generator.
- Ref: https://openapi-generator.tech
-
- Do not edit the class manually.
- """
-
- """
- Attributes:
- openapi_types (dict): The key is attribute name
- and the value is attribute type.
- attribute_map (dict): The key is attribute name
- and the value is json key in definition.
- """
- openapi_types = {
- 'expression': 'str',
- 'message': 'str',
- 'message_expression': 'str',
- 'reason': 'str'
- }
-
- attribute_map = {
- 'expression': 'expression',
- 'message': 'message',
- 'message_expression': 'messageExpression',
- 'reason': 'reason'
- }
-
- def __init__(self, expression=None, message=None, message_expression=None, reason=None, local_vars_configuration=None): # noqa: E501
- """V1beta1Validation - a model defined in OpenAPI""" # noqa: E501
- if local_vars_configuration is None:
- local_vars_configuration = Configuration()
- self.local_vars_configuration = local_vars_configuration
-
- self._expression = None
- self._message = None
- self._message_expression = None
- self._reason = None
- self.discriminator = None
-
- self.expression = expression
- if message is not None:
- self.message = message
- if message_expression is not None:
- self.message_expression = message_expression
- if reason is not None:
- self.reason = reason
-
- @property
- def expression(self):
- """Gets the expression of this V1beta1Validation. # noqa: E501
-
- Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. # noqa: E501
-
- :return: The expression of this V1beta1Validation. # noqa: E501
- :rtype: str
- """
- return self._expression
-
- @expression.setter
- def expression(self, expression):
- """Sets the expression of this V1beta1Validation.
-
- Expression represents the expression which will be evaluated by CEL. ref: https://github.com/google/cel-spec CEL expressions have access to the contents of the API request/response, organized into CEL variables as well as some other useful variables: - 'object' - The object from the incoming request. The value is null for DELETE requests. - 'oldObject' - The existing object. The value is null for CREATE requests. - 'request' - Attributes of the API request([ref](/pkg/apis/admission/types.go#AdmissionRequest)). - 'params' - Parameter resource referred to by the policy binding being evaluated. Only populated if the policy has a ParamKind. - 'namespaceObject' - The namespace object that the incoming object belongs to. The value is null for cluster-scoped resources. - 'variables' - Map of composited variables, from its name to its lazily evaluated value. For example, a variable named 'foo' can be accessed as 'variables.foo'. - 'authorizer' - A CEL Authorizer. May be used to perform authorization checks for the principal (user or service account) of the request. See https://pkg.go.dev/k8s.io/apiserver/pkg/cel/library#Authz - 'authorizer.requestResource' - A CEL ResourceCheck constructed from the 'authorizer' and configured with the request resource. The `apiVersion`, `kind`, `metadata.name` and `metadata.generateName` are always accessible from the root of the object. No other metadata properties are accessible. Only property names of the form `[a-zA-Z_.-/][a-zA-Z0-9_.-/]*` are accessible. Accessible property names are escaped according to the following rules when accessed in the expression: - '__' escapes to '__underscores__' - '.' escapes to '__dot__' - '-' escapes to '__dash__' - '/' escapes to '__slash__' - Property names that exactly match a CEL RESERVED keyword escape to '__{keyword}__'. The keywords are: \"true\", \"false\", \"null\", \"in\", \"as\", \"break\", \"const\", \"continue\", \"else\", \"for\", \"function\", \"if\", \"import\", \"let\", \"loop\", \"package\", \"namespace\", \"return\". Examples: - Expression accessing a property named \"namespace\": {\"Expression\": \"object.__namespace__ > 0\"} - Expression accessing a property named \"x-prop\": {\"Expression\": \"object.x__dash__prop > 0\"} - Expression accessing a property named \"redact__d\": {\"Expression\": \"object.redact__underscores__d > 0\"} Equality on arrays with list type of 'set' or 'map' ignores element order, i.e. [1, 2] == [2, 1]. Concatenation on arrays with x-kubernetes-list-type use the semantics of the list type: - 'set': `X + Y` performs a union where the array positions of all elements in `X` are preserved and non-intersecting elements in `Y` are appended, retaining their partial order. - 'map': `X + Y` performs a merge where the array positions of all keys in `X` are preserved but the values are overwritten by values in `Y` when the key sets of `X` and `Y` intersect. Elements in `Y` with non-intersecting keys are appended, retaining their partial order. Required. # noqa: E501
-
- :param expression: The expression of this V1beta1Validation. # noqa: E501
- :type: str
- """
- if self.local_vars_configuration.client_side_validation and expression is None: # noqa: E501
- raise ValueError("Invalid value for `expression`, must not be `None`") # noqa: E501
-
- self._expression = expression
-
- @property
- def message(self):
- """Gets the message of this V1beta1Validation. # noqa: E501
-
- Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\". # noqa: E501
-
- :return: The message of this V1beta1Validation. # noqa: E501
- :rtype: str
- """
- return self._message
-
- @message.setter
- def message(self, message):
- """Sets the message of this V1beta1Validation.
-
- Message represents the message displayed when validation fails. The message is required if the Expression contains line breaks. The message must not contain line breaks. If unset, the message is \"failed rule: {Rule}\". e.g. \"must be a URL with the host matching spec.host\" If the Expression contains line breaks. Message is required. The message must not contain line breaks. If unset, the message is \"failed Expression: {Expression}\". # noqa: E501
-
- :param message: The message of this V1beta1Validation. # noqa: E501
- :type: str
- """
-
- self._message = message
-
- @property
- def message_expression(self):
- """Gets the message_expression of this V1beta1Validation. # noqa: E501
-
- messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\" # noqa: E501
-
- :return: The message_expression of this V1beta1Validation. # noqa: E501
- :rtype: str
- """
- return self._message_expression
-
- @message_expression.setter
- def message_expression(self, message_expression):
- """Sets the message_expression of this V1beta1Validation.
-
- messageExpression declares a CEL expression that evaluates to the validation failure message that is returned when this rule fails. Since messageExpression is used as a failure message, it must evaluate to a string. If both message and messageExpression are present on a validation, then messageExpression will be used if validation fails. If messageExpression results in a runtime error, the runtime error is logged, and the validation failure message is produced as if the messageExpression field were unset. If messageExpression evaluates to an empty string, a string with only spaces, or a string that contains line breaks, then the validation failure message will also be produced as if the messageExpression field were unset, and the fact that messageExpression produced an empty string/string with only spaces/string with line breaks will be logged. messageExpression has access to all the same variables as the `expression` except for 'authorizer' and 'authorizer.requestResource'. Example: \"object.x must be less than max (\"+string(params.max)+\")\" # noqa: E501
-
- :param message_expression: The message_expression of this V1beta1Validation. # noqa: E501
- :type: str
- """
-
- self._message_expression = message_expression
-
- @property
- def reason(self):
- """Gets the reason of this V1beta1Validation. # noqa: E501
-
- Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client. # noqa: E501
-
- :return: The reason of this V1beta1Validation. # noqa: E501
- :rtype: str
- """
- return self._reason
-
- @reason.setter
- def reason(self, reason):
- """Sets the reason of this V1beta1Validation.
-
- Reason represents a machine-readable description of why this validation failed. If this is the first validation in the list to fail, this reason, as well as the corresponding HTTP response code, are used in the HTTP response to the client. The currently supported reasons are: \"Unauthorized\", \"Forbidden\", \"Invalid\", \"RequestEntityTooLarge\". If not set, StatusReasonInvalid is used in the response to the client. # noqa: E501
-
- :param reason: The reason of this V1beta1Validation. # noqa: E501
- :type: str
- """
-
- self._reason = reason
-
- def to_dict(self):
- """Returns the model properties as a dict"""
- result = {}
-
- for attr, _ in six.iteritems(self.openapi_types):
- value = getattr(self, attr)
- if isinstance(value, list):
- result[attr] = list(map(
- lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
- value
- ))
- elif hasattr(value, "to_dict"):
- result[attr] = value.to_dict()
- elif isinstance(value, dict):
- result[attr] = dict(map(
- lambda item: (item[0], item[1].to_dict())
- if hasattr(item[1], "to_dict") else item,
- value.items()
- ))
- else:
- result[attr] = value
-
- return result
-
- def to_str(self):
- """Returns the string representation of the model"""
- return pprint.pformat(self.to_dict())
-
- def __repr__(self):
- """For `print` and `pprint`"""
- return self.to_str()
-
- def __eq__(self, other):
- """Returns true if both objects are equal"""
- if not isinstance(other, V1beta1Validation):
- return False
-
- return self.to_dict() == other.to_dict()
-
- def __ne__(self, other):
- """Returns true if both objects are not equal"""
- if not isinstance(other, V1beta1Validation):
- return True
-
- return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_variable.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_variable.py
index b0dcc163d03..9dcaab5a8f6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_variable.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_variable.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_volume_attributes_class.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_volume_attributes_class.py
index 8b24a5d261f..75b2ae91f61 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_volume_attributes_class.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_volume_attributes_class.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_volume_attributes_class_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_volume_attributes_class_list.py
index 6208555a4f5..646ade264f2 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta1_volume_attributes_class_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta1_volume_attributes_class_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_allocated_device_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_allocated_device_status.py
index 16d04113d04..4c0931bd9be 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_allocated_device_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_allocated_device_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -38,7 +38,8 @@ class V1beta2AllocatedDeviceStatus(object):
'device': 'str',
'driver': 'str',
'network_data': 'V1beta2NetworkDeviceData',
- 'pool': 'str'
+ 'pool': 'str',
+ 'share_id': 'str'
}
attribute_map = {
@@ -47,10 +48,11 @@ class V1beta2AllocatedDeviceStatus(object):
'device': 'device',
'driver': 'driver',
'network_data': 'networkData',
- 'pool': 'pool'
+ 'pool': 'pool',
+ 'share_id': 'shareID'
}
- def __init__(self, conditions=None, data=None, device=None, driver=None, network_data=None, pool=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, conditions=None, data=None, device=None, driver=None, network_data=None, pool=None, share_id=None, local_vars_configuration=None): # noqa: E501
"""V1beta2AllocatedDeviceStatus - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
@@ -62,6 +64,7 @@ class V1beta2AllocatedDeviceStatus(object):
self._driver = None
self._network_data = None
self._pool = None
+ self._share_id = None
self.discriminator = None
if conditions is not None:
@@ -73,6 +76,8 @@ class V1beta2AllocatedDeviceStatus(object):
if network_data is not None:
self.network_data = network_data
self.pool = pool
+ if share_id is not None:
+ self.share_id = share_id
@property
def conditions(self):
@@ -216,6 +221,29 @@ class V1beta2AllocatedDeviceStatus(object):
self._pool = pool
+ @property
+ def share_id(self):
+ """Gets the share_id of this V1beta2AllocatedDeviceStatus. # noqa: E501
+
+ ShareID uniquely identifies an individual allocation share of the device. # noqa: E501
+
+ :return: The share_id of this V1beta2AllocatedDeviceStatus. # noqa: E501
+ :rtype: str
+ """
+ return self._share_id
+
+ @share_id.setter
+ def share_id(self, share_id):
+ """Sets the share_id of this V1beta2AllocatedDeviceStatus.
+
+ ShareID uniquely identifies an individual allocation share of the device. # noqa: E501
+
+ :param share_id: The share_id of this V1beta2AllocatedDeviceStatus. # noqa: E501
+ :type: str
+ """
+
+ self._share_id = share_id
+
def to_dict(self):
"""Returns the model properties as a dict"""
result = {}
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_allocation_result.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_allocation_result.py
index c67374469f2..b81981510dd 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_allocation_result.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_allocation_result.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -33,31 +33,59 @@ class V1beta2AllocationResult(object):
and the value is json key in definition.
"""
openapi_types = {
+ 'allocation_timestamp': 'datetime',
'devices': 'V1beta2DeviceAllocationResult',
'node_selector': 'V1NodeSelector'
}
attribute_map = {
+ 'allocation_timestamp': 'allocationTimestamp',
'devices': 'devices',
'node_selector': 'nodeSelector'
}
- def __init__(self, devices=None, node_selector=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, allocation_timestamp=None, devices=None, node_selector=None, local_vars_configuration=None): # noqa: E501
"""V1beta2AllocationResult - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
+ self._allocation_timestamp = None
self._devices = None
self._node_selector = None
self.discriminator = None
+ if allocation_timestamp is not None:
+ self.allocation_timestamp = allocation_timestamp
if devices is not None:
self.devices = devices
if node_selector is not None:
self.node_selector = node_selector
@property
+ def allocation_timestamp(self):
+ """Gets the allocation_timestamp of this V1beta2AllocationResult. # noqa: E501
+
+ AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. # noqa: E501
+
+ :return: The allocation_timestamp of this V1beta2AllocationResult. # noqa: E501
+ :rtype: datetime
+ """
+ return self._allocation_timestamp
+
+ @allocation_timestamp.setter
+ def allocation_timestamp(self, allocation_timestamp):
+ """Sets the allocation_timestamp of this V1beta2AllocationResult.
+
+ AllocationTimestamp stores the time when the resources were allocated. This field is not guaranteed to be set, in which case that time is unknown. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gate. # noqa: E501
+
+ :param allocation_timestamp: The allocation_timestamp of this V1beta2AllocationResult. # noqa: E501
+ :type: datetime
+ """
+
+ self._allocation_timestamp = allocation_timestamp
+
+ @property
def devices(self):
"""Gets the devices of this V1beta2AllocationResult. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_capacity_request_policy.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_capacity_request_policy.py
new file mode 100644
index 00000000000..5de01c1dd7e
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_capacity_request_policy.py
@@ -0,0 +1,176 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1beta2CapacityRequestPolicy(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'default': 'str',
+ 'valid_range': 'V1beta2CapacityRequestPolicyRange',
+ 'valid_values': 'list[str]'
+ }
+
+ attribute_map = {
+ 'default': 'default',
+ 'valid_range': 'validRange',
+ 'valid_values': 'validValues'
+ }
+
+ def __init__(self, default=None, valid_range=None, valid_values=None, local_vars_configuration=None): # noqa: E501
+ """V1beta2CapacityRequestPolicy - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._default = None
+ self._valid_range = None
+ self._valid_values = None
+ self.discriminator = None
+
+ if default is not None:
+ self.default = default
+ if valid_range is not None:
+ self.valid_range = valid_range
+ if valid_values is not None:
+ self.valid_values = valid_values
+
+ @property
+ def default(self):
+ """Gets the default of this V1beta2CapacityRequestPolicy. # noqa: E501
+
+ Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest's Capacity. # noqa: E501
+
+ :return: The default of this V1beta2CapacityRequestPolicy. # noqa: E501
+ :rtype: str
+ """
+ return self._default
+
+ @default.setter
+ def default(self, default):
+ """Sets the default of this V1beta2CapacityRequestPolicy.
+
+ Default specifies how much of this capacity is consumed by a request that does not contain an entry for it in DeviceRequest's Capacity. # noqa: E501
+
+ :param default: The default of this V1beta2CapacityRequestPolicy. # noqa: E501
+ :type: str
+ """
+
+ self._default = default
+
+ @property
+ def valid_range(self):
+ """Gets the valid_range of this V1beta2CapacityRequestPolicy. # noqa: E501
+
+
+ :return: The valid_range of this V1beta2CapacityRequestPolicy. # noqa: E501
+ :rtype: V1beta2CapacityRequestPolicyRange
+ """
+ return self._valid_range
+
+ @valid_range.setter
+ def valid_range(self, valid_range):
+ """Sets the valid_range of this V1beta2CapacityRequestPolicy.
+
+
+ :param valid_range: The valid_range of this V1beta2CapacityRequestPolicy. # noqa: E501
+ :type: V1beta2CapacityRequestPolicyRange
+ """
+
+ self._valid_range = valid_range
+
+ @property
+ def valid_values(self):
+ """Gets the valid_values of this V1beta2CapacityRequestPolicy. # noqa: E501
+
+ ValidValues defines a set of acceptable quantity values in consuming requests. Must not contain more than 10 entries. Must be sorted in ascending order. If this field is set, Default must be defined and it must be included in ValidValues list. If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. # noqa: E501
+
+ :return: The valid_values of this V1beta2CapacityRequestPolicy. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._valid_values
+
+ @valid_values.setter
+ def valid_values(self, valid_values):
+ """Sets the valid_values of this V1beta2CapacityRequestPolicy.
+
+ ValidValues defines a set of acceptable quantity values in consuming requests. Must not contain more than 10 entries. Must be sorted in ascending order. If this field is set, Default must be defined and it must be included in ValidValues list. If the requested amount does not match any valid value but smaller than some valid values, the scheduler calculates the smallest valid value that is greater than or equal to the request. That is: min(ceil(requestedValue) ∈ validValues), where requestedValue ≤ max(validValues). If the requested amount exceeds all valid values, the request violates the policy, and this device cannot be allocated. # noqa: E501
+
+ :param valid_values: The valid_values of this V1beta2CapacityRequestPolicy. # noqa: E501
+ :type: list[str]
+ """
+
+ self._valid_values = valid_values
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1beta2CapacityRequestPolicy):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1beta2CapacityRequestPolicy):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_capacity_request_policy_range.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_capacity_request_policy_range.py
new file mode 100644
index 00000000000..6e45976998a
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_capacity_request_policy_range.py
@@ -0,0 +1,179 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1beta2CapacityRequestPolicyRange(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'max': 'str',
+ 'min': 'str',
+ 'step': 'str'
+ }
+
+ attribute_map = {
+ 'max': 'max',
+ 'min': 'min',
+ 'step': 'step'
+ }
+
+ def __init__(self, max=None, min=None, step=None, local_vars_configuration=None): # noqa: E501
+ """V1beta2CapacityRequestPolicyRange - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._max = None
+ self._min = None
+ self._step = None
+ self.discriminator = None
+
+ if max is not None:
+ self.max = max
+ self.min = min
+ if step is not None:
+ self.step = step
+
+ @property
+ def max(self):
+ """Gets the max of this V1beta2CapacityRequestPolicyRange. # noqa: E501
+
+ Max defines the upper limit for capacity that can be requested. Max must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum. # noqa: E501
+
+ :return: The max of this V1beta2CapacityRequestPolicyRange. # noqa: E501
+ :rtype: str
+ """
+ return self._max
+
+ @max.setter
+ def max(self, max):
+ """Sets the max of this V1beta2CapacityRequestPolicyRange.
+
+ Max defines the upper limit for capacity that can be requested. Max must be less than or equal to the capacity value. Min and requestPolicy.default must be less than or equal to the maximum. # noqa: E501
+
+ :param max: The max of this V1beta2CapacityRequestPolicyRange. # noqa: E501
+ :type: str
+ """
+
+ self._max = max
+
+ @property
+ def min(self):
+ """Gets the min of this V1beta2CapacityRequestPolicyRange. # noqa: E501
+
+ Min specifies the minimum capacity allowed for a consumption request. Min must be greater than or equal to zero, and less than or equal to the capacity value. requestPolicy.default must be more than or equal to the minimum. # noqa: E501
+
+ :return: The min of this V1beta2CapacityRequestPolicyRange. # noqa: E501
+ :rtype: str
+ """
+ return self._min
+
+ @min.setter
+ def min(self, min):
+ """Sets the min of this V1beta2CapacityRequestPolicyRange.
+
+ Min specifies the minimum capacity allowed for a consumption request. Min must be greater than or equal to zero, and less than or equal to the capacity value. requestPolicy.default must be more than or equal to the minimum. # noqa: E501
+
+ :param min: The min of this V1beta2CapacityRequestPolicyRange. # noqa: E501
+ :type: str
+ """
+ if self.local_vars_configuration.client_side_validation and min is None: # noqa: E501
+ raise ValueError("Invalid value for `min`, must not be `None`") # noqa: E501
+
+ self._min = min
+
+ @property
+ def step(self):
+ """Gets the step of this V1beta2CapacityRequestPolicyRange. # noqa: E501
+
+ Step defines the step size between valid capacity amounts within the range. Max (if set) and requestPolicy.default must be a multiple of Step. Min + Step must be less than or equal to the capacity value. # noqa: E501
+
+ :return: The step of this V1beta2CapacityRequestPolicyRange. # noqa: E501
+ :rtype: str
+ """
+ return self._step
+
+ @step.setter
+ def step(self, step):
+ """Sets the step of this V1beta2CapacityRequestPolicyRange.
+
+ Step defines the step size between valid capacity amounts within the range. Max (if set) and requestPolicy.default must be a multiple of Step. Min + Step must be less than or equal to the capacity value. # noqa: E501
+
+ :param step: The step of this V1beta2CapacityRequestPolicyRange. # noqa: E501
+ :type: str
+ """
+
+ self._step = step
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1beta2CapacityRequestPolicyRange):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1beta2CapacityRequestPolicyRange):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_capacity_requirements.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_capacity_requirements.py
new file mode 100644
index 00000000000..20120ff172d
--- /dev/null
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_capacity_requirements.py
@@ -0,0 +1,122 @@
+# coding: utf-8
+
+"""
+ Kubernetes
+
+ No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
+
+ The version of the OpenAPI document: release-1.34
+ Generated by: https://openapi-generator.tech
+"""
+
+
+import pprint
+import re # noqa: F401
+
+import six
+
+from kubernetes.client.configuration import Configuration
+
+
+class V1beta2CapacityRequirements(object):
+ """NOTE: This class is auto generated by OpenAPI Generator.
+ Ref: https://openapi-generator.tech
+
+ Do not edit the class manually.
+ """
+
+ """
+ Attributes:
+ openapi_types (dict): The key is attribute name
+ and the value is attribute type.
+ attribute_map (dict): The key is attribute name
+ and the value is json key in definition.
+ """
+ openapi_types = {
+ 'requests': 'dict(str, str)'
+ }
+
+ attribute_map = {
+ 'requests': 'requests'
+ }
+
+ def __init__(self, requests=None, local_vars_configuration=None): # noqa: E501
+ """V1beta2CapacityRequirements - a model defined in OpenAPI""" # noqa: E501
+ if local_vars_configuration is None:
+ local_vars_configuration = Configuration()
+ self.local_vars_configuration = local_vars_configuration
+
+ self._requests = None
+ self.discriminator = None
+
+ if requests is not None:
+ self.requests = requests
+
+ @property
+ def requests(self):
+ """Gets the requests of this V1beta2CapacityRequirements. # noqa: E501
+
+ Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. # noqa: E501
+
+ :return: The requests of this V1beta2CapacityRequirements. # noqa: E501
+ :rtype: dict(str, str)
+ """
+ return self._requests
+
+ @requests.setter
+ def requests(self, requests):
+ """Sets the requests of this V1beta2CapacityRequirements.
+
+ Requests represent individual device resource requests for distinct resources, all of which must be provided by the device. This value is used as an additional filtering condition against the available capacity on the device. This is semantically equivalent to a CEL selector with `device.capacity[<domain>].<name>.compareTo(quantity(<request quantity>)) >= 0`. For example, device.capacity['test-driver.cdi.k8s.io'].counters.compareTo(quantity('2')) >= 0. When a requestPolicy is defined, the requested amount is adjusted upward to the nearest valid value based on the policy. If the requested amount cannot be adjusted to a valid value—because it exceeds what the requestPolicy allows— the device is considered ineligible for allocation. For any capacity that is not explicitly requested: - If no requestPolicy is set, the default consumed capacity is equal to the full device capacity (i.e., the whole device is claimed). - If a requestPolicy is set, the default consumed capacity is determined according to that policy. If the device allows multiple allocation, the aggregated amount across all requests must not exceed the capacity value. The consumed capacity, which may be adjusted based on the requestPolicy if defined, is recorded in the resource claim’s status.devices[*].consumedCapacity field. # noqa: E501
+
+ :param requests: The requests of this V1beta2CapacityRequirements. # noqa: E501
+ :type: dict(str, str)
+ """
+
+ self._requests = requests
+
+ def to_dict(self):
+ """Returns the model properties as a dict"""
+ result = {}
+
+ for attr, _ in six.iteritems(self.openapi_types):
+ value = getattr(self, attr)
+ if isinstance(value, list):
+ result[attr] = list(map(
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
+ value
+ ))
+ elif hasattr(value, "to_dict"):
+ result[attr] = value.to_dict()
+ elif isinstance(value, dict):
+ result[attr] = dict(map(
+ lambda item: (item[0], item[1].to_dict())
+ if hasattr(item[1], "to_dict") else item,
+ value.items()
+ ))
+ else:
+ result[attr] = value
+
+ return result
+
+ def to_str(self):
+ """Returns the string representation of the model"""
+ return pprint.pformat(self.to_dict())
+
+ def __repr__(self):
+ """For `print` and `pprint`"""
+ return self.to_str()
+
+ def __eq__(self, other):
+ """Returns true if both objects are equal"""
+ if not isinstance(other, V1beta2CapacityRequirements):
+ return False
+
+ return self.to_dict() == other.to_dict()
+
+ def __ne__(self, other):
+ """Returns true if both objects are not equal"""
+ if not isinstance(other, V1beta2CapacityRequirements):
+ return True
+
+ return self.to_dict() != other.to_dict()
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_cel_device_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_cel_device_selector.py
index 03d793a5eb6..ac71d42d49f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_cel_device_selector.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_cel_device_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -55,7 +55,7 @@ class V1beta2CELDeviceSelector(object):
def expression(self):
"""Gets the expression of this V1beta2CELDeviceSelector. # noqa: E501
- Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. # noqa: E501
+ Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. # noqa: E501
:return: The expression of this V1beta2CELDeviceSelector. # noqa: E501
:rtype: str
@@ -66,7 +66,7 @@ class V1beta2CELDeviceSelector(object):
def expression(self, expression):
"""Sets the expression of this V1beta2CELDeviceSelector.
- Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. # noqa: E501
+ Expression is a CEL expression which evaluates a single device. It must evaluate to true when the device under consideration satisfies the desired criteria, and false when it does not. Any other result is an error and causes allocation of devices to abort. The expression's input is an object named \"device\", which carries the following properties: - driver (string): the name of the driver which defines this device. - attributes (map[string]object): the device's attributes, grouped by prefix (e.g. device.attributes[\"dra.example.com\"] evaluates to an object with all of the attributes which were prefixed by \"dra.example.com\". - capacity (map[string]object): the device's capacities, grouped by prefix. - allowMultipleAllocations (bool): the allowMultipleAllocations property of the device (v1.34+ with the DRAConsumableCapacity feature enabled). Example: Consider a device with driver=\"dra.example.com\", which exposes two attributes named \"model\" and \"ext.example.com/family\" and which exposes one capacity named \"modules\". This input to this expression would have the following fields: device.driver device.attributes[\"dra.example.com\"].model device.attributes[\"ext.example.com\"].family device.capacity[\"dra.example.com\"].modules The device.driver field can be used to check for a specific driver, either as a high-level precondition (i.e. you only want to consider devices from this driver) or as part of a multi-clause expression that is meant to consider devices from different drivers. The value type of each attribute is defined by the device definition, and users who write these expressions must consult the documentation for their specific drivers. The value type of each capacity is Quantity. If an unknown prefix is used as a lookup in either device.attributes or device.capacity, an empty map will be returned. Any reference to an unknown field will cause an evaluation error and allocation to abort. A robust expression should check for the existence of attributes before referencing them. For ease of use, the cel.bind() function is enabled, and can be used to simplify expressions that access multiple attributes with the same domain. For example: cel.bind(dra, device.attributes[\"dra.example.com\"], dra.someBool && dra.anotherBool) The length of the expression must be smaller or equal to 10 Ki. The cost of evaluating it is also limited based on the estimated number of logical steps. # noqa: E501
:param expression: The expression of this V1beta2CELDeviceSelector. # noqa: E501
:type: str
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_counter.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_counter.py
index d45ac2f69dc..d09897adfa0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_counter.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_counter.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_counter_set.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_counter_set.py
index ed3608b00ac..2ba6f7abdd8 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_counter_set.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_counter_set.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device.py
index efb1fe22e03..cfc80b81c53 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -34,7 +34,11 @@ class V1beta2Device(object):
"""
openapi_types = {
'all_nodes': 'bool',
+ 'allow_multiple_allocations': 'bool',
'attributes': 'dict(str, V1beta2DeviceAttribute)',
+ 'binding_conditions': 'list[str]',
+ 'binding_failure_conditions': 'list[str]',
+ 'binds_to_node': 'bool',
'capacity': 'dict(str, V1beta2DeviceCapacity)',
'consumes_counters': 'list[V1beta2DeviceCounterConsumption]',
'name': 'str',
@@ -45,7 +49,11 @@ class V1beta2Device(object):
attribute_map = {
'all_nodes': 'allNodes',
+ 'allow_multiple_allocations': 'allowMultipleAllocations',
'attributes': 'attributes',
+ 'binding_conditions': 'bindingConditions',
+ 'binding_failure_conditions': 'bindingFailureConditions',
+ 'binds_to_node': 'bindsToNode',
'capacity': 'capacity',
'consumes_counters': 'consumesCounters',
'name': 'name',
@@ -54,14 +62,18 @@ class V1beta2Device(object):
'taints': 'taints'
}
- def __init__(self, all_nodes=None, attributes=None, capacity=None, consumes_counters=None, name=None, node_name=None, node_selector=None, taints=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, all_nodes=None, allow_multiple_allocations=None, attributes=None, binding_conditions=None, binding_failure_conditions=None, binds_to_node=None, capacity=None, consumes_counters=None, name=None, node_name=None, node_selector=None, taints=None, local_vars_configuration=None): # noqa: E501
"""V1beta2Device - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._all_nodes = None
+ self._allow_multiple_allocations = None
self._attributes = None
+ self._binding_conditions = None
+ self._binding_failure_conditions = None
+ self._binds_to_node = None
self._capacity = None
self._consumes_counters = None
self._name = None
@@ -72,8 +84,16 @@ class V1beta2Device(object):
if all_nodes is not None:
self.all_nodes = all_nodes
+ if allow_multiple_allocations is not None:
+ self.allow_multiple_allocations = allow_multiple_allocations
if attributes is not None:
self.attributes = attributes
+ if binding_conditions is not None:
+ self.binding_conditions = binding_conditions
+ if binding_failure_conditions is not None:
+ self.binding_failure_conditions = binding_failure_conditions
+ if binds_to_node is not None:
+ self.binds_to_node = binds_to_node
if capacity is not None:
self.capacity = capacity
if consumes_counters is not None:
@@ -110,6 +130,29 @@ class V1beta2Device(object):
self._all_nodes = all_nodes
@property
+ def allow_multiple_allocations(self):
+ """Gets the allow_multiple_allocations of this V1beta2Device. # noqa: E501
+
+ AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. # noqa: E501
+
+ :return: The allow_multiple_allocations of this V1beta2Device. # noqa: E501
+ :rtype: bool
+ """
+ return self._allow_multiple_allocations
+
+ @allow_multiple_allocations.setter
+ def allow_multiple_allocations(self, allow_multiple_allocations):
+ """Sets the allow_multiple_allocations of this V1beta2Device.
+
+ AllowMultipleAllocations marks whether the device is allowed to be allocated to multiple DeviceRequests. If AllowMultipleAllocations is set to true, the device can be allocated more than once, and all of its capacity is consumable, regardless of whether the requestPolicy is defined or not. # noqa: E501
+
+ :param allow_multiple_allocations: The allow_multiple_allocations of this V1beta2Device. # noqa: E501
+ :type: bool
+ """
+
+ self._allow_multiple_allocations = allow_multiple_allocations
+
+ @property
def attributes(self):
"""Gets the attributes of this V1beta2Device. # noqa: E501
@@ -133,6 +176,75 @@ class V1beta2Device(object):
self._attributes = attributes
@property
+ def binding_conditions(self):
+ """Gets the binding_conditions of this V1beta2Device. # noqa: E501
+
+ BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binding_conditions of this V1beta2Device. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._binding_conditions
+
+ @binding_conditions.setter
+ def binding_conditions(self, binding_conditions):
+ """Sets the binding_conditions of this V1beta2Device.
+
+ BindingConditions defines the conditions for proceeding with binding. All of these conditions must be set in the per-device status conditions with a value of True to proceed with binding the pod to the node while scheduling the pod. The maximum number of binding conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binding_conditions: The binding_conditions of this V1beta2Device. # noqa: E501
+ :type: list[str]
+ """
+
+ self._binding_conditions = binding_conditions
+
+ @property
+ def binding_failure_conditions(self):
+ """Gets the binding_failure_conditions of this V1beta2Device. # noqa: E501
+
+ BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binding_failure_conditions of this V1beta2Device. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._binding_failure_conditions
+
+ @binding_failure_conditions.setter
+ def binding_failure_conditions(self, binding_failure_conditions):
+ """Sets the binding_failure_conditions of this V1beta2Device.
+
+ BindingFailureConditions defines the conditions for binding failure. They may be set in the per-device status conditions. If any is set to \"True\", a binding failure occurred. The maximum number of binding failure conditions is 4. The conditions must be a valid condition type string. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binding_failure_conditions: The binding_failure_conditions of this V1beta2Device. # noqa: E501
+ :type: list[str]
+ """
+
+ self._binding_failure_conditions = binding_failure_conditions
+
+ @property
+ def binds_to_node(self):
+ """Gets the binds_to_node of this V1beta2Device. # noqa: E501
+
+ BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binds_to_node of this V1beta2Device. # noqa: E501
+ :rtype: bool
+ """
+ return self._binds_to_node
+
+ @binds_to_node.setter
+ def binds_to_node(self, binds_to_node):
+ """Sets the binds_to_node of this V1beta2Device.
+
+ BindsToNode indicates if the usage of an allocation involving this device has to be limited to exactly the node that was chosen when allocating the claim. If set to true, the scheduler will set the ResourceClaim.Status.Allocation.NodeSelector to match the node where the allocation was made. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binds_to_node: The binds_to_node of this V1beta2Device. # noqa: E501
+ :type: bool
+ """
+
+ self._binds_to_node = binds_to_node
+
+ @property
def capacity(self):
"""Gets the capacity of this V1beta2Device. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_allocation_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_allocation_configuration.py
index 571811e47dd..7da14f5f7b0 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_allocation_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_allocation_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_allocation_result.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_allocation_result.py
index 60377c4b89d..cafcb10bf8f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_allocation_result.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_allocation_result.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_attribute.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_attribute.py
index 10ef98c34c3..e8890a71480 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_attribute.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_attribute.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_capacity.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_capacity.py
index 3f6891c5d07..e8e001ad965 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_capacity.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_capacity.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -33,29 +33,55 @@ class V1beta2DeviceCapacity(object):
and the value is json key in definition.
"""
openapi_types = {
+ 'request_policy': 'V1beta2CapacityRequestPolicy',
'value': 'str'
}
attribute_map = {
+ 'request_policy': 'requestPolicy',
'value': 'value'
}
- def __init__(self, value=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, request_policy=None, value=None, local_vars_configuration=None): # noqa: E501
"""V1beta2DeviceCapacity - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
+ self._request_policy = None
self._value = None
self.discriminator = None
+ if request_policy is not None:
+ self.request_policy = request_policy
self.value = value
@property
+ def request_policy(self):
+ """Gets the request_policy of this V1beta2DeviceCapacity. # noqa: E501
+
+
+ :return: The request_policy of this V1beta2DeviceCapacity. # noqa: E501
+ :rtype: V1beta2CapacityRequestPolicy
+ """
+ return self._request_policy
+
+ @request_policy.setter
+ def request_policy(self, request_policy):
+ """Sets the request_policy of this V1beta2DeviceCapacity.
+
+
+ :param request_policy: The request_policy of this V1beta2DeviceCapacity. # noqa: E501
+ :type: V1beta2CapacityRequestPolicy
+ """
+
+ self._request_policy = request_policy
+
+ @property
def value(self):
"""Gets the value of this V1beta2DeviceCapacity. # noqa: E501
- Value defines how much of a certain device capacity is available. # noqa: E501
+ Value defines how much of a certain capacity that device has. This field reflects the fixed total capacity and does not change. The consumed amount is tracked separately by scheduler and does not affect this value. # noqa: E501
:return: The value of this V1beta2DeviceCapacity. # noqa: E501
:rtype: str
@@ -66,7 +92,7 @@ class V1beta2DeviceCapacity(object):
def value(self, value):
"""Sets the value of this V1beta2DeviceCapacity.
- Value defines how much of a certain device capacity is available. # noqa: E501
+ Value defines how much of a certain capacity that device has. This field reflects the fixed total capacity and does not change. The consumed amount is tracked separately by scheduler and does not affect this value. # noqa: E501
:param value: The value of this V1beta2DeviceCapacity. # noqa: E501
:type: str
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_claim.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_claim.py
index 62b9def46e2..eedf20ad129 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_claim.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_claim.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_claim_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_claim_configuration.py
index c2099f40893..07d35a687ce 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_claim_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_claim_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class.py
index 531489b965a..74645cbf61b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_configuration.py
index 1a002051482..e18d2eb2da9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_list.py
index 65499133484..8d1e59cd8cb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_spec.py
index 472a84d05e9..8c906c06d33 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_class_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -34,26 +34,31 @@ class V1beta2DeviceClassSpec(object):
"""
openapi_types = {
'config': 'list[V1beta2DeviceClassConfiguration]',
+ 'extended_resource_name': 'str',
'selectors': 'list[V1beta2DeviceSelector]'
}
attribute_map = {
'config': 'config',
+ 'extended_resource_name': 'extendedResourceName',
'selectors': 'selectors'
}
- def __init__(self, config=None, selectors=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, config=None, extended_resource_name=None, selectors=None, local_vars_configuration=None): # noqa: E501
"""V1beta2DeviceClassSpec - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._config = None
+ self._extended_resource_name = None
self._selectors = None
self.discriminator = None
if config is not None:
self.config = config
+ if extended_resource_name is not None:
+ self.extended_resource_name = extended_resource_name
if selectors is not None:
self.selectors = selectors
@@ -81,6 +86,29 @@ class V1beta2DeviceClassSpec(object):
self._config = config
@property
+ def extended_resource_name(self):
+ """Gets the extended_resource_name of this V1beta2DeviceClassSpec. # noqa: E501
+
+ ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. # noqa: E501
+
+ :return: The extended_resource_name of this V1beta2DeviceClassSpec. # noqa: E501
+ :rtype: str
+ """
+ return self._extended_resource_name
+
+ @extended_resource_name.setter
+ def extended_resource_name(self, extended_resource_name):
+ """Sets the extended_resource_name of this V1beta2DeviceClassSpec.
+
+ ExtendedResourceName is the extended resource name for the devices of this class. The devices of this class can be used to satisfy a pod's extended resource requests. It has the same format as the name of a pod's extended resource. It should be unique among all the device classes in a cluster. If two device classes have the same name, then the class created later is picked to satisfy a pod's extended resource requests. If two classes are created at the same time, then the name of the class lexicographically sorted first is picked. This is an alpha field. # noqa: E501
+
+ :param extended_resource_name: The extended_resource_name of this V1beta2DeviceClassSpec. # noqa: E501
+ :type: str
+ """
+
+ self._extended_resource_name = extended_resource_name
+
+ @property
def selectors(self):
"""Gets the selectors of this V1beta2DeviceClassSpec. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_constraint.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_constraint.py
index 4739349ae76..84c61887881 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_constraint.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_constraint.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -33,31 +33,59 @@ class V1beta2DeviceConstraint(object):
and the value is json key in definition.
"""
openapi_types = {
+ 'distinct_attribute': 'str',
'match_attribute': 'str',
'requests': 'list[str]'
}
attribute_map = {
+ 'distinct_attribute': 'distinctAttribute',
'match_attribute': 'matchAttribute',
'requests': 'requests'
}
- def __init__(self, match_attribute=None, requests=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, distinct_attribute=None, match_attribute=None, requests=None, local_vars_configuration=None): # noqa: E501
"""V1beta2DeviceConstraint - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
+ self._distinct_attribute = None
self._match_attribute = None
self._requests = None
self.discriminator = None
+ if distinct_attribute is not None:
+ self.distinct_attribute = distinct_attribute
if match_attribute is not None:
self.match_attribute = match_attribute
if requests is not None:
self.requests = requests
@property
+ def distinct_attribute(self):
+ """Gets the distinct_attribute of this V1beta2DeviceConstraint. # noqa: E501
+
+ DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. # noqa: E501
+
+ :return: The distinct_attribute of this V1beta2DeviceConstraint. # noqa: E501
+ :rtype: str
+ """
+ return self._distinct_attribute
+
+ @distinct_attribute.setter
+ def distinct_attribute(self, distinct_attribute):
+ """Sets the distinct_attribute of this V1beta2DeviceConstraint.
+
+ DistinctAttribute requires that all devices in question have this attribute and that its type and value are unique across those devices. This acts as the inverse of MatchAttribute. This constraint is used to avoid allocating multiple requests to the same device by ensuring attribute-level differentiation. This is useful for scenarios where resource requests must be fulfilled by separate physical devices. For example, a container requests two network interfaces that must be allocated from two different physical NICs. # noqa: E501
+
+ :param distinct_attribute: The distinct_attribute of this V1beta2DeviceConstraint. # noqa: E501
+ :type: str
+ """
+
+ self._distinct_attribute = distinct_attribute
+
+ @property
def match_attribute(self):
"""Gets the match_attribute of this V1beta2DeviceConstraint. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_counter_consumption.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_counter_consumption.py
index 4ab85bfac55..6e5de3d799a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_counter_consumption.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_counter_consumption.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_request.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_request.py
index eea80ef36e7..a254789ffa5 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_request.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_request.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_request_allocation_result.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_request_allocation_result.py
index ad66e21ecfd..3d724ebf12b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_request_allocation_result.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_request_allocation_result.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -34,42 +34,62 @@ class V1beta2DeviceRequestAllocationResult(object):
"""
openapi_types = {
'admin_access': 'bool',
+ 'binding_conditions': 'list[str]',
+ 'binding_failure_conditions': 'list[str]',
+ 'consumed_capacity': 'dict(str, str)',
'device': 'str',
'driver': 'str',
'pool': 'str',
'request': 'str',
+ 'share_id': 'str',
'tolerations': 'list[V1beta2DeviceToleration]'
}
attribute_map = {
'admin_access': 'adminAccess',
+ 'binding_conditions': 'bindingConditions',
+ 'binding_failure_conditions': 'bindingFailureConditions',
+ 'consumed_capacity': 'consumedCapacity',
'device': 'device',
'driver': 'driver',
'pool': 'pool',
'request': 'request',
+ 'share_id': 'shareID',
'tolerations': 'tolerations'
}
- def __init__(self, admin_access=None, device=None, driver=None, pool=None, request=None, tolerations=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, admin_access=None, binding_conditions=None, binding_failure_conditions=None, consumed_capacity=None, device=None, driver=None, pool=None, request=None, share_id=None, tolerations=None, local_vars_configuration=None): # noqa: E501
"""V1beta2DeviceRequestAllocationResult - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._admin_access = None
+ self._binding_conditions = None
+ self._binding_failure_conditions = None
+ self._consumed_capacity = None
self._device = None
self._driver = None
self._pool = None
self._request = None
+ self._share_id = None
self._tolerations = None
self.discriminator = None
if admin_access is not None:
self.admin_access = admin_access
+ if binding_conditions is not None:
+ self.binding_conditions = binding_conditions
+ if binding_failure_conditions is not None:
+ self.binding_failure_conditions = binding_failure_conditions
+ if consumed_capacity is not None:
+ self.consumed_capacity = consumed_capacity
self.device = device
self.driver = driver
self.pool = pool
self.request = request
+ if share_id is not None:
+ self.share_id = share_id
if tolerations is not None:
self.tolerations = tolerations
@@ -97,6 +117,75 @@ class V1beta2DeviceRequestAllocationResult(object):
self._admin_access = admin_access
@property
+ def binding_conditions(self):
+ """Gets the binding_conditions of this V1beta2DeviceRequestAllocationResult. # noqa: E501
+
+ BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binding_conditions of this V1beta2DeviceRequestAllocationResult. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._binding_conditions
+
+ @binding_conditions.setter
+ def binding_conditions(self, binding_conditions):
+ """Sets the binding_conditions of this V1beta2DeviceRequestAllocationResult.
+
+ BindingConditions contains a copy of the BindingConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binding_conditions: The binding_conditions of this V1beta2DeviceRequestAllocationResult. # noqa: E501
+ :type: list[str]
+ """
+
+ self._binding_conditions = binding_conditions
+
+ @property
+ def binding_failure_conditions(self):
+ """Gets the binding_failure_conditions of this V1beta2DeviceRequestAllocationResult. # noqa: E501
+
+ BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :return: The binding_failure_conditions of this V1beta2DeviceRequestAllocationResult. # noqa: E501
+ :rtype: list[str]
+ """
+ return self._binding_failure_conditions
+
+ @binding_failure_conditions.setter
+ def binding_failure_conditions(self, binding_failure_conditions):
+ """Sets the binding_failure_conditions of this V1beta2DeviceRequestAllocationResult.
+
+ BindingFailureConditions contains a copy of the BindingFailureConditions from the corresponding ResourceSlice at the time of allocation. This is an alpha field and requires enabling the DRADeviceBindingConditions and DRAResourceClaimDeviceStatus feature gates. # noqa: E501
+
+ :param binding_failure_conditions: The binding_failure_conditions of this V1beta2DeviceRequestAllocationResult. # noqa: E501
+ :type: list[str]
+ """
+
+ self._binding_failure_conditions = binding_failure_conditions
+
+ @property
+ def consumed_capacity(self):
+ """Gets the consumed_capacity of this V1beta2DeviceRequestAllocationResult. # noqa: E501
+
+ ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. # noqa: E501
+
+ :return: The consumed_capacity of this V1beta2DeviceRequestAllocationResult. # noqa: E501
+ :rtype: dict(str, str)
+ """
+ return self._consumed_capacity
+
+ @consumed_capacity.setter
+ def consumed_capacity(self, consumed_capacity):
+ """Sets the consumed_capacity of this V1beta2DeviceRequestAllocationResult.
+
+ ConsumedCapacity tracks the amount of capacity consumed per device as part of the claim request. The consumed amount may differ from the requested amount: it is rounded up to the nearest valid value based on the device’s requestPolicy if applicable (i.e., may not be less than the requested amount). The total consumed capacity for each device must not exceed the DeviceCapacity's Value. This field is populated only for devices that allow multiple allocations. All capacity entries are included, even if the consumed amount is zero. # noqa: E501
+
+ :param consumed_capacity: The consumed_capacity of this V1beta2DeviceRequestAllocationResult. # noqa: E501
+ :type: dict(str, str)
+ """
+
+ self._consumed_capacity = consumed_capacity
+
+ @property
def device(self):
"""Gets the device of this V1beta2DeviceRequestAllocationResult. # noqa: E501
@@ -197,6 +286,29 @@ class V1beta2DeviceRequestAllocationResult(object):
self._request = request
@property
+ def share_id(self):
+ """Gets the share_id of this V1beta2DeviceRequestAllocationResult. # noqa: E501
+
+ ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. # noqa: E501
+
+ :return: The share_id of this V1beta2DeviceRequestAllocationResult. # noqa: E501
+ :rtype: str
+ """
+ return self._share_id
+
+ @share_id.setter
+ def share_id(self, share_id):
+ """Sets the share_id of this V1beta2DeviceRequestAllocationResult.
+
+ ShareID uniquely identifies an individual allocation share of the device, used when the device supports multiple simultaneous allocations. It serves as an additional map key to differentiate concurrent shares of the same device. # noqa: E501
+
+ :param share_id: The share_id of this V1beta2DeviceRequestAllocationResult. # noqa: E501
+ :type: str
+ """
+
+ self._share_id = share_id
+
+ @property
def tolerations(self):
"""Gets the tolerations of this V1beta2DeviceRequestAllocationResult. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_selector.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_selector.py
index fc474bdc833..d6b471a5992 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_selector.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_selector.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_sub_request.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_sub_request.py
index 62344df3c9a..380cb38b3dc 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_sub_request.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_sub_request.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -34,6 +34,7 @@ class V1beta2DeviceSubRequest(object):
"""
openapi_types = {
'allocation_mode': 'str',
+ 'capacity': 'V1beta2CapacityRequirements',
'count': 'int',
'device_class_name': 'str',
'name': 'str',
@@ -43,6 +44,7 @@ class V1beta2DeviceSubRequest(object):
attribute_map = {
'allocation_mode': 'allocationMode',
+ 'capacity': 'capacity',
'count': 'count',
'device_class_name': 'deviceClassName',
'name': 'name',
@@ -50,13 +52,14 @@ class V1beta2DeviceSubRequest(object):
'tolerations': 'tolerations'
}
- def __init__(self, allocation_mode=None, count=None, device_class_name=None, name=None, selectors=None, tolerations=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, allocation_mode=None, capacity=None, count=None, device_class_name=None, name=None, selectors=None, tolerations=None, local_vars_configuration=None): # noqa: E501
"""V1beta2DeviceSubRequest - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
self.local_vars_configuration = local_vars_configuration
self._allocation_mode = None
+ self._capacity = None
self._count = None
self._device_class_name = None
self._name = None
@@ -66,6 +69,8 @@ class V1beta2DeviceSubRequest(object):
if allocation_mode is not None:
self.allocation_mode = allocation_mode
+ if capacity is not None:
+ self.capacity = capacity
if count is not None:
self.count = count
self.device_class_name = device_class_name
@@ -99,6 +104,27 @@ class V1beta2DeviceSubRequest(object):
self._allocation_mode = allocation_mode
@property
+ def capacity(self):
+ """Gets the capacity of this V1beta2DeviceSubRequest. # noqa: E501
+
+
+ :return: The capacity of this V1beta2DeviceSubRequest. # noqa: E501
+ :rtype: V1beta2CapacityRequirements
+ """
+ return self._capacity
+
+ @capacity.setter
+ def capacity(self, capacity):
+ """Sets the capacity of this V1beta2DeviceSubRequest.
+
+
+ :param capacity: The capacity of this V1beta2DeviceSubRequest. # noqa: E501
+ :type: V1beta2CapacityRequirements
+ """
+
+ self._capacity = capacity
+
+ @property
def count(self):
"""Gets the count of this V1beta2DeviceSubRequest. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_taint.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_taint.py
index 5eeb33f0b6a..0cf636b3681 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_taint.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_taint.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_toleration.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_toleration.py
index 283d2fbca5b..dc641bdd47f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_toleration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_device_toleration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_exact_device_request.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_exact_device_request.py
index 282d21aae66..43de79f7b3c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_exact_device_request.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_exact_device_request.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
@@ -35,6 +35,7 @@ class V1beta2ExactDeviceRequest(object):
openapi_types = {
'admin_access': 'bool',
'allocation_mode': 'str',
+ 'capacity': 'V1beta2CapacityRequirements',
'count': 'int',
'device_class_name': 'str',
'selectors': 'list[V1beta2DeviceSelector]',
@@ -44,13 +45,14 @@ class V1beta2ExactDeviceRequest(object):
attribute_map = {
'admin_access': 'adminAccess',
'allocation_mode': 'allocationMode',
+ 'capacity': 'capacity',
'count': 'count',
'device_class_name': 'deviceClassName',
'selectors': 'selectors',
'tolerations': 'tolerations'
}
- def __init__(self, admin_access=None, allocation_mode=None, count=None, device_class_name=None, selectors=None, tolerations=None, local_vars_configuration=None): # noqa: E501
+ def __init__(self, admin_access=None, allocation_mode=None, capacity=None, count=None, device_class_name=None, selectors=None, tolerations=None, local_vars_configuration=None): # noqa: E501
"""V1beta2ExactDeviceRequest - a model defined in OpenAPI""" # noqa: E501
if local_vars_configuration is None:
local_vars_configuration = Configuration()
@@ -58,6 +60,7 @@ class V1beta2ExactDeviceRequest(object):
self._admin_access = None
self._allocation_mode = None
+ self._capacity = None
self._count = None
self._device_class_name = None
self._selectors = None
@@ -68,6 +71,8 @@ class V1beta2ExactDeviceRequest(object):
self.admin_access = admin_access
if allocation_mode is not None:
self.allocation_mode = allocation_mode
+ if capacity is not None:
+ self.capacity = capacity
if count is not None:
self.count = count
self.device_class_name = device_class_name
@@ -123,6 +128,27 @@ class V1beta2ExactDeviceRequest(object):
self._allocation_mode = allocation_mode
@property
+ def capacity(self):
+ """Gets the capacity of this V1beta2ExactDeviceRequest. # noqa: E501
+
+
+ :return: The capacity of this V1beta2ExactDeviceRequest. # noqa: E501
+ :rtype: V1beta2CapacityRequirements
+ """
+ return self._capacity
+
+ @capacity.setter
+ def capacity(self, capacity):
+ """Sets the capacity of this V1beta2ExactDeviceRequest.
+
+
+ :param capacity: The capacity of this V1beta2ExactDeviceRequest. # noqa: E501
+ :type: V1beta2CapacityRequirements
+ """
+
+ self._capacity = capacity
+
+ @property
def count(self):
"""Gets the count of this V1beta2ExactDeviceRequest. # noqa: E501
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_network_device_data.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_network_device_data.py
index a6a9e07188c..be24b0ca93c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_network_device_data.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_network_device_data.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_opaque_device_configuration.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_opaque_device_configuration.py
index 0165cb7c42b..88070e1f3c4 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_opaque_device_configuration.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_opaque_device_configuration.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim.py
index 33071399c1e..5900cdfc6f9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_consumer_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_consumer_reference.py
index a465e13289c..2ec7222076a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_consumer_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_consumer_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_list.py
index 6c0fc4a25bc..2f48f31c3df 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_spec.py
index ba32d55f5da..117b886c711 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_status.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_status.py
index 382042f235a..9f275f23a3b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template.py
index e05a48adf9f..c76d4a47c3e 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template_list.py
index f6d2c15c025..e99164c4aef 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template_spec.py
index 05068448e53..6be38d7e733 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_claim_template_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_pool.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_pool.py
index 65ce903ea16..d1713cd2ee9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_pool.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_pool.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice.py
index 73508c00470..e77b5e1388f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice_list.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice_list.py
index 9dffa3ab482..1dd610594a9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice_spec.py
index 5bbe485f232..dc69b3d513c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v1beta2_resource_slice_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_container_resource_metric_source.py b/contrib/python/kubernetes/kubernetes/client/models/v2_container_resource_metric_source.py
index 13a9797254f..6d473addefd 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_container_resource_metric_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_container_resource_metric_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_container_resource_metric_status.py b/contrib/python/kubernetes/kubernetes/client/models/v2_container_resource_metric_status.py
index f718f70a71b..e649a8b075a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_container_resource_metric_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_container_resource_metric_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_cross_version_object_reference.py b/contrib/python/kubernetes/kubernetes/client/models/v2_cross_version_object_reference.py
index b0fa259474d..3d6b12996f1 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_cross_version_object_reference.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_cross_version_object_reference.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_external_metric_source.py b/contrib/python/kubernetes/kubernetes/client/models/v2_external_metric_source.py
index e980a58d41d..ede3f181f31 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_external_metric_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_external_metric_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_external_metric_status.py b/contrib/python/kubernetes/kubernetes/client/models/v2_external_metric_status.py
index 46e4278af7f..88790c35ee9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_external_metric_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_external_metric_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler.py b/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler.py
index 86b491f635b..e95a59bfc47 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_behavior.py b/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_behavior.py
index ff299b0231d..1b3cab9f8cb 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_behavior.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_behavior.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_condition.py b/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_condition.py
index 823f852d2a7..0fdf46238b6 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_condition.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_condition.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_list.py b/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_list.py
index 93a7e8470e4..22ce4c78284 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_list.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_list.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_spec.py
index 58ecbef2591..abd3aad76f7 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_status.py b/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_status.py
index b522da2891e..3285be2d999 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_horizontal_pod_autoscaler_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_hpa_scaling_policy.py b/contrib/python/kubernetes/kubernetes/client/models/v2_hpa_scaling_policy.py
index 21019e0a0a2..3cd91575f8f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_hpa_scaling_policy.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_hpa_scaling_policy.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_hpa_scaling_rules.py b/contrib/python/kubernetes/kubernetes/client/models/v2_hpa_scaling_rules.py
index f80c6637ff1..8459ca8873d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_hpa_scaling_rules.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_hpa_scaling_rules.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_metric_identifier.py b/contrib/python/kubernetes/kubernetes/client/models/v2_metric_identifier.py
index 36df80006f4..b4eb29b0ebd 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_metric_identifier.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_metric_identifier.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_metric_spec.py b/contrib/python/kubernetes/kubernetes/client/models/v2_metric_spec.py
index ce50416566c..12765139b5c 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_metric_spec.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_metric_spec.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_metric_status.py b/contrib/python/kubernetes/kubernetes/client/models/v2_metric_status.py
index 84a41eab063..b6a81216e2b 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_metric_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_metric_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_metric_target.py b/contrib/python/kubernetes/kubernetes/client/models/v2_metric_target.py
index e6c0f93182d..275154ce032 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_metric_target.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_metric_target.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_metric_value_status.py b/contrib/python/kubernetes/kubernetes/client/models/v2_metric_value_status.py
index 5a674bd2767..2d8a801ec94 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_metric_value_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_metric_value_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_object_metric_source.py b/contrib/python/kubernetes/kubernetes/client/models/v2_object_metric_source.py
index 0d037f87f81..a41a8f25552 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_object_metric_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_object_metric_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_object_metric_status.py b/contrib/python/kubernetes/kubernetes/client/models/v2_object_metric_status.py
index c2f4a89d4bf..7b71fa5d7d9 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_object_metric_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_object_metric_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_pods_metric_source.py b/contrib/python/kubernetes/kubernetes/client/models/v2_pods_metric_source.py
index ec0a2e494fc..4ebe0334c4a 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_pods_metric_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_pods_metric_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_pods_metric_status.py b/contrib/python/kubernetes/kubernetes/client/models/v2_pods_metric_status.py
index 7dd8a436d8f..b7aed9d273d 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_pods_metric_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_pods_metric_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_resource_metric_source.py b/contrib/python/kubernetes/kubernetes/client/models/v2_resource_metric_source.py
index d60aa737f27..7197a23284f 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_resource_metric_source.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_resource_metric_source.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/v2_resource_metric_status.py b/contrib/python/kubernetes/kubernetes/client/models/v2_resource_metric_status.py
index 996504ee3cf..e962bb99dbe 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/v2_resource_metric_status.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/v2_resource_metric_status.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/models/version_info.py b/contrib/python/kubernetes/kubernetes/client/models/version_info.py
index d13e8c0f43f..17387e9d645 100644
--- a/contrib/python/kubernetes/kubernetes/client/models/version_info.py
+++ b/contrib/python/kubernetes/kubernetes/client/models/version_info.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/client/rest.py b/contrib/python/kubernetes/kubernetes/client/rest.py
index b5a33fd2d1f..bb97dfe3c74 100644
--- a/contrib/python/kubernetes/kubernetes/client/rest.py
+++ b/contrib/python/kubernetes/kubernetes/client/rest.py
@@ -5,7 +5,7 @@
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
- The version of the OpenAPI document: release-1.33
+ The version of the OpenAPI document: release-1.34
Generated by: https://openapi-generator.tech
"""
diff --git a/contrib/python/kubernetes/kubernetes/config/exec_provider.py b/contrib/python/kubernetes/kubernetes/config/exec_provider.py
index ae7049ada3f..95168f7f6ef 100644
--- a/contrib/python/kubernetes/kubernetes/config/exec_provider.py
+++ b/contrib/python/kubernetes/kubernetes/config/exec_provider.py
@@ -81,6 +81,11 @@ class ExecProvider(object):
kubernetes_exec_info['spec']['response'] = previous_response
if self.cluster:
kubernetes_exec_info['spec']['cluster'] = self.cluster.value
+ if self.cluster.value.get("extensions"):
+ for extension in self.cluster.value["extensions"]:
+ if extension["name"] == "client.authentication.k8s.io/exec":
+ kubernetes_exec_info["spec"]["cluster"]["config"] = extension["extension"]
+ break
self.env['KUBERNETES_EXEC_INFO'] = json.dumps(kubernetes_exec_info)
process = subprocess.Popen(
diff --git a/contrib/python/kubernetes/kubernetes/dynamic/discovery.py b/contrib/python/kubernetes/kubernetes/dynamic/discovery.py
index c00dfa3ef8b..3dd28af2683 100644
--- a/contrib/python/kubernetes/kubernetes/dynamic/discovery.py
+++ b/contrib/python/kubernetes/kubernetes/dynamic/discovery.py
@@ -22,6 +22,7 @@ from functools import partial
from collections import defaultdict
from abc import abstractmethod, abstractproperty
+from json.decoder import JSONDecodeError
from urllib3.exceptions import ProtocolError, MaxRetryError
from kubernetes import __version__
@@ -164,7 +165,8 @@ class Discoverer(object):
path = '/'.join(filter(None, [prefix, group, version]))
try:
resources_response = self.client.request('GET', path).resources or []
- except ServiceUnavailableError:
+ except (ServiceUnavailableError, JSONDecodeError):
+ # Handle both service unavailable errors and JSON decode errors
resources_response = []
resources_raw = list(filter(lambda resource: '/' not in resource['name'], resources_response))
diff --git a/contrib/python/kubernetes/kubernetes/watch/watch.py b/contrib/python/kubernetes/kubernetes/watch/watch.py
index 2ede8638c9a..e8fe6c63e61 100644
--- a/contrib/python/kubernetes/kubernetes/watch/watch.py
+++ b/contrib/python/kubernetes/kubernetes/watch/watch.py
@@ -179,6 +179,7 @@ class Watch(object):
# We want to ensure we are returning within that timeout.
disable_retries = ('timeout_seconds' in kwargs)
retry_after_410 = False
+ deserialize = kwargs.pop('deserialize', True)
while True:
resp = func(*args, **kwargs)
try:
@@ -186,7 +187,11 @@ class Watch(object):
# unmarshal when we are receiving events from watch,
# return raw string when we are streaming log
if watch_arg == "watch":
- event = self.unmarshal_event(line, return_type)
+ if deserialize:
+ event = self.unmarshal_event(line, return_type)
+ else:
+ # Only do basic JSON parsing, no deserialize
+ event = json.loads(line)
if isinstance(event, dict) \
and event['type'] == 'ERROR':
obj = event['raw_object']
diff --git a/contrib/python/kubernetes/ya.make b/contrib/python/kubernetes/ya.make
index 6b2c6fd83ba..d3b903fc5be 100644
--- a/contrib/python/kubernetes/ya.make
+++ b/contrib/python/kubernetes/ya.make
@@ -2,7 +2,7 @@
PY3_LIBRARY()
-VERSION(33.1.0)
+VERSION(34.1.0)
LICENSE(Apache-2.0)
@@ -11,7 +11,6 @@ PEERDIR(
contrib/python/certifi
contrib/python/durationpy
contrib/python/google-auth
- contrib/python/oauthlib
contrib/python/python-dateutil
contrib/python/requests
contrib/python/requests-oauthlib
@@ -78,6 +77,7 @@ PY_SRCS(
kubernetes/client/api/rbac_authorization_api.py
kubernetes/client/api/rbac_authorization_v1_api.py
kubernetes/client/api/resource_api.py
+ kubernetes/client/api/resource_v1_api.py
kubernetes/client/api/resource_v1alpha3_api.py
kubernetes/client/api/resource_v1beta1_api.py
kubernetes/client/api/resource_v1beta2_api.py
@@ -106,15 +106,19 @@ PY_SRCS(
kubernetes/client/models/core_v1_event.py
kubernetes/client/models/core_v1_event_list.py
kubernetes/client/models/core_v1_event_series.py
+ kubernetes/client/models/core_v1_resource_claim.py
kubernetes/client/models/discovery_v1_endpoint_port.py
kubernetes/client/models/events_v1_event.py
kubernetes/client/models/events_v1_event_list.py
kubernetes/client/models/events_v1_event_series.py
kubernetes/client/models/flowcontrol_v1_subject.py
kubernetes/client/models/rbac_v1_subject.py
+ kubernetes/client/models/resource_v1_resource_claim.py
kubernetes/client/models/storage_v1_token_request.py
kubernetes/client/models/v1_affinity.py
kubernetes/client/models/v1_aggregation_rule.py
+ kubernetes/client/models/v1_allocated_device_status.py
+ kubernetes/client/models/v1_allocation_result.py
kubernetes/client/models/v1_api_group.py
kubernetes/client/models/v1_api_group_list.py
kubernetes/client/models/v1_api_resource.py
@@ -135,6 +139,10 @@ PY_SRCS(
kubernetes/client/models/v1_binding.py
kubernetes/client/models/v1_bound_object_reference.py
kubernetes/client/models/v1_capabilities.py
+ kubernetes/client/models/v1_capacity_request_policy.py
+ kubernetes/client/models/v1_capacity_request_policy_range.py
+ kubernetes/client/models/v1_capacity_requirements.py
+ kubernetes/client/models/v1_cel_device_selector.py
kubernetes/client/models/v1_ceph_fs_persistent_volume_source.py
kubernetes/client/models/v1_ceph_fs_volume_source.py
kubernetes/client/models/v1_certificate_signing_request.py
@@ -162,9 +170,12 @@ PY_SRCS(
kubernetes/client/models/v1_config_map_projection.py
kubernetes/client/models/v1_config_map_volume_source.py
kubernetes/client/models/v1_container.py
+ kubernetes/client/models/v1_container_extended_resource_request.py
kubernetes/client/models/v1_container_image.py
kubernetes/client/models/v1_container_port.py
kubernetes/client/models/v1_container_resize_policy.py
+ kubernetes/client/models/v1_container_restart_rule.py
+ kubernetes/client/models/v1_container_restart_rule_on_exit_codes.py
kubernetes/client/models/v1_container_state.py
kubernetes/client/models/v1_container_state_running.py
kubernetes/client/models/v1_container_state_terminated.py
@@ -173,6 +184,8 @@ PY_SRCS(
kubernetes/client/models/v1_container_user.py
kubernetes/client/models/v1_controller_revision.py
kubernetes/client/models/v1_controller_revision_list.py
+ kubernetes/client/models/v1_counter.py
+ kubernetes/client/models/v1_counter_set.py
kubernetes/client/models/v1_cron_job.py
kubernetes/client/models/v1_cron_job_list.py
kubernetes/client/models/v1_cron_job_spec.py
@@ -215,6 +228,25 @@ PY_SRCS(
kubernetes/client/models/v1_deployment_spec.py
kubernetes/client/models/v1_deployment_status.py
kubernetes/client/models/v1_deployment_strategy.py
+ kubernetes/client/models/v1_device.py
+ kubernetes/client/models/v1_device_allocation_configuration.py
+ kubernetes/client/models/v1_device_allocation_result.py
+ kubernetes/client/models/v1_device_attribute.py
+ kubernetes/client/models/v1_device_capacity.py
+ kubernetes/client/models/v1_device_claim.py
+ kubernetes/client/models/v1_device_claim_configuration.py
+ kubernetes/client/models/v1_device_class.py
+ kubernetes/client/models/v1_device_class_configuration.py
+ kubernetes/client/models/v1_device_class_list.py
+ kubernetes/client/models/v1_device_class_spec.py
+ kubernetes/client/models/v1_device_constraint.py
+ kubernetes/client/models/v1_device_counter_consumption.py
+ kubernetes/client/models/v1_device_request.py
+ kubernetes/client/models/v1_device_request_allocation_result.py
+ kubernetes/client/models/v1_device_selector.py
+ kubernetes/client/models/v1_device_sub_request.py
+ kubernetes/client/models/v1_device_taint.py
+ kubernetes/client/models/v1_device_toleration.py
kubernetes/client/models/v1_downward_api_projection.py
kubernetes/client/models/v1_downward_api_volume_file.py
kubernetes/client/models/v1_downward_api_volume_source.py
@@ -235,6 +267,7 @@ PY_SRCS(
kubernetes/client/models/v1_ephemeral_volume_source.py
kubernetes/client/models/v1_event_source.py
kubernetes/client/models/v1_eviction.py
+ kubernetes/client/models/v1_exact_device_request.py
kubernetes/client/models/v1_exec_action.py
kubernetes/client/models/v1_exempt_priority_level_configuration.py
kubernetes/client/models/v1_expression_warning.py
@@ -242,6 +275,7 @@ PY_SRCS(
kubernetes/client/models/v1_fc_volume_source.py
kubernetes/client/models/v1_field_selector_attributes.py
kubernetes/client/models/v1_field_selector_requirement.py
+ kubernetes/client/models/v1_file_key_selector.py
kubernetes/client/models/v1_flex_persistent_volume_source.py
kubernetes/client/models/v1_flex_volume_source.py
kubernetes/client/models/v1_flocker_volume_source.py
@@ -335,6 +369,7 @@ PY_SRCS(
kubernetes/client/models/v1_namespace_list.py
kubernetes/client/models/v1_namespace_spec.py
kubernetes/client/models/v1_namespace_status.py
+ kubernetes/client/models/v1_network_device_data.py
kubernetes/client/models/v1_network_policy.py
kubernetes/client/models/v1_network_policy_egress_rule.py
kubernetes/client/models/v1_network_policy_ingress_rule.py
@@ -367,6 +402,7 @@ PY_SRCS(
kubernetes/client/models/v1_object_field_selector.py
kubernetes/client/models/v1_object_meta.py
kubernetes/client/models/v1_object_reference.py
+ kubernetes/client/models/v1_opaque_device_configuration.py
kubernetes/client/models/v1_overhead.py
kubernetes/client/models/v1_owner_reference.py
kubernetes/client/models/v1_param_kind.py
@@ -388,6 +424,7 @@ PY_SRCS(
kubernetes/client/models/v1_pod_affinity.py
kubernetes/client/models/v1_pod_affinity_term.py
kubernetes/client/models/v1_pod_anti_affinity.py
+ kubernetes/client/models/v1_pod_certificate_projection.py
kubernetes/client/models/v1_pod_condition.py
kubernetes/client/models/v1_pod_disruption_budget.py
kubernetes/client/models/v1_pod_disruption_budget_list.py
@@ -395,6 +432,7 @@ PY_SRCS(
kubernetes/client/models/v1_pod_disruption_budget_status.py
kubernetes/client/models/v1_pod_dns_config.py
kubernetes/client/models/v1_pod_dns_config_option.py
+ kubernetes/client/models/v1_pod_extended_resource_claim_status.py
kubernetes/client/models/v1_pod_failure_policy.py
kubernetes/client/models/v1_pod_failure_policy_on_exit_codes_requirement.py
kubernetes/client/models/v1_pod_failure_policy_on_pod_conditions_pattern.py
@@ -443,16 +481,26 @@ PY_SRCS(
kubernetes/client/models/v1_replication_controller_spec.py
kubernetes/client/models/v1_replication_controller_status.py
kubernetes/client/models/v1_resource_attributes.py
- kubernetes/client/models/v1_resource_claim.py
+ kubernetes/client/models/v1_resource_claim_consumer_reference.py
+ kubernetes/client/models/v1_resource_claim_list.py
+ kubernetes/client/models/v1_resource_claim_spec.py
+ kubernetes/client/models/v1_resource_claim_status.py
+ kubernetes/client/models/v1_resource_claim_template.py
+ kubernetes/client/models/v1_resource_claim_template_list.py
+ kubernetes/client/models/v1_resource_claim_template_spec.py
kubernetes/client/models/v1_resource_field_selector.py
kubernetes/client/models/v1_resource_health.py
kubernetes/client/models/v1_resource_policy_rule.py
+ kubernetes/client/models/v1_resource_pool.py
kubernetes/client/models/v1_resource_quota.py
kubernetes/client/models/v1_resource_quota_list.py
kubernetes/client/models/v1_resource_quota_spec.py
kubernetes/client/models/v1_resource_quota_status.py
kubernetes/client/models/v1_resource_requirements.py
kubernetes/client/models/v1_resource_rule.py
+ kubernetes/client/models/v1_resource_slice.py
+ kubernetes/client/models/v1_resource_slice_list.py
+ kubernetes/client/models/v1_resource_slice_spec.py
kubernetes/client/models/v1_resource_status.py
kubernetes/client/models/v1_role.py
kubernetes/client/models/v1_role_binding.py
@@ -565,6 +613,8 @@ PY_SRCS(
kubernetes/client/models/v1_volume_attachment_source.py
kubernetes/client/models/v1_volume_attachment_spec.py
kubernetes/client/models/v1_volume_attachment_status.py
+ kubernetes/client/models/v1_volume_attributes_class.py
+ kubernetes/client/models/v1_volume_attributes_class_list.py
kubernetes/client/models/v1_volume_device.py
kubernetes/client/models/v1_volume_error.py
kubernetes/client/models/v1_volume_mount.py
@@ -597,6 +647,10 @@ PY_SRCS(
kubernetes/client/models/v1alpha1_named_rule_with_operations.py
kubernetes/client/models/v1alpha1_param_kind.py
kubernetes/client/models/v1alpha1_param_ref.py
+ kubernetes/client/models/v1alpha1_pod_certificate_request.py
+ kubernetes/client/models/v1alpha1_pod_certificate_request_list.py
+ kubernetes/client/models/v1alpha1_pod_certificate_request_spec.py
+ kubernetes/client/models/v1alpha1_pod_certificate_request_status.py
kubernetes/client/models/v1alpha1_server_storage_version.py
kubernetes/client/models/v1alpha1_storage_version.py
kubernetes/client/models/v1alpha1_storage_version_condition.py
@@ -612,52 +666,20 @@ PY_SRCS(
kubernetes/client/models/v1alpha2_lease_candidate.py
kubernetes/client/models/v1alpha2_lease_candidate_list.py
kubernetes/client/models/v1alpha2_lease_candidate_spec.py
- kubernetes/client/models/v1alpha3_allocated_device_status.py
- kubernetes/client/models/v1alpha3_allocation_result.py
- kubernetes/client/models/v1alpha3_basic_device.py
kubernetes/client/models/v1alpha3_cel_device_selector.py
- kubernetes/client/models/v1alpha3_counter.py
- kubernetes/client/models/v1alpha3_counter_set.py
- kubernetes/client/models/v1alpha3_device.py
- kubernetes/client/models/v1alpha3_device_allocation_configuration.py
- kubernetes/client/models/v1alpha3_device_allocation_result.py
- kubernetes/client/models/v1alpha3_device_attribute.py
- kubernetes/client/models/v1alpha3_device_claim.py
- kubernetes/client/models/v1alpha3_device_claim_configuration.py
- kubernetes/client/models/v1alpha3_device_class.py
- kubernetes/client/models/v1alpha3_device_class_configuration.py
- kubernetes/client/models/v1alpha3_device_class_list.py
- kubernetes/client/models/v1alpha3_device_class_spec.py
- kubernetes/client/models/v1alpha3_device_constraint.py
- kubernetes/client/models/v1alpha3_device_counter_consumption.py
- kubernetes/client/models/v1alpha3_device_request.py
- kubernetes/client/models/v1alpha3_device_request_allocation_result.py
kubernetes/client/models/v1alpha3_device_selector.py
- kubernetes/client/models/v1alpha3_device_sub_request.py
kubernetes/client/models/v1alpha3_device_taint.py
kubernetes/client/models/v1alpha3_device_taint_rule.py
kubernetes/client/models/v1alpha3_device_taint_rule_list.py
kubernetes/client/models/v1alpha3_device_taint_rule_spec.py
kubernetes/client/models/v1alpha3_device_taint_selector.py
- kubernetes/client/models/v1alpha3_device_toleration.py
- kubernetes/client/models/v1alpha3_network_device_data.py
- kubernetes/client/models/v1alpha3_opaque_device_configuration.py
- kubernetes/client/models/v1alpha3_resource_claim.py
- kubernetes/client/models/v1alpha3_resource_claim_consumer_reference.py
- kubernetes/client/models/v1alpha3_resource_claim_list.py
- kubernetes/client/models/v1alpha3_resource_claim_spec.py
- kubernetes/client/models/v1alpha3_resource_claim_status.py
- kubernetes/client/models/v1alpha3_resource_claim_template.py
- kubernetes/client/models/v1alpha3_resource_claim_template_list.py
- kubernetes/client/models/v1alpha3_resource_claim_template_spec.py
- kubernetes/client/models/v1alpha3_resource_pool.py
- kubernetes/client/models/v1alpha3_resource_slice.py
- kubernetes/client/models/v1alpha3_resource_slice_list.py
- kubernetes/client/models/v1alpha3_resource_slice_spec.py
kubernetes/client/models/v1beta1_allocated_device_status.py
kubernetes/client/models/v1beta1_allocation_result.py
- kubernetes/client/models/v1beta1_audit_annotation.py
+ kubernetes/client/models/v1beta1_apply_configuration.py
kubernetes/client/models/v1beta1_basic_device.py
+ kubernetes/client/models/v1beta1_capacity_request_policy.py
+ kubernetes/client/models/v1beta1_capacity_request_policy_range.py
+ kubernetes/client/models/v1beta1_capacity_requirements.py
kubernetes/client/models/v1beta1_cel_device_selector.py
kubernetes/client/models/v1beta1_cluster_trust_bundle.py
kubernetes/client/models/v1beta1_cluster_trust_bundle_list.py
@@ -683,15 +705,22 @@ PY_SRCS(
kubernetes/client/models/v1beta1_device_sub_request.py
kubernetes/client/models/v1beta1_device_taint.py
kubernetes/client/models/v1beta1_device_toleration.py
- kubernetes/client/models/v1beta1_expression_warning.py
kubernetes/client/models/v1beta1_ip_address.py
kubernetes/client/models/v1beta1_ip_address_list.py
kubernetes/client/models/v1beta1_ip_address_spec.py
+ kubernetes/client/models/v1beta1_json_patch.py
kubernetes/client/models/v1beta1_lease_candidate.py
kubernetes/client/models/v1beta1_lease_candidate_list.py
kubernetes/client/models/v1beta1_lease_candidate_spec.py
kubernetes/client/models/v1beta1_match_condition.py
kubernetes/client/models/v1beta1_match_resources.py
+ kubernetes/client/models/v1beta1_mutating_admission_policy.py
+ kubernetes/client/models/v1beta1_mutating_admission_policy_binding.py
+ kubernetes/client/models/v1beta1_mutating_admission_policy_binding_list.py
+ kubernetes/client/models/v1beta1_mutating_admission_policy_binding_spec.py
+ kubernetes/client/models/v1beta1_mutating_admission_policy_list.py
+ kubernetes/client/models/v1beta1_mutating_admission_policy_spec.py
+ kubernetes/client/models/v1beta1_mutation.py
kubernetes/client/models/v1beta1_named_rule_with_operations.py
kubernetes/client/models/v1beta1_network_device_data.py
kubernetes/client/models/v1beta1_opaque_device_configuration.py
@@ -714,20 +743,14 @@ PY_SRCS(
kubernetes/client/models/v1beta1_service_cidr_list.py
kubernetes/client/models/v1beta1_service_cidr_spec.py
kubernetes/client/models/v1beta1_service_cidr_status.py
- kubernetes/client/models/v1beta1_type_checking.py
- kubernetes/client/models/v1beta1_validating_admission_policy.py
- kubernetes/client/models/v1beta1_validating_admission_policy_binding.py
- kubernetes/client/models/v1beta1_validating_admission_policy_binding_list.py
- kubernetes/client/models/v1beta1_validating_admission_policy_binding_spec.py
- kubernetes/client/models/v1beta1_validating_admission_policy_list.py
- kubernetes/client/models/v1beta1_validating_admission_policy_spec.py
- kubernetes/client/models/v1beta1_validating_admission_policy_status.py
- kubernetes/client/models/v1beta1_validation.py
kubernetes/client/models/v1beta1_variable.py
kubernetes/client/models/v1beta1_volume_attributes_class.py
kubernetes/client/models/v1beta1_volume_attributes_class_list.py
kubernetes/client/models/v1beta2_allocated_device_status.py
kubernetes/client/models/v1beta2_allocation_result.py
+ kubernetes/client/models/v1beta2_capacity_request_policy.py
+ kubernetes/client/models/v1beta2_capacity_request_policy_range.py
+ kubernetes/client/models/v1beta2_capacity_requirements.py
kubernetes/client/models/v1beta2_cel_device_selector.py
kubernetes/client/models/v1beta2_counter.py
kubernetes/client/models/v1beta2_counter_set.py