From 95681e9e9dc072e2bd72e6d6a9745ad2ec2da4aa Mon Sep 17 00:00:00 2001 From: Viktor Taskov Date: Tue, 5 Mar 2024 10:41:45 +0000 Subject: [PATCH] build(2.2.0): Generate SDK for SEP 2.2.0 (#71) * Change SDK project version * Obtain new swagger spec * Generate Python SDK from swagger --- config/python.json | 2 +- python/README.md | 28 +- .../docs/AWSElasticBlockStoreVolumeSource.md | 8 +- python/docs/AzureDiskVolumeSource.md | 8 +- python/docs/AzureFileVolumeSource.md | 6 +- python/docs/BatchJobDescription.md | 2 +- python/docs/CSIVolumeSource.md | 8 +- python/docs/CephFSVolumeSource.md | 10 +- python/docs/CinderVolumeSource.md | 6 +- python/docs/ClaimSource.md | 11 + python/docs/ConfigMapProjection.md | 4 +- python/docs/ConfigMapVolumeSource.md | 6 +- python/docs/Container.md | 10 +- python/docs/ContainerResizePolicy.md | 11 + python/docs/ContainerResourceMetricSource.md | 12 + ...olicyType.md => ContainerRestartPolicy.md} | 2 +- python/docs/ContainerStateTerminated.md | 2 +- python/docs/ContainerStatus.md | 16 +- python/docs/CrossVersionObjectReference.md | 6 +- python/docs/Deployment.md | 13 +- python/docs/DeploymentList.md | 2 +- python/docs/EnvVar.md | 2 +- python/docs/EphemeralContainer.md | 14 +- python/docs/EphemeralVolumeSource.md | 1 - python/docs/Experiment.md | 13 +- python/docs/ExternalMetricSource.md | 6 +- python/docs/FCVolumeSource.md | 10 +- python/docs/FlexVolumeSource.md | 8 +- python/docs/FlockerVolumeSource.md | 4 +- python/docs/GCEPersistentDiskVolumeSource.md | 8 +- python/docs/GRPCAction.md | 11 + python/docs/GitRepoVolumeSource.md | 6 +- python/docs/GlusterfsVolumeSource.md | 6 +- python/docs/HPAScalingPolicy.md | 4 +- python/docs/HPAScalingRules.md | 2 +- python/docs/HTTPHeader.md | 2 +- python/docs/HostIP.md | 10 + python/docs/HostPathVolumeSource.md | 2 +- python/docs/IPFamilyPolicy.md | 9 + python/docs/ISCSIVolumeSource.md | 20 +- python/docs/KeyToPath.md | 6 +- python/docs/LabelSelectorRequirement.md | 2 +- python/docs/Lifecycle.md | 4 +- .../docs/{Handler.md => LifecycleHandler.md} | 2 +- python/docs/ListMeta.md | 2 +- python/docs/ManagedFieldsEntry.md | 3 +- python/docs/MetricIdentifier.md | 11 + python/docs/MetricSpec.md | 1 + python/docs/MetricTarget.md | 13 + python/docs/Model.md | 13 +- python/docs/NFSVolumeSource.md | 6 +- python/docs/Namespace.md | 13 +- python/docs/NodeInclusionPolicy.md | 9 + python/docs/{NodePhase.md => OSName.md} | 2 +- python/docs/ObjectMeta.md | 13 +- python/docs/ObjectMetricSource.md | 8 +- python/docs/OwnerReference.md | 4 +- python/docs/PersistentVolumeClaimSpec.md | 7 +- python/docs/PersistentVolumeClaimTemplate.md | 13 +- .../docs/PersistentVolumeClaimVolumeSource.md | 4 +- .../docs/PhotonPersistentDiskVolumeSource.md | 4 +- python/docs/Pipeline.md | 13 +- python/docs/Pod.md | 13 +- python/docs/PodAffinityTerm.md | 3 +- python/docs/PodIP.md | 2 +- python/docs/PodList.md | 2 +- python/docs/PodOS.md | 10 + python/docs/PodResizeStatus.md | 9 + python/docs/PodResourceClaim.md | 11 + python/docs/PodResourceClaimStatus.md | 11 + python/docs/PodSchedulingGate.md | 10 + python/docs/PodSecurityContext.md | 10 +- python/docs/PodSpec.md | 16 +- python/docs/PodStatus.md | 11 +- python/docs/PodTemplateSpec.md | 13 +- python/docs/PodsMetricSource.md | 5 +- python/docs/PortworxVolumeSource.md | 6 +- python/docs/Probe.md | 2 + python/docs/ProjectedVolumeSource.md | 4 +- python/docs/QuobyteVolumeSource.md | 12 +- python/docs/RBDVolumeSource.md | 14 +- python/docs/ResourceClaim.md | 10 + python/docs/ResourceMetricSource.md | 3 +- python/docs/ResourceRequirements.md | 1 + python/docs/ResourceResizeRestartPolicy.md | 9 + python/docs/ScaleIOVolumeSource.md | 18 +- python/docs/SeccompProfile.md | 2 +- python/docs/SecretProjection.md | 4 +- python/docs/SecretVolumeSource.md | 8 +- python/docs/SecurityContext.md | 10 +- python/docs/SeldonHpaSpec.md | 1 + python/docs/Service.md | 13 +- python/docs/ServiceAccountTokenProjection.md | 6 +- python/docs/ServiceExternalTrafficPolicy.md | 9 + python/docs/ServiceInternalTrafficPolicy.md | 9 + python/docs/ServiceList.md | 2 +- python/docs/ServicePort.md | 4 +- python/docs/ServiceSpec.md | 22 +- python/docs/StorageOSVolumeSource.md | 8 +- python/docs/TopologySpreadConstraint.md | 8 +- python/docs/TypedObjectReference.md | 13 + python/docs/Volume.md | 2 +- python/docs/VsphereVirtualDiskVolumeSource.md | 8 +- python/docs/WindowsSecurityContextOptions.md | 1 + python/docs/WorkflowPhase.md | 9 + python/licenses/license.txt | 10 +- python/licenses/license_info.csv | 10 +- python/seldon_deploy_sdk/__init__.py | 26 +- python/seldon_deploy_sdk/api_client.py | 2 +- python/seldon_deploy_sdk/configuration.py | 2 +- python/seldon_deploy_sdk/models/__init__.py | 26 +- .../aws_elastic_block_store_volume_source.py | 16 +- .../models/azure_disk_volume_source.py | 16 +- .../models/azure_file_volume_source.py | 12 +- .../models/batch_job_description.py | 6 +- .../models/ceph_fs_volume_source.py | 20 +- .../models/cinder_volume_source.py | 12 +- .../seldon_deploy_sdk/models/claim_source.py | 145 ++ .../models/config_map_projection.py | 8 +- .../models/config_map_volume_source.py | 12 +- python/seldon_deploy_sdk/models/container.py | 72 +- .../models/container_resize_policy.py | 141 ++ .../container_resource_metric_source.py | 169 ++ ...cy_type.py => container_restart_policy.py} | 8 +- .../models/container_state_terminated.py | 4 +- .../models/container_status.py | 82 +- .../models/cross_version_object_reference.py | 12 +- .../models/csi_volume_source.py | 16 +- python/seldon_deploy_sdk/models/deployment.py | 54 +- .../models/deployment_list.py | 4 +- python/seldon_deploy_sdk/models/env_var.py | 4 +- .../models/ephemeral_container.py | 80 +- .../models/ephemeral_volume_source.py | 30 +- python/seldon_deploy_sdk/models/experiment.py | 54 +- .../models/external_metric_source.py | 120 +- .../models/fc_volume_source.py | 20 +- .../models/flex_volume_source.py | 16 +- .../models/flocker_volume_source.py | 8 +- .../gce_persistent_disk_volume_source.py | 16 +- .../models/git_repo_volume_source.py | 12 +- .../models/glusterfs_volume_source.py | 12 +- .../seldon_deploy_sdk/models/grpc_action.py | 145 ++ python/seldon_deploy_sdk/models/host_ip.py | 117 ++ .../models/host_path_volume_source.py | 4 +- .../models/hpa_scaling_policy.py | 8 +- .../models/hpa_scaling_rules.py | 4 +- .../seldon_deploy_sdk/models/http_header.py | 4 +- .../models/ip_family_policy.py | 87 + .../models/iscsi_volume_source.py | 40 +- .../seldon_deploy_sdk/models/key_to_path.py | 12 +- .../models/label_selector_requirement.py | 4 +- python/seldon_deploy_sdk/models/lifecycle.py | 12 +- .../{handler.py => lifecycle_handler.py} | 32 +- python/seldon_deploy_sdk/models/list_meta.py | 4 +- .../models/managed_fields_entry.py | 34 +- .../models/metric_identifier.py | 143 ++ .../seldon_deploy_sdk/models/metric_spec.py | 28 +- .../seldon_deploy_sdk/models/metric_target.py | 195 ++ python/seldon_deploy_sdk/models/model.py | 54 +- python/seldon_deploy_sdk/models/namespace.py | 54 +- .../models/nfs_volume_source.py | 12 +- .../models/node_inclusion_policy.py | 87 + .../seldon_deploy_sdk/models/object_meta.py | 54 +- .../models/object_metric_source.py | 128 +- .../models/{node_phase.py => os_name.py} | 8 +- .../models/owner_reference.py | 8 +- .../models/persistent_volume_claim_spec.py | 40 +- .../persistent_volume_claim_template.py | 54 +- .../persistent_volume_claim_volume_source.py | 8 +- .../photon_persistent_disk_volume_source.py | 8 +- python/seldon_deploy_sdk/models/pipeline.py | 54 +- python/seldon_deploy_sdk/models/pod.py | 54 +- .../models/pod_affinity_term.py | 32 +- python/seldon_deploy_sdk/models/pod_ip.py | 4 +- python/seldon_deploy_sdk/models/pod_list.py | 4 +- python/seldon_deploy_sdk/models/pod_os.py | 115 ++ .../models/pod_resize_status.py | 87 + .../models/pod_resource_claim.py | 143 ++ .../models/pod_resource_claim_status.py | 145 ++ .../models/pod_scheduling_gate.py | 117 ++ .../models/pod_security_context.py | 20 +- python/seldon_deploy_sdk/models/pod_spec.py | 136 +- python/seldon_deploy_sdk/models/pod_status.py | 100 +- .../models/pod_template_spec.py | 54 +- .../models/pods_metric_source.py | 94 +- .../models/portworx_volume_source.py | 12 +- python/seldon_deploy_sdk/models/probe.py | 56 +- .../models/projected_volume_source.py | 8 +- .../models/quobyte_volume_source.py | 24 +- .../models/rbd_volume_source.py | 28 +- .../models/resource_claim.py | 117 ++ .../models/resource_metric_source.py | 62 +- .../models/resource_requirements.py | 30 +- .../models/resource_resize_restart_policy.py | 87 + .../models/scale_io_volume_source.py | 36 +- .../models/seccomp_profile.py | 4 +- .../models/secret_projection.py | 8 +- .../models/secret_volume_source.py | 16 +- .../models/security_context.py | 20 +- .../models/seldon_hpa_spec.py | 28 +- python/seldon_deploy_sdk/models/service.py | 54 +- .../service_account_token_projection.py | 12 +- .../models/service_external_traffic_policy.py | 87 + .../models/service_internal_traffic_policy.py | 87 + .../seldon_deploy_sdk/models/service_list.py | 4 +- .../seldon_deploy_sdk/models/service_port.py | 8 +- .../seldon_deploy_sdk/models/service_spec.py | 230 ++- .../models/storage_os_volume_source.py | 16 +- .../models/topology_spread_constraint.py | 118 +- .../models/typed_object_reference.py | 201 +++ python/seldon_deploy_sdk/models/volume.py | 4 +- .../vsphere_virtual_disk_volume_source.py | 16 +- .../windows_security_context_options.py | 30 +- .../models/workflow_phase.py | 87 + python/setup.py | 2 +- python/test/test_claim_source.py | 40 + python/test/test_container_resize_policy.py | 40 + .../test_container_resource_metric_source.py | 40 + python/test/test_container_restart_policy.py | 40 + python/test/test_grpc_action.py | 40 + .../test/{test_handler.py => test_host_ip.py} | 12 +- python/test/test_ip_family_policy.py | 40 + python/test/test_lifecycle_handler.py | 40 + python/test/test_metric_identifier.py | 40 + python/test/test_metric_target.py | 40 + python/test/test_node_inclusion_policy.py | 40 + python/test/test_os_name.py | 40 + .../{test_node_phase.py => test_pod_os.py} | 12 +- python/test/test_pod_resize_status.py | 40 + python/test/test_pod_resource_claim.py | 40 + python/test/test_pod_resource_claim_status.py | 40 + python/test/test_pod_scheduling_gate.py | 40 + python/test/test_resource_claim.py | 40 + .../test_resource_resize_restart_policy.py | 40 + ...> test_service_external_traffic_policy.py} | 12 +- .../test_service_internal_traffic_policy.py | 40 + python/test/test_typed_object_reference.py | 40 + python/test/test_workflow_phase.py | 40 + swagger-v1alpha1.yml | 1589 +++++++++++------ 239 files changed, 6436 insertions(+), 2093 deletions(-) create mode 100644 python/docs/ClaimSource.md create mode 100644 python/docs/ContainerResizePolicy.md create mode 100644 python/docs/ContainerResourceMetricSource.md rename python/docs/{ServiceExternalTrafficPolicyType.md => ContainerRestartPolicy.md} (88%) create mode 100644 python/docs/GRPCAction.md create mode 100644 python/docs/HostIP.md create mode 100644 python/docs/IPFamilyPolicy.md rename python/docs/{Handler.md => LifecycleHandler.md} (96%) create mode 100644 python/docs/MetricIdentifier.md create mode 100644 python/docs/MetricTarget.md create mode 100644 python/docs/NodeInclusionPolicy.md rename python/docs/{NodePhase.md => OSName.md} (95%) create mode 100644 python/docs/PodOS.md create mode 100644 python/docs/PodResizeStatus.md create mode 100644 python/docs/PodResourceClaim.md create mode 100644 python/docs/PodResourceClaimStatus.md create mode 100644 python/docs/PodSchedulingGate.md create mode 100644 python/docs/ResourceClaim.md create mode 100644 python/docs/ResourceResizeRestartPolicy.md create mode 100644 python/docs/ServiceExternalTrafficPolicy.md create mode 100644 python/docs/ServiceInternalTrafficPolicy.md create mode 100644 python/docs/TypedObjectReference.md create mode 100644 python/docs/WorkflowPhase.md create mode 100644 python/seldon_deploy_sdk/models/claim_source.py create mode 100644 python/seldon_deploy_sdk/models/container_resize_policy.py create mode 100644 python/seldon_deploy_sdk/models/container_resource_metric_source.py rename python/seldon_deploy_sdk/models/{service_external_traffic_policy_type.py => container_restart_policy.py} (89%) create mode 100644 python/seldon_deploy_sdk/models/grpc_action.py create mode 100644 python/seldon_deploy_sdk/models/host_ip.py create mode 100644 python/seldon_deploy_sdk/models/ip_family_policy.py rename python/seldon_deploy_sdk/models/{handler.py => lifecycle_handler.py} (77%) create mode 100644 python/seldon_deploy_sdk/models/metric_identifier.py create mode 100644 python/seldon_deploy_sdk/models/metric_target.py create mode 100644 python/seldon_deploy_sdk/models/node_inclusion_policy.py rename python/seldon_deploy_sdk/models/{node_phase.py => os_name.py} (92%) create mode 100644 python/seldon_deploy_sdk/models/pod_os.py create mode 100644 python/seldon_deploy_sdk/models/pod_resize_status.py create mode 100644 python/seldon_deploy_sdk/models/pod_resource_claim.py create mode 100644 python/seldon_deploy_sdk/models/pod_resource_claim_status.py create mode 100644 python/seldon_deploy_sdk/models/pod_scheduling_gate.py create mode 100644 python/seldon_deploy_sdk/models/resource_claim.py create mode 100644 python/seldon_deploy_sdk/models/resource_resize_restart_policy.py create mode 100644 python/seldon_deploy_sdk/models/service_external_traffic_policy.py create mode 100644 python/seldon_deploy_sdk/models/service_internal_traffic_policy.py create mode 100644 python/seldon_deploy_sdk/models/typed_object_reference.py create mode 100644 python/seldon_deploy_sdk/models/workflow_phase.py create mode 100644 python/test/test_claim_source.py create mode 100644 python/test/test_container_resize_policy.py create mode 100644 python/test/test_container_resource_metric_source.py create mode 100644 python/test/test_container_restart_policy.py create mode 100644 python/test/test_grpc_action.py rename python/test/{test_handler.py => test_host_ip.py} (70%) create mode 100644 python/test/test_ip_family_policy.py create mode 100644 python/test/test_lifecycle_handler.py create mode 100644 python/test/test_metric_identifier.py create mode 100644 python/test/test_metric_target.py create mode 100644 python/test/test_node_inclusion_policy.py create mode 100644 python/test/test_os_name.py rename python/test/{test_node_phase.py => test_pod_os.py} (70%) create mode 100644 python/test/test_pod_resize_status.py create mode 100644 python/test/test_pod_resource_claim.py create mode 100644 python/test/test_pod_resource_claim_status.py create mode 100644 python/test/test_pod_scheduling_gate.py create mode 100644 python/test/test_resource_claim.py create mode 100644 python/test/test_resource_resize_restart_policy.py rename python/test/{test_service_external_traffic_policy_type.py => test_service_external_traffic_policy.py} (63%) create mode 100644 python/test/test_service_internal_traffic_policy.py create mode 100644 python/test/test_typed_object_reference.py create mode 100644 python/test/test_workflow_phase.py diff --git a/config/python.json b/config/python.json index d995e30..b0987a7 100644 --- a/config/python.json +++ b/config/python.json @@ -1,6 +1,6 @@ { "projectName": "seldon-deploy-sdk", "packageName": "seldon_deploy_sdk", - "packageVersion": "2.2.0rc9", + "packageVersion": "2.2.0", "packageUrl": "https://deploy.seldon.io" } diff --git a/python/README.md b/python/README.md index d60fd1e..d54c73b 100644 --- a/python/README.md +++ b/python/README.md @@ -4,7 +4,7 @@ API to interact and manage the lifecycle of your machine learning models deploye This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project: - API version: v1alpha1 -- Package version: 2.2.0rc9 +- Package version: 2.2.0 - Build package: io.swagger.codegen.languages.PythonClientCodegen ## Requirements @@ -238,6 +238,7 @@ Class | Method | HTTP request | Description - [Capability](docs/Capability.md) - [CephFSVolumeSource](docs/CephFSVolumeSource.md) - [CinderVolumeSource](docs/CinderVolumeSource.md) + - [ClaimSource](docs/ClaimSource.md) - [ClientIPConfig](docs/ClientIPConfig.md) - [ClusterInfo](docs/ClusterInfo.md) - [Component](docs/Component.md) @@ -249,6 +250,9 @@ Class | Method | HTTP request | Description - [ConfigMapVolumeSource](docs/ConfigMapVolumeSource.md) - [Container](docs/Container.md) - [ContainerPort](docs/ContainerPort.md) + - [ContainerResizePolicy](docs/ContainerResizePolicy.md) + - [ContainerResourceMetricSource](docs/ContainerResourceMetricSource.md) + - [ContainerRestartPolicy](docs/ContainerRestartPolicy.md) - [ContainerState](docs/ContainerState.md) - [ContainerStateRunning](docs/ContainerStateRunning.md) - [ContainerStateTerminated](docs/ContainerStateTerminated.md) @@ -306,6 +310,7 @@ Class | Method | HTTP request | Description - [FlexVolumeSource](docs/FlexVolumeSource.md) - [FlockerVolumeSource](docs/FlockerVolumeSource.md) - [GCEPersistentDiskVolumeSource](docs/GCEPersistentDiskVolumeSource.md) + - [GRPCAction](docs/GRPCAction.md) - [GitRepoVolumeSource](docs/GitRepoVolumeSource.md) - [GlusterfsVolumeSource](docs/GlusterfsVolumeSource.md) - [HPAScalingPolicy](docs/HPAScalingPolicy.md) @@ -313,14 +318,15 @@ Class | Method | HTTP request | Description - [HPAScalingRules](docs/HPAScalingRules.md) - [HTTPGetAction](docs/HTTPGetAction.md) - [HTTPHeader](docs/HTTPHeader.md) - - [Handler](docs/Handler.md) - [HealthCheckInfo](docs/HealthCheckInfo.md) - [HorizontalPodAutoscalerBehavior](docs/HorizontalPodAutoscalerBehavior.md) - [HorizontalPodAutoscalerConfig](docs/HorizontalPodAutoscalerConfig.md) - [HostAlias](docs/HostAlias.md) + - [HostIP](docs/HostIP.md) - [HostPathType](docs/HostPathType.md) - [HostPathVolumeSource](docs/HostPathVolumeSource.md) - [IPFamily](docs/IPFamily.md) + - [IPFamilyPolicy](docs/IPFamilyPolicy.md) - [ISCSIVolumeSource](docs/ISCSIVolumeSource.md) - [IntOrString](docs/IntOrString.md) - [JoinType](docs/JoinType.md) @@ -329,6 +335,7 @@ Class | Method | HTTP request | Description - [LabelSelectorOperator](docs/LabelSelectorOperator.md) - [LabelSelectorRequirement](docs/LabelSelectorRequirement.md) - [Lifecycle](docs/Lifecycle.md) + - [LifecycleHandler](docs/LifecycleHandler.md) - [ListMeta](docs/ListMeta.md) - [LocalObjectReference](docs/LocalObjectReference.md) - [Logger](docs/Logger.md) @@ -337,8 +344,10 @@ Class | Method | HTTP request | Description - [ManagedFieldsEntry](docs/ManagedFieldsEntry.md) - [ManagedFieldsOperationType](docs/ManagedFieldsOperationType.md) - [Message](docs/Message.md) + - [MetricIdentifier](docs/MetricIdentifier.md) - [MetricSourceType](docs/MetricSourceType.md) - [MetricSpec](docs/MetricSpec.md) + - [MetricTarget](docs/MetricTarget.md) - [MetricTargetType](docs/MetricTargetType.md) - [Model](docs/Model.md) - [ModelSpec](docs/ModelSpec.md) @@ -353,11 +362,12 @@ Class | Method | HTTP request | Description - [NamespaceSpec](docs/NamespaceSpec.md) - [NamespaceStatus](docs/NamespaceStatus.md) - [NodeAffinity](docs/NodeAffinity.md) - - [NodePhase](docs/NodePhase.md) + - [NodeInclusionPolicy](docs/NodeInclusionPolicy.md) - [NodeSelector](docs/NodeSelector.md) - [NodeSelectorOperator](docs/NodeSelectorOperator.md) - [NodeSelectorRequirement](docs/NodeSelectorRequirement.md) - [NodeSelectorTerm](docs/NodeSelectorTerm.md) + - [OSName](docs/OSName.md) - [ObjectFieldSelector](docs/ObjectFieldSelector.md) - [ObjectMeta](docs/ObjectMeta.md) - [ObjectMetricSource](docs/ObjectMetricSource.md) @@ -388,9 +398,14 @@ Class | Method | HTTP request | Description - [PodFSGroupChangePolicy](docs/PodFSGroupChangePolicy.md) - [PodIP](docs/PodIP.md) - [PodList](docs/PodList.md) + - [PodOS](docs/PodOS.md) - [PodPhase](docs/PodPhase.md) - [PodQOSClass](docs/PodQOSClass.md) - [PodReadinessGate](docs/PodReadinessGate.md) + - [PodResizeStatus](docs/PodResizeStatus.md) + - [PodResourceClaim](docs/PodResourceClaim.md) + - [PodResourceClaimStatus](docs/PodResourceClaimStatus.md) + - [PodSchedulingGate](docs/PodSchedulingGate.md) - [PodSecurityContext](docs/PodSecurityContext.md) - [PodSpec](docs/PodSpec.md) - [PodStatus](docs/PodStatus.md) @@ -414,11 +429,13 @@ Class | Method | HTTP request | Description - [Quantity](docs/Quantity.md) - [QuobyteVolumeSource](docs/QuobyteVolumeSource.md) - [RBDVolumeSource](docs/RBDVolumeSource.md) + - [ResourceClaim](docs/ResourceClaim.md) - [ResourceFieldSelector](docs/ResourceFieldSelector.md) - [ResourceList](docs/ResourceList.md) - [ResourceMetricSource](docs/ResourceMetricSource.md) - [ResourceName](docs/ResourceName.md) - [ResourceRequirements](docs/ResourceRequirements.md) + - [ResourceResizeRestartPolicy](docs/ResourceResizeRestartPolicy.md) - [ResourceType](docs/ResourceType.md) - [RestartPolicy](docs/RestartPolicy.md) - [RollingUpdateDeployment](docs/RollingUpdateDeployment.md) @@ -454,7 +471,8 @@ Class | Method | HTTP request | Description - [Service](docs/Service.md) - [ServiceAccountTokenProjection](docs/ServiceAccountTokenProjection.md) - [ServiceAffinity](docs/ServiceAffinity.md) - - [ServiceExternalTrafficPolicyType](docs/ServiceExternalTrafficPolicyType.md) + - [ServiceExternalTrafficPolicy](docs/ServiceExternalTrafficPolicy.md) + - [ServiceInternalTrafficPolicy](docs/ServiceInternalTrafficPolicy.md) - [ServiceList](docs/ServiceList.md) - [ServicePort](docs/ServicePort.md) - [ServiceSpec](docs/ServiceSpec.md) @@ -475,6 +493,7 @@ Class | Method | HTTP request | Description - [Transport](docs/Transport.md) - [Type](docs/Type.md) - [TypedLocalObjectReference](docs/TypedLocalObjectReference.md) + - [TypedObjectReference](docs/TypedObjectReference.md) - [UID](docs/UID.md) - [URIScheme](docs/URIScheme.md) - [UnsatisfiableConstraintAction](docs/UnsatisfiableConstraintAction.md) @@ -552,6 +571,7 @@ Class | Method | HTTP request | Description - [VsphereVirtualDiskVolumeSource](docs/VsphereVirtualDiskVolumeSource.md) - [WeightedPodAffinityTerm](docs/WeightedPodAffinityTerm.md) - [WindowsSecurityContextOptions](docs/WindowsSecurityContextOptions.md) + - [WorkflowPhase](docs/WorkflowPhase.md) ## Documentation For Authorization diff --git a/python/docs/AWSElasticBlockStoreVolumeSource.md b/python/docs/AWSElasticBlockStoreVolumeSource.md index 1f84b37..a4dd066 100644 --- a/python/docs/AWSElasticBlockStoreVolumeSource.md +++ b/python/docs/AWSElasticBlockStoreVolumeSource.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fs_type** | **str** | Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore TODO: how do we prevent errors in the filesystem from compromising the machine +optional | [optional] -**partition** | **int** | The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). +optional | [optional] -**read_only** | **bool** | Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore +optional | [optional] -**volume_id** | **str** | Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore | [optional] +**fs_type** | **str** | fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore TODO: how do we prevent errors in the filesystem from compromising the machine +optional | [optional] +**partition** | **int** | partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). +optional | [optional] +**read_only** | **bool** | readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore +optional | [optional] +**volume_id** | **str** | volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/AzureDiskVolumeSource.md b/python/docs/AzureDiskVolumeSource.md index 83d3c21..00ad391 100644 --- a/python/docs/AzureDiskVolumeSource.md +++ b/python/docs/AzureDiskVolumeSource.md @@ -4,11 +4,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **caching_mode** | [**AzureDataDiskCachingMode**](AzureDataDiskCachingMode.md) | | [optional] -**disk_name** | **str** | The Name of the data disk in the blob storage | [optional] -**disk_uri** | **str** | The URI the data disk in the blob storage | [optional] -**fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional | [optional] +**disk_name** | **str** | diskName is the Name of the data disk in the blob storage | [optional] +**disk_uri** | **str** | diskURI is the URI of data disk in the blob storage | [optional] +**fs_type** | **str** | fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional | [optional] **kind** | [**AzureDataDiskKind**](AzureDataDiskKind.md) | | [optional] -**read_only** | **bool** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional | [optional] +**read_only** | **bool** | readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/AzureFileVolumeSource.md b/python/docs/AzureFileVolumeSource.md index 90e0f24..c42458f 100644 --- a/python/docs/AzureFileVolumeSource.md +++ b/python/docs/AzureFileVolumeSource.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**read_only** | **bool** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional | [optional] -**secret_name** | **str** | the name of secret that contains Azure Storage Account Name and Key | [optional] -**share_name** | **str** | Share Name | [optional] +**read_only** | **bool** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional | [optional] +**secret_name** | **str** | secretName is the name of secret that contains Azure Storage Account Name and Key | [optional] +**share_name** | **str** | shareName is the azure share Name | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/BatchJobDescription.md b/python/docs/BatchJobDescription.md index 7445dfc..62aef9e 100644 --- a/python/docs/BatchJobDescription.md +++ b/python/docs/BatchJobDescription.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **finished_at** | **str** | Time when job finished | [optional] **started_at** | **str** | Time when job started | [optional] **workflow_name** | **str** | Name of related Argo Workflow | [optional] -**workflow_status** | [**NodePhase**](NodePhase.md) | | [optional] +**workflow_status** | [**WorkflowPhase**](WorkflowPhase.md) | | [optional] **workflow_uid** | [**UID**](UID.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/CSIVolumeSource.md b/python/docs/CSIVolumeSource.md index f277e44..dee76bc 100644 --- a/python/docs/CSIVolumeSource.md +++ b/python/docs/CSIVolumeSource.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**driver** | **str** | Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. | [optional] -**fs_type** | **str** | Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. +optional | [optional] +**driver** | **str** | driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. | [optional] +**fs_type** | **str** | fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. +optional | [optional] **node_publish_secret_ref** | [**LocalObjectReference**](LocalObjectReference.md) | | [optional] -**read_only** | **bool** | Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional | [optional] -**volume_attributes** | **dict(str, str)** | VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional | [optional] +**read_only** | **bool** | readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). +optional | [optional] +**volume_attributes** | **dict(str, str)** | volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/CephFSVolumeSource.md b/python/docs/CephFSVolumeSource.md index dc73a0d..8805455 100644 --- a/python/docs/CephFSVolumeSource.md +++ b/python/docs/CephFSVolumeSource.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**monitors** | **list[str]** | Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it | [optional] -**path** | **str** | Optional: Used as the mounted root, rather than the full Ceph tree, default is / +optional | [optional] -**read_only** | **bool** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional | [optional] -**secret_file** | **str** | Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional | [optional] +**monitors** | **list[str]** | monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it | [optional] +**path** | **str** | path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / +optional | [optional] +**read_only** | **bool** | readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional | [optional] +**secret_file** | **str** | secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional | [optional] **secret_ref** | [**LocalObjectReference**](LocalObjectReference.md) | | [optional] -**user** | **str** | Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional | [optional] +**user** | **str** | user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/CinderVolumeSource.md b/python/docs/CinderVolumeSource.md index b92628d..d69dafe 100644 --- a/python/docs/CinderVolumeSource.md +++ b/python/docs/CinderVolumeSource.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional | [optional] -**read_only** | **bool** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional | [optional] +**fs_type** | **str** | fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional | [optional] +**read_only** | **bool** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional | [optional] **secret_ref** | [**LocalObjectReference**](LocalObjectReference.md) | | [optional] -**volume_id** | **str** | volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md | [optional] +**volume_id** | **str** | volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/ClaimSource.md b/python/docs/ClaimSource.md new file mode 100644 index 0000000..5ccdf18 --- /dev/null +++ b/python/docs/ClaimSource.md @@ -0,0 +1,11 @@ +# ClaimSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource_claim_name** | **str** | ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. | [optional] +**resource_claim_template_name** | **str** | ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/ConfigMapProjection.md b/python/docs/ConfigMapProjection.md index c7c8b66..caf140b 100644 --- a/python/docs/ConfigMapProjection.md +++ b/python/docs/ConfigMapProjection.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[KeyToPath]**](KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional | [optional] +**items** | [**list[KeyToPath]**](KeyToPath.md) | items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional | [optional] **name** | **str** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid? +optional | [optional] -**optional** | **bool** | Specify whether the ConfigMap or its keys must be defined +optional | [optional] +**optional** | **bool** | optional specify whether the ConfigMap or its keys must be defined +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/ConfigMapVolumeSource.md b/python/docs/ConfigMapVolumeSource.md index 271698b..a3495bf 100644 --- a/python/docs/ConfigMapVolumeSource.md +++ b/python/docs/ConfigMapVolumeSource.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**default_mode** | **int** | Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional | [optional] -**items** | [**list[KeyToPath]**](KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional | [optional] +**default_mode** | **int** | defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional | [optional] +**items** | [**list[KeyToPath]**](KeyToPath.md) | items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional | [optional] **name** | **str** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid? +optional | [optional] -**optional** | **bool** | Specify whether the ConfigMap or its keys must be defined +optional | [optional] +**optional** | **bool** | optional specify whether the ConfigMap or its keys must be defined +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/Container.md b/python/docs/Container.md index 5244794..6a0fc93 100644 --- a/python/docs/Container.md +++ b/python/docs/Container.md @@ -3,18 +3,20 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**args** | **list[str]** | Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional | [optional] -**command** | **list[str]** | Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional | [optional] +**args** | **list[str]** | Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional | [optional] +**command** | **list[str]** | Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional | [optional] **env** | [**list[EnvVar]**](EnvVar.md) | List of environment variables to set in the container. Cannot be updated. +optional +patchMergeKey=name +patchStrategy=merge | [optional] **env_from** | [**list[EnvFromSource]**](EnvFromSource.md) | 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. +optional | [optional] -**image** | **str** | Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. +optional | [optional] +**image** | **str** | Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. +optional | [optional] **image_pull_policy** | [**PullPolicy**](PullPolicy.md) | | [optional] **lifecycle** | [**Lifecycle**](Lifecycle.md) | | [optional] **liveness_probe** | [**Probe**](Probe.md) | | [optional] **name** | **str** | Name of the container specified as a DNS_LABEL. Each container in a pod must have a unique name (DNS_LABEL). Cannot be updated. | [optional] -**ports** | [**list[ContainerPort]**](ContainerPort.md) | List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. +optional +patchMergeKey=containerPort +patchStrategy=merge +listType=map +listMapKey=containerPort +listMapKey=protocol | [optional] +**ports** | [**list[ContainerPort]**](ContainerPort.md) | List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. +optional +patchMergeKey=containerPort +patchStrategy=merge +listType=map +listMapKey=containerPort +listMapKey=protocol | [optional] **readiness_probe** | [**Probe**](Probe.md) | | [optional] +**resize_policy** | [**list[ContainerResizePolicy]**](ContainerResizePolicy.md) | Resources resize policy for the container. +featureGate=InPlacePodVerticalScaling +optional +listType=atomic | [optional] **resources** | [**ResourceRequirements**](ResourceRequirements.md) | | [optional] +**restart_policy** | [**ContainerRestartPolicy**](ContainerRestartPolicy.md) | | [optional] **security_context** | [**SecurityContext**](SecurityContext.md) | | [optional] **startup_probe** | [**Probe**](Probe.md) | | [optional] **stdin** | **bool** | Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. +optional | [optional] diff --git a/python/docs/ContainerResizePolicy.md b/python/docs/ContainerResizePolicy.md new file mode 100644 index 0000000..f5d1473 --- /dev/null +++ b/python/docs/ContainerResizePolicy.md @@ -0,0 +1,11 @@ +# ContainerResizePolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**resource_name** | [**ResourceName**](ResourceName.md) | | [optional] +**restart_policy** | [**ResourceResizeRestartPolicy**](ResourceResizeRestartPolicy.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/ContainerResourceMetricSource.md b/python/docs/ContainerResourceMetricSource.md new file mode 100644 index 0000000..449bed4 --- /dev/null +++ b/python/docs/ContainerResourceMetricSource.md @@ -0,0 +1,12 @@ +# ContainerResourceMetricSource + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**container** | **str** | container is the name of the container in the pods of the scaling target | [optional] +**name** | [**ResourceName**](ResourceName.md) | | [optional] +**target** | [**MetricTarget**](MetricTarget.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/ServiceExternalTrafficPolicyType.md b/python/docs/ContainerRestartPolicy.md similarity index 88% rename from python/docs/ServiceExternalTrafficPolicyType.md rename to python/docs/ContainerRestartPolicy.md index 16afcf5..00531a4 100644 --- a/python/docs/ServiceExternalTrafficPolicyType.md +++ b/python/docs/ContainerRestartPolicy.md @@ -1,4 +1,4 @@ -# ServiceExternalTrafficPolicyType +# ContainerRestartPolicy ## Properties Name | Type | Description | Notes diff --git a/python/docs/ContainerStateTerminated.md b/python/docs/ContainerStateTerminated.md index bd15d12..c5c22e5 100644 --- a/python/docs/ContainerStateTerminated.md +++ b/python/docs/ContainerStateTerminated.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**container_id** | **str** | Container's ID in the format 'docker://<container_id>' +optional | [optional] +**container_id** | **str** | Container's ID in the format '<type>://<container_id>' +optional | [optional] **exit_code** | **int** | Exit status from the last termination of the container | [optional] **finished_at** | **str** | Time at which the container last terminated +optional | [optional] **message** | **str** | Message regarding the last termination of the container +optional | [optional] diff --git a/python/docs/ContainerStatus.md b/python/docs/ContainerStatus.md index 7a2e5bf..2475ef9 100644 --- a/python/docs/ContainerStatus.md +++ b/python/docs/ContainerStatus.md @@ -3,14 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**container_id** | **str** | Container's ID in the format 'docker://<container_id>'. +optional | [optional] -**image** | **str** | The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images TODO(dchen1107): Which image the container is running with? | [optional] -**image_id** | **str** | ImageID of the container's image. | [optional] +**allocated_resources** | [**ResourceList**](ResourceList.md) | | [optional] +**container_id** | **str** | ContainerID is the ID of the container in the format '<type>://<container_id>'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\"). +optional | [optional] +**image** | **str** | Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images. | [optional] +**image_id** | **str** | ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime. | [optional] **last_state** | [**ContainerState**](ContainerState.md) | | [optional] -**name** | **str** | This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. | [optional] -**ready** | **bool** | Specifies whether the container has passed its readiness probe. | [optional] -**restart_count** | **int** | The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. | [optional] -**started** | **bool** | Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined. +optional | [optional] +**name** | **str** | Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated. | [optional] +**ready** | **bool** | Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). The value is typically used to determine whether a container is ready to accept traffic. | [optional] +**resources** | [**ResourceRequirements**](ResourceRequirements.md) | | [optional] +**restart_count** | **int** | RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative. | [optional] +**started** | **bool** | Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false. +optional | [optional] **state** | [**ContainerState**](ContainerState.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/CrossVersionObjectReference.md b/python/docs/CrossVersionObjectReference.md index 7969528..5e6cc5c 100644 --- a/python/docs/CrossVersionObjectReference.md +++ b/python/docs/CrossVersionObjectReference.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**api_version** | **str** | API version of the referent +optional | [optional] -**kind** | **str** | Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\" | [optional] -**name** | **str** | Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**api_version** | **str** | apiVersion is the API version of the referent +optional | [optional] +**kind** | **str** | kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] +**name** | **str** | name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/Deployment.md b/python/docs/Deployment.md index 1de43d9..107317a 100644 --- a/python/docs/Deployment.md +++ b/python/docs/Deployment.md @@ -3,23 +3,22 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional | [optional] +**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional | [optional] **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources +optional | [optional] -**cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional | [optional] **creation_timestamp** | **str** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. +optional | [optional] **deletion_timestamp** | **str** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. +optional +patchStrategy=merge | [optional] -**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] +**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. +optional | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +optional | [optional] -**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional | [optional] +**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional | [optional] **managed_fields** | [**list[ManagedFieldsEntry]**](ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. +optional | [optional] -**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional | [optional] -**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional | [optional] +**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional | [optional] +**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional | [optional] **owner_references** | [**list[OwnerReference]**](OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. +optional +patchMergeKey=uid +patchStrategy=merge | [optional] **resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional | [optional] -**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional | [optional] **spec** | [**DeploymentSpec**](DeploymentSpec.md) | | [optional] **status** | [**DeploymentStatus**](DeploymentStatus.md) | | [optional] **uid** | [**UID**](UID.md) | | [optional] diff --git a/python/docs/DeploymentList.md b/python/docs/DeploymentList.md index 5fb48be..475abfc 100644 --- a/python/docs/DeploymentList.md +++ b/python/docs/DeploymentList.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +optional | [optional] **remaining_item_count** | **int** | remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. +optional | [optional] **resource_version** | **str** | String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional | [optional] -**self_link** | **str** | selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/EnvVar.md b/python/docs/EnvVar.md index a753fe9..af24ff2 100644 --- a/python/docs/EnvVar.md +++ b/python/docs/EnvVar.md @@ -4,7 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **str** | Name of the environment variable. Must be a C_IDENTIFIER. | [optional] -**value** | **str** | Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". +optional | [optional] +**value** | **str** | Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". +optional | [optional] **value_from** | [**EnvVarSource**](EnvVarSource.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/EphemeralContainer.md b/python/docs/EphemeralContainer.md index 93e726c..de2447c 100644 --- a/python/docs/EphemeralContainer.md +++ b/python/docs/EphemeralContainer.md @@ -3,28 +3,30 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**args** | **list[str]** | Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional | [optional] -**command** | **list[str]** | Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional | [optional] +**args** | **list[str]** | Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional | [optional] +**command** | **list[str]** | Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional | [optional] **env** | [**list[EnvVar]**](EnvVar.md) | List of environment variables to set in the container. Cannot be updated. +optional +patchMergeKey=name +patchStrategy=merge | [optional] **env_from** | [**list[EnvFromSource]**](EnvFromSource.md) | 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. +optional | [optional] -**image** | **str** | Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images | [optional] +**image** | **str** | Container image name. More info: https://kubernetes.io/docs/concepts/containers/images | [optional] **image_pull_policy** | [**PullPolicy**](PullPolicy.md) | | [optional] **lifecycle** | [**Lifecycle**](Lifecycle.md) | | [optional] **liveness_probe** | [**Probe**](Probe.md) | | [optional] **name** | **str** | Name of the ephemeral container specified as a DNS_LABEL. This name must be unique among all containers, init containers and ephemeral containers. | [optional] -**ports** | [**list[ContainerPort]**](ContainerPort.md) | Ports are not allowed for ephemeral containers. | [optional] +**ports** | [**list[ContainerPort]**](ContainerPort.md) | Ports are not allowed for ephemeral containers. +optional +patchMergeKey=containerPort +patchStrategy=merge +listType=map +listMapKey=containerPort +listMapKey=protocol | [optional] **readiness_probe** | [**Probe**](Probe.md) | | [optional] +**resize_policy** | [**list[ContainerResizePolicy]**](ContainerResizePolicy.md) | Resources resize policy for the container. +featureGate=InPlacePodVerticalScaling +optional +listType=atomic | [optional] **resources** | [**ResourceRequirements**](ResourceRequirements.md) | | [optional] +**restart_policy** | [**ContainerRestartPolicy**](ContainerRestartPolicy.md) | | [optional] **security_context** | [**SecurityContext**](SecurityContext.md) | | [optional] **startup_probe** | [**Probe**](Probe.md) | | [optional] **stdin** | **bool** | Whether this container should allocate a buffer for stdin in the container runtime. If this is not set, reads from stdin in the container will always result in EOF. Default is false. +optional | [optional] **stdin_once** | **bool** | Whether the container runtime should close the stdin channel after it has been opened by a single attach. When stdin is true the stdin stream will remain open across multiple attach sessions. If stdinOnce is set to true, stdin is opened on container start, is empty until the first client attaches to stdin, and then remains open and accepts data until the client disconnects, at which time stdin is closed and remains closed until the container is restarted. If this flag is false, a container processes that reads from stdin will never receive an EOF. Default is false +optional | [optional] -**target_container_name** | **str** | If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. +optional | [optional] +**target_container_name** | **str** | If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional | [optional] **termination_message_path** | **str** | Optional: Path at which the file to which the container's termination message will be written is mounted into the container's filesystem. Message written is intended to be brief final status, such as an assertion failure message. Will be truncated by the node if greater than 4096 bytes. The total message length across all containers will be limited to 12kb. Defaults to /dev/termination-log. Cannot be updated. +optional | [optional] **termination_message_policy** | [**TerminationMessagePolicy**](TerminationMessagePolicy.md) | | [optional] **tty** | **bool** | Whether this container should allocate a TTY for itself, also requires 'stdin' to be true. Default is false. +optional | [optional] **volume_devices** | [**list[VolumeDevice]**](VolumeDevice.md) | volumeDevices is the list of block devices to be used by the container. +patchMergeKey=devicePath +patchStrategy=merge +optional | [optional] -**volume_mounts** | [**list[VolumeMount]**](VolumeMount.md) | Pod volumes to mount into the container's filesystem. Cannot be updated. +optional +patchMergeKey=mountPath +patchStrategy=merge | [optional] +**volume_mounts** | [**list[VolumeMount]**](VolumeMount.md) | Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated. +optional +patchMergeKey=mountPath +patchStrategy=merge | [optional] **working_dir** | **str** | Container's working directory. If not specified, the container runtime's default will be used, which might be configured in the container image. Cannot be updated. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/EphemeralVolumeSource.md b/python/docs/EphemeralVolumeSource.md index aa33771..6cda7e1 100644 --- a/python/docs/EphemeralVolumeSource.md +++ b/python/docs/EphemeralVolumeSource.md @@ -3,7 +3,6 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**read_only** | **bool** | Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional | [optional] **volume_claim_template** | [**PersistentVolumeClaimTemplate**](PersistentVolumeClaimTemplate.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/Experiment.md b/python/docs/Experiment.md index 0978605..ff3abec 100644 --- a/python/docs/Experiment.md +++ b/python/docs/Experiment.md @@ -3,23 +3,22 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional | [optional] +**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional | [optional] **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources +optional | [optional] -**cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional | [optional] **creation_timestamp** | **str** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. +optional | [optional] **deletion_timestamp** | **str** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. +optional +patchStrategy=merge | [optional] -**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] +**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. +optional | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +optional | [optional] -**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional | [optional] +**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional | [optional] **managed_fields** | [**list[ManagedFieldsEntry]**](ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. +optional | [optional] -**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional | [optional] -**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional | [optional] +**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional | [optional] +**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional | [optional] **owner_references** | [**list[OwnerReference]**](OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. +optional +patchMergeKey=uid +patchStrategy=merge | [optional] **resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional | [optional] -**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional | [optional] **spec** | [**ExperimentSpec**](ExperimentSpec.md) | | [optional] **status** | [**ExperimentStatus**](ExperimentStatus.md) | | [optional] **uid** | [**UID**](UID.md) | | [optional] diff --git a/python/docs/ExternalMetricSource.md b/python/docs/ExternalMetricSource.md index 176fe0f..8e535c8 100644 --- a/python/docs/ExternalMetricSource.md +++ b/python/docs/ExternalMetricSource.md @@ -3,10 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metric_name** | **str** | metricName is the name of the metric in question. | [optional] -**metric_selector** | [**LabelSelector**](LabelSelector.md) | | [optional] -**target_average_value** | [**Quantity**](Quantity.md) | | [optional] -**target_value** | [**Quantity**](Quantity.md) | | [optional] +**metric** | [**MetricIdentifier**](MetricIdentifier.md) | | [optional] +**target** | [**MetricTarget**](MetricTarget.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/FCVolumeSource.md b/python/docs/FCVolumeSource.md index 6b8b7d2..7405974 100644 --- a/python/docs/FCVolumeSource.md +++ b/python/docs/FCVolumeSource.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. TODO: how do we prevent errors in the filesystem from compromising the machine +optional | [optional] -**lun** | **int** | Optional: FC target lun number +optional | [optional] -**read_only** | **bool** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional | [optional] -**target_ww_ns** | **list[str]** | Optional: FC target worldwide names (WWNs) +optional | [optional] -**wwids** | **list[str]** | Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. +optional | [optional] +**fs_type** | **str** | fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. TODO: how do we prevent errors in the filesystem from compromising the machine +optional | [optional] +**lun** | **int** | lun is Optional: FC target lun number +optional | [optional] +**read_only** | **bool** | readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional | [optional] +**target_ww_ns** | **list[str]** | targetWWNs is Optional: FC target worldwide names (WWNs) +optional | [optional] +**wwids** | **list[str]** | wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/FlexVolumeSource.md b/python/docs/FlexVolumeSource.md index 5e4066c..22324d1 100644 --- a/python/docs/FlexVolumeSource.md +++ b/python/docs/FlexVolumeSource.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**driver** | **str** | Driver is the name of the driver to use for this volume. | [optional] -**fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. +optional | [optional] -**options** | **dict(str, str)** | Optional: Extra command options if any. +optional | [optional] -**read_only** | **bool** | Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional | [optional] +**driver** | **str** | driver is the name of the driver to use for this volume. | [optional] +**fs_type** | **str** | fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. +optional | [optional] +**options** | **dict(str, str)** | options is Optional: this field holds extra command options if any. +optional | [optional] +**read_only** | **bool** | readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional | [optional] **secret_ref** | [**LocalObjectReference**](LocalObjectReference.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/FlockerVolumeSource.md b/python/docs/FlockerVolumeSource.md index 79c352b..9ade38b 100644 --- a/python/docs/FlockerVolumeSource.md +++ b/python/docs/FlockerVolumeSource.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**dataset_name** | **str** | Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated +optional | [optional] -**dataset_uuid** | **str** | UUID of the dataset. This is unique identifier of a Flocker dataset +optional | [optional] +**dataset_name** | **str** | datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated +optional | [optional] +**dataset_uuid** | **str** | datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/GCEPersistentDiskVolumeSource.md b/python/docs/GCEPersistentDiskVolumeSource.md index 3ee42bb..08eaf33 100644 --- a/python/docs/GCEPersistentDiskVolumeSource.md +++ b/python/docs/GCEPersistentDiskVolumeSource.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fs_type** | **str** | Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine +optional | [optional] -**partition** | **int** | The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional | [optional] -**pd_name** | **str** | Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk | [optional] -**read_only** | **bool** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional | [optional] +**fs_type** | **str** | fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine +optional | [optional] +**partition** | **int** | partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional | [optional] +**pd_name** | **str** | pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk | [optional] +**read_only** | **bool** | readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/GRPCAction.md b/python/docs/GRPCAction.md new file mode 100644 index 0000000..0a5f37d --- /dev/null +++ b/python/docs/GRPCAction.md @@ -0,0 +1,11 @@ +# GRPCAction + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**port** | **int** | Port number of the gRPC service. Number must be in the range 1 to 65535. | [optional] +**service** | **str** | Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. +optional +default=\"\" | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/GitRepoVolumeSource.md b/python/docs/GitRepoVolumeSource.md index 1440c48..358d0cf 100644 --- a/python/docs/GitRepoVolumeSource.md +++ b/python/docs/GitRepoVolumeSource.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**directory** | **str** | Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. +optional | [optional] -**repository** | **str** | Repository URL | [optional] -**revision** | **str** | Commit hash for the specified revision. +optional | [optional] +**directory** | **str** | directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. +optional | [optional] +**repository** | **str** | repository is the URL | [optional] +**revision** | **str** | revision is the commit hash for the specified revision. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/GlusterfsVolumeSource.md b/python/docs/GlusterfsVolumeSource.md index 06f0bad..8b281ad 100644 --- a/python/docs/GlusterfsVolumeSource.md +++ b/python/docs/GlusterfsVolumeSource.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**endpoints** | **str** | EndpointsName is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | [optional] -**path** | **str** | Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | [optional] -**read_only** | **bool** | ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod +optional | [optional] +**endpoints** | **str** | endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | [optional] +**path** | **str** | path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod | [optional] +**read_only** | **bool** | readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/HPAScalingPolicy.md b/python/docs/HPAScalingPolicy.md index 2c04128..d0cf766 100644 --- a/python/docs/HPAScalingPolicy.md +++ b/python/docs/HPAScalingPolicy.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**period_seconds** | **int** | PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). | [optional] +**period_seconds** | **int** | periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). | [optional] **type** | [**HPAScalingPolicyType**](HPAScalingPolicyType.md) | | [optional] -**value** | **int** | Value contains the amount of change which is permitted by the policy. It must be greater than zero | [optional] +**value** | **int** | value contains the amount of change which is permitted by the policy. It must be greater than zero | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/HPAScalingRules.md b/python/docs/HPAScalingRules.md index 414029e..4889797 100644 --- a/python/docs/HPAScalingRules.md +++ b/python/docs/HPAScalingRules.md @@ -5,7 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **policies** | [**list[HPAScalingPolicy]**](HPAScalingPolicy.md) | policies is a list of potential scaling polices which can be used during scaling. At least one policy must be specified, otherwise the HPAScalingRules will be discarded as invalid +optional | [optional] **select_policy** | [**ScalingPolicySelect**](ScalingPolicySelect.md) | | [optional] -**stabilization_window_seconds** | **int** | StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: For scale up: 0 (i.e. no stabilization is done). For scale down: 300 (i.e. the stabilization window is 300 seconds long). +optional | [optional] +**stabilization_window_seconds** | **int** | stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: For scale up: 0 (i.e. no stabilization is done). For scale down: 300 (i.e. the stabilization window is 300 seconds long). +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/HTTPHeader.md b/python/docs/HTTPHeader.md index ad39b5e..47270f4 100644 --- a/python/docs/HTTPHeader.md +++ b/python/docs/HTTPHeader.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**name** | **str** | The header field name | [optional] +**name** | **str** | The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header. | [optional] **value** | **str** | The header field value | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/HostIP.md b/python/docs/HostIP.md new file mode 100644 index 0000000..3184236 --- /dev/null +++ b/python/docs/HostIP.md @@ -0,0 +1,10 @@ +# HostIP + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**ip** | **str** | IP is the IP address assigned to the host | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/HostPathVolumeSource.md b/python/docs/HostPathVolumeSource.md index fe40a12..ddeffd1 100644 --- a/python/docs/HostPathVolumeSource.md +++ b/python/docs/HostPathVolumeSource.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**path** | **str** | Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath | [optional] +**path** | **str** | path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath | [optional] **type** | [**HostPathType**](HostPathType.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/IPFamilyPolicy.md b/python/docs/IPFamilyPolicy.md new file mode 100644 index 0000000..87d941a --- /dev/null +++ b/python/docs/IPFamilyPolicy.md @@ -0,0 +1,9 @@ +# IPFamilyPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/ISCSIVolumeSource.md b/python/docs/ISCSIVolumeSource.md index 8338dfa..f8aa8f7 100644 --- a/python/docs/ISCSIVolumeSource.md +++ b/python/docs/ISCSIVolumeSource.md @@ -3,17 +3,17 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**chap_auth_discovery** | **bool** | whether support iSCSI Discovery CHAP authentication +optional | [optional] -**chap_auth_session** | **bool** | whether support iSCSI Session CHAP authentication +optional | [optional] -**fs_type** | **str** | Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi TODO: how do we prevent errors in the filesystem from compromising the machine +optional | [optional] -**initiator_name** | **str** | Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection. +optional | [optional] -**iqn** | **str** | Target iSCSI Qualified Name. | [optional] -**iscsi_interface** | **str** | iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). +optional | [optional] -**lun** | **int** | iSCSI Target Lun number. | [optional] -**portals** | **list[str]** | iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). +optional | [optional] -**read_only** | **bool** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. +optional | [optional] +**chap_auth_discovery** | **bool** | chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication +optional | [optional] +**chap_auth_session** | **bool** | chapAuthSession defines whether support iSCSI Session CHAP authentication +optional | [optional] +**fs_type** | **str** | fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi TODO: how do we prevent errors in the filesystem from compromising the machine +optional | [optional] +**initiator_name** | **str** | initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface <target portal>:<volume name> will be created for the connection. +optional | [optional] +**iqn** | **str** | iqn is the target iSCSI Qualified Name. | [optional] +**iscsi_interface** | **str** | iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). +optional | [optional] +**lun** | **int** | lun represents iSCSI Target Lun number. | [optional] +**portals** | **list[str]** | portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). +optional | [optional] +**read_only** | **bool** | readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. +optional | [optional] **secret_ref** | [**LocalObjectReference**](LocalObjectReference.md) | | [optional] -**target_portal** | **str** | iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | [optional] +**target_portal** | **str** | targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/KeyToPath.md b/python/docs/KeyToPath.md index 28b0d96..aa8dc0b 100644 --- a/python/docs/KeyToPath.md +++ b/python/docs/KeyToPath.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**key** | **str** | The key to project. | [optional] -**mode** | **int** | Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional | [optional] -**path** | **str** | The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. | [optional] +**key** | **str** | key is the key to project. | [optional] +**mode** | **int** | mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional | [optional] +**path** | **str** | path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/LabelSelectorRequirement.md b/python/docs/LabelSelectorRequirement.md index 04a91ad..d333eea 100644 --- a/python/docs/LabelSelectorRequirement.md +++ b/python/docs/LabelSelectorRequirement.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**key** | **str** | key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge | [optional] +**key** | **str** | key is the label key that the selector applies to. | [optional] **operator** | [**LabelSelectorOperator**](LabelSelectorOperator.md) | | [optional] **values** | **list[str]** | values is an array of string values. If the operator is In or NotIn, the values array must be non-empty. If the operator is Exists or DoesNotExist, the values array must be empty. This array is replaced during a strategic merge patch. +optional | [optional] diff --git a/python/docs/Lifecycle.md b/python/docs/Lifecycle.md index 3af56a2..be0af8e 100644 --- a/python/docs/Lifecycle.md +++ b/python/docs/Lifecycle.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**post_start** | [**Handler**](Handler.md) | | [optional] -**pre_stop** | [**Handler**](Handler.md) | | [optional] +**post_start** | [**LifecycleHandler**](LifecycleHandler.md) | | [optional] +**pre_stop** | [**LifecycleHandler**](LifecycleHandler.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/Handler.md b/python/docs/LifecycleHandler.md similarity index 96% rename from python/docs/Handler.md rename to python/docs/LifecycleHandler.md index 11b90f1..f6d27ce 100644 --- a/python/docs/Handler.md +++ b/python/docs/LifecycleHandler.md @@ -1,4 +1,4 @@ -# Handler +# LifecycleHandler ## Properties Name | Type | Description | Notes diff --git a/python/docs/ListMeta.md b/python/docs/ListMeta.md index 773ca89..ae4171b 100644 --- a/python/docs/ListMeta.md +++ b/python/docs/ListMeta.md @@ -6,7 +6,7 @@ Name | Type | Description | Notes **_continue** | **str** | continue may be set if the user set a limit on the number of items returned, and indicates that the server has more data available. The value is opaque and may be used to issue another request to the endpoint that served this list to retrieve the next set of available objects. Continuing a consistent list may not be possible if the server configuration has changed or more than a few minutes have passed. The resourceVersion field returned when using this continue value will be identical to the value in the first response, unless you have received this token from an error message. | [optional] **remaining_item_count** | **int** | remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. +optional | [optional] **resource_version** | **str** | String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional | [optional] -**self_link** | **str** | selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/ManagedFieldsEntry.md b/python/docs/ManagedFieldsEntry.md index 4e11c9e..2397a5a 100644 --- a/python/docs/ManagedFieldsEntry.md +++ b/python/docs/ManagedFieldsEntry.md @@ -8,7 +8,8 @@ Name | Type | Description | Notes **fields_v1** | [**FieldsV1**](FieldsV1.md) | | [optional] **manager** | **str** | Manager is an identifier of the workflow managing these fields. | [optional] **operation** | [**ManagedFieldsOperationType**](ManagedFieldsOperationType.md) | | [optional] -**time** | **str** | Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' +optional | [optional] +**subresource** | **str** | Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. | [optional] +**time** | **str** | Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/MetricIdentifier.md b/python/docs/MetricIdentifier.md new file mode 100644 index 0000000..911e5fd --- /dev/null +++ b/python/docs/MetricIdentifier.md @@ -0,0 +1,11 @@ +# MetricIdentifier + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | name is the name of the given metric | [optional] +**selector** | [**LabelSelector**](LabelSelector.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/MetricSpec.md b/python/docs/MetricSpec.md index 86eafbd..a277fb8 100644 --- a/python/docs/MetricSpec.md +++ b/python/docs/MetricSpec.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**container_resource** | [**ContainerResourceMetricSource**](ContainerResourceMetricSource.md) | | [optional] **external** | [**ExternalMetricSource**](ExternalMetricSource.md) | | [optional] **object** | [**ObjectMetricSource**](ObjectMetricSource.md) | | [optional] **pods** | [**PodsMetricSource**](PodsMetricSource.md) | | [optional] diff --git a/python/docs/MetricTarget.md b/python/docs/MetricTarget.md new file mode 100644 index 0000000..47377c9 --- /dev/null +++ b/python/docs/MetricTarget.md @@ -0,0 +1,13 @@ +# MetricTarget + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**average_utilization** | **int** | averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type +optional | [optional] +**average_value** | [**Quantity**](Quantity.md) | | [optional] +**type** | [**MetricTargetType**](MetricTargetType.md) | | [optional] +**value** | [**Quantity**](Quantity.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/Model.md b/python/docs/Model.md index d6d3854..642f2ed 100644 --- a/python/docs/Model.md +++ b/python/docs/Model.md @@ -3,23 +3,22 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional | [optional] +**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional | [optional] **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources +optional | [optional] -**cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional | [optional] **creation_timestamp** | **str** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. +optional | [optional] **deletion_timestamp** | **str** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. +optional +patchStrategy=merge | [optional] -**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] +**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. +optional | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +optional | [optional] -**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional | [optional] +**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional | [optional] **managed_fields** | [**list[ManagedFieldsEntry]**](ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. +optional | [optional] -**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional | [optional] -**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional | [optional] +**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional | [optional] +**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional | [optional] **owner_references** | [**list[OwnerReference]**](OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. +optional +patchMergeKey=uid +patchStrategy=merge | [optional] **resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional | [optional] -**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional | [optional] **spec** | [**ModelSpec**](ModelSpec.md) | | [optional] **status** | [**ModelStatus**](ModelStatus.md) | | [optional] **uid** | [**UID**](UID.md) | | [optional] diff --git a/python/docs/NFSVolumeSource.md b/python/docs/NFSVolumeSource.md index c20ece9..4ba1a75 100644 --- a/python/docs/NFSVolumeSource.md +++ b/python/docs/NFSVolumeSource.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**path** | **str** | Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | [optional] -**read_only** | **bool** | ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs +optional | [optional] -**server** | **str** | Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | [optional] +**path** | **str** | path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | [optional] +**read_only** | **bool** | readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs +optional | [optional] +**server** | **str** | server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/Namespace.md b/python/docs/Namespace.md index 50665be..b913050 100644 --- a/python/docs/Namespace.md +++ b/python/docs/Namespace.md @@ -3,23 +3,22 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional | [optional] +**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional | [optional] **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources +optional | [optional] -**cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional | [optional] **creation_timestamp** | **str** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. +optional | [optional] **deletion_timestamp** | **str** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. +optional +patchStrategy=merge | [optional] -**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] +**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. +optional | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +optional | [optional] -**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional | [optional] +**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional | [optional] **managed_fields** | [**list[ManagedFieldsEntry]**](ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. +optional | [optional] -**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional | [optional] -**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional | [optional] +**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional | [optional] +**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional | [optional] **owner_references** | [**list[OwnerReference]**](OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. +optional +patchMergeKey=uid +patchStrategy=merge | [optional] **resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional | [optional] -**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional | [optional] **spec** | [**NamespaceSpec**](NamespaceSpec.md) | | [optional] **status** | [**NamespaceStatus**](NamespaceStatus.md) | | [optional] **uid** | [**UID**](UID.md) | | [optional] diff --git a/python/docs/NodeInclusionPolicy.md b/python/docs/NodeInclusionPolicy.md new file mode 100644 index 0000000..6509517 --- /dev/null +++ b/python/docs/NodeInclusionPolicy.md @@ -0,0 +1,9 @@ +# NodeInclusionPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/NodePhase.md b/python/docs/OSName.md similarity index 95% rename from python/docs/NodePhase.md rename to python/docs/OSName.md index 819ec75..dc580e6 100644 --- a/python/docs/NodePhase.md +++ b/python/docs/OSName.md @@ -1,4 +1,4 @@ -# NodePhase +# OSName ## Properties Name | Type | Description | Notes diff --git a/python/docs/ObjectMeta.md b/python/docs/ObjectMeta.md index 290c59b..d7ba076 100644 --- a/python/docs/ObjectMeta.md +++ b/python/docs/ObjectMeta.md @@ -3,21 +3,20 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional | [optional] -**cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional | [optional] +**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional | [optional] **creation_timestamp** | **str** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. +optional | [optional] **deletion_timestamp** | **str** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. +optional +patchStrategy=merge | [optional] -**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] +**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. +optional | [optional] -**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional | [optional] +**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional | [optional] **managed_fields** | [**list[ManagedFieldsEntry]**](ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. +optional | [optional] -**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional | [optional] -**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional | [optional] +**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional | [optional] +**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional | [optional] **owner_references** | [**list[OwnerReference]**](OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. +optional +patchMergeKey=uid +patchStrategy=merge | [optional] **resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional | [optional] -**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional | [optional] **uid** | [**UID**](UID.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/ObjectMetricSource.md b/python/docs/ObjectMetricSource.md index d761629..81a4880 100644 --- a/python/docs/ObjectMetricSource.md +++ b/python/docs/ObjectMetricSource.md @@ -3,11 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**average_value** | [**Quantity**](Quantity.md) | | [optional] -**metric_name** | **str** | metricName is the name of the metric in question. | [optional] -**selector** | [**LabelSelector**](LabelSelector.md) | | [optional] -**target** | [**CrossVersionObjectReference**](CrossVersionObjectReference.md) | | [optional] -**target_value** | [**Quantity**](Quantity.md) | | [optional] +**described_object** | [**CrossVersionObjectReference**](CrossVersionObjectReference.md) | | [optional] +**metric** | [**MetricIdentifier**](MetricIdentifier.md) | | [optional] +**target** | [**MetricTarget**](MetricTarget.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/OwnerReference.md b/python/docs/OwnerReference.md index abcdf45..d59e769 100644 --- a/python/docs/OwnerReference.md +++ b/python/docs/OwnerReference.md @@ -4,10 +4,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **api_version** | **str** | API version of the referent. | [optional] -**block_owner_deletion** | **bool** | If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. +optional | [optional] +**block_owner_deletion** | **bool** | If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. +optional | [optional] **controller** | **bool** | If true, this reference points to the managing controller. +optional | [optional] **kind** | **str** | Kind of the referent. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds | [optional] -**name** | **str** | Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names | [optional] +**name** | **str** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names | [optional] **uid** | [**UID**](UID.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/PersistentVolumeClaimSpec.md b/python/docs/PersistentVolumeClaimSpec.md index 50eb3bb..bf33e8d 100644 --- a/python/docs/PersistentVolumeClaimSpec.md +++ b/python/docs/PersistentVolumeClaimSpec.md @@ -3,13 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**access_modes** | [**list[PersistentVolumeAccessMode]**](PersistentVolumeAccessMode.md) | AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional | [optional] +**access_modes** | [**list[PersistentVolumeAccessMode]**](PersistentVolumeAccessMode.md) | accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional | [optional] **data_source** | [**TypedLocalObjectReference**](TypedLocalObjectReference.md) | | [optional] +**data_source_ref** | [**TypedObjectReference**](TypedObjectReference.md) | | [optional] **resources** | [**ResourceRequirements**](ResourceRequirements.md) | | [optional] **selector** | [**LabelSelector**](LabelSelector.md) | | [optional] -**storage_class_name** | **str** | Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional | [optional] +**storage_class_name** | **str** | storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional | [optional] **volume_mode** | [**PersistentVolumeMode**](PersistentVolumeMode.md) | | [optional] -**volume_name** | **str** | VolumeName is the binding reference to the PersistentVolume backing this claim. +optional | [optional] +**volume_name** | **str** | volumeName is the binding reference to the PersistentVolume backing this claim. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/PersistentVolumeClaimTemplate.md b/python/docs/PersistentVolumeClaimTemplate.md index 8ba1409..1d3671b 100644 --- a/python/docs/PersistentVolumeClaimTemplate.md +++ b/python/docs/PersistentVolumeClaimTemplate.md @@ -3,21 +3,20 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional | [optional] -**cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional | [optional] +**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional | [optional] **creation_timestamp** | **str** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. +optional | [optional] **deletion_timestamp** | **str** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. +optional +patchStrategy=merge | [optional] -**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] +**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. +optional | [optional] -**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional | [optional] +**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional | [optional] **managed_fields** | [**list[ManagedFieldsEntry]**](ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. +optional | [optional] -**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional | [optional] -**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional | [optional] +**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional | [optional] +**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional | [optional] **owner_references** | [**list[OwnerReference]**](OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. +optional +patchMergeKey=uid +patchStrategy=merge | [optional] **resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional | [optional] -**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional | [optional] **spec** | [**PersistentVolumeClaimSpec**](PersistentVolumeClaimSpec.md) | | [optional] **uid** | [**UID**](UID.md) | | [optional] diff --git a/python/docs/PersistentVolumeClaimVolumeSource.md b/python/docs/PersistentVolumeClaimVolumeSource.md index 7f5a809..3bfeb61 100644 --- a/python/docs/PersistentVolumeClaimVolumeSource.md +++ b/python/docs/PersistentVolumeClaimVolumeSource.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**claim_name** | **str** | ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] -**read_only** | **bool** | Will force the ReadOnly setting in VolumeMounts. Default false. +optional | [optional] +**claim_name** | **str** | claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims | [optional] +**read_only** | **bool** | readOnly Will force the ReadOnly setting in VolumeMounts. Default false. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/PhotonPersistentDiskVolumeSource.md b/python/docs/PhotonPersistentDiskVolumeSource.md index 9c7be5f..706476f 100644 --- a/python/docs/PhotonPersistentDiskVolumeSource.md +++ b/python/docs/PhotonPersistentDiskVolumeSource.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] -**pd_id** | **str** | ID that identifies Photon Controller persistent disk | [optional] +**fs_type** | **str** | fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] +**pd_id** | **str** | pdID is the ID that identifies Photon Controller persistent disk | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/Pipeline.md b/python/docs/Pipeline.md index 8135e76..d1a5594 100644 --- a/python/docs/Pipeline.md +++ b/python/docs/Pipeline.md @@ -3,23 +3,22 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional | [optional] +**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional | [optional] **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources +optional | [optional] -**cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional | [optional] **creation_timestamp** | **str** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. +optional | [optional] **deletion_timestamp** | **str** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. +optional +patchStrategy=merge | [optional] -**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] +**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. +optional | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +optional | [optional] -**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional | [optional] +**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional | [optional] **managed_fields** | [**list[ManagedFieldsEntry]**](ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. +optional | [optional] -**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional | [optional] -**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional | [optional] +**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional | [optional] +**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional | [optional] **owner_references** | [**list[OwnerReference]**](OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. +optional +patchMergeKey=uid +patchStrategy=merge | [optional] **resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional | [optional] -**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional | [optional] **spec** | [**PipelineSpec**](PipelineSpec.md) | | [optional] **status** | [**PipelineStatus**](PipelineStatus.md) | | [optional] **uid** | [**UID**](UID.md) | | [optional] diff --git a/python/docs/Pod.md b/python/docs/Pod.md index 6281a98..f4c2e2d 100644 --- a/python/docs/Pod.md +++ b/python/docs/Pod.md @@ -3,23 +3,22 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional | [optional] +**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional | [optional] **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources +optional | [optional] -**cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional | [optional] **creation_timestamp** | **str** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. +optional | [optional] **deletion_timestamp** | **str** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. +optional +patchStrategy=merge | [optional] -**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] +**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. +optional | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +optional | [optional] -**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional | [optional] +**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional | [optional] **managed_fields** | [**list[ManagedFieldsEntry]**](ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. +optional | [optional] -**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional | [optional] -**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional | [optional] +**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional | [optional] +**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional | [optional] **owner_references** | [**list[OwnerReference]**](OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. +optional +patchMergeKey=uid +patchStrategy=merge | [optional] **resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional | [optional] -**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional | [optional] **spec** | [**PodSpec**](PodSpec.md) | | [optional] **status** | [**PodStatus**](PodStatus.md) | | [optional] **uid** | [**UID**](UID.md) | | [optional] diff --git a/python/docs/PodAffinityTerm.md b/python/docs/PodAffinityTerm.md index 1054f41..fd8bc4a 100644 --- a/python/docs/PodAffinityTerm.md +++ b/python/docs/PodAffinityTerm.md @@ -4,7 +4,8 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **label_selector** | [**LabelSelector**](LabelSelector.md) | | [optional] -**namespaces** | **list[str]** | namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" +optional | [optional] +**namespace_selector** | [**LabelSelector**](LabelSelector.md) | | [optional] +**namespaces** | **list[str]** | namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". +optional | [optional] **topology_key** | **str** | This pod should be co-located (affinity) or not co-located (anti-affinity) with the pods matching the labelSelector in the specified namespaces, where co-located is defined as running on a node whose value of the label with key topologyKey matches that of any node on which any of the selected pods is running. Empty topologyKey is not allowed. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/PodIP.md b/python/docs/PodIP.md index c3d9bda..982678b 100644 --- a/python/docs/PodIP.md +++ b/python/docs/PodIP.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**ip** | **str** | ip is an IP address (IPv4 or IPv6) assigned to the pod | [optional] +**ip** | **str** | IP is the IP address assigned to the pod | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/PodList.md b/python/docs/PodList.md index be56789..65a4ee5 100644 --- a/python/docs/PodList.md +++ b/python/docs/PodList.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +optional | [optional] **remaining_item_count** | **int** | remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. +optional | [optional] **resource_version** | **str** | String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional | [optional] -**self_link** | **str** | selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/PodOS.md b/python/docs/PodOS.md new file mode 100644 index 0000000..102638e --- /dev/null +++ b/python/docs/PodOS.md @@ -0,0 +1,10 @@ +# PodOS + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | [**OSName**](OSName.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/PodResizeStatus.md b/python/docs/PodResizeStatus.md new file mode 100644 index 0000000..b28d0ea --- /dev/null +++ b/python/docs/PodResizeStatus.md @@ -0,0 +1,9 @@ +# PodResizeStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/PodResourceClaim.md b/python/docs/PodResourceClaim.md new file mode 100644 index 0000000..1d8e823 --- /dev/null +++ b/python/docs/PodResourceClaim.md @@ -0,0 +1,11 @@ +# PodResourceClaim + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. | [optional] +**source** | [**ClaimSource**](ClaimSource.md) | | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/PodResourceClaimStatus.md b/python/docs/PodResourceClaimStatus.md new file mode 100644 index 0000000..b201017 --- /dev/null +++ b/python/docs/PodResourceClaimStatus.md @@ -0,0 +1,11 @@ +# PodResourceClaimStatus + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL. | [optional] +**resource_claim_name** | **str** | ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. +optional | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/PodSchedulingGate.md b/python/docs/PodSchedulingGate.md new file mode 100644 index 0000000..1741011 --- /dev/null +++ b/python/docs/PodSchedulingGate.md @@ -0,0 +1,10 @@ +# PodSchedulingGate + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name of the scheduling gate. Each scheduling gate must have a unique name field. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/PodSecurityContext.md b/python/docs/PodSecurityContext.md index ec972b4..5daff42 100644 --- a/python/docs/PodSecurityContext.md +++ b/python/docs/PodSecurityContext.md @@ -3,15 +3,15 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fs_group** | **int** | A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. +optional | [optional] +**fs_group** | **int** | A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. +optional | [optional] **fs_group_change_policy** | [**PodFSGroupChangePolicy**](PodFSGroupChangePolicy.md) | | [optional] -**run_as_group** | **int** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. +optional | [optional] +**run_as_group** | **int** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. +optional | [optional] **run_as_non_root** | **bool** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional | [optional] -**run_as_user** | **int** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. +optional | [optional] +**run_as_user** | **int** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. +optional | [optional] **se_linux_options** | [**SELinuxOptions**](SELinuxOptions.md) | | [optional] **seccomp_profile** | [**SeccompProfile**](SeccompProfile.md) | | [optional] -**supplemental_groups** | **list[int]** | A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. +optional | [optional] -**sysctls** | [**list[Sysctl]**](Sysctl.md) | Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. +optional | [optional] +**supplemental_groups** | **list[int]** | A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows. +optional | [optional] +**sysctls** | [**list[Sysctl]**](Sysctl.md) | Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. +optional | [optional] **windows_options** | [**WindowsSecurityContextOptions**](WindowsSecurityContextOptions.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/PodSpec.md b/python/docs/PodSpec.md index 1ab45a0..4b5a894 100644 --- a/python/docs/PodSpec.md +++ b/python/docs/PodSpec.md @@ -10,31 +10,35 @@ Name | Type | Description | Notes **dns_config** | [**PodDNSConfig**](PodDNSConfig.md) | | [optional] **dns_policy** | [**DNSPolicy**](DNSPolicy.md) | | [optional] **enable_service_links** | **bool** | EnableServiceLinks indicates whether information about services should be injected into pod's environment variables, matching the syntax of Docker links. Optional: Defaults to true. +optional | [optional] -**ephemeral_containers** | [**list[EphemeralContainer]**](EphemeralContainer.md) | List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. +optional +patchMergeKey=name +patchStrategy=merge | [optional] +**ephemeral_containers** | [**list[EphemeralContainer]**](EphemeralContainer.md) | List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. +optional +patchMergeKey=name +patchStrategy=merge | [optional] **host_aliases** | [**list[HostAlias]**](HostAlias.md) | HostAliases is an optional list of hosts and IPs that will be injected into the pod's hosts file if specified. This is only valid for non-hostNetwork pods. +optional +patchMergeKey=ip +patchStrategy=merge | [optional] **host_ipc** | **bool** | Use the host's ipc namespace. Optional: Default to false. +k8s:conversion-gen=false +optional | [optional] **host_network** | **bool** | 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. +k8s:conversion-gen=false +optional | [optional] **host_pid** | **bool** | Use the host's pid namespace. Optional: Default to false. +k8s:conversion-gen=false +optional | [optional] +**host_users** | **bool** | Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. +k8s:conversion-gen=false +optional | [optional] **hostname** | **str** | Specifies the hostname of the Pod If not specified, the pod's hostname will be set to a system-defined value. +optional | [optional] -**image_pull_secrets** | [**list[LocalObjectReference]**](LocalObjectReference.md) | ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod +optional +patchMergeKey=name +patchStrategy=merge | [optional] +**image_pull_secrets** | [**list[LocalObjectReference]**](LocalObjectReference.md) | ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod +optional +patchMergeKey=name +patchStrategy=merge | [optional] **init_containers** | [**list[Container]**](Container.md) | List of initialization containers belonging to the pod. Init containers are executed in order prior to containers being started. If any init container fails, the pod is considered to have failed and is handled according to its restartPolicy. The name for an init container or normal container must be unique among all containers. Init containers may not have Lifecycle actions, Readiness probes, Liveness probes, or Startup probes. The resourceRequirements of an init container are taken into account during scheduling by finding the highest request/limit for each resource type, and then using the max of of that value or the sum of the normal containers. Limits are applied to init containers in a similar fashion. Init containers cannot currently be added or removed. Cannot be updated. More info: https://kubernetes.io/docs/concepts/workloads/pods/init-containers/ +patchMergeKey=name +patchStrategy=merge | [optional] **node_name** | **str** | NodeName is a request to schedule this pod onto a specific node. If it is non-empty, the scheduler simply schedules this pod onto that node, assuming that it fits resource requirements. +optional | [optional] -**node_selector** | **dict(str, str)** | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional | [optional] +**node_selector** | **dict(str, str)** | NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional +mapType=atomic | [optional] +**os** | [**PodOS**](PodOS.md) | | [optional] **overhead** | [**ResourceList**](ResourceList.md) | | [optional] **preemption_policy** | [**PreemptionPolicy**](PreemptionPolicy.md) | | [optional] **priority** | **int** | The priority value. Various system components use this field to find the priority of the pod. When Priority Admission Controller is enabled, it prevents users from setting this field. The admission controller populates this field from PriorityClassName. The higher the value, the higher the priority. +optional | [optional] **priority_class_name** | **str** | If specified, indicates the pod's priority. \"system-node-critical\" and \"system-cluster-critical\" are two special keywords which indicate the highest priorities with the former being the highest priority. Any other name must be defined by creating a PriorityClass object with that name. If not specified, the pod priority will be default or zero if there is no default. +optional | [optional] -**readiness_gates** | [**list[PodReadinessGate]**](PodReadinessGate.md) | If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md +optional | [optional] +**readiness_gates** | [**list[PodReadinessGate]**](PodReadinessGate.md) | If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates +optional | [optional] +**resource_claims** | [**list[PodResourceClaim]**](PodResourceClaim.md) | ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. +patchMergeKey=name +patchStrategy=merge,retainKeys +listType=map +listMapKey=name +featureGate=DynamicResourceAllocation +optional | [optional] **restart_policy** | [**RestartPolicy**](RestartPolicy.md) | | [optional] -**runtime_class_name** | **str** | RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. +optional | [optional] +**runtime_class_name** | **str** | RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class +optional | [optional] **scheduler_name** | **str** | If specified, the pod will be dispatched by specified scheduler. If not specified, the pod will be dispatched by default scheduler. +optional | [optional] +**scheduling_gates** | [**list[PodSchedulingGate]**](PodSchedulingGate.md) | SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. This is a beta feature enabled by the PodSchedulingReadiness feature gate. +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name +featureGate=PodSchedulingReadiness +optional | [optional] **security_context** | [**PodSecurityContext**](PodSecurityContext.md) | | [optional] **service_account** | **str** | DeprecatedServiceAccount is a depreciated alias for ServiceAccountName. Deprecated: Use serviceAccountName instead. +k8s:conversion-gen=false +optional | [optional] **service_account_name** | **str** | ServiceAccountName is the name of the ServiceAccount to use to run this pod. More info: https://kubernetes.io/docs/tasks/configure-pod-container/configure-service-account/ +optional | [optional] **set_hostname_as_fqdn** | **bool** | If true the pod's hostname will be configured as the pod's FQDN, rather than the leaf name (the default). In Linux containers, this means setting the FQDN in the hostname field of the kernel (the nodename field of struct utsname). In Windows containers, this means setting the registry value of hostname for the registry key HKEY_LOCAL_MACHINE\\\\SYSTEM\\\\CurrentControlSet\\\\Services\\\\Tcpip\\\\Parameters to FQDN. If a pod does not have FQDN, this has no effect. Default to false. +optional | [optional] **share_process_namespace** | **bool** | Share a single process namespace between all of the containers in a pod. When this is set containers will be able to view and signal processes from other containers in the same pod, and the first process in each container will not be assigned PID 1. HostPID and ShareProcessNamespace cannot both be set. Optional: Default to false. +k8s:conversion-gen=false +optional | [optional] **subdomain** | **str** | If specified, the fully qualified Pod hostname will be \"<hostname>.<subdomain>.<pod namespace>.svc.<cluster domain>\". If not specified, the pod will not have a domainname at all. +optional | [optional] -**termination_grace_period_seconds** | **int** | Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. +optional | [optional] +**termination_grace_period_seconds** | **int** | Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. +optional | [optional] **tolerations** | [**list[Toleration]**](Toleration.md) | If specified, the pod's tolerations. +optional | [optional] **topology_spread_constraints** | [**list[TopologySpreadConstraint]**](TopologySpreadConstraint.md) | TopologySpreadConstraints describes how a group of pods ought to spread across topology domains. Scheduler will schedule pods in a way which abides by the constraints. All topologySpreadConstraints are ANDed. +optional +patchMergeKey=topologyKey +patchStrategy=merge +listType=map +listMapKey=topologyKey +listMapKey=whenUnsatisfiable | [optional] **volumes** | [**list[Volume]**](Volume.md) | List of volumes that can be mounted by containers belonging to the pod. More info: https://kubernetes.io/docs/concepts/storage/volumes +optional +patchMergeKey=name +patchStrategy=merge,retainKeys | [optional] diff --git a/python/docs/PodStatus.md b/python/docs/PodStatus.md index 0c665fa..c9d5feb 100644 --- a/python/docs/PodStatus.md +++ b/python/docs/PodStatus.md @@ -4,17 +4,20 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **conditions** | [**list[PodCondition]**](PodCondition.md) | Current service state of pod. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-conditions +optional +patchMergeKey=type +patchStrategy=merge | [optional] -**container_statuses** | [**list[ContainerStatus]**](ContainerStatus.md) | The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status +optional | [optional] -**ephemeral_container_statuses** | [**list[ContainerStatus]**](ContainerStatus.md) | Status for any ephemeral containers that have run in this pod. This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature. +optional | [optional] -**host_ip** | **str** | IP address of the host to which the pod is assigned. Empty if not yet scheduled. +optional | [optional] +**container_statuses** | [**list[ContainerStatus]**](ContainerStatus.md) | The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status +optional | [optional] +**ephemeral_container_statuses** | [**list[ContainerStatus]**](ContainerStatus.md) | Status for any ephemeral containers that have run in this pod. +optional | [optional] +**host_ip** | **str** | hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod +optional | [optional] +**host_i_ps** | [**list[HostIP]**](HostIP.md) | hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod. +optional +patchStrategy=merge +patchMergeKey=ip +listType=atomic | [optional] **init_container_statuses** | [**list[ContainerStatus]**](ContainerStatus.md) | The list has one entry per init container in the manifest. The most recent successful init container will have ready = true, the most recently started container will have startTime set. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status | [optional] **message** | **str** | A human readable message indicating details about why the pod is in this condition. +optional | [optional] **nominated_node_name** | **str** | nominatedNodeName is set only when this pod preempts other pods on the node, but it cannot be scheduled right away as preemption victims receive their graceful termination periods. This field does not guarantee that the pod will be scheduled on this node. Scheduler may decide to place the pod elsewhere if other nodes become available sooner. Scheduler may also decide to give the resources on this node to a higher priority pod that is created after preemption. As a result, this field may be different than PodSpec.nodeName when the pod is scheduled. +optional | [optional] **phase** | [**PodPhase**](PodPhase.md) | | [optional] -**pod_ip** | **str** | IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. +optional | [optional] +**pod_ip** | **str** | podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. +optional | [optional] **pod_i_ps** | [**list[PodIP]**](PodIP.md) | podIPs holds the IP addresses allocated to the pod. If this field is specified, the 0th entry must match the podIP field. Pods may be allocated at most 1 value for each of IPv4 and IPv6. This list is empty if no IPs have been allocated yet. +optional +patchStrategy=merge +patchMergeKey=ip | [optional] **qos_class** | [**PodQOSClass**](PodQOSClass.md) | | [optional] **reason** | **str** | A brief CamelCase message indicating details about why the pod is in this state. e.g. 'Evicted' +optional | [optional] +**resize** | [**PodResizeStatus**](PodResizeStatus.md) | | [optional] +**resource_claim_statuses** | [**list[PodResourceClaimStatus]**](PodResourceClaimStatus.md) | Status of resource claims. +patchMergeKey=name +patchStrategy=merge,retainKeys +listType=map +listMapKey=name +featureGate=DynamicResourceAllocation +optional | [optional] **start_time** | **str** | RFC 3339 date and time at which the object was acknowledged by the Kubelet. This is before the Kubelet pulled the container image(s) for the pod. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/PodTemplateSpec.md b/python/docs/PodTemplateSpec.md index fef3f48..15b2d55 100644 --- a/python/docs/PodTemplateSpec.md +++ b/python/docs/PodTemplateSpec.md @@ -3,21 +3,20 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional | [optional] -**cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional | [optional] +**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional | [optional] **creation_timestamp** | **str** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. +optional | [optional] **deletion_timestamp** | **str** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. +optional +patchStrategy=merge | [optional] -**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] +**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. +optional | [optional] -**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional | [optional] +**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional | [optional] **managed_fields** | [**list[ManagedFieldsEntry]**](ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. +optional | [optional] -**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional | [optional] -**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional | [optional] +**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional | [optional] +**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional | [optional] **owner_references** | [**list[OwnerReference]**](OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. +optional +patchMergeKey=uid +patchStrategy=merge | [optional] **resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional | [optional] -**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional | [optional] **spec** | [**PodSpec**](PodSpec.md) | | [optional] **uid** | [**UID**](UID.md) | | [optional] diff --git a/python/docs/PodsMetricSource.md b/python/docs/PodsMetricSource.md index 42287b6..1708c72 100644 --- a/python/docs/PodsMetricSource.md +++ b/python/docs/PodsMetricSource.md @@ -3,9 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**metric_name** | **str** | metricName is the name of the metric in question | [optional] -**selector** | [**LabelSelector**](LabelSelector.md) | | [optional] -**target_average_value** | [**Quantity**](Quantity.md) | | [optional] +**metric** | [**MetricIdentifier**](MetricIdentifier.md) | | [optional] +**target** | [**MetricTarget**](MetricTarget.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/PortworxVolumeSource.md b/python/docs/PortworxVolumeSource.md index d3bf1f0..d2fa983 100644 --- a/python/docs/PortworxVolumeSource.md +++ b/python/docs/PortworxVolumeSource.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fs_type** | **str** | FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] -**read_only** | **bool** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional | [optional] -**volume_id** | **str** | VolumeID uniquely identifies a Portworx volume | [optional] +**fs_type** | **str** | fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. | [optional] +**read_only** | **bool** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional | [optional] +**volume_id** | **str** | volumeID uniquely identifies a Portworx volume | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/Probe.md b/python/docs/Probe.md index c2ed532..abfef42 100644 --- a/python/docs/Probe.md +++ b/python/docs/Probe.md @@ -5,11 +5,13 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **_exec** | [**ExecAction**](ExecAction.md) | | [optional] **failure_threshold** | **int** | Minimum consecutive failures for the probe to be considered failed after having succeeded. Defaults to 3. Minimum value is 1. +optional | [optional] +**grpc** | [**GRPCAction**](GRPCAction.md) | | [optional] **http_get** | [**HTTPGetAction**](HTTPGetAction.md) | | [optional] **initial_delay_seconds** | **int** | Number of seconds after the container has started before liveness probes are initiated. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] **period_seconds** | **int** | How often (in seconds) to perform the probe. Default to 10 seconds. Minimum value is 1. +optional | [optional] **success_threshold** | **int** | Minimum consecutive successes for the probe to be considered successful after having failed. Defaults to 1. Must be 1 for liveness and startup. Minimum value is 1. +optional | [optional] **tcp_socket** | [**TCPSocketAction**](TCPSocketAction.md) | | [optional] +**termination_grace_period_seconds** | **int** | Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. +optional | [optional] **timeout_seconds** | **int** | Number of seconds after which the probe times out. Defaults to 1 second. Minimum value is 1. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#container-probes +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/ProjectedVolumeSource.md b/python/docs/ProjectedVolumeSource.md index ae829a8..27fe74c 100644 --- a/python/docs/ProjectedVolumeSource.md +++ b/python/docs/ProjectedVolumeSource.md @@ -3,8 +3,8 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**default_mode** | **int** | Mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional | [optional] -**sources** | [**list[VolumeProjection]**](VolumeProjection.md) | list of volume projections | [optional] +**default_mode** | **int** | defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional | [optional] +**sources** | [**list[VolumeProjection]**](VolumeProjection.md) | sources is the list of volume projections +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/QuobyteVolumeSource.md b/python/docs/QuobyteVolumeSource.md index d976306..d6934f9 100644 --- a/python/docs/QuobyteVolumeSource.md +++ b/python/docs/QuobyteVolumeSource.md @@ -3,12 +3,12 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**group** | **str** | Group to map volume access to Default is no group +optional | [optional] -**read_only** | **bool** | ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. +optional | [optional] -**registry** | **str** | Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes | [optional] -**tenant** | **str** | Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin +optional | [optional] -**user** | **str** | User to map volume access to Defaults to serivceaccount user +optional | [optional] -**volume** | **str** | Volume is a string that references an already created Quobyte volume by name. | [optional] +**group** | **str** | group to map volume access to Default is no group +optional | [optional] +**read_only** | **bool** | readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. +optional | [optional] +**registry** | **str** | registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes | [optional] +**tenant** | **str** | tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin +optional | [optional] +**user** | **str** | user to map volume access to Defaults to serivceaccount user +optional | [optional] +**volume** | **str** | volume is a string that references an already created Quobyte volume by name. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/RBDVolumeSource.md b/python/docs/RBDVolumeSource.md index c96d3d0..81a9ef7 100644 --- a/python/docs/RBDVolumeSource.md +++ b/python/docs/RBDVolumeSource.md @@ -3,14 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fs_type** | **str** | Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd TODO: how do we prevent errors in the filesystem from compromising the machine +optional | [optional] -**image** | **str** | The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | [optional] -**keyring** | **str** | Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional | [optional] -**monitors** | **list[str]** | A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | [optional] -**pool** | **str** | The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional | [optional] -**read_only** | **bool** | ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional | [optional] +**fs_type** | **str** | fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd TODO: how do we prevent errors in the filesystem from compromising the machine +optional | [optional] +**image** | **str** | image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | [optional] +**keyring** | **str** | keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional | [optional] +**monitors** | **list[str]** | monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it | [optional] +**pool** | **str** | pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional | [optional] +**read_only** | **bool** | readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional | [optional] **secret_ref** | [**LocalObjectReference**](LocalObjectReference.md) | | [optional] -**user** | **str** | The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional | [optional] +**user** | **str** | user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/ResourceClaim.md b/python/docs/ResourceClaim.md new file mode 100644 index 0000000..e7e0b93 --- /dev/null +++ b/python/docs/ResourceClaim.md @@ -0,0 +1,10 @@ +# ResourceClaim + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**name** | **str** | Name must match the name of one entry in pod.spec.resourceClaims of the Pod where this field is used. It makes that resource available inside a container. | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/ResourceMetricSource.md b/python/docs/ResourceMetricSource.md index 04cd852..4dbbc04 100644 --- a/python/docs/ResourceMetricSource.md +++ b/python/docs/ResourceMetricSource.md @@ -4,8 +4,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | [**ResourceName**](ResourceName.md) | | [optional] -**target_average_utilization** | **int** | targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. +optional | [optional] -**target_average_value** | [**Quantity**](Quantity.md) | | [optional] +**target** | [**MetricTarget**](MetricTarget.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/ResourceRequirements.md b/python/docs/ResourceRequirements.md index 2a2705c..9dd7d37 100644 --- a/python/docs/ResourceRequirements.md +++ b/python/docs/ResourceRequirements.md @@ -3,6 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- +**claims** | [**list[ResourceClaim]**](ResourceClaim.md) | Claims lists the names of resources, defined in spec.resourceClaims, that are used by this container. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. It can only be set for containers. +listType=map +listMapKey=name +featureGate=DynamicResourceAllocation +optional | [optional] **limits** | [**ResourceList**](ResourceList.md) | | [optional] **requests** | [**ResourceList**](ResourceList.md) | | [optional] diff --git a/python/docs/ResourceResizeRestartPolicy.md b/python/docs/ResourceResizeRestartPolicy.md new file mode 100644 index 0000000..acaed77 --- /dev/null +++ b/python/docs/ResourceResizeRestartPolicy.md @@ -0,0 +1,9 @@ +# ResourceResizeRestartPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/ScaleIOVolumeSource.md b/python/docs/ScaleIOVolumeSource.md index 2132ff9..66c850e 100644 --- a/python/docs/ScaleIOVolumeSource.md +++ b/python/docs/ScaleIOVolumeSource.md @@ -3,16 +3,16 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". +optional | [optional] -**gateway** | **str** | The host address of the ScaleIO API Gateway. | [optional] -**protection_domain** | **str** | The name of the ScaleIO Protection Domain for the configured storage. +optional | [optional] -**read_only** | **bool** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional | [optional] +**fs_type** | **str** | fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". +optional | [optional] +**gateway** | **str** | gateway is the host address of the ScaleIO API Gateway. | [optional] +**protection_domain** | **str** | protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. +optional | [optional] +**read_only** | **bool** | readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional | [optional] **secret_ref** | [**LocalObjectReference**](LocalObjectReference.md) | | [optional] -**ssl_enabled** | **bool** | Flag to enable/disable SSL communication with Gateway, default false +optional | [optional] -**storage_mode** | **str** | Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. +optional | [optional] -**storage_pool** | **str** | The ScaleIO Storage Pool associated with the protection domain. +optional | [optional] -**system** | **str** | The name of the storage system as configured in ScaleIO. | [optional] -**volume_name** | **str** | The name of a volume already created in the ScaleIO system that is associated with this volume source. | [optional] +**ssl_enabled** | **bool** | sslEnabled Flag enable/disable SSL communication with Gateway, default false +optional | [optional] +**storage_mode** | **str** | storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. +optional | [optional] +**storage_pool** | **str** | storagePool is the ScaleIO Storage Pool associated with the protection domain. +optional | [optional] +**system** | **str** | system is the name of the storage system as configured in ScaleIO. | [optional] +**volume_name** | **str** | volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/SeccompProfile.md b/python/docs/SeccompProfile.md index 9eff260..e7838de 100644 --- a/python/docs/SeccompProfile.md +++ b/python/docs/SeccompProfile.md @@ -3,7 +3,7 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**localhost_profile** | **str** | localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\". +optional | [optional] +**localhost_profile** | **str** | localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type. +optional | [optional] **type** | [**SeccompProfileType**](SeccompProfileType.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/SecretProjection.md b/python/docs/SecretProjection.md index 67b85d6..a56e8f0 100644 --- a/python/docs/SecretProjection.md +++ b/python/docs/SecretProjection.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**items** | [**list[KeyToPath]**](KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional | [optional] +**items** | [**list[KeyToPath]**](KeyToPath.md) | items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional | [optional] **name** | **str** | Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names TODO: Add other useful fields. apiVersion, kind, uid? +optional | [optional] -**optional** | **bool** | Specify whether the Secret or its key must be defined +optional | [optional] +**optional** | **bool** | optional field specify whether the Secret or its key must be defined +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/SecretVolumeSource.md b/python/docs/SecretVolumeSource.md index 5468912..465baf4 100644 --- a/python/docs/SecretVolumeSource.md +++ b/python/docs/SecretVolumeSource.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**default_mode** | **int** | Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional | [optional] -**items** | [**list[KeyToPath]**](KeyToPath.md) | If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional | [optional] -**optional** | **bool** | Specify whether the Secret or its keys must be defined +optional | [optional] -**secret_name** | **str** | Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional | [optional] +**default_mode** | **int** | defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional | [optional] +**items** | [**list[KeyToPath]**](KeyToPath.md) | items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional | [optional] +**optional** | **bool** | optional field specify whether the Secret or its keys must be defined +optional | [optional] +**secret_name** | **str** | secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/SecurityContext.md b/python/docs/SecurityContext.md index d5818b8..279edaf 100644 --- a/python/docs/SecurityContext.md +++ b/python/docs/SecurityContext.md @@ -3,14 +3,14 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**allow_privilege_escalation** | **bool** | AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN +optional | [optional] +**allow_privilege_escalation** | **bool** | AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. +optional | [optional] **capabilities** | [**Capabilities**](Capabilities.md) | | [optional] -**privileged** | **bool** | Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. +optional | [optional] +**privileged** | **bool** | Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. +optional | [optional] **proc_mount** | [**ProcMountType**](ProcMountType.md) | | [optional] -**read_only_root_filesystem** | **bool** | Whether this container has a read-only root filesystem. Default is false. +optional | [optional] -**run_as_group** | **int** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional | [optional] +**read_only_root_filesystem** | **bool** | Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. +optional | [optional] +**run_as_group** | **int** | The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. +optional | [optional] **run_as_non_root** | **bool** | Indicates that the container must run as a non-root user. If true, the Kubelet will validate the image at runtime to ensure that it does not run as UID 0 (root) and fail to start the container if it does. If unset or false, no such validation will be performed. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional | [optional] -**run_as_user** | **int** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional | [optional] +**run_as_user** | **int** | The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. +optional | [optional] **se_linux_options** | [**SELinuxOptions**](SELinuxOptions.md) | | [optional] **seccomp_profile** | [**SeccompProfile**](SeccompProfile.md) | | [optional] **windows_options** | [**WindowsSecurityContextOptions**](WindowsSecurityContextOptions.md) | | [optional] diff --git a/python/docs/SeldonHpaSpec.md b/python/docs/SeldonHpaSpec.md index 4d9c678..9b51a5a 100644 --- a/python/docs/SeldonHpaSpec.md +++ b/python/docs/SeldonHpaSpec.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **max_replicas** | **int** | | [optional] **metrics** | [**list[MetricSpec]**](MetricSpec.md) | | [optional] +**metricsv2** | [**list[MetricSpec]**](MetricSpec.md) | | [optional] **min_replicas** | **int** | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/Service.md b/python/docs/Service.md index 4086289..b34d916 100644 --- a/python/docs/Service.md +++ b/python/docs/Service.md @@ -3,23 +3,22 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional | [optional] +**annotations** | **dict(str, str)** | Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional | [optional] **api_version** | **str** | APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources +optional | [optional] -**cluster_name** | **str** | The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional | [optional] **creation_timestamp** | **str** | CreationTimestamp is a timestamp representing the server time when this object was created. It is not guaranteed to be set in happens-before order across separate operations. Clients may not set this value. It is represented in RFC3339 form and is in UTC. Populated by the system. Read-only. Null for lists. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **deletion_grace_period_seconds** | **int** | Number of seconds allowed for this object to gracefully terminate before it will be removed from the system. Only set when deletionTimestamp is also set. May only be shortened. Read-only. +optional | [optional] **deletion_timestamp** | **str** | DeletionTimestamp is RFC 3339 date and time at which this resource will be deleted. This field is set by the server when a graceful deletion is requested by the user, and is not directly settable by a client. The resource is expected to be deleted (no longer visible from resource lists, and not reachable by name) after the time in this field, once the finalizers list is empty. As long as the finalizers list contains items, deletion is blocked. Once the deletionTimestamp is set, this value may not be unset or be set further into the future, although it may be shortened or the resource may be deleted prior to this time. For example, a user may request that a pod is deleted in 30 seconds. The Kubelet will react by sending a graceful termination signal to the containers in the pod. After that 30 seconds, the Kubelet will send a hard termination signal (SIGKILL) to the container and after cleanup, remove the pod from the API. In the presence of network partitions, this object may still exist after this timestamp, until an administrator or automated process can determine the resource is fully terminated. If not set, graceful deletion of the object has not been requested. Populated by the system when a graceful deletion is requested. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#metadata +optional | [optional] **finalizers** | **list[str]** | Must be empty before the object is deleted from the registry. Each entry is an identifier for the responsible component that will remove the entry from the list. If the deletionTimestamp of the object is non-nil, entries in this list can only be removed. Finalizers may be processed and removed in any order. Order is NOT enforced because it introduces significant risk of stuck finalizers. finalizers is a shared field, any actor with permission can reorder it. If the finalizer list is processed in order, then this can lead to a situation in which the component responsible for the first finalizer in the list is waiting for a signal (field value, external system, or other) produced by a component responsible for a finalizer later in the list, resulting in a deadlock. Without enforced ordering finalizers are free to order amongst themselves and are not vulnerable to ordering changes in the list. +optional +patchStrategy=merge | [optional] -**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] +**generate_name** | **str** | GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional | [optional] **generation** | **int** | A sequence number representing a specific generation of the desired state. Populated by the system. Read-only. +optional | [optional] **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +optional | [optional] -**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional | [optional] +**labels** | **dict(str, str)** | Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional | [optional] **managed_fields** | [**list[ManagedFieldsEntry]**](ManagedFieldsEntry.md) | ManagedFields maps workflow-id and version to the set of fields that are managed by that workflow. This is mostly for internal housekeeping, and users typically shouldn't need to set or understand this field. A workflow can be the user's name, a controller's name, or the name of a specific apply path like \"ci-cd\". The set of fields is always in the version that the workflow used when modifying the object. +optional | [optional] -**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional | [optional] -**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional | [optional] +**name** | **str** | Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional | [optional] +**namespace** | **str** | Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional | [optional] **owner_references** | [**list[OwnerReference]**](OwnerReference.md) | List of objects depended by this object. If ALL objects in the list have been deleted, this object will be garbage collected. If this object is managed by a controller, then an entry in this list will point to this controller, with the controller field set to true. There cannot be more than one managing controller. +optional +patchMergeKey=uid +patchStrategy=merge | [optional] **resource_version** | **str** | An opaque value that represents the internal version of this object that can be used by clients to determine when objects have changed. May be used for optimistic concurrency, change detection, and the watch operation on a resource or set of resources. Clients must treat these values as opaque and passed unmodified back to the server. They may only be valid for a particular resource or set of resources. Populated by the system. Read-only. Value must be treated as opaque by clients and . More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional | [optional] -**self_link** | **str** | SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional | [optional] **spec** | [**ServiceSpec**](ServiceSpec.md) | | [optional] **status** | [**ServiceStatus**](ServiceStatus.md) | | [optional] **uid** | [**UID**](UID.md) | | [optional] diff --git a/python/docs/ServiceAccountTokenProjection.md b/python/docs/ServiceAccountTokenProjection.md index 550731a..08da97d 100644 --- a/python/docs/ServiceAccountTokenProjection.md +++ b/python/docs/ServiceAccountTokenProjection.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**audience** | **str** | Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. +optional | [optional] -**expiration_seconds** | **int** | ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. +optional | [optional] -**path** | **str** | Path is the path relative to the mount point of the file to project the token into. | [optional] +**audience** | **str** | audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. +optional | [optional] +**expiration_seconds** | **int** | expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. +optional | [optional] +**path** | **str** | path is the path relative to the mount point of the file to project the token into. | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/ServiceExternalTrafficPolicy.md b/python/docs/ServiceExternalTrafficPolicy.md new file mode 100644 index 0000000..c8330a2 --- /dev/null +++ b/python/docs/ServiceExternalTrafficPolicy.md @@ -0,0 +1,9 @@ +# ServiceExternalTrafficPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/ServiceInternalTrafficPolicy.md b/python/docs/ServiceInternalTrafficPolicy.md new file mode 100644 index 0000000..7c847b1 --- /dev/null +++ b/python/docs/ServiceInternalTrafficPolicy.md @@ -0,0 +1,9 @@ +# ServiceInternalTrafficPolicy + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/ServiceList.md b/python/docs/ServiceList.md index c7a6163..574551b 100644 --- a/python/docs/ServiceList.md +++ b/python/docs/ServiceList.md @@ -9,7 +9,7 @@ Name | Type | Description | Notes **kind** | **str** | Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds +optional | [optional] **remaining_item_count** | **int** | remainingItemCount is the number of subsequent items in the list which are not included in this list response. If the list request contained label or field selectors, then the number of remaining items is unknown and the field will be left unset and omitted during serialization. If the list is complete (either because it is not chunking or because this is the last chunk), then there are no more remaining items and this field will be left unset and omitted during serialization. Servers older than v1.15 do not set this field. The intended use of the remainingItemCount is *estimating* the size of a collection. Clients should not rely on the remainingItemCount to be set or to be exact. +optional | [optional] **resource_version** | **str** | String that identifies the server's internal version of this object that can be used by clients to determine when objects have changed. Value must be treated as opaque by clients and passed unmodified back to the server. Populated by the system. Read-only. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#concurrency-control-and-consistency +optional | [optional] -**self_link** | **str** | selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional | [optional] +**self_link** | **str** | Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/ServicePort.md b/python/docs/ServicePort.md index c0b5ebd..51e1e85 100644 --- a/python/docs/ServicePort.md +++ b/python/docs/ServicePort.md @@ -3,9 +3,9 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**app_protocol** | **str** | The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. This is a beta field that is guarded by the ServiceAppProtocol feature gate and enabled by default. +optional | [optional] +**app_protocol** | **str** | The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Kubernetes-defined prefixed names: 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. +optional | [optional] **name** | **str** | The name of this port within the service. This must be a DNS_LABEL. All ports within a ServiceSpec must have unique names. When considering the endpoints for a Service, this must match the 'name' field in the EndpointPort. Optional if only one ServicePort is defined on this service. +optional | [optional] -**node_port** | **int** | The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport +optional | [optional] +**node_port** | **int** | The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport +optional | [optional] **port** | **int** | The port that will be exposed by this service. | [optional] **protocol** | [**Protocol**](Protocol.md) | | [optional] **target_port** | [**IntOrString**](IntOrString.md) | | [optional] diff --git a/python/docs/ServiceSpec.md b/python/docs/ServiceSpec.md index 78c326d..5d0882e 100644 --- a/python/docs/ServiceSpec.md +++ b/python/docs/ServiceSpec.md @@ -3,20 +3,24 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**cluster_ip** | **str** | clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies +optional | [optional] +**allocate_load_balancer_node_ports** | **bool** | allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. +optional | [optional] +**cluster_ip** | **str** | clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies +optional | [optional] +**cluster_i_ps** | **list[str]** | ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies +listType=atomic +optional | [optional] **external_i_ps** | **list[str]** | externalIPs is a list of IP addresses for which nodes in the cluster will also accept traffic for this service. These IPs are not managed by Kubernetes. The user is responsible for ensuring that traffic arrives at a node with this IP. A common example is external load-balancers that are not part of the Kubernetes system. +optional | [optional] -**external_name** | **str** | externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. +optional | [optional] -**external_traffic_policy** | [**ServiceExternalTrafficPolicyType**](ServiceExternalTrafficPolicyType.md) | | [optional] -**health_check_node_port** | **int** | healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. +optional | [optional] -**ip_family** | [**IPFamily**](IPFamily.md) | | [optional] -**load_balancer_ip** | **str** | Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. +optional | [optional] -**load_balancer_source_ranges** | **list[str]** | If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ +optional | [optional] +**external_name** | **str** | externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\". +optional | [optional] +**external_traffic_policy** | [**ServiceExternalTrafficPolicy**](ServiceExternalTrafficPolicy.md) | | [optional] +**health_check_node_port** | **int** | healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. +optional | [optional] +**internal_traffic_policy** | [**ServiceInternalTrafficPolicy**](ServiceInternalTrafficPolicy.md) | | [optional] +**ip_families** | [**list[IPFamily]**](IPFamily.md) | IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName. This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. +listType=atomic +optional | [optional] +**ip_family_policy** | [**IPFamilyPolicy**](IPFamilyPolicy.md) | | [optional] +**load_balancer_class** | **str** | loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. +optional | [optional] +**load_balancer_ip** | **str** | Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available. +optional | [optional] +**load_balancer_source_ranges** | **list[str]** | If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ +optional | [optional] **ports** | [**list[ServicePort]**](ServicePort.md) | The list of ports that are exposed by this service. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies +patchMergeKey=port +patchStrategy=merge +listType=map +listMapKey=port +listMapKey=protocol | [optional] **publish_not_ready_addresses** | **bool** | publishNotReadyAddresses indicates that any agent which deals with endpoints for this Service should disregard any indications of ready/not-ready. The primary use case for setting this field is for a StatefulSet's Headless Service to propagate SRV DNS records for its Pods for the purpose of peer discovery. The Kubernetes controllers that generate Endpoints and EndpointSlice resources for Services interpret this to mean that all endpoints are considered \"ready\" even if the Pods themselves are not. Agents which consume only Kubernetes generated endpoints through the Endpoints or EndpointSlice resources can safely assume this behavior. +optional | [optional] -**selector** | **dict(str, str)** | Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ +optional | [optional] +**selector** | **dict(str, str)** | Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ +optional +mapType=atomic | [optional] **session_affinity** | [**ServiceAffinity**](ServiceAffinity.md) | | [optional] **session_affinity_config** | [**SessionAffinityConfig**](SessionAffinityConfig.md) | | [optional] -**topology_keys** | **list[str]** | topologyKeys is a preference-order list of topology keys which implementations of services should use to preferentially sort endpoints when accessing this Service, it can not be used at the same time as externalTrafficPolicy=Local. Topology keys must be valid label keys and at most 16 keys may be specified. Endpoints are chosen based on the first topology key with available backends. If this field is specified and all entries have no backends that match the topology of the client, the service has no backends for that client and connections should fail. The special value \"*\" may be used to mean \"any topology\". This catch-all value, if used, only makes sense as the last value in the list. If this is not specified or empty, no topology constraints will be applied. +optional | [optional] **type** | [**ServiceType**](ServiceType.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/StorageOSVolumeSource.md b/python/docs/StorageOSVolumeSource.md index 8b0e4cc..4f8a4d5 100644 --- a/python/docs/StorageOSVolumeSource.md +++ b/python/docs/StorageOSVolumeSource.md @@ -3,11 +3,11 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional | [optional] -**read_only** | **bool** | Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional | [optional] +**fs_type** | **str** | fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional | [optional] +**read_only** | **bool** | readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional | [optional] **secret_ref** | [**LocalObjectReference**](LocalObjectReference.md) | | [optional] -**volume_name** | **str** | VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. | [optional] -**volume_namespace** | **str** | VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. +optional | [optional] +**volume_name** | **str** | volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. | [optional] +**volume_namespace** | **str** | volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/TopologySpreadConstraint.md b/python/docs/TopologySpreadConstraint.md index aa63299..9ce89ba 100644 --- a/python/docs/TopologySpreadConstraint.md +++ b/python/docs/TopologySpreadConstraint.md @@ -4,8 +4,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **label_selector** | [**LabelSelector**](LabelSelector.md) | | [optional] -**max_skew** | **int** | MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: +-------+-------+-------+ zone1 | zone2 | zone3 | +-------+-------+-------+ P | P | | +-------+-------+-------+ if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. | [optional] -**topology_key** | **str** | TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a \"bucket\", and try to put balanced number of pods into each bucket. It's a required field. | [optional] +**match_label_keys** | **list[str]** | MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). +listType=atomic +optional | [optional] +**max_skew** | **int** | MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. +-------+-------+-------+ zone1 | zone2 | zone3 | +-------+-------+-------+ P P | P P | P | +-------+-------+-------+ if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. | [optional] +**min_domains** | **int** | MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: +-------+-------+-------+ zone1 | zone2 | zone3 | +-------+-------+-------+ P P | P P | P P | +-------+-------+-------+ The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). +optional | [optional] +**node_affinity_policy** | [**NodeInclusionPolicy**](NodeInclusionPolicy.md) | | [optional] +**node_taints_policy** | [**NodeInclusionPolicy**](NodeInclusionPolicy.md) | | [optional] +**topology_key** | **str** | TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each <key, value> as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. | [optional] **when_unsatisfiable** | [**UnsatisfiableConstraintAction**](UnsatisfiableConstraintAction.md) | | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/TypedObjectReference.md b/python/docs/TypedObjectReference.md new file mode 100644 index 0000000..21ee5ab --- /dev/null +++ b/python/docs/TypedObjectReference.md @@ -0,0 +1,13 @@ +# TypedObjectReference + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- +**api_group** | **str** | APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. +optional | [optional] +**kind** | **str** | Kind is the type of resource being referenced | [optional] +**name** | **str** | Name is the name of resource being referenced | [optional] +**namespace** | **str** | Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. +featureGate=CrossNamespaceVolumeDataSource +optional | [optional] + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/docs/Volume.md b/python/docs/Volume.md index d6991bb..24b44c6 100644 --- a/python/docs/Volume.md +++ b/python/docs/Volume.md @@ -21,7 +21,7 @@ Name | Type | Description | Notes **glusterfs** | [**GlusterfsVolumeSource**](GlusterfsVolumeSource.md) | | [optional] **host_path** | [**HostPathVolumeSource**](HostPathVolumeSource.md) | | [optional] **iscsi** | [**ISCSIVolumeSource**](ISCSIVolumeSource.md) | | [optional] -**name** | **str** | Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] +**name** | **str** | name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names | [optional] **nfs** | [**NFSVolumeSource**](NFSVolumeSource.md) | | [optional] **persistent_volume_claim** | [**PersistentVolumeClaimVolumeSource**](PersistentVolumeClaimVolumeSource.md) | | [optional] **photon_persistent_disk** | [**PhotonPersistentDiskVolumeSource**](PhotonPersistentDiskVolumeSource.md) | | [optional] diff --git a/python/docs/VsphereVirtualDiskVolumeSource.md b/python/docs/VsphereVirtualDiskVolumeSource.md index f5fbd0a..b8a1ffa 100644 --- a/python/docs/VsphereVirtualDiskVolumeSource.md +++ b/python/docs/VsphereVirtualDiskVolumeSource.md @@ -3,10 +3,10 @@ ## Properties Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- -**fs_type** | **str** | Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional | [optional] -**storage_policy_id** | **str** | Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. +optional | [optional] -**storage_policy_name** | **str** | Storage Policy Based Management (SPBM) profile name. +optional | [optional] -**volume_path** | **str** | Path that identifies vSphere volume vmdk | [optional] +**fs_type** | **str** | fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional | [optional] +**storage_policy_id** | **str** | storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. +optional | [optional] +**storage_policy_name** | **str** | storagePolicyName is the storage Policy Based Management (SPBM) profile name. +optional | [optional] +**volume_path** | **str** | volumePath is the path that identifies vSphere volume vmdk | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/WindowsSecurityContextOptions.md b/python/docs/WindowsSecurityContextOptions.md index 85f7b49..5f314ae 100644 --- a/python/docs/WindowsSecurityContextOptions.md +++ b/python/docs/WindowsSecurityContextOptions.md @@ -5,6 +5,7 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **gmsa_credential_spec** | **str** | GMSACredentialSpec is where the GMSA admission webhook (https://github.com/kubernetes-sigs/windows-gmsa) inlines the contents of the GMSA credential spec named by the GMSACredentialSpecName field. +optional | [optional] **gmsa_credential_spec_name** | **str** | GMSACredentialSpecName is the name of the GMSA credential spec to use. +optional | [optional] +**host_process** | **bool** | HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. +optional | [optional] **run_as_user_name** | **str** | The UserName in Windows to run the entrypoint of the container process. Defaults to the user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional | [optional] [[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) diff --git a/python/docs/WorkflowPhase.md b/python/docs/WorkflowPhase.md new file mode 100644 index 0000000..4f9dc7b --- /dev/null +++ b/python/docs/WorkflowPhase.md @@ -0,0 +1,9 @@ +# WorkflowPhase + +## Properties +Name | Type | Description | Notes +------------ | ------------- | ------------- | ------------- + +[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md) + + diff --git a/python/licenses/license.txt b/python/licenses/license.txt index 51efd52..36c485b 100644 --- a/python/licenses/license.txt +++ b/python/licenses/license.txt @@ -33,7 +33,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. certifi -2023.11.17 +2024.2.2 Mozilla Public License 2.0 (MPL 2.0) This package contains a modified version of ca-bundle.crt: @@ -114,7 +114,7 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. cryptography -41.0.7 +42.0.5 Apache Software License; BSD License This software is made available under the terms of *either* of the licenses found in LICENSE.APACHE or LICENSE.BSD. Contributions to cryptography are made @@ -190,7 +190,7 @@ OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. python-dateutil -2.8.2 +2.9.0.post0 Apache Software License; BSD License Copyright 2017- Paul Ganssle Copyright 2017- dateutil contributors (see AUTHORS file) @@ -428,7 +428,7 @@ Apache Software License seldon-deploy-sdk -2.2.0rc9 +2.2.0 UNKNOWN UNKNOWN @@ -456,7 +456,7 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. urllib3 -2.1.0 +2.2.1 MIT License MIT License diff --git a/python/licenses/license_info.csv b/python/licenses/license_info.csv index 8bc8e72..599f27e 100644 --- a/python/licenses/license_info.csv +++ b/python/licenses/license_info.csv @@ -1,13 +1,13 @@ "Name","Version","License" "Authlib","1.0.1","BSD License" -"certifi","2023.11.17","Mozilla Public License 2.0 (MPL 2.0)" +"certifi","2024.2.2","Mozilla Public License 2.0 (MPL 2.0)" "cffi","1.16.0","MIT License" "charset-normalizer","3.3.2","MIT License" -"cryptography","41.0.7","Apache Software License; BSD License" +"cryptography","42.0.5","Apache Software License; BSD License" "idna","3.6","BSD License" "pycparser","2.21","BSD License" -"python-dateutil","2.8.2","Apache Software License; BSD License" +"python-dateutil","2.9.0.post0","Apache Software License; BSD License" "requests","2.31.0","Apache Software License" -"seldon-deploy-sdk","2.2.0rc9","UNKNOWN" +"seldon-deploy-sdk","2.2.0","UNKNOWN" "six","1.16.0","MIT License" -"urllib3","2.1.0","MIT License" +"urllib3","2.2.1","MIT License" diff --git a/python/seldon_deploy_sdk/__init__.py b/python/seldon_deploy_sdk/__init__.py index 38526b3..a5af034 100644 --- a/python/seldon_deploy_sdk/__init__.py +++ b/python/seldon_deploy_sdk/__init__.py @@ -69,6 +69,7 @@ from seldon_deploy_sdk.models.capability import Capability from seldon_deploy_sdk.models.ceph_fs_volume_source import CephFSVolumeSource from seldon_deploy_sdk.models.cinder_volume_source import CinderVolumeSource +from seldon_deploy_sdk.models.claim_source import ClaimSource from seldon_deploy_sdk.models.client_ip_config import ClientIPConfig from seldon_deploy_sdk.models.cluster_info import ClusterInfo from seldon_deploy_sdk.models.component import Component @@ -80,6 +81,9 @@ from seldon_deploy_sdk.models.config_map_volume_source import ConfigMapVolumeSource from seldon_deploy_sdk.models.container import Container from seldon_deploy_sdk.models.container_port import ContainerPort +from seldon_deploy_sdk.models.container_resize_policy import ContainerResizePolicy +from seldon_deploy_sdk.models.container_resource_metric_source import ContainerResourceMetricSource +from seldon_deploy_sdk.models.container_restart_policy import ContainerRestartPolicy from seldon_deploy_sdk.models.container_state import ContainerState from seldon_deploy_sdk.models.container_state_running import ContainerStateRunning from seldon_deploy_sdk.models.container_state_terminated import ContainerStateTerminated @@ -137,6 +141,7 @@ from seldon_deploy_sdk.models.flex_volume_source import FlexVolumeSource from seldon_deploy_sdk.models.flocker_volume_source import FlockerVolumeSource from seldon_deploy_sdk.models.gce_persistent_disk_volume_source import GCEPersistentDiskVolumeSource +from seldon_deploy_sdk.models.grpc_action import GRPCAction from seldon_deploy_sdk.models.git_repo_volume_source import GitRepoVolumeSource from seldon_deploy_sdk.models.glusterfs_volume_source import GlusterfsVolumeSource from seldon_deploy_sdk.models.hpa_scaling_policy import HPAScalingPolicy @@ -144,14 +149,15 @@ from seldon_deploy_sdk.models.hpa_scaling_rules import HPAScalingRules from seldon_deploy_sdk.models.http_get_action import HTTPGetAction from seldon_deploy_sdk.models.http_header import HTTPHeader -from seldon_deploy_sdk.models.handler import Handler from seldon_deploy_sdk.models.health_check_info import HealthCheckInfo from seldon_deploy_sdk.models.horizontal_pod_autoscaler_behavior import HorizontalPodAutoscalerBehavior from seldon_deploy_sdk.models.horizontal_pod_autoscaler_config import HorizontalPodAutoscalerConfig from seldon_deploy_sdk.models.host_alias import HostAlias +from seldon_deploy_sdk.models.host_ip import HostIP from seldon_deploy_sdk.models.host_path_type import HostPathType from seldon_deploy_sdk.models.host_path_volume_source import HostPathVolumeSource from seldon_deploy_sdk.models.ip_family import IPFamily +from seldon_deploy_sdk.models.ip_family_policy import IPFamilyPolicy from seldon_deploy_sdk.models.iscsi_volume_source import ISCSIVolumeSource from seldon_deploy_sdk.models.int_or_string import IntOrString from seldon_deploy_sdk.models.join_type import JoinType @@ -160,6 +166,7 @@ from seldon_deploy_sdk.models.label_selector_operator import LabelSelectorOperator from seldon_deploy_sdk.models.label_selector_requirement import LabelSelectorRequirement from seldon_deploy_sdk.models.lifecycle import Lifecycle +from seldon_deploy_sdk.models.lifecycle_handler import LifecycleHandler from seldon_deploy_sdk.models.list_meta import ListMeta from seldon_deploy_sdk.models.local_object_reference import LocalObjectReference from seldon_deploy_sdk.models.logger import Logger @@ -168,8 +175,10 @@ from seldon_deploy_sdk.models.managed_fields_entry import ManagedFieldsEntry from seldon_deploy_sdk.models.managed_fields_operation_type import ManagedFieldsOperationType from seldon_deploy_sdk.models.message import Message +from seldon_deploy_sdk.models.metric_identifier import MetricIdentifier from seldon_deploy_sdk.models.metric_source_type import MetricSourceType from seldon_deploy_sdk.models.metric_spec import MetricSpec +from seldon_deploy_sdk.models.metric_target import MetricTarget from seldon_deploy_sdk.models.metric_target_type import MetricTargetType from seldon_deploy_sdk.models.model import Model from seldon_deploy_sdk.models.model_spec import ModelSpec @@ -184,11 +193,12 @@ from seldon_deploy_sdk.models.namespace_spec import NamespaceSpec from seldon_deploy_sdk.models.namespace_status import NamespaceStatus from seldon_deploy_sdk.models.node_affinity import NodeAffinity -from seldon_deploy_sdk.models.node_phase import NodePhase +from seldon_deploy_sdk.models.node_inclusion_policy import NodeInclusionPolicy from seldon_deploy_sdk.models.node_selector import NodeSelector from seldon_deploy_sdk.models.node_selector_operator import NodeSelectorOperator from seldon_deploy_sdk.models.node_selector_requirement import NodeSelectorRequirement from seldon_deploy_sdk.models.node_selector_term import NodeSelectorTerm +from seldon_deploy_sdk.models.os_name import OSName from seldon_deploy_sdk.models.object_field_selector import ObjectFieldSelector from seldon_deploy_sdk.models.object_meta import ObjectMeta from seldon_deploy_sdk.models.object_metric_source import ObjectMetricSource @@ -219,9 +229,14 @@ from seldon_deploy_sdk.models.pod_fs_group_change_policy import PodFSGroupChangePolicy from seldon_deploy_sdk.models.pod_ip import PodIP from seldon_deploy_sdk.models.pod_list import PodList +from seldon_deploy_sdk.models.pod_os import PodOS from seldon_deploy_sdk.models.pod_phase import PodPhase from seldon_deploy_sdk.models.pod_qos_class import PodQOSClass from seldon_deploy_sdk.models.pod_readiness_gate import PodReadinessGate +from seldon_deploy_sdk.models.pod_resize_status import PodResizeStatus +from seldon_deploy_sdk.models.pod_resource_claim import PodResourceClaim +from seldon_deploy_sdk.models.pod_resource_claim_status import PodResourceClaimStatus +from seldon_deploy_sdk.models.pod_scheduling_gate import PodSchedulingGate from seldon_deploy_sdk.models.pod_security_context import PodSecurityContext from seldon_deploy_sdk.models.pod_spec import PodSpec from seldon_deploy_sdk.models.pod_status import PodStatus @@ -245,11 +260,13 @@ from seldon_deploy_sdk.models.quantity import Quantity from seldon_deploy_sdk.models.quobyte_volume_source import QuobyteVolumeSource from seldon_deploy_sdk.models.rbd_volume_source import RBDVolumeSource +from seldon_deploy_sdk.models.resource_claim import ResourceClaim from seldon_deploy_sdk.models.resource_field_selector import ResourceFieldSelector from seldon_deploy_sdk.models.resource_list import ResourceList from seldon_deploy_sdk.models.resource_metric_source import ResourceMetricSource from seldon_deploy_sdk.models.resource_name import ResourceName from seldon_deploy_sdk.models.resource_requirements import ResourceRequirements +from seldon_deploy_sdk.models.resource_resize_restart_policy import ResourceResizeRestartPolicy from seldon_deploy_sdk.models.resource_type import ResourceType from seldon_deploy_sdk.models.restart_policy import RestartPolicy from seldon_deploy_sdk.models.rolling_update_deployment import RollingUpdateDeployment @@ -285,7 +302,8 @@ from seldon_deploy_sdk.models.service import Service from seldon_deploy_sdk.models.service_account_token_projection import ServiceAccountTokenProjection from seldon_deploy_sdk.models.service_affinity import ServiceAffinity -from seldon_deploy_sdk.models.service_external_traffic_policy_type import ServiceExternalTrafficPolicyType +from seldon_deploy_sdk.models.service_external_traffic_policy import ServiceExternalTrafficPolicy +from seldon_deploy_sdk.models.service_internal_traffic_policy import ServiceInternalTrafficPolicy from seldon_deploy_sdk.models.service_list import ServiceList from seldon_deploy_sdk.models.service_port import ServicePort from seldon_deploy_sdk.models.service_spec import ServiceSpec @@ -306,6 +324,7 @@ from seldon_deploy_sdk.models.transport import Transport from seldon_deploy_sdk.models.type import Type from seldon_deploy_sdk.models.typed_local_object_reference import TypedLocalObjectReference +from seldon_deploy_sdk.models.typed_object_reference import TypedObjectReference from seldon_deploy_sdk.models.uid import UID from seldon_deploy_sdk.models.uri_scheme import URIScheme from seldon_deploy_sdk.models.unsatisfiable_constraint_action import UnsatisfiableConstraintAction @@ -383,3 +402,4 @@ from seldon_deploy_sdk.models.vsphere_virtual_disk_volume_source import VsphereVirtualDiskVolumeSource from seldon_deploy_sdk.models.weighted_pod_affinity_term import WeightedPodAffinityTerm from seldon_deploy_sdk.models.windows_security_context_options import WindowsSecurityContextOptions +from seldon_deploy_sdk.models.workflow_phase import WorkflowPhase diff --git a/python/seldon_deploy_sdk/api_client.py b/python/seldon_deploy_sdk/api_client.py index 3ff891b..8d4f84d 100644 --- a/python/seldon_deploy_sdk/api_client.py +++ b/python/seldon_deploy_sdk/api_client.py @@ -75,7 +75,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None, self.default_headers[header_name] = header_value self.cookie = cookie # Set default User-Agent. - self.user_agent = 'Swagger-Codegen/2.2.0rc9/python' + self.user_agent = 'Swagger-Codegen/2.2.0/python' self.client_side_validation = configuration.client_side_validation def __del__(self): diff --git a/python/seldon_deploy_sdk/configuration.py b/python/seldon_deploy_sdk/configuration.py index 6853927..7c65572 100644 --- a/python/seldon_deploy_sdk/configuration.py +++ b/python/seldon_deploy_sdk/configuration.py @@ -283,5 +283,5 @@ def to_debug_report(self): "OS: {env}\n"\ "Python Version: {pyversion}\n"\ "Version of the API: v1alpha1\n"\ - "SDK Package Version: 2.2.0rc9".\ + "SDK Package Version: 2.2.0".\ format(env=sys.platform, pyversion=sys.version) diff --git a/python/seldon_deploy_sdk/models/__init__.py b/python/seldon_deploy_sdk/models/__init__.py index e8def7f..3677c93 100644 --- a/python/seldon_deploy_sdk/models/__init__.py +++ b/python/seldon_deploy_sdk/models/__init__.py @@ -41,6 +41,7 @@ from seldon_deploy_sdk.models.capability import Capability from seldon_deploy_sdk.models.ceph_fs_volume_source import CephFSVolumeSource from seldon_deploy_sdk.models.cinder_volume_source import CinderVolumeSource +from seldon_deploy_sdk.models.claim_source import ClaimSource from seldon_deploy_sdk.models.client_ip_config import ClientIPConfig from seldon_deploy_sdk.models.cluster_info import ClusterInfo from seldon_deploy_sdk.models.component import Component @@ -52,6 +53,9 @@ from seldon_deploy_sdk.models.config_map_volume_source import ConfigMapVolumeSource from seldon_deploy_sdk.models.container import Container from seldon_deploy_sdk.models.container_port import ContainerPort +from seldon_deploy_sdk.models.container_resize_policy import ContainerResizePolicy +from seldon_deploy_sdk.models.container_resource_metric_source import ContainerResourceMetricSource +from seldon_deploy_sdk.models.container_restart_policy import ContainerRestartPolicy from seldon_deploy_sdk.models.container_state import ContainerState from seldon_deploy_sdk.models.container_state_running import ContainerStateRunning from seldon_deploy_sdk.models.container_state_terminated import ContainerStateTerminated @@ -109,6 +113,7 @@ from seldon_deploy_sdk.models.flex_volume_source import FlexVolumeSource from seldon_deploy_sdk.models.flocker_volume_source import FlockerVolumeSource from seldon_deploy_sdk.models.gce_persistent_disk_volume_source import GCEPersistentDiskVolumeSource +from seldon_deploy_sdk.models.grpc_action import GRPCAction from seldon_deploy_sdk.models.git_repo_volume_source import GitRepoVolumeSource from seldon_deploy_sdk.models.glusterfs_volume_source import GlusterfsVolumeSource from seldon_deploy_sdk.models.hpa_scaling_policy import HPAScalingPolicy @@ -116,14 +121,15 @@ from seldon_deploy_sdk.models.hpa_scaling_rules import HPAScalingRules from seldon_deploy_sdk.models.http_get_action import HTTPGetAction from seldon_deploy_sdk.models.http_header import HTTPHeader -from seldon_deploy_sdk.models.handler import Handler from seldon_deploy_sdk.models.health_check_info import HealthCheckInfo from seldon_deploy_sdk.models.horizontal_pod_autoscaler_behavior import HorizontalPodAutoscalerBehavior from seldon_deploy_sdk.models.horizontal_pod_autoscaler_config import HorizontalPodAutoscalerConfig from seldon_deploy_sdk.models.host_alias import HostAlias +from seldon_deploy_sdk.models.host_ip import HostIP from seldon_deploy_sdk.models.host_path_type import HostPathType from seldon_deploy_sdk.models.host_path_volume_source import HostPathVolumeSource from seldon_deploy_sdk.models.ip_family import IPFamily +from seldon_deploy_sdk.models.ip_family_policy import IPFamilyPolicy from seldon_deploy_sdk.models.iscsi_volume_source import ISCSIVolumeSource from seldon_deploy_sdk.models.int_or_string import IntOrString from seldon_deploy_sdk.models.join_type import JoinType @@ -132,6 +138,7 @@ from seldon_deploy_sdk.models.label_selector_operator import LabelSelectorOperator from seldon_deploy_sdk.models.label_selector_requirement import LabelSelectorRequirement from seldon_deploy_sdk.models.lifecycle import Lifecycle +from seldon_deploy_sdk.models.lifecycle_handler import LifecycleHandler from seldon_deploy_sdk.models.list_meta import ListMeta from seldon_deploy_sdk.models.local_object_reference import LocalObjectReference from seldon_deploy_sdk.models.logger import Logger @@ -140,8 +147,10 @@ from seldon_deploy_sdk.models.managed_fields_entry import ManagedFieldsEntry from seldon_deploy_sdk.models.managed_fields_operation_type import ManagedFieldsOperationType from seldon_deploy_sdk.models.message import Message +from seldon_deploy_sdk.models.metric_identifier import MetricIdentifier from seldon_deploy_sdk.models.metric_source_type import MetricSourceType from seldon_deploy_sdk.models.metric_spec import MetricSpec +from seldon_deploy_sdk.models.metric_target import MetricTarget from seldon_deploy_sdk.models.metric_target_type import MetricTargetType from seldon_deploy_sdk.models.model import Model from seldon_deploy_sdk.models.model_spec import ModelSpec @@ -156,11 +165,12 @@ from seldon_deploy_sdk.models.namespace_spec import NamespaceSpec from seldon_deploy_sdk.models.namespace_status import NamespaceStatus from seldon_deploy_sdk.models.node_affinity import NodeAffinity -from seldon_deploy_sdk.models.node_phase import NodePhase +from seldon_deploy_sdk.models.node_inclusion_policy import NodeInclusionPolicy from seldon_deploy_sdk.models.node_selector import NodeSelector from seldon_deploy_sdk.models.node_selector_operator import NodeSelectorOperator from seldon_deploy_sdk.models.node_selector_requirement import NodeSelectorRequirement from seldon_deploy_sdk.models.node_selector_term import NodeSelectorTerm +from seldon_deploy_sdk.models.os_name import OSName from seldon_deploy_sdk.models.object_field_selector import ObjectFieldSelector from seldon_deploy_sdk.models.object_meta import ObjectMeta from seldon_deploy_sdk.models.object_metric_source import ObjectMetricSource @@ -191,9 +201,14 @@ from seldon_deploy_sdk.models.pod_fs_group_change_policy import PodFSGroupChangePolicy from seldon_deploy_sdk.models.pod_ip import PodIP from seldon_deploy_sdk.models.pod_list import PodList +from seldon_deploy_sdk.models.pod_os import PodOS from seldon_deploy_sdk.models.pod_phase import PodPhase from seldon_deploy_sdk.models.pod_qos_class import PodQOSClass from seldon_deploy_sdk.models.pod_readiness_gate import PodReadinessGate +from seldon_deploy_sdk.models.pod_resize_status import PodResizeStatus +from seldon_deploy_sdk.models.pod_resource_claim import PodResourceClaim +from seldon_deploy_sdk.models.pod_resource_claim_status import PodResourceClaimStatus +from seldon_deploy_sdk.models.pod_scheduling_gate import PodSchedulingGate from seldon_deploy_sdk.models.pod_security_context import PodSecurityContext from seldon_deploy_sdk.models.pod_spec import PodSpec from seldon_deploy_sdk.models.pod_status import PodStatus @@ -217,11 +232,13 @@ from seldon_deploy_sdk.models.quantity import Quantity from seldon_deploy_sdk.models.quobyte_volume_source import QuobyteVolumeSource from seldon_deploy_sdk.models.rbd_volume_source import RBDVolumeSource +from seldon_deploy_sdk.models.resource_claim import ResourceClaim from seldon_deploy_sdk.models.resource_field_selector import ResourceFieldSelector from seldon_deploy_sdk.models.resource_list import ResourceList from seldon_deploy_sdk.models.resource_metric_source import ResourceMetricSource from seldon_deploy_sdk.models.resource_name import ResourceName from seldon_deploy_sdk.models.resource_requirements import ResourceRequirements +from seldon_deploy_sdk.models.resource_resize_restart_policy import ResourceResizeRestartPolicy from seldon_deploy_sdk.models.resource_type import ResourceType from seldon_deploy_sdk.models.restart_policy import RestartPolicy from seldon_deploy_sdk.models.rolling_update_deployment import RollingUpdateDeployment @@ -257,7 +274,8 @@ from seldon_deploy_sdk.models.service import Service from seldon_deploy_sdk.models.service_account_token_projection import ServiceAccountTokenProjection from seldon_deploy_sdk.models.service_affinity import ServiceAffinity -from seldon_deploy_sdk.models.service_external_traffic_policy_type import ServiceExternalTrafficPolicyType +from seldon_deploy_sdk.models.service_external_traffic_policy import ServiceExternalTrafficPolicy +from seldon_deploy_sdk.models.service_internal_traffic_policy import ServiceInternalTrafficPolicy from seldon_deploy_sdk.models.service_list import ServiceList from seldon_deploy_sdk.models.service_port import ServicePort from seldon_deploy_sdk.models.service_spec import ServiceSpec @@ -278,6 +296,7 @@ from seldon_deploy_sdk.models.transport import Transport from seldon_deploy_sdk.models.type import Type from seldon_deploy_sdk.models.typed_local_object_reference import TypedLocalObjectReference +from seldon_deploy_sdk.models.typed_object_reference import TypedObjectReference from seldon_deploy_sdk.models.uid import UID from seldon_deploy_sdk.models.uri_scheme import URIScheme from seldon_deploy_sdk.models.unsatisfiable_constraint_action import UnsatisfiableConstraintAction @@ -355,3 +374,4 @@ from seldon_deploy_sdk.models.vsphere_virtual_disk_volume_source import VsphereVirtualDiskVolumeSource from seldon_deploy_sdk.models.weighted_pod_affinity_term import WeightedPodAffinityTerm from seldon_deploy_sdk.models.windows_security_context_options import WindowsSecurityContextOptions +from seldon_deploy_sdk.models.workflow_phase import WorkflowPhase diff --git a/python/seldon_deploy_sdk/models/aws_elastic_block_store_volume_source.py b/python/seldon_deploy_sdk/models/aws_elastic_block_store_volume_source.py index 2fcab90..d96d4ee 100644 --- a/python/seldon_deploy_sdk/models/aws_elastic_block_store_volume_source.py +++ b/python/seldon_deploy_sdk/models/aws_elastic_block_store_volume_source.py @@ -66,7 +66,7 @@ def __init__(self, fs_type=None, partition=None, read_only=None, volume_id=None) def fs_type(self): """Gets the fs_type of this AWSElasticBlockStoreVolumeSource. # noqa: E501 - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 :return: The fs_type of this AWSElasticBlockStoreVolumeSource. # noqa: E501 :rtype: str @@ -77,7 +77,7 @@ def fs_type(self): def fs_type(self, fs_type): """Sets the fs_type of this AWSElasticBlockStoreVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 :param fs_type: The fs_type of this AWSElasticBlockStoreVolumeSource. # noqa: E501 :type: str @@ -89,7 +89,7 @@ def fs_type(self, fs_type): def partition(self): """Gets the partition of this AWSElasticBlockStoreVolumeSource. # noqa: E501 - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). +optional # noqa: E501 + partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). +optional # noqa: E501 :return: The partition of this AWSElasticBlockStoreVolumeSource. # noqa: E501 :rtype: int @@ -100,7 +100,7 @@ def partition(self): def partition(self, partition): """Sets the partition of this AWSElasticBlockStoreVolumeSource. - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). +optional # noqa: E501 + partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). +optional # noqa: E501 :param partition: The partition of this AWSElasticBlockStoreVolumeSource. # noqa: E501 :type: int @@ -112,7 +112,7 @@ def partition(self, partition): def read_only(self): """Gets the read_only of this AWSElasticBlockStoreVolumeSource. # noqa: E501 - Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore +optional # noqa: E501 + readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore +optional # noqa: E501 :return: The read_only of this AWSElasticBlockStoreVolumeSource. # noqa: E501 :rtype: bool @@ -123,7 +123,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this AWSElasticBlockStoreVolumeSource. - Specify \"true\" to force and set the ReadOnly property in VolumeMounts to \"true\". If omitted, the default is \"false\". More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore +optional # noqa: E501 + readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore +optional # noqa: E501 :param read_only: The read_only of this AWSElasticBlockStoreVolumeSource. # noqa: E501 :type: bool @@ -135,7 +135,7 @@ def read_only(self, read_only): def volume_id(self): """Gets the volume_id of this AWSElasticBlockStoreVolumeSource. # noqa: E501 - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501 + volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501 :return: The volume_id of this AWSElasticBlockStoreVolumeSource. # noqa: E501 :rtype: str @@ -146,7 +146,7 @@ def volume_id(self): def volume_id(self, volume_id): """Sets the volume_id of this AWSElasticBlockStoreVolumeSource. - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501 + volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore # noqa: E501 :param volume_id: The volume_id of this AWSElasticBlockStoreVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/azure_disk_volume_source.py b/python/seldon_deploy_sdk/models/azure_disk_volume_source.py index 7087991..beb9230 100644 --- a/python/seldon_deploy_sdk/models/azure_disk_volume_source.py +++ b/python/seldon_deploy_sdk/models/azure_disk_volume_source.py @@ -97,7 +97,7 @@ def caching_mode(self, caching_mode): def disk_name(self): """Gets the disk_name of this AzureDiskVolumeSource. # noqa: E501 - The Name of the data disk in the blob storage # noqa: E501 + diskName is the Name of the data disk in the blob storage # noqa: E501 :return: The disk_name of this AzureDiskVolumeSource. # noqa: E501 :rtype: str @@ -108,7 +108,7 @@ def disk_name(self): def disk_name(self, disk_name): """Sets the disk_name of this AzureDiskVolumeSource. - The Name of the data disk in the blob storage # noqa: E501 + diskName is the Name of the data disk in the blob storage # noqa: E501 :param disk_name: The disk_name of this AzureDiskVolumeSource. # noqa: E501 :type: str @@ -120,7 +120,7 @@ def disk_name(self, disk_name): def disk_uri(self): """Gets the disk_uri of this AzureDiskVolumeSource. # noqa: E501 - The URI the data disk in the blob storage # noqa: E501 + diskURI is the URI of data disk in the blob storage # noqa: E501 :return: The disk_uri of this AzureDiskVolumeSource. # noqa: E501 :rtype: str @@ -131,7 +131,7 @@ def disk_uri(self): def disk_uri(self, disk_uri): """Sets the disk_uri of this AzureDiskVolumeSource. - The URI the data disk in the blob storage # noqa: E501 + diskURI is the URI of data disk in the blob storage # noqa: E501 :param disk_uri: The disk_uri of this AzureDiskVolumeSource. # noqa: E501 :type: str @@ -143,7 +143,7 @@ def disk_uri(self, disk_uri): def fs_type(self): """Gets the fs_type of this AzureDiskVolumeSource. # noqa: E501 - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional # noqa: E501 + fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional # noqa: E501 :return: The fs_type of this AzureDiskVolumeSource. # noqa: E501 :rtype: str @@ -154,7 +154,7 @@ def fs_type(self): def fs_type(self, fs_type): """Sets the fs_type of this AzureDiskVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional # noqa: E501 + fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional # noqa: E501 :param fs_type: The fs_type of this AzureDiskVolumeSource. # noqa: E501 :type: str @@ -187,7 +187,7 @@ def kind(self, kind): def read_only(self): """Gets the read_only of this AzureDiskVolumeSource. # noqa: E501 - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 + readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 :return: The read_only of this AzureDiskVolumeSource. # noqa: E501 :rtype: bool @@ -198,7 +198,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this AzureDiskVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 + readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 :param read_only: The read_only of this AzureDiskVolumeSource. # noqa: E501 :type: bool diff --git a/python/seldon_deploy_sdk/models/azure_file_volume_source.py b/python/seldon_deploy_sdk/models/azure_file_volume_source.py index 28537d7..c37208d 100644 --- a/python/seldon_deploy_sdk/models/azure_file_volume_source.py +++ b/python/seldon_deploy_sdk/models/azure_file_volume_source.py @@ -61,7 +61,7 @@ def __init__(self, read_only=None, secret_name=None, share_name=None): # noqa: def read_only(self): """Gets the read_only of this AzureFileVolumeSource. # noqa: E501 - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 :return: The read_only of this AzureFileVolumeSource. # noqa: E501 :rtype: bool @@ -72,7 +72,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this AzureFileVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 :param read_only: The read_only of this AzureFileVolumeSource. # noqa: E501 :type: bool @@ -84,7 +84,7 @@ def read_only(self, read_only): def secret_name(self): """Gets the secret_name of this AzureFileVolumeSource. # noqa: E501 - the name of secret that contains Azure Storage Account Name and Key # noqa: E501 + secretName is the name of secret that contains Azure Storage Account Name and Key # noqa: E501 :return: The secret_name of this AzureFileVolumeSource. # noqa: E501 :rtype: str @@ -95,7 +95,7 @@ def secret_name(self): def secret_name(self, secret_name): """Sets the secret_name of this AzureFileVolumeSource. - the name of secret that contains Azure Storage Account Name and Key # noqa: E501 + secretName is the name of secret that contains Azure Storage Account Name and Key # noqa: E501 :param secret_name: The secret_name of this AzureFileVolumeSource. # noqa: E501 :type: str @@ -107,7 +107,7 @@ def secret_name(self, secret_name): def share_name(self): """Gets the share_name of this AzureFileVolumeSource. # noqa: E501 - Share Name # noqa: E501 + shareName is the azure share Name # noqa: E501 :return: The share_name of this AzureFileVolumeSource. # noqa: E501 :rtype: str @@ -118,7 +118,7 @@ def share_name(self): def share_name(self, share_name): """Sets the share_name of this AzureFileVolumeSource. - Share Name # noqa: E501 + shareName is the azure share Name # noqa: E501 :param share_name: The share_name of this AzureFileVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/batch_job_description.py b/python/seldon_deploy_sdk/models/batch_job_description.py index 69b117f..1f6214d 100644 --- a/python/seldon_deploy_sdk/models/batch_job_description.py +++ b/python/seldon_deploy_sdk/models/batch_job_description.py @@ -34,7 +34,7 @@ class BatchJobDescription(object): 'finished_at': 'str', 'started_at': 'str', 'workflow_name': 'str', - 'workflow_status': 'NodePhase', + 'workflow_status': 'WorkflowPhase', 'workflow_uid': 'UID' } @@ -142,7 +142,7 @@ def workflow_status(self): :return: The workflow_status of this BatchJobDescription. # noqa: E501 - :rtype: NodePhase + :rtype: WorkflowPhase """ return self._workflow_status @@ -152,7 +152,7 @@ def workflow_status(self, workflow_status): :param workflow_status: The workflow_status of this BatchJobDescription. # noqa: E501 - :type: NodePhase + :type: WorkflowPhase """ self._workflow_status = workflow_status diff --git a/python/seldon_deploy_sdk/models/ceph_fs_volume_source.py b/python/seldon_deploy_sdk/models/ceph_fs_volume_source.py index 4ad5fb7..ef449b1 100644 --- a/python/seldon_deploy_sdk/models/ceph_fs_volume_source.py +++ b/python/seldon_deploy_sdk/models/ceph_fs_volume_source.py @@ -76,7 +76,7 @@ def __init__(self, monitors=None, path=None, read_only=None, secret_file=None, s def monitors(self): """Gets the monitors of this CephFSVolumeSource. # noqa: E501 - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501 + monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501 :return: The monitors of this CephFSVolumeSource. # noqa: E501 :rtype: list[str] @@ -87,7 +87,7 @@ def monitors(self): def monitors(self, monitors): """Sets the monitors of this CephFSVolumeSource. - Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501 + monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it # noqa: E501 :param monitors: The monitors of this CephFSVolumeSource. # noqa: E501 :type: list[str] @@ -99,7 +99,7 @@ def monitors(self, monitors): def path(self): """Gets the path of this CephFSVolumeSource. # noqa: E501 - Optional: Used as the mounted root, rather than the full Ceph tree, default is / +optional # noqa: E501 + path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / +optional # noqa: E501 :return: The path of this CephFSVolumeSource. # noqa: E501 :rtype: str @@ -110,7 +110,7 @@ def path(self): def path(self, path): """Sets the path of this CephFSVolumeSource. - Optional: Used as the mounted root, rather than the full Ceph tree, default is / +optional # noqa: E501 + path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / +optional # noqa: E501 :param path: The path of this CephFSVolumeSource. # noqa: E501 :type: str @@ -122,7 +122,7 @@ def path(self, path): def read_only(self): """Gets the read_only of this CephFSVolumeSource. # noqa: E501 - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional # noqa: E501 + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional # noqa: E501 :return: The read_only of this CephFSVolumeSource. # noqa: E501 :rtype: bool @@ -133,7 +133,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this CephFSVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional # noqa: E501 + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional # noqa: E501 :param read_only: The read_only of this CephFSVolumeSource. # noqa: E501 :type: bool @@ -145,7 +145,7 @@ def read_only(self, read_only): def secret_file(self): """Gets the secret_file of this CephFSVolumeSource. # noqa: E501 - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional # noqa: E501 + secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional # noqa: E501 :return: The secret_file of this CephFSVolumeSource. # noqa: E501 :rtype: str @@ -156,7 +156,7 @@ def secret_file(self): def secret_file(self, secret_file): """Sets the secret_file of this CephFSVolumeSource. - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional # noqa: E501 + secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional # noqa: E501 :param secret_file: The secret_file of this CephFSVolumeSource. # noqa: E501 :type: str @@ -189,7 +189,7 @@ def secret_ref(self, secret_ref): def user(self): """Gets the user of this CephFSVolumeSource. # noqa: E501 - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional # noqa: E501 + user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional # noqa: E501 :return: The user of this CephFSVolumeSource. # noqa: E501 :rtype: str @@ -200,7 +200,7 @@ def user(self): def user(self, user): """Sets the user of this CephFSVolumeSource. - Optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional # noqa: E501 + user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional # noqa: E501 :param user: The user of this CephFSVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/cinder_volume_source.py b/python/seldon_deploy_sdk/models/cinder_volume_source.py index d525e19..876cb29 100644 --- a/python/seldon_deploy_sdk/models/cinder_volume_source.py +++ b/python/seldon_deploy_sdk/models/cinder_volume_source.py @@ -66,7 +66,7 @@ def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_id=None def fs_type(self): """Gets the fs_type of this CinderVolumeSource. # noqa: E501 - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional # noqa: E501 + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional # noqa: E501 :return: The fs_type of this CinderVolumeSource. # noqa: E501 :rtype: str @@ -77,7 +77,7 @@ def fs_type(self): def fs_type(self, fs_type): """Sets the fs_type of this CinderVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional # noqa: E501 + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional # noqa: E501 :param fs_type: The fs_type of this CinderVolumeSource. # noqa: E501 :type: str @@ -89,7 +89,7 @@ def fs_type(self, fs_type): def read_only(self): """Gets the read_only of this CinderVolumeSource. # noqa: E501 - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional # noqa: E501 + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional # noqa: E501 :return: The read_only of this CinderVolumeSource. # noqa: E501 :rtype: bool @@ -100,7 +100,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this CinderVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional # noqa: E501 + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional # noqa: E501 :param read_only: The read_only of this CinderVolumeSource. # noqa: E501 :type: bool @@ -133,7 +133,7 @@ def secret_ref(self, secret_ref): def volume_id(self): """Gets the volume_id of this CinderVolumeSource. # noqa: E501 - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501 + volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501 :return: The volume_id of this CinderVolumeSource. # noqa: E501 :rtype: str @@ -144,7 +144,7 @@ def volume_id(self): def volume_id(self, volume_id): """Sets the volume_id of this CinderVolumeSource. - volume id used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501 + volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md # noqa: E501 :param volume_id: The volume_id of this CinderVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/claim_source.py b/python/seldon_deploy_sdk/models/claim_source.py new file mode 100644 index 0000000..c9c0cfd --- /dev/null +++ b/python/seldon_deploy_sdk/models/claim_source.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ClaimSource(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'resource_claim_name': 'str', + 'resource_claim_template_name': 'str' + } + + attribute_map = { + 'resource_claim_name': 'resourceClaimName', + 'resource_claim_template_name': 'resourceClaimTemplateName' + } + + def __init__(self, resource_claim_name=None, resource_claim_template_name=None): # noqa: E501 + """ClaimSource - a model defined in Swagger""" # noqa: E501 + + self._resource_claim_name = None + self._resource_claim_template_name = None + self.discriminator = None + + if resource_claim_name is not None: + self.resource_claim_name = resource_claim_name + if resource_claim_template_name is not None: + self.resource_claim_template_name = resource_claim_template_name + + @property + def resource_claim_name(self): + """Gets the resource_claim_name of this ClaimSource. # noqa: E501 + + ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. # noqa: E501 + + :return: The resource_claim_name of this ClaimSource. # 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 ClaimSource. + + ResourceClaimName is the name of a ResourceClaim object in the same namespace as this pod. # noqa: E501 + + :param resource_claim_name: The resource_claim_name of this ClaimSource. # noqa: E501 + :type: str + """ + + self._resource_claim_name = resource_claim_name + + @property + def resource_claim_template_name(self): + """Gets the resource_claim_template_name of this ClaimSource. # noqa: E501 + + ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. # noqa: E501 + + :return: The resource_claim_template_name of this ClaimSource. # noqa: E501 + :rtype: str + """ + return self._resource_claim_template_name + + @resource_claim_template_name.setter + def resource_claim_template_name(self, resource_claim_template_name): + """Sets the resource_claim_template_name of this ClaimSource. + + ResourceClaimTemplateName is the name of a ResourceClaimTemplate object in the same namespace as this pod. The template will be used to create a new ResourceClaim, which will be bound to this pod. When this pod is deleted, the ResourceClaim will also be deleted. The pod name and resource name, along with a generated component, will be used to form a unique name for the ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. This field is immutable and no changes will be made to the corresponding ResourceClaim by the control plane after creating the ResourceClaim. # noqa: E501 + + :param resource_claim_template_name: The resource_claim_template_name of this ClaimSource. # noqa: E501 + :type: str + """ + + self._resource_claim_template_name = resource_claim_template_name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ClaimSource, dict): + for key, value in self.items(): + result[key] = 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, ClaimSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/config_map_projection.py b/python/seldon_deploy_sdk/models/config_map_projection.py index e701b17..404e005 100644 --- a/python/seldon_deploy_sdk/models/config_map_projection.py +++ b/python/seldon_deploy_sdk/models/config_map_projection.py @@ -61,7 +61,7 @@ def __init__(self, items=None, name=None, optional=None): # noqa: E501 def items(self): """Gets the items of this ConfigMapProjection. # noqa: E501 - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 + items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 :return: The items of this ConfigMapProjection. # noqa: E501 :rtype: list[KeyToPath] @@ -72,7 +72,7 @@ def items(self): def items(self, items): """Sets the items of this ConfigMapProjection. - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 + items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 :param items: The items of this ConfigMapProjection. # noqa: E501 :type: list[KeyToPath] @@ -107,7 +107,7 @@ def name(self, name): def optional(self): """Gets the optional of this ConfigMapProjection. # noqa: E501 - Specify whether the ConfigMap or its keys must be defined +optional # noqa: E501 + optional specify whether the ConfigMap or its keys must be defined +optional # noqa: E501 :return: The optional of this ConfigMapProjection. # noqa: E501 :rtype: bool @@ -118,7 +118,7 @@ def optional(self): def optional(self, optional): """Sets the optional of this ConfigMapProjection. - Specify whether the ConfigMap or its keys must be defined +optional # noqa: E501 + optional specify whether the ConfigMap or its keys must be defined +optional # noqa: E501 :param optional: The optional of this ConfigMapProjection. # noqa: E501 :type: bool diff --git a/python/seldon_deploy_sdk/models/config_map_volume_source.py b/python/seldon_deploy_sdk/models/config_map_volume_source.py index 554a958..15a1d85 100644 --- a/python/seldon_deploy_sdk/models/config_map_volume_source.py +++ b/python/seldon_deploy_sdk/models/config_map_volume_source.py @@ -66,7 +66,7 @@ def __init__(self, default_mode=None, items=None, name=None, optional=None): # def default_mode(self): """Gets the default_mode of this ConfigMapVolumeSource. # noqa: E501 - Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 + defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 :return: The default_mode of this ConfigMapVolumeSource. # noqa: E501 :rtype: int @@ -77,7 +77,7 @@ def default_mode(self): def default_mode(self, default_mode): """Sets the default_mode of this ConfigMapVolumeSource. - Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 + defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 :param default_mode: The default_mode of this ConfigMapVolumeSource. # noqa: E501 :type: int @@ -89,7 +89,7 @@ def default_mode(self, default_mode): def items(self): """Gets the items of this ConfigMapVolumeSource. # noqa: E501 - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 + items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 :return: The items of this ConfigMapVolumeSource. # noqa: E501 :rtype: list[KeyToPath] @@ -100,7 +100,7 @@ def items(self): def items(self, items): """Sets the items of this ConfigMapVolumeSource. - If unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 + items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the ConfigMap, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 :param items: The items of this ConfigMapVolumeSource. # noqa: E501 :type: list[KeyToPath] @@ -135,7 +135,7 @@ def name(self, name): def optional(self): """Gets the optional of this ConfigMapVolumeSource. # noqa: E501 - Specify whether the ConfigMap or its keys must be defined +optional # noqa: E501 + optional specify whether the ConfigMap or its keys must be defined +optional # noqa: E501 :return: The optional of this ConfigMapVolumeSource. # noqa: E501 :rtype: bool @@ -146,7 +146,7 @@ def optional(self): def optional(self, optional): """Sets the optional of this ConfigMapVolumeSource. - Specify whether the ConfigMap or its keys must be defined +optional # noqa: E501 + optional specify whether the ConfigMap or its keys must be defined +optional # noqa: E501 :param optional: The optional of this ConfigMapVolumeSource. # noqa: E501 :type: bool diff --git a/python/seldon_deploy_sdk/models/container.py b/python/seldon_deploy_sdk/models/container.py index dac5d69..d5943f5 100644 --- a/python/seldon_deploy_sdk/models/container.py +++ b/python/seldon_deploy_sdk/models/container.py @@ -42,7 +42,9 @@ class Container(object): 'name': 'str', 'ports': 'list[ContainerPort]', 'readiness_probe': 'Probe', + 'resize_policy': 'list[ContainerResizePolicy]', 'resources': 'ResourceRequirements', + 'restart_policy': 'ContainerRestartPolicy', 'security_context': 'SecurityContext', 'startup_probe': 'Probe', 'stdin': 'bool', @@ -67,7 +69,9 @@ class Container(object): 'name': 'name', 'ports': 'ports', 'readiness_probe': 'readinessProbe', + 'resize_policy': 'resizePolicy', 'resources': 'resources', + 'restart_policy': 'restartPolicy', 'security_context': 'securityContext', 'startup_probe': 'startupProbe', 'stdin': 'stdin', @@ -80,7 +84,7 @@ class Container(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, resources=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): # 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, 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): # noqa: E501 """Container - a model defined in Swagger""" # noqa: E501 self._args = None @@ -94,7 +98,9 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, self._name = None self._ports = None self._readiness_probe = None + self._resize_policy = None self._resources = None + self._restart_policy = None self._security_context = None self._startup_probe = None self._stdin = None @@ -129,8 +135,12 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, self.ports = ports if readiness_probe is not None: self.readiness_probe = readiness_probe + if resize_policy is not None: + self.resize_policy = resize_policy if resources is not None: self.resources = resources + if restart_policy is not None: + self.restart_policy = restart_policy if security_context is not None: self.security_context = security_context if startup_probe is not None: @@ -156,7 +166,7 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, def args(self): """Gets the args of this Container. # noqa: E501 - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 + Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 :return: The args of this Container. # noqa: E501 :rtype: list[str] @@ -167,7 +177,7 @@ def args(self): def args(self, args): """Sets the args of this Container. - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 + Arguments to the entrypoint. The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 :param args: The args of this Container. # noqa: E501 :type: list[str] @@ -179,7 +189,7 @@ def args(self, args): def command(self): """Gets the command of this Container. # noqa: E501 - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 + Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 :return: The command of this Container. # noqa: E501 :rtype: list[str] @@ -190,7 +200,7 @@ def command(self): def command(self, command): """Sets the command of this Container. - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 + Entrypoint array. Not executed within a shell. The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 :param command: The command of this Container. # noqa: E501 :type: list[str] @@ -248,7 +258,7 @@ def env_from(self, env_from): def image(self): """Gets the image of this Container. # noqa: E501 - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. +optional # noqa: E501 + Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. +optional # noqa: E501 :return: The image of this Container. # noqa: E501 :rtype: str @@ -259,7 +269,7 @@ def image(self): def image(self, image): """Sets the image of this Container. - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. +optional # noqa: E501 + Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. +optional # noqa: E501 :param image: The image of this Container. # noqa: E501 :type: str @@ -357,7 +367,7 @@ def name(self, name): def ports(self): """Gets the ports of this Container. # noqa: E501 - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. +optional +patchMergeKey=containerPort +patchStrategy=merge +listType=map +listMapKey=containerPort +listMapKey=protocol # noqa: E501 + List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. +optional +patchMergeKey=containerPort +patchStrategy=merge +listType=map +listMapKey=containerPort +listMapKey=protocol # noqa: E501 :return: The ports of this Container. # noqa: E501 :rtype: list[ContainerPort] @@ -368,7 +378,7 @@ def ports(self): def ports(self, ports): """Sets the ports of this Container. - List of ports to expose from the container. Exposing a port here gives the system additional information about the network connections a container uses, but is primarily informational. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Cannot be updated. +optional +patchMergeKey=containerPort +patchStrategy=merge +listType=map +listMapKey=containerPort +listMapKey=protocol # noqa: E501 + List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default \"0.0.0.0\" address inside a container will be accessible from the network. Modifying this array with strategic merge patch may corrupt the data. For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. +optional +patchMergeKey=containerPort +patchStrategy=merge +listType=map +listMapKey=containerPort +listMapKey=protocol # noqa: E501 :param ports: The ports of this Container. # noqa: E501 :type: list[ContainerPort] @@ -397,6 +407,29 @@ def readiness_probe(self, readiness_probe): self._readiness_probe = readiness_probe + @property + def resize_policy(self): + """Gets the resize_policy of this Container. # noqa: E501 + + Resources resize policy for the container. +featureGate=InPlacePodVerticalScaling +optional +listType=atomic # noqa: E501 + + :return: The resize_policy of this Container. # noqa: E501 + :rtype: list[ContainerResizePolicy] + """ + return self._resize_policy + + @resize_policy.setter + def resize_policy(self, resize_policy): + """Sets the resize_policy of this Container. + + Resources resize policy for the container. +featureGate=InPlacePodVerticalScaling +optional +listType=atomic # noqa: E501 + + :param resize_policy: The resize_policy of this Container. # noqa: E501 + :type: list[ContainerResizePolicy] + """ + + self._resize_policy = resize_policy + @property def resources(self): """Gets the resources of this Container. # noqa: E501 @@ -418,6 +451,27 @@ def resources(self, resources): self._resources = resources + @property + def restart_policy(self): + """Gets the restart_policy of this Container. # noqa: E501 + + + :return: The restart_policy of this Container. # noqa: E501 + :rtype: ContainerRestartPolicy + """ + return self._restart_policy + + @restart_policy.setter + def restart_policy(self, restart_policy): + """Sets the restart_policy of this Container. + + + :param restart_policy: The restart_policy of this Container. # noqa: E501 + :type: ContainerRestartPolicy + """ + + self._restart_policy = restart_policy + @property def security_context(self): """Gets the security_context of this Container. # noqa: E501 diff --git a/python/seldon_deploy_sdk/models/container_resize_policy.py b/python/seldon_deploy_sdk/models/container_resize_policy.py new file mode 100644 index 0000000..558b6e9 --- /dev/null +++ b/python/seldon_deploy_sdk/models/container_resize_policy.py @@ -0,0 +1,141 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ContainerResizePolicy(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'resource_name': 'ResourceName', + 'restart_policy': 'ResourceResizeRestartPolicy' + } + + attribute_map = { + 'resource_name': 'resourceName', + 'restart_policy': 'restartPolicy' + } + + def __init__(self, resource_name=None, restart_policy=None): # noqa: E501 + """ContainerResizePolicy - a model defined in Swagger""" # noqa: E501 + + self._resource_name = None + self._restart_policy = None + self.discriminator = None + + if resource_name is not None: + self.resource_name = resource_name + if restart_policy is not None: + self.restart_policy = restart_policy + + @property + def resource_name(self): + """Gets the resource_name of this ContainerResizePolicy. # noqa: E501 + + + :return: The resource_name of this ContainerResizePolicy. # noqa: E501 + :rtype: ResourceName + """ + return self._resource_name + + @resource_name.setter + def resource_name(self, resource_name): + """Sets the resource_name of this ContainerResizePolicy. + + + :param resource_name: The resource_name of this ContainerResizePolicy. # noqa: E501 + :type: ResourceName + """ + + self._resource_name = resource_name + + @property + def restart_policy(self): + """Gets the restart_policy of this ContainerResizePolicy. # noqa: E501 + + + :return: The restart_policy of this ContainerResizePolicy. # noqa: E501 + :rtype: ResourceResizeRestartPolicy + """ + return self._restart_policy + + @restart_policy.setter + def restart_policy(self, restart_policy): + """Sets the restart_policy of this ContainerResizePolicy. + + + :param restart_policy: The restart_policy of this ContainerResizePolicy. # noqa: E501 + :type: ResourceResizeRestartPolicy + """ + + self._restart_policy = restart_policy + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ContainerResizePolicy, dict): + for key, value in self.items(): + result[key] = 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, ContainerResizePolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/container_resource_metric_source.py b/python/seldon_deploy_sdk/models/container_resource_metric_source.py new file mode 100644 index 0000000..daa285e --- /dev/null +++ b/python/seldon_deploy_sdk/models/container_resource_metric_source.py @@ -0,0 +1,169 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ContainerResourceMetricSource(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'container': 'str', + 'name': 'ResourceName', + 'target': 'MetricTarget' + } + + attribute_map = { + 'container': 'container', + 'name': 'name', + 'target': 'target' + } + + def __init__(self, container=None, name=None, target=None): # noqa: E501 + """ContainerResourceMetricSource - a model defined in Swagger""" # noqa: E501 + + self._container = None + self._name = None + self._target = None + self.discriminator = None + + if container is not None: + self.container = container + if name is not None: + self.name = name + if target is not None: + self.target = target + + @property + def container(self): + """Gets the container of this ContainerResourceMetricSource. # noqa: E501 + + container is the name of the container in the pods of the scaling target # noqa: E501 + + :return: The container of this ContainerResourceMetricSource. # noqa: E501 + :rtype: str + """ + return self._container + + @container.setter + def container(self, container): + """Sets the container of this ContainerResourceMetricSource. + + container is the name of the container in the pods of the scaling target # noqa: E501 + + :param container: The container of this ContainerResourceMetricSource. # noqa: E501 + :type: str + """ + + self._container = container + + @property + def name(self): + """Gets the name of this ContainerResourceMetricSource. # noqa: E501 + + + :return: The name of this ContainerResourceMetricSource. # noqa: E501 + :rtype: ResourceName + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ContainerResourceMetricSource. + + + :param name: The name of this ContainerResourceMetricSource. # noqa: E501 + :type: ResourceName + """ + + self._name = name + + @property + def target(self): + """Gets the target of this ContainerResourceMetricSource. # noqa: E501 + + + :return: The target of this ContainerResourceMetricSource. # noqa: E501 + :rtype: MetricTarget + """ + return self._target + + @target.setter + def target(self, target): + """Sets the target of this ContainerResourceMetricSource. + + + :param target: The target of this ContainerResourceMetricSource. # noqa: E501 + :type: MetricTarget + """ + + self._target = target + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ContainerResourceMetricSource, dict): + for key, value in self.items(): + result[key] = 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, ContainerResourceMetricSource): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/service_external_traffic_policy_type.py b/python/seldon_deploy_sdk/models/container_restart_policy.py similarity index 89% rename from python/seldon_deploy_sdk/models/service_external_traffic_policy_type.py rename to python/seldon_deploy_sdk/models/container_restart_policy.py index 814b1c1..549b515 100644 --- a/python/seldon_deploy_sdk/models/service_external_traffic_policy_type.py +++ b/python/seldon_deploy_sdk/models/container_restart_policy.py @@ -17,7 +17,7 @@ import six -class ServiceExternalTrafficPolicyType(object): +class ContainerRestartPolicy(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -37,7 +37,7 @@ class ServiceExternalTrafficPolicyType(object): } def __init__(self): # noqa: E501 - """ServiceExternalTrafficPolicyType - a model defined in Swagger""" # noqa: E501 + """ContainerRestartPolicy - a model defined in Swagger""" # noqa: E501 self.discriminator = None def to_dict(self): @@ -61,7 +61,7 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(ServiceExternalTrafficPolicyType, dict): + if issubclass(ContainerRestartPolicy, dict): for key, value in self.items(): result[key] = value @@ -77,7 +77,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, ServiceExternalTrafficPolicyType): + if not isinstance(other, ContainerRestartPolicy): return False return self.__dict__ == other.__dict__ diff --git a/python/seldon_deploy_sdk/models/container_state_terminated.py b/python/seldon_deploy_sdk/models/container_state_terminated.py index e5ac8f6..88cf0e7 100644 --- a/python/seldon_deploy_sdk/models/container_state_terminated.py +++ b/python/seldon_deploy_sdk/models/container_state_terminated.py @@ -81,7 +81,7 @@ def __init__(self, container_id=None, exit_code=None, finished_at=None, message= def container_id(self): """Gets the container_id of this ContainerStateTerminated. # noqa: E501 - Container's ID in the format 'docker://' +optional # noqa: E501 + Container's ID in the format '://' +optional # noqa: E501 :return: The container_id of this ContainerStateTerminated. # noqa: E501 :rtype: str @@ -92,7 +92,7 @@ def container_id(self): def container_id(self, container_id): """Sets the container_id of this ContainerStateTerminated. - Container's ID in the format 'docker://' +optional # noqa: E501 + Container's ID in the format '://' +optional # noqa: E501 :param container_id: The container_id of this ContainerStateTerminated. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/container_status.py b/python/seldon_deploy_sdk/models/container_status.py index 4c0acc4..c943e37 100644 --- a/python/seldon_deploy_sdk/models/container_status.py +++ b/python/seldon_deploy_sdk/models/container_status.py @@ -31,43 +31,51 @@ class ContainerStatus(object): and the value is json key in definition. """ swagger_types = { + 'allocated_resources': 'ResourceList', 'container_id': 'str', 'image': 'str', 'image_id': 'str', 'last_state': 'ContainerState', 'name': 'str', 'ready': 'bool', + 'resources': 'ResourceRequirements', 'restart_count': 'int', 'started': 'bool', 'state': 'ContainerState' } attribute_map = { + 'allocated_resources': 'allocatedResources', 'container_id': 'containerID', 'image': 'image', 'image_id': 'imageID', 'last_state': 'lastState', 'name': 'name', 'ready': 'ready', + 'resources': 'resources', 'restart_count': 'restartCount', 'started': 'started', 'state': 'state' } - def __init__(self, container_id=None, image=None, image_id=None, last_state=None, name=None, ready=None, restart_count=None, started=None, state=None): # noqa: E501 + def __init__(self, allocated_resources=None, container_id=None, image=None, image_id=None, last_state=None, name=None, ready=None, resources=None, restart_count=None, started=None, state=None): # noqa: E501 """ContainerStatus - a model defined in Swagger""" # noqa: E501 + self._allocated_resources = None self._container_id = None self._image = None self._image_id = None self._last_state = None self._name = None self._ready = None + self._resources = None self._restart_count = None self._started = None self._state = None self.discriminator = None + if allocated_resources is not None: + self.allocated_resources = allocated_resources if container_id is not None: self.container_id = container_id if image is not None: @@ -80,6 +88,8 @@ def __init__(self, container_id=None, image=None, image_id=None, last_state=None self.name = name if ready is not None: self.ready = ready + if resources is not None: + self.resources = resources if restart_count is not None: self.restart_count = restart_count if started is not None: @@ -87,11 +97,32 @@ def __init__(self, container_id=None, image=None, image_id=None, last_state=None if state is not None: self.state = state + @property + def allocated_resources(self): + """Gets the allocated_resources of this ContainerStatus. # noqa: E501 + + + :return: The allocated_resources of this ContainerStatus. # noqa: E501 + :rtype: ResourceList + """ + return self._allocated_resources + + @allocated_resources.setter + def allocated_resources(self, allocated_resources): + """Sets the allocated_resources of this ContainerStatus. + + + :param allocated_resources: The allocated_resources of this ContainerStatus. # noqa: E501 + :type: ResourceList + """ + + self._allocated_resources = allocated_resources + @property def container_id(self): """Gets the container_id of this ContainerStatus. # noqa: E501 - Container's ID in the format 'docker://'. +optional # noqa: E501 + ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\"). +optional # noqa: E501 :return: The container_id of this ContainerStatus. # noqa: E501 :rtype: str @@ -102,7 +133,7 @@ def container_id(self): def container_id(self, container_id): """Sets the container_id of this ContainerStatus. - Container's ID in the format 'docker://'. +optional # noqa: E501 + ContainerID is the ID of the container in the format '://'. Where type is a container runtime identifier, returned from Version call of CRI API (for example \"containerd\"). +optional # noqa: E501 :param container_id: The container_id of this ContainerStatus. # noqa: E501 :type: str @@ -114,7 +145,7 @@ def container_id(self, container_id): def image(self): """Gets the image of this ContainerStatus. # noqa: E501 - The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images TODO(dchen1107): Which image the container is running with? # noqa: E501 + Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images. # noqa: E501 :return: The image of this ContainerStatus. # noqa: E501 :rtype: str @@ -125,7 +156,7 @@ def image(self): def image(self, image): """Sets the image of this ContainerStatus. - The image the container is running. More info: https://kubernetes.io/docs/concepts/containers/images TODO(dchen1107): Which image the container is running with? # noqa: E501 + Image is the name of container image that the container is running. The container image may not match the image used in the PodSpec, as it may have been resolved by the runtime. More info: https://kubernetes.io/docs/concepts/containers/images. # noqa: E501 :param image: The image of this ContainerStatus. # noqa: E501 :type: str @@ -137,7 +168,7 @@ def image(self, image): def image_id(self): """Gets the image_id of this ContainerStatus. # noqa: E501 - ImageID of the container's image. # noqa: E501 + ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime. # noqa: E501 :return: The image_id of this ContainerStatus. # noqa: E501 :rtype: str @@ -148,7 +179,7 @@ def image_id(self): def image_id(self, image_id): """Sets the image_id of this ContainerStatus. - ImageID of the container's image. # noqa: E501 + ImageID is the image ID of the container's image. The image ID may not match the image ID of the image used in the PodSpec, as it may have been resolved by the runtime. # noqa: E501 :param image_id: The image_id of this ContainerStatus. # noqa: E501 :type: str @@ -181,7 +212,7 @@ def last_state(self, last_state): def name(self): """Gets the name of this ContainerStatus. # noqa: E501 - This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. # noqa: E501 + Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated. # noqa: E501 :return: The name of this ContainerStatus. # noqa: E501 :rtype: str @@ -192,7 +223,7 @@ def name(self): def name(self, name): """Sets the name of this ContainerStatus. - This must be a DNS_LABEL. Each container in a pod must have a unique name. Cannot be updated. # noqa: E501 + Name is a DNS_LABEL representing the unique name of the container. Each container in a pod must have a unique name across all container types. Cannot be updated. # noqa: E501 :param name: The name of this ContainerStatus. # noqa: E501 :type: str @@ -204,7 +235,7 @@ def name(self, name): def ready(self): """Gets the ready of this ContainerStatus. # noqa: E501 - Specifies whether the container has passed its readiness probe. # noqa: E501 + Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). The value is typically used to determine whether a container is ready to accept traffic. # noqa: E501 :return: The ready of this ContainerStatus. # noqa: E501 :rtype: bool @@ -215,7 +246,7 @@ def ready(self): def ready(self, ready): """Sets the ready of this ContainerStatus. - Specifies whether the container has passed its readiness probe. # noqa: E501 + Ready specifies whether the container is currently passing its readiness check. The value will change as readiness probes keep executing. If no readiness probes are specified, this field defaults to true once the container is fully started (see Started field). The value is typically used to determine whether a container is ready to accept traffic. # noqa: E501 :param ready: The ready of this ContainerStatus. # noqa: E501 :type: bool @@ -223,11 +254,32 @@ def ready(self, ready): self._ready = ready + @property + def resources(self): + """Gets the resources of this ContainerStatus. # noqa: E501 + + + :return: The resources of this ContainerStatus. # noqa: E501 + :rtype: ResourceRequirements + """ + return self._resources + + @resources.setter + def resources(self, resources): + """Sets the resources of this ContainerStatus. + + + :param resources: The resources of this ContainerStatus. # noqa: E501 + :type: ResourceRequirements + """ + + self._resources = resources + @property def restart_count(self): """Gets the restart_count of this ContainerStatus. # noqa: E501 - The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. # noqa: E501 + RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative. # noqa: E501 :return: The restart_count of this ContainerStatus. # noqa: E501 :rtype: int @@ -238,7 +290,7 @@ def restart_count(self): def restart_count(self, restart_count): """Sets the restart_count of this ContainerStatus. - The number of times the container has been restarted, currently based on the number of dead containers that have not yet been removed. Note that this is calculated from dead containers. But those containers are subject to garbage collection. This value will get capped at 5 by GC. # noqa: E501 + RestartCount holds the number of times the container has been restarted. Kubelet makes an effort to always increment the value, but there are cases when the state may be lost due to node restarts and then the value may be reset to 0. The value is never negative. # noqa: E501 :param restart_count: The restart_count of this ContainerStatus. # noqa: E501 :type: int @@ -250,7 +302,7 @@ def restart_count(self, restart_count): def started(self): """Gets the started of this ContainerStatus. # noqa: E501 - Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined. +optional # noqa: E501 + Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false. +optional # noqa: E501 :return: The started of this ContainerStatus. # noqa: E501 :rtype: bool @@ -261,7 +313,7 @@ def started(self): def started(self, started): """Sets the started of this ContainerStatus. - Specifies whether the container has passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. Is always true when no startupProbe is defined. +optional # noqa: E501 + Started indicates whether the container has finished its postStart lifecycle hook and passed its startup probe. Initialized as false, becomes true after startupProbe is considered successful. Resets to false when the container is restarted, or if kubelet loses state temporarily. In both cases, startup probes will run again. Is always true when no startupProbe is defined and container is running and has passed the postStart lifecycle hook. The null value must be treated the same as false. +optional # noqa: E501 :param started: The started of this ContainerStatus. # noqa: E501 :type: bool diff --git a/python/seldon_deploy_sdk/models/cross_version_object_reference.py b/python/seldon_deploy_sdk/models/cross_version_object_reference.py index 25f1606..4111c71 100644 --- a/python/seldon_deploy_sdk/models/cross_version_object_reference.py +++ b/python/seldon_deploy_sdk/models/cross_version_object_reference.py @@ -61,7 +61,7 @@ def __init__(self, api_version=None, kind=None, name=None): # noqa: E501 def api_version(self): """Gets the api_version of this CrossVersionObjectReference. # noqa: E501 - API version of the referent +optional # noqa: E501 + apiVersion is the API version of the referent +optional # noqa: E501 :return: The api_version of this CrossVersionObjectReference. # noqa: E501 :rtype: str @@ -72,7 +72,7 @@ def api_version(self): def api_version(self, api_version): """Sets the api_version of this CrossVersionObjectReference. - API version of the referent +optional # noqa: E501 + apiVersion is the API version of the referent +optional # noqa: E501 :param api_version: The api_version of this CrossVersionObjectReference. # noqa: E501 :type: str @@ -84,7 +84,7 @@ def api_version(self, api_version): def kind(self): """Gets the kind of this CrossVersionObjectReference. # noqa: E501 - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\" # noqa: E501 + kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 :return: The kind of this CrossVersionObjectReference. # noqa: E501 :rtype: str @@ -95,7 +95,7 @@ def kind(self): def kind(self, kind): """Sets the kind of this CrossVersionObjectReference. - Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds\" # noqa: E501 + kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds # noqa: E501 :param kind: The kind of this CrossVersionObjectReference. # noqa: E501 :type: str @@ -107,7 +107,7 @@ def kind(self, kind): def name(self): """Gets the name of this CrossVersionObjectReference. # noqa: E501 - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names # noqa: E501 + name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 :return: The name of this CrossVersionObjectReference. # noqa: E501 :rtype: str @@ -118,7 +118,7 @@ def name(self): def name(self, name): """Sets the name of this CrossVersionObjectReference. - Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names # noqa: E501 + name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 :param name: The name of this CrossVersionObjectReference. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/csi_volume_source.py b/python/seldon_deploy_sdk/models/csi_volume_source.py index 3d99890..607ef2c 100644 --- a/python/seldon_deploy_sdk/models/csi_volume_source.py +++ b/python/seldon_deploy_sdk/models/csi_volume_source.py @@ -71,7 +71,7 @@ def __init__(self, driver=None, fs_type=None, node_publish_secret_ref=None, read def driver(self): """Gets the driver of this CSIVolumeSource. # noqa: E501 - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. # noqa: E501 + driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. # noqa: E501 :return: The driver of this CSIVolumeSource. # noqa: E501 :rtype: str @@ -82,7 +82,7 @@ def driver(self): def driver(self, driver): """Sets the driver of this CSIVolumeSource. - Driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. # noqa: E501 + driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. # noqa: E501 :param driver: The driver of this CSIVolumeSource. # noqa: E501 :type: str @@ -94,7 +94,7 @@ def driver(self, driver): def fs_type(self): """Gets the fs_type of this CSIVolumeSource. # noqa: E501 - Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. +optional # noqa: E501 + fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. +optional # noqa: E501 :return: The fs_type of this CSIVolumeSource. # noqa: E501 :rtype: str @@ -105,7 +105,7 @@ def fs_type(self): def fs_type(self, fs_type): """Sets the fs_type of this CSIVolumeSource. - Filesystem type to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. +optional # noqa: E501 + fsType to mount. Ex. \"ext4\", \"xfs\", \"ntfs\". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. +optional # noqa: E501 :param fs_type: The fs_type of this CSIVolumeSource. # noqa: E501 :type: str @@ -138,7 +138,7 @@ def node_publish_secret_ref(self, node_publish_secret_ref): def read_only(self): """Gets the read_only of this CSIVolumeSource. # noqa: E501 - Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional # noqa: E501 + readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). +optional # noqa: E501 :return: The read_only of this CSIVolumeSource. # noqa: E501 :rtype: bool @@ -149,7 +149,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this CSIVolumeSource. - Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional # noqa: E501 + readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). +optional # noqa: E501 :param read_only: The read_only of this CSIVolumeSource. # noqa: E501 :type: bool @@ -161,7 +161,7 @@ def read_only(self, read_only): def volume_attributes(self): """Gets the volume_attributes of this CSIVolumeSource. # noqa: E501 - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional # noqa: E501 + volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional # noqa: E501 :return: The volume_attributes of this CSIVolumeSource. # noqa: E501 :rtype: dict(str, str) @@ -172,7 +172,7 @@ def volume_attributes(self): def volume_attributes(self, volume_attributes): """Sets the volume_attributes of this CSIVolumeSource. - VolumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional # noqa: E501 + volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional # noqa: E501 :param volume_attributes: The volume_attributes of this CSIVolumeSource. # noqa: E501 :type: dict(str, str) diff --git a/python/seldon_deploy_sdk/models/deployment.py b/python/seldon_deploy_sdk/models/deployment.py index 1cbe8cc..0199abe 100644 --- a/python/seldon_deploy_sdk/models/deployment.py +++ b/python/seldon_deploy_sdk/models/deployment.py @@ -33,7 +33,6 @@ class Deployment(object): swagger_types = { 'annotations': 'dict(str, str)', 'api_version': 'str', - 'cluster_name': 'str', 'creation_timestamp': 'str', 'deletion_grace_period_seconds': 'int', 'deletion_timestamp': 'str', @@ -56,7 +55,6 @@ class Deployment(object): attribute_map = { 'annotations': 'annotations', 'api_version': 'apiVersion', - 'cluster_name': 'clusterName', 'creation_timestamp': 'creationTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', @@ -76,12 +74,11 @@ class Deployment(object): 'uid': 'uid' } - def __init__(self, annotations=None, api_version=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, kind=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, status=None, uid=None): # noqa: E501 + def __init__(self, annotations=None, api_version=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, kind=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, status=None, uid=None): # noqa: E501 """Deployment - a model defined in Swagger""" # noqa: E501 self._annotations = None self._api_version = None - self._cluster_name = None self._creation_timestamp = None self._deletion_grace_period_seconds = None self._deletion_timestamp = None @@ -105,8 +102,6 @@ def __init__(self, annotations=None, api_version=None, cluster_name=None, creati self.annotations = annotations if api_version is not None: self.api_version = api_version - if cluster_name is not None: - self.cluster_name = cluster_name if creation_timestamp is not None: self.creation_timestamp = creation_timestamp if deletion_grace_period_seconds is not None: @@ -146,7 +141,7 @@ def __init__(self, annotations=None, api_version=None, cluster_name=None, creati def annotations(self): """Gets the annotations of this Deployment. # noqa: E501 - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :return: The annotations of this Deployment. # noqa: E501 :rtype: dict(str, str) @@ -157,7 +152,7 @@ def annotations(self): def annotations(self, annotations): """Sets the annotations of this Deployment. - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :param annotations: The annotations of this Deployment. # noqa: E501 :type: dict(str, str) @@ -188,29 +183,6 @@ def api_version(self, api_version): self._api_version = api_version - @property - def cluster_name(self): - """Gets the cluster_name of this Deployment. # noqa: E501 - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :return: The cluster_name of this Deployment. # noqa: E501 - :rtype: str - """ - return self._cluster_name - - @cluster_name.setter - def cluster_name(self, cluster_name): - """Sets the cluster_name of this Deployment. - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :param cluster_name: The cluster_name of this Deployment. # noqa: E501 - :type: str - """ - - self._cluster_name = cluster_name - @property def creation_timestamp(self): """Gets the creation_timestamp of this Deployment. # noqa: E501 @@ -307,7 +279,7 @@ def finalizers(self, finalizers): def generate_name(self): """Gets the generate_name of this Deployment. # noqa: E501 - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :return: The generate_name of this Deployment. # noqa: E501 :rtype: str @@ -318,7 +290,7 @@ def generate_name(self): def generate_name(self, generate_name): """Sets the generate_name of this Deployment. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :param generate_name: The generate_name of this Deployment. # noqa: E501 :type: str @@ -376,7 +348,7 @@ def kind(self, kind): def labels(self): """Gets the labels of this Deployment. # noqa: E501 - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :return: The labels of this Deployment. # noqa: E501 :rtype: dict(str, str) @@ -387,7 +359,7 @@ def labels(self): def labels(self, labels): """Sets the labels of this Deployment. - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :param labels: The labels of this Deployment. # noqa: E501 :type: dict(str, str) @@ -422,7 +394,7 @@ def managed_fields(self, managed_fields): def name(self): """Gets the name of this Deployment. # noqa: E501 - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :return: The name of this Deployment. # noqa: E501 :rtype: str @@ -433,7 +405,7 @@ def name(self): def name(self, name): """Sets the name of this Deployment. - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :param name: The name of this Deployment. # noqa: E501 :type: str @@ -445,7 +417,7 @@ def name(self, name): def namespace(self): """Gets the namespace of this Deployment. # noqa: E501 - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :return: The namespace of this Deployment. # noqa: E501 :rtype: str @@ -456,7 +428,7 @@ def namespace(self): def namespace(self, namespace): """Sets the namespace of this Deployment. - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :param namespace: The namespace of this Deployment. # noqa: E501 :type: str @@ -514,7 +486,7 @@ def resource_version(self, resource_version): def self_link(self): """Gets the self_link of this Deployment. # noqa: E501 - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :return: The self_link of this Deployment. # noqa: E501 :rtype: str @@ -525,7 +497,7 @@ def self_link(self): def self_link(self, self_link): """Sets the self_link of this Deployment. - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :param self_link: The self_link of this Deployment. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/deployment_list.py b/python/seldon_deploy_sdk/models/deployment_list.py index a5ce9b6..d26e386 100644 --- a/python/seldon_deploy_sdk/models/deployment_list.py +++ b/python/seldon_deploy_sdk/models/deployment_list.py @@ -219,7 +219,7 @@ def resource_version(self, resource_version): def self_link(self): """Gets the self_link of this DeploymentList. # noqa: E501 - selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :return: The self_link of this DeploymentList. # noqa: E501 :rtype: str @@ -230,7 +230,7 @@ def self_link(self): def self_link(self, self_link): """Sets the self_link of this DeploymentList. - selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :param self_link: The self_link of this DeploymentList. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/env_var.py b/python/seldon_deploy_sdk/models/env_var.py index 1300d8a..ede80f1 100644 --- a/python/seldon_deploy_sdk/models/env_var.py +++ b/python/seldon_deploy_sdk/models/env_var.py @@ -84,7 +84,7 @@ def name(self, name): def value(self): """Gets the value of this EnvVar. # noqa: E501 - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". +optional # noqa: E501 + Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". +optional # noqa: E501 :return: The value of this EnvVar. # noqa: E501 :rtype: str @@ -95,7 +95,7 @@ def value(self): def value(self, value): """Sets the value of this EnvVar. - Variable references $(VAR_NAME) are expanded using the previous defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". +optional # noqa: E501 + Variable references $(VAR_NAME) are expanded using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to \"\". +optional # noqa: E501 :param value: The value of this EnvVar. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/ephemeral_container.py b/python/seldon_deploy_sdk/models/ephemeral_container.py index 8aa768e..7329002 100644 --- a/python/seldon_deploy_sdk/models/ephemeral_container.py +++ b/python/seldon_deploy_sdk/models/ephemeral_container.py @@ -42,7 +42,9 @@ class EphemeralContainer(object): 'name': 'str', 'ports': 'list[ContainerPort]', 'readiness_probe': 'Probe', + 'resize_policy': 'list[ContainerResizePolicy]', 'resources': 'ResourceRequirements', + 'restart_policy': 'ContainerRestartPolicy', 'security_context': 'SecurityContext', 'startup_probe': 'Probe', 'stdin': 'bool', @@ -68,7 +70,9 @@ class EphemeralContainer(object): 'name': 'name', 'ports': 'ports', 'readiness_probe': 'readinessProbe', + 'resize_policy': 'resizePolicy', 'resources': 'resources', + 'restart_policy': 'restartPolicy', 'security_context': 'securityContext', 'startup_probe': 'startupProbe', 'stdin': 'stdin', @@ -82,7 +86,7 @@ class EphemeralContainer(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, resources=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): # 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, 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): # noqa: E501 """EphemeralContainer - a model defined in Swagger""" # noqa: E501 self._args = None @@ -96,7 +100,9 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, self._name = None self._ports = None self._readiness_probe = None + self._resize_policy = None self._resources = None + self._restart_policy = None self._security_context = None self._startup_probe = None self._stdin = None @@ -132,8 +138,12 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, self.ports = ports if readiness_probe is not None: self.readiness_probe = readiness_probe + if resize_policy is not None: + self.resize_policy = resize_policy if resources is not None: self.resources = resources + if restart_policy is not None: + self.restart_policy = restart_policy if security_context is not None: self.security_context = security_context if startup_probe is not None: @@ -161,7 +171,7 @@ def __init__(self, args=None, command=None, env=None, env_from=None, image=None, def args(self): """Gets the args of this EphemeralContainer. # noqa: E501 - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 + Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 :return: The args of this EphemeralContainer. # noqa: E501 :rtype: list[str] @@ -172,7 +182,7 @@ def args(self): def args(self, args): """Sets the args of this EphemeralContainer. - Arguments to the entrypoint. The docker image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 + Arguments to the entrypoint. The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 :param args: The args of this EphemeralContainer. # noqa: E501 :type: list[str] @@ -184,7 +194,7 @@ def args(self, args): def command(self): """Gets the command of this EphemeralContainer. # noqa: E501 - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 + Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 :return: The command of this EphemeralContainer. # noqa: E501 :rtype: list[str] @@ -195,7 +205,7 @@ def command(self): def command(self, command): """Sets the command of this EphemeralContainer. - Entrypoint array. Not executed within a shell. The docker image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 + Entrypoint array. Not executed within a shell. The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. \"$$(VAR_NAME)\" will produce the string literal \"$(VAR_NAME)\". Escaped references will never be expanded, regardless of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional # noqa: E501 :param command: The command of this EphemeralContainer. # noqa: E501 :type: list[str] @@ -253,7 +263,7 @@ def env_from(self, env_from): def image(self): """Gets the image of this EphemeralContainer. # noqa: E501 - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images # noqa: E501 + Container image name. More info: https://kubernetes.io/docs/concepts/containers/images # noqa: E501 :return: The image of this EphemeralContainer. # noqa: E501 :rtype: str @@ -264,7 +274,7 @@ def image(self): def image(self, image): """Sets the image of this EphemeralContainer. - Docker image name. More info: https://kubernetes.io/docs/concepts/containers/images # noqa: E501 + Container image name. More info: https://kubernetes.io/docs/concepts/containers/images # noqa: E501 :param image: The image of this EphemeralContainer. # noqa: E501 :type: str @@ -362,7 +372,7 @@ def name(self, name): def ports(self): """Gets the ports of this EphemeralContainer. # noqa: E501 - Ports are not allowed for ephemeral containers. # noqa: E501 + Ports are not allowed for ephemeral containers. +optional +patchMergeKey=containerPort +patchStrategy=merge +listType=map +listMapKey=containerPort +listMapKey=protocol # noqa: E501 :return: The ports of this EphemeralContainer. # noqa: E501 :rtype: list[ContainerPort] @@ -373,7 +383,7 @@ def ports(self): def ports(self, ports): """Sets the ports of this EphemeralContainer. - Ports are not allowed for ephemeral containers. # noqa: E501 + Ports are not allowed for ephemeral containers. +optional +patchMergeKey=containerPort +patchStrategy=merge +listType=map +listMapKey=containerPort +listMapKey=protocol # noqa: E501 :param ports: The ports of this EphemeralContainer. # noqa: E501 :type: list[ContainerPort] @@ -402,6 +412,29 @@ def readiness_probe(self, readiness_probe): self._readiness_probe = readiness_probe + @property + def resize_policy(self): + """Gets the resize_policy of this EphemeralContainer. # noqa: E501 + + Resources resize policy for the container. +featureGate=InPlacePodVerticalScaling +optional +listType=atomic # noqa: E501 + + :return: The resize_policy of this EphemeralContainer. # noqa: E501 + :rtype: list[ContainerResizePolicy] + """ + return self._resize_policy + + @resize_policy.setter + def resize_policy(self, resize_policy): + """Sets the resize_policy of this EphemeralContainer. + + Resources resize policy for the container. +featureGate=InPlacePodVerticalScaling +optional +listType=atomic # noqa: E501 + + :param resize_policy: The resize_policy of this EphemeralContainer. # noqa: E501 + :type: list[ContainerResizePolicy] + """ + + self._resize_policy = resize_policy + @property def resources(self): """Gets the resources of this EphemeralContainer. # noqa: E501 @@ -423,6 +456,27 @@ def resources(self, resources): self._resources = resources + @property + def restart_policy(self): + """Gets the restart_policy of this EphemeralContainer. # noqa: E501 + + + :return: The restart_policy of this EphemeralContainer. # noqa: E501 + :rtype: ContainerRestartPolicy + """ + return self._restart_policy + + @restart_policy.setter + def restart_policy(self, restart_policy): + """Sets the restart_policy of this EphemeralContainer. + + + :param restart_policy: The restart_policy of this EphemeralContainer. # noqa: E501 + :type: ContainerRestartPolicy + """ + + self._restart_policy = restart_policy + @property def security_context(self): """Gets the security_context of this EphemeralContainer. # noqa: E501 @@ -515,7 +569,7 @@ def stdin_once(self, stdin_once): def target_container_name(self): """Gets the target_container_name of this EphemeralContainer. # noqa: E501 - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. +optional # noqa: E501 + If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional # noqa: E501 :return: The target_container_name of this EphemeralContainer. # noqa: E501 :rtype: str @@ -526,7 +580,7 @@ def target_container_name(self): def target_container_name(self, target_container_name): """Sets the target_container_name of this EphemeralContainer. - If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container is run in whatever namespaces are shared for the pod. Note that the container runtime must support this feature. +optional # noqa: E501 + If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. If not set then the ephemeral container uses the namespaces configured in the Pod spec. The container runtime must implement support for this feature. If the runtime does not support namespace targeting then the result of setting this field is undefined. +optional # noqa: E501 :param target_container_name: The target_container_name of this EphemeralContainer. # noqa: E501 :type: str @@ -628,7 +682,7 @@ def volume_devices(self, volume_devices): def volume_mounts(self): """Gets the volume_mounts of this EphemeralContainer. # noqa: E501 - Pod volumes to mount into the container's filesystem. Cannot be updated. +optional +patchMergeKey=mountPath +patchStrategy=merge # noqa: E501 + Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated. +optional +patchMergeKey=mountPath +patchStrategy=merge # noqa: E501 :return: The volume_mounts of this EphemeralContainer. # noqa: E501 :rtype: list[VolumeMount] @@ -639,7 +693,7 @@ def volume_mounts(self): def volume_mounts(self, volume_mounts): """Sets the volume_mounts of this EphemeralContainer. - Pod volumes to mount into the container's filesystem. Cannot be updated. +optional +patchMergeKey=mountPath +patchStrategy=merge # noqa: E501 + Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated. +optional +patchMergeKey=mountPath +patchStrategy=merge # noqa: E501 :param volume_mounts: The volume_mounts of this EphemeralContainer. # noqa: E501 :type: list[VolumeMount] diff --git a/python/seldon_deploy_sdk/models/ephemeral_volume_source.py b/python/seldon_deploy_sdk/models/ephemeral_volume_source.py index 72a3f8b..fea90dc 100644 --- a/python/seldon_deploy_sdk/models/ephemeral_volume_source.py +++ b/python/seldon_deploy_sdk/models/ephemeral_volume_source.py @@ -31,50 +31,22 @@ class EphemeralVolumeSource(object): and the value is json key in definition. """ swagger_types = { - 'read_only': 'bool', 'volume_claim_template': 'PersistentVolumeClaimTemplate' } attribute_map = { - 'read_only': 'readOnly', 'volume_claim_template': 'volumeClaimTemplate' } - def __init__(self, read_only=None, volume_claim_template=None): # noqa: E501 + def __init__(self, volume_claim_template=None): # noqa: E501 """EphemeralVolumeSource - a model defined in Swagger""" # noqa: E501 - self._read_only = None self._volume_claim_template = None self.discriminator = None - if read_only is not None: - self.read_only = read_only if volume_claim_template is not None: self.volume_claim_template = volume_claim_template - @property - def read_only(self): - """Gets the read_only of this EphemeralVolumeSource. # noqa: E501 - - Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional # noqa: E501 - - :return: The read_only of this EphemeralVolumeSource. # noqa: E501 - :rtype: bool - """ - return self._read_only - - @read_only.setter - def read_only(self, read_only): - """Sets the read_only of this EphemeralVolumeSource. - - Specifies a read-only configuration for the volume. Defaults to false (read/write). +optional # noqa: E501 - - :param read_only: The read_only of this EphemeralVolumeSource. # noqa: E501 - :type: bool - """ - - self._read_only = read_only - @property def volume_claim_template(self): """Gets the volume_claim_template of this EphemeralVolumeSource. # noqa: E501 diff --git a/python/seldon_deploy_sdk/models/experiment.py b/python/seldon_deploy_sdk/models/experiment.py index 92703ae..1867dd9 100644 --- a/python/seldon_deploy_sdk/models/experiment.py +++ b/python/seldon_deploy_sdk/models/experiment.py @@ -33,7 +33,6 @@ class Experiment(object): swagger_types = { 'annotations': 'dict(str, str)', 'api_version': 'str', - 'cluster_name': 'str', 'creation_timestamp': 'str', 'deletion_grace_period_seconds': 'int', 'deletion_timestamp': 'str', @@ -56,7 +55,6 @@ class Experiment(object): attribute_map = { 'annotations': 'annotations', 'api_version': 'apiVersion', - 'cluster_name': 'clusterName', 'creation_timestamp': 'creationTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', @@ -76,12 +74,11 @@ class Experiment(object): 'uid': 'uid' } - def __init__(self, annotations=None, api_version=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, kind=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, status=None, uid=None): # noqa: E501 + def __init__(self, annotations=None, api_version=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, kind=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, status=None, uid=None): # noqa: E501 """Experiment - a model defined in Swagger""" # noqa: E501 self._annotations = None self._api_version = None - self._cluster_name = None self._creation_timestamp = None self._deletion_grace_period_seconds = None self._deletion_timestamp = None @@ -105,8 +102,6 @@ def __init__(self, annotations=None, api_version=None, cluster_name=None, creati self.annotations = annotations if api_version is not None: self.api_version = api_version - if cluster_name is not None: - self.cluster_name = cluster_name if creation_timestamp is not None: self.creation_timestamp = creation_timestamp if deletion_grace_period_seconds is not None: @@ -146,7 +141,7 @@ def __init__(self, annotations=None, api_version=None, cluster_name=None, creati def annotations(self): """Gets the annotations of this Experiment. # noqa: E501 - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :return: The annotations of this Experiment. # noqa: E501 :rtype: dict(str, str) @@ -157,7 +152,7 @@ def annotations(self): def annotations(self, annotations): """Sets the annotations of this Experiment. - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :param annotations: The annotations of this Experiment. # noqa: E501 :type: dict(str, str) @@ -188,29 +183,6 @@ def api_version(self, api_version): self._api_version = api_version - @property - def cluster_name(self): - """Gets the cluster_name of this Experiment. # noqa: E501 - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :return: The cluster_name of this Experiment. # noqa: E501 - :rtype: str - """ - return self._cluster_name - - @cluster_name.setter - def cluster_name(self, cluster_name): - """Sets the cluster_name of this Experiment. - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :param cluster_name: The cluster_name of this Experiment. # noqa: E501 - :type: str - """ - - self._cluster_name = cluster_name - @property def creation_timestamp(self): """Gets the creation_timestamp of this Experiment. # noqa: E501 @@ -307,7 +279,7 @@ def finalizers(self, finalizers): def generate_name(self): """Gets the generate_name of this Experiment. # noqa: E501 - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :return: The generate_name of this Experiment. # noqa: E501 :rtype: str @@ -318,7 +290,7 @@ def generate_name(self): def generate_name(self, generate_name): """Sets the generate_name of this Experiment. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :param generate_name: The generate_name of this Experiment. # noqa: E501 :type: str @@ -376,7 +348,7 @@ def kind(self, kind): def labels(self): """Gets the labels of this Experiment. # noqa: E501 - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :return: The labels of this Experiment. # noqa: E501 :rtype: dict(str, str) @@ -387,7 +359,7 @@ def labels(self): def labels(self, labels): """Sets the labels of this Experiment. - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :param labels: The labels of this Experiment. # noqa: E501 :type: dict(str, str) @@ -422,7 +394,7 @@ def managed_fields(self, managed_fields): def name(self): """Gets the name of this Experiment. # noqa: E501 - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :return: The name of this Experiment. # noqa: E501 :rtype: str @@ -433,7 +405,7 @@ def name(self): def name(self, name): """Sets the name of this Experiment. - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :param name: The name of this Experiment. # noqa: E501 :type: str @@ -445,7 +417,7 @@ def name(self, name): def namespace(self): """Gets the namespace of this Experiment. # noqa: E501 - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :return: The namespace of this Experiment. # noqa: E501 :rtype: str @@ -456,7 +428,7 @@ def namespace(self): def namespace(self, namespace): """Sets the namespace of this Experiment. - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :param namespace: The namespace of this Experiment. # noqa: E501 :type: str @@ -514,7 +486,7 @@ def resource_version(self, resource_version): def self_link(self): """Gets the self_link of this Experiment. # noqa: E501 - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :return: The self_link of this Experiment. # noqa: E501 :rtype: str @@ -525,7 +497,7 @@ def self_link(self): def self_link(self, self_link): """Sets the self_link of this Experiment. - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :param self_link: The self_link of this Experiment. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/external_metric_source.py b/python/seldon_deploy_sdk/models/external_metric_source.py index 38de00f..aaed4f4 100644 --- a/python/seldon_deploy_sdk/models/external_metric_source.py +++ b/python/seldon_deploy_sdk/models/external_metric_source.py @@ -31,122 +31,68 @@ class ExternalMetricSource(object): and the value is json key in definition. """ swagger_types = { - 'metric_name': 'str', - 'metric_selector': 'LabelSelector', - 'target_average_value': 'Quantity', - 'target_value': 'Quantity' + 'metric': 'MetricIdentifier', + 'target': 'MetricTarget' } attribute_map = { - 'metric_name': 'metricName', - 'metric_selector': 'metricSelector', - 'target_average_value': 'targetAverageValue', - 'target_value': 'targetValue' + 'metric': 'metric', + 'target': 'target' } - def __init__(self, metric_name=None, metric_selector=None, target_average_value=None, target_value=None): # noqa: E501 + def __init__(self, metric=None, target=None): # noqa: E501 """ExternalMetricSource - a model defined in Swagger""" # noqa: E501 - self._metric_name = None - self._metric_selector = None - self._target_average_value = None - self._target_value = None + self._metric = None + self._target = None self.discriminator = None - if metric_name is not None: - self.metric_name = metric_name - if metric_selector is not None: - self.metric_selector = metric_selector - if target_average_value is not None: - self.target_average_value = target_average_value - if target_value is not None: - self.target_value = target_value + if metric is not None: + self.metric = metric + if target is not None: + self.target = target @property - def metric_name(self): - """Gets the metric_name of this ExternalMetricSource. # noqa: E501 + def metric(self): + """Gets the metric of this ExternalMetricSource. # noqa: E501 - metricName is the name of the metric in question. # noqa: E501 - :return: The metric_name of this ExternalMetricSource. # noqa: E501 - :rtype: str + :return: The metric of this ExternalMetricSource. # noqa: E501 + :rtype: MetricIdentifier """ - return self._metric_name + return self._metric - @metric_name.setter - def metric_name(self, metric_name): - """Sets the metric_name of this ExternalMetricSource. + @metric.setter + def metric(self, metric): + """Sets the metric of this ExternalMetricSource. - metricName is the name of the metric in question. # noqa: E501 - :param metric_name: The metric_name of this ExternalMetricSource. # noqa: E501 - :type: str + :param metric: The metric of this ExternalMetricSource. # noqa: E501 + :type: MetricIdentifier """ - self._metric_name = metric_name + self._metric = metric @property - def metric_selector(self): - """Gets the metric_selector of this ExternalMetricSource. # noqa: E501 + def target(self): + """Gets the target of this ExternalMetricSource. # noqa: E501 - :return: The metric_selector of this ExternalMetricSource. # noqa: E501 - :rtype: LabelSelector + :return: The target of this ExternalMetricSource. # noqa: E501 + :rtype: MetricTarget """ - return self._metric_selector + return self._target - @metric_selector.setter - def metric_selector(self, metric_selector): - """Sets the metric_selector of this ExternalMetricSource. + @target.setter + def target(self, target): + """Sets the target of this ExternalMetricSource. - :param metric_selector: The metric_selector of this ExternalMetricSource. # noqa: E501 - :type: LabelSelector + :param target: The target of this ExternalMetricSource. # noqa: E501 + :type: MetricTarget """ - self._metric_selector = metric_selector - - @property - def target_average_value(self): - """Gets the target_average_value of this ExternalMetricSource. # noqa: E501 - - - :return: The target_average_value of this ExternalMetricSource. # noqa: E501 - :rtype: Quantity - """ - return self._target_average_value - - @target_average_value.setter - def target_average_value(self, target_average_value): - """Sets the target_average_value of this ExternalMetricSource. - - - :param target_average_value: The target_average_value of this ExternalMetricSource. # noqa: E501 - :type: Quantity - """ - - self._target_average_value = target_average_value - - @property - def target_value(self): - """Gets the target_value of this ExternalMetricSource. # noqa: E501 - - - :return: The target_value of this ExternalMetricSource. # noqa: E501 - :rtype: Quantity - """ - return self._target_value - - @target_value.setter - def target_value(self, target_value): - """Sets the target_value of this ExternalMetricSource. - - - :param target_value: The target_value of this ExternalMetricSource. # noqa: E501 - :type: Quantity - """ - - self._target_value = target_value + self._target = target def to_dict(self): """Returns the model properties as a dict""" diff --git a/python/seldon_deploy_sdk/models/fc_volume_source.py b/python/seldon_deploy_sdk/models/fc_volume_source.py index 231edba..1562b98 100644 --- a/python/seldon_deploy_sdk/models/fc_volume_source.py +++ b/python/seldon_deploy_sdk/models/fc_volume_source.py @@ -71,7 +71,7 @@ def __init__(self, fs_type=None, lun=None, read_only=None, target_ww_ns=None, ww def fs_type(self): """Gets the fs_type of this FCVolumeSource. # noqa: E501 - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 :return: The fs_type of this FCVolumeSource. # noqa: E501 :rtype: str @@ -82,7 +82,7 @@ def fs_type(self): def fs_type(self, fs_type): """Sets the fs_type of this FCVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 :param fs_type: The fs_type of this FCVolumeSource. # noqa: E501 :type: str @@ -94,7 +94,7 @@ def fs_type(self, fs_type): def lun(self): """Gets the lun of this FCVolumeSource. # noqa: E501 - Optional: FC target lun number +optional # noqa: E501 + lun is Optional: FC target lun number +optional # noqa: E501 :return: The lun of this FCVolumeSource. # noqa: E501 :rtype: int @@ -105,7 +105,7 @@ def lun(self): def lun(self, lun): """Sets the lun of this FCVolumeSource. - Optional: FC target lun number +optional # noqa: E501 + lun is Optional: FC target lun number +optional # noqa: E501 :param lun: The lun of this FCVolumeSource. # noqa: E501 :type: int @@ -117,7 +117,7 @@ def lun(self, lun): def read_only(self): """Gets the read_only of this FCVolumeSource. # noqa: E501 - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 :return: The read_only of this FCVolumeSource. # noqa: E501 :rtype: bool @@ -128,7 +128,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this FCVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 :param read_only: The read_only of this FCVolumeSource. # noqa: E501 :type: bool @@ -140,7 +140,7 @@ def read_only(self, read_only): def target_ww_ns(self): """Gets the target_ww_ns of this FCVolumeSource. # noqa: E501 - Optional: FC target worldwide names (WWNs) +optional # noqa: E501 + targetWWNs is Optional: FC target worldwide names (WWNs) +optional # noqa: E501 :return: The target_ww_ns of this FCVolumeSource. # noqa: E501 :rtype: list[str] @@ -151,7 +151,7 @@ def target_ww_ns(self): def target_ww_ns(self, target_ww_ns): """Sets the target_ww_ns of this FCVolumeSource. - Optional: FC target worldwide names (WWNs) +optional # noqa: E501 + targetWWNs is Optional: FC target worldwide names (WWNs) +optional # noqa: E501 :param target_ww_ns: The target_ww_ns of this FCVolumeSource. # noqa: E501 :type: list[str] @@ -163,7 +163,7 @@ def target_ww_ns(self, target_ww_ns): def wwids(self): """Gets the wwids of this FCVolumeSource. # noqa: E501 - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. +optional # noqa: E501 + wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. +optional # noqa: E501 :return: The wwids of this FCVolumeSource. # noqa: E501 :rtype: list[str] @@ -174,7 +174,7 @@ def wwids(self): def wwids(self, wwids): """Sets the wwids of this FCVolumeSource. - Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. +optional # noqa: E501 + wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. +optional # noqa: E501 :param wwids: The wwids of this FCVolumeSource. # noqa: E501 :type: list[str] diff --git a/python/seldon_deploy_sdk/models/flex_volume_source.py b/python/seldon_deploy_sdk/models/flex_volume_source.py index 3b849ae..f86f05f 100644 --- a/python/seldon_deploy_sdk/models/flex_volume_source.py +++ b/python/seldon_deploy_sdk/models/flex_volume_source.py @@ -71,7 +71,7 @@ def __init__(self, driver=None, fs_type=None, options=None, read_only=None, secr def driver(self): """Gets the driver of this FlexVolumeSource. # noqa: E501 - Driver is the name of the driver to use for this volume. # noqa: E501 + driver is the name of the driver to use for this volume. # noqa: E501 :return: The driver of this FlexVolumeSource. # noqa: E501 :rtype: str @@ -82,7 +82,7 @@ def driver(self): def driver(self, driver): """Sets the driver of this FlexVolumeSource. - Driver is the name of the driver to use for this volume. # noqa: E501 + driver is the name of the driver to use for this volume. # noqa: E501 :param driver: The driver of this FlexVolumeSource. # noqa: E501 :type: str @@ -94,7 +94,7 @@ def driver(self, driver): def fs_type(self): """Gets the fs_type of this FlexVolumeSource. # noqa: E501 - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. +optional # noqa: E501 + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. +optional # noqa: E501 :return: The fs_type of this FlexVolumeSource. # noqa: E501 :rtype: str @@ -105,7 +105,7 @@ def fs_type(self): def fs_type(self, fs_type): """Sets the fs_type of this FlexVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. +optional # noqa: E501 + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". The default filesystem depends on FlexVolume script. +optional # noqa: E501 :param fs_type: The fs_type of this FlexVolumeSource. # noqa: E501 :type: str @@ -117,7 +117,7 @@ def fs_type(self, fs_type): def options(self): """Gets the options of this FlexVolumeSource. # noqa: E501 - Optional: Extra command options if any. +optional # noqa: E501 + options is Optional: this field holds extra command options if any. +optional # noqa: E501 :return: The options of this FlexVolumeSource. # noqa: E501 :rtype: dict(str, str) @@ -128,7 +128,7 @@ def options(self): def options(self, options): """Sets the options of this FlexVolumeSource. - Optional: Extra command options if any. +optional # noqa: E501 + options is Optional: this field holds extra command options if any. +optional # noqa: E501 :param options: The options of this FlexVolumeSource. # noqa: E501 :type: dict(str, str) @@ -140,7 +140,7 @@ def options(self, options): def read_only(self): """Gets the read_only of this FlexVolumeSource. # noqa: E501 - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 + readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 :return: The read_only of this FlexVolumeSource. # noqa: E501 :rtype: bool @@ -151,7 +151,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this FlexVolumeSource. - Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 + readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 :param read_only: The read_only of this FlexVolumeSource. # noqa: E501 :type: bool diff --git a/python/seldon_deploy_sdk/models/flocker_volume_source.py b/python/seldon_deploy_sdk/models/flocker_volume_source.py index 162076b..d0a448e 100644 --- a/python/seldon_deploy_sdk/models/flocker_volume_source.py +++ b/python/seldon_deploy_sdk/models/flocker_volume_source.py @@ -56,7 +56,7 @@ def __init__(self, dataset_name=None, dataset_uuid=None): # noqa: E501 def dataset_name(self): """Gets the dataset_name of this FlockerVolumeSource. # noqa: E501 - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated +optional # noqa: E501 + datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated +optional # noqa: E501 :return: The dataset_name of this FlockerVolumeSource. # noqa: E501 :rtype: str @@ -67,7 +67,7 @@ def dataset_name(self): def dataset_name(self, dataset_name): """Sets the dataset_name of this FlockerVolumeSource. - Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated +optional # noqa: E501 + datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated +optional # noqa: E501 :param dataset_name: The dataset_name of this FlockerVolumeSource. # noqa: E501 :type: str @@ -79,7 +79,7 @@ def dataset_name(self, dataset_name): def dataset_uuid(self): """Gets the dataset_uuid of this FlockerVolumeSource. # noqa: E501 - UUID of the dataset. This is unique identifier of a Flocker dataset +optional # noqa: E501 + datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset +optional # noqa: E501 :return: The dataset_uuid of this FlockerVolumeSource. # noqa: E501 :rtype: str @@ -90,7 +90,7 @@ def dataset_uuid(self): def dataset_uuid(self, dataset_uuid): """Sets the dataset_uuid of this FlockerVolumeSource. - UUID of the dataset. This is unique identifier of a Flocker dataset +optional # noqa: E501 + datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset +optional # noqa: E501 :param dataset_uuid: The dataset_uuid of this FlockerVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/gce_persistent_disk_volume_source.py b/python/seldon_deploy_sdk/models/gce_persistent_disk_volume_source.py index a2defbe..5cabd89 100644 --- a/python/seldon_deploy_sdk/models/gce_persistent_disk_volume_source.py +++ b/python/seldon_deploy_sdk/models/gce_persistent_disk_volume_source.py @@ -66,7 +66,7 @@ def __init__(self, fs_type=None, partition=None, pd_name=None, read_only=None): def fs_type(self): """Gets the fs_type of this GCEPersistentDiskVolumeSource. # noqa: E501 - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 + fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 :return: The fs_type of this GCEPersistentDiskVolumeSource. # noqa: E501 :rtype: str @@ -77,7 +77,7 @@ def fs_type(self): def fs_type(self, fs_type): """Sets the fs_type of this GCEPersistentDiskVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 + fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 :param fs_type: The fs_type of this GCEPersistentDiskVolumeSource. # noqa: E501 :type: str @@ -89,7 +89,7 @@ def fs_type(self, fs_type): def partition(self): """Gets the partition of this GCEPersistentDiskVolumeSource. # noqa: E501 - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional # noqa: E501 + partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional # noqa: E501 :return: The partition of this GCEPersistentDiskVolumeSource. # noqa: E501 :rtype: int @@ -100,7 +100,7 @@ def partition(self): def partition(self, partition): """Sets the partition of this GCEPersistentDiskVolumeSource. - The partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional # noqa: E501 + partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as \"1\". Similarly, the volume partition for /dev/sda is \"0\" (or you can leave the property empty). More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional # noqa: E501 :param partition: The partition of this GCEPersistentDiskVolumeSource. # noqa: E501 :type: int @@ -112,7 +112,7 @@ def partition(self, partition): def pd_name(self): """Gets the pd_name of this GCEPersistentDiskVolumeSource. # noqa: E501 - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501 + pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501 :return: The pd_name of this GCEPersistentDiskVolumeSource. # noqa: E501 :rtype: str @@ -123,7 +123,7 @@ def pd_name(self): def pd_name(self, pd_name): """Sets the pd_name of this GCEPersistentDiskVolumeSource. - Unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501 + pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk # noqa: E501 :param pd_name: The pd_name of this GCEPersistentDiskVolumeSource. # noqa: E501 :type: str @@ -135,7 +135,7 @@ def pd_name(self, pd_name): def read_only(self): """Gets the read_only of this GCEPersistentDiskVolumeSource. # noqa: E501 - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional # noqa: E501 + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional # noqa: E501 :return: The read_only of this GCEPersistentDiskVolumeSource. # noqa: E501 :rtype: bool @@ -146,7 +146,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this GCEPersistentDiskVolumeSource. - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional # noqa: E501 + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional # noqa: E501 :param read_only: The read_only of this GCEPersistentDiskVolumeSource. # noqa: E501 :type: bool diff --git a/python/seldon_deploy_sdk/models/git_repo_volume_source.py b/python/seldon_deploy_sdk/models/git_repo_volume_source.py index 29f44dc..b4bf953 100644 --- a/python/seldon_deploy_sdk/models/git_repo_volume_source.py +++ b/python/seldon_deploy_sdk/models/git_repo_volume_source.py @@ -61,7 +61,7 @@ def __init__(self, directory=None, repository=None, revision=None): # noqa: E50 def directory(self): """Gets the directory of this GitRepoVolumeSource. # noqa: E501 - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. +optional # noqa: E501 + directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. +optional # noqa: E501 :return: The directory of this GitRepoVolumeSource. # noqa: E501 :rtype: str @@ -72,7 +72,7 @@ def directory(self): def directory(self, directory): """Sets the directory of this GitRepoVolumeSource. - Target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. +optional # noqa: E501 + directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. +optional # noqa: E501 :param directory: The directory of this GitRepoVolumeSource. # noqa: E501 :type: str @@ -84,7 +84,7 @@ def directory(self, directory): def repository(self): """Gets the repository of this GitRepoVolumeSource. # noqa: E501 - Repository URL # noqa: E501 + repository is the URL # noqa: E501 :return: The repository of this GitRepoVolumeSource. # noqa: E501 :rtype: str @@ -95,7 +95,7 @@ def repository(self): def repository(self, repository): """Sets the repository of this GitRepoVolumeSource. - Repository URL # noqa: E501 + repository is the URL # noqa: E501 :param repository: The repository of this GitRepoVolumeSource. # noqa: E501 :type: str @@ -107,7 +107,7 @@ def repository(self, repository): def revision(self): """Gets the revision of this GitRepoVolumeSource. # noqa: E501 - Commit hash for the specified revision. +optional # noqa: E501 + revision is the commit hash for the specified revision. +optional # noqa: E501 :return: The revision of this GitRepoVolumeSource. # noqa: E501 :rtype: str @@ -118,7 +118,7 @@ def revision(self): def revision(self, revision): """Sets the revision of this GitRepoVolumeSource. - Commit hash for the specified revision. +optional # noqa: E501 + revision is the commit hash for the specified revision. +optional # noqa: E501 :param revision: The revision of this GitRepoVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/glusterfs_volume_source.py b/python/seldon_deploy_sdk/models/glusterfs_volume_source.py index b4bc2ec..ae030ba 100644 --- a/python/seldon_deploy_sdk/models/glusterfs_volume_source.py +++ b/python/seldon_deploy_sdk/models/glusterfs_volume_source.py @@ -61,7 +61,7 @@ def __init__(self, endpoints=None, path=None, read_only=None): # noqa: E501 def endpoints(self): """Gets the endpoints of this GlusterfsVolumeSource. # noqa: E501 - EndpointsName 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. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod # noqa: E501 :return: The endpoints of this GlusterfsVolumeSource. # noqa: E501 :rtype: str @@ -72,7 +72,7 @@ def endpoints(self): def endpoints(self, endpoints): """Sets the endpoints of this GlusterfsVolumeSource. - EndpointsName 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. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod # noqa: E501 :param endpoints: The endpoints of this GlusterfsVolumeSource. # noqa: E501 :type: str @@ -84,7 +84,7 @@ def endpoints(self, endpoints): def path(self): """Gets the path of this GlusterfsVolumeSource. # noqa: E501 - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod # noqa: E501 + path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod # noqa: E501 :return: The path of this GlusterfsVolumeSource. # noqa: E501 :rtype: str @@ -95,7 +95,7 @@ def path(self): def path(self, path): """Sets the path of this GlusterfsVolumeSource. - Path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod # noqa: E501 + path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod # noqa: E501 :param path: The path of this GlusterfsVolumeSource. # noqa: E501 :type: str @@ -107,7 +107,7 @@ def path(self, path): def read_only(self): """Gets the read_only of this GlusterfsVolumeSource. # noqa: E501 - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod +optional # noqa: E501 + readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod +optional # noqa: E501 :return: The read_only of this GlusterfsVolumeSource. # noqa: E501 :rtype: bool @@ -118,7 +118,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this GlusterfsVolumeSource. - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod +optional # noqa: E501 + readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod +optional # noqa: E501 :param read_only: The read_only of this GlusterfsVolumeSource. # noqa: E501 :type: bool diff --git a/python/seldon_deploy_sdk/models/grpc_action.py b/python/seldon_deploy_sdk/models/grpc_action.py new file mode 100644 index 0000000..032f631 --- /dev/null +++ b/python/seldon_deploy_sdk/models/grpc_action.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class GRPCAction(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'port': 'int', + 'service': 'str' + } + + attribute_map = { + 'port': 'port', + 'service': 'service' + } + + def __init__(self, port=None, service=None): # noqa: E501 + """GRPCAction - a model defined in Swagger""" # noqa: E501 + + self._port = None + self._service = None + self.discriminator = None + + if port is not None: + self.port = port + if service is not None: + self.service = service + + @property + def port(self): + """Gets the port of this GRPCAction. # noqa: E501 + + Port number of the gRPC service. Number must be in the range 1 to 65535. # noqa: E501 + + :return: The port of this GRPCAction. # noqa: E501 + :rtype: int + """ + return self._port + + @port.setter + def port(self, port): + """Sets the port of this GRPCAction. + + Port number of the gRPC service. Number must be in the range 1 to 65535. # noqa: E501 + + :param port: The port of this GRPCAction. # noqa: E501 + :type: int + """ + + self._port = port + + @property + def service(self): + """Gets the service of this GRPCAction. # noqa: E501 + + Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. +optional +default=\"\" # noqa: E501 + + :return: The service of this GRPCAction. # noqa: E501 + :rtype: str + """ + return self._service + + @service.setter + def service(self, service): + """Sets the service of this GRPCAction. + + Service is the name of the service to place in the gRPC HealthCheckRequest (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). If this is not specified, the default behavior is defined by gRPC. +optional +default=\"\" # noqa: E501 + + :param service: The service of this GRPCAction. # noqa: E501 + :type: str + """ + + self._service = service + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(GRPCAction, dict): + for key, value in self.items(): + result[key] = 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, GRPCAction): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/host_ip.py b/python/seldon_deploy_sdk/models/host_ip.py new file mode 100644 index 0000000..74e4d1c --- /dev/null +++ b/python/seldon_deploy_sdk/models/host_ip.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class HostIP(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'ip': 'str' + } + + attribute_map = { + 'ip': 'ip' + } + + def __init__(self, ip=None): # noqa: E501 + """HostIP - a model defined in Swagger""" # noqa: E501 + + self._ip = None + self.discriminator = None + + if ip is not None: + self.ip = ip + + @property + def ip(self): + """Gets the ip of this HostIP. # noqa: E501 + + IP is the IP address assigned to the host # noqa: E501 + + :return: The ip of this HostIP. # noqa: E501 + :rtype: str + """ + return self._ip + + @ip.setter + def ip(self, ip): + """Sets the ip of this HostIP. + + IP is the IP address assigned to the host # noqa: E501 + + :param ip: The ip of this HostIP. # noqa: E501 + :type: str + """ + + self._ip = ip + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(HostIP, dict): + for key, value in self.items(): + result[key] = 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, HostIP): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/host_path_volume_source.py b/python/seldon_deploy_sdk/models/host_path_volume_source.py index 94dbaf5..0bb4829 100644 --- a/python/seldon_deploy_sdk/models/host_path_volume_source.py +++ b/python/seldon_deploy_sdk/models/host_path_volume_source.py @@ -56,7 +56,7 @@ def __init__(self, path=None, type=None): # noqa: E501 def path(self): """Gets the path of this HostPathVolumeSource. # noqa: E501 - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath # noqa: E501 + path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath # noqa: E501 :return: The path of this HostPathVolumeSource. # noqa: E501 :rtype: str @@ -67,7 +67,7 @@ def path(self): def path(self, path): """Sets the path of this HostPathVolumeSource. - Path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath # noqa: E501 + path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath # noqa: E501 :param path: The path of this HostPathVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/hpa_scaling_policy.py b/python/seldon_deploy_sdk/models/hpa_scaling_policy.py index 6acff8b..edc61ac 100644 --- a/python/seldon_deploy_sdk/models/hpa_scaling_policy.py +++ b/python/seldon_deploy_sdk/models/hpa_scaling_policy.py @@ -61,7 +61,7 @@ def __init__(self, period_seconds=None, type=None, value=None): # noqa: E501 def period_seconds(self): """Gets the period_seconds of this HPAScalingPolicy. # noqa: E501 - PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). # noqa: E501 + periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). # noqa: E501 :return: The period_seconds of this HPAScalingPolicy. # noqa: E501 :rtype: int @@ -72,7 +72,7 @@ def period_seconds(self): def period_seconds(self, period_seconds): """Sets the period_seconds of this HPAScalingPolicy. - PeriodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). # noqa: E501 + periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). # noqa: E501 :param period_seconds: The period_seconds of this HPAScalingPolicy. # noqa: E501 :type: int @@ -105,7 +105,7 @@ def type(self, type): def value(self): """Gets the value of this HPAScalingPolicy. # noqa: E501 - Value contains the amount of change which is permitted by the policy. It must be greater than zero # noqa: E501 + value contains the amount of change which is permitted by the policy. It must be greater than zero # noqa: E501 :return: The value of this HPAScalingPolicy. # noqa: E501 :rtype: int @@ -116,7 +116,7 @@ def value(self): def value(self, value): """Sets the value of this HPAScalingPolicy. - Value contains the amount of change which is permitted by the policy. It must be greater than zero # noqa: E501 + value contains the amount of change which is permitted by the policy. It must be greater than zero # noqa: E501 :param value: The value of this HPAScalingPolicy. # noqa: E501 :type: int diff --git a/python/seldon_deploy_sdk/models/hpa_scaling_rules.py b/python/seldon_deploy_sdk/models/hpa_scaling_rules.py index a14a561..f881129 100644 --- a/python/seldon_deploy_sdk/models/hpa_scaling_rules.py +++ b/python/seldon_deploy_sdk/models/hpa_scaling_rules.py @@ -105,7 +105,7 @@ def select_policy(self, select_policy): def stabilization_window_seconds(self): """Gets the stabilization_window_seconds of this HPAScalingRules. # noqa: E501 - StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: For scale up: 0 (i.e. no stabilization is done). For scale down: 300 (i.e. the stabilization window is 300 seconds long). +optional # noqa: E501 + stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: For scale up: 0 (i.e. no stabilization is done). For scale down: 300 (i.e. the stabilization window is 300 seconds long). +optional # noqa: E501 :return: The stabilization_window_seconds of this HPAScalingRules. # noqa: E501 :rtype: int @@ -116,7 +116,7 @@ def stabilization_window_seconds(self): def stabilization_window_seconds(self, stabilization_window_seconds): """Sets the stabilization_window_seconds of this HPAScalingRules. - StabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: For scale up: 0 (i.e. no stabilization is done). For scale down: 300 (i.e. the stabilization window is 300 seconds long). +optional # noqa: E501 + stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: For scale up: 0 (i.e. no stabilization is done). For scale down: 300 (i.e. the stabilization window is 300 seconds long). +optional # noqa: E501 :param stabilization_window_seconds: The stabilization_window_seconds of this HPAScalingRules. # noqa: E501 :type: int diff --git a/python/seldon_deploy_sdk/models/http_header.py b/python/seldon_deploy_sdk/models/http_header.py index c9f02c5..e5045a1 100644 --- a/python/seldon_deploy_sdk/models/http_header.py +++ b/python/seldon_deploy_sdk/models/http_header.py @@ -56,7 +56,7 @@ def __init__(self, name=None, value=None): # noqa: E501 def name(self): """Gets the name of this HTTPHeader. # noqa: E501 - The header field name # noqa: E501 + The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header. # noqa: E501 :return: The name of this HTTPHeader. # noqa: E501 :rtype: str @@ -67,7 +67,7 @@ def name(self): def name(self, name): """Sets the name of this HTTPHeader. - The header field name # noqa: E501 + The header field name. This will be canonicalized upon output, so case-variant names will be understood as the same header. # noqa: E501 :param name: The name of this HTTPHeader. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/ip_family_policy.py b/python/seldon_deploy_sdk/models/ip_family_policy.py new file mode 100644 index 0000000..ec83ee8 --- /dev/null +++ b/python/seldon_deploy_sdk/models/ip_family_policy.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class IPFamilyPolicy(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """IPFamilyPolicy - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(IPFamilyPolicy, dict): + for key, value in self.items(): + result[key] = 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, IPFamilyPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/iscsi_volume_source.py b/python/seldon_deploy_sdk/models/iscsi_volume_source.py index 6949bd2..0356c11 100644 --- a/python/seldon_deploy_sdk/models/iscsi_volume_source.py +++ b/python/seldon_deploy_sdk/models/iscsi_volume_source.py @@ -101,7 +101,7 @@ def __init__(self, chap_auth_discovery=None, chap_auth_session=None, fs_type=Non def chap_auth_discovery(self): """Gets the chap_auth_discovery of this ISCSIVolumeSource. # noqa: E501 - whether support iSCSI Discovery CHAP authentication +optional # noqa: E501 + chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication +optional # noqa: E501 :return: The chap_auth_discovery of this ISCSIVolumeSource. # noqa: E501 :rtype: bool @@ -112,7 +112,7 @@ def chap_auth_discovery(self): def chap_auth_discovery(self, chap_auth_discovery): """Sets the chap_auth_discovery of this ISCSIVolumeSource. - whether support iSCSI Discovery CHAP authentication +optional # noqa: E501 + chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication +optional # noqa: E501 :param chap_auth_discovery: The chap_auth_discovery of this ISCSIVolumeSource. # noqa: E501 :type: bool @@ -124,7 +124,7 @@ def chap_auth_discovery(self, chap_auth_discovery): def chap_auth_session(self): """Gets the chap_auth_session of this ISCSIVolumeSource. # noqa: E501 - whether support iSCSI Session CHAP authentication +optional # noqa: E501 + chapAuthSession defines whether support iSCSI Session CHAP authentication +optional # noqa: E501 :return: The chap_auth_session of this ISCSIVolumeSource. # noqa: E501 :rtype: bool @@ -135,7 +135,7 @@ def chap_auth_session(self): def chap_auth_session(self, chap_auth_session): """Sets the chap_auth_session of this ISCSIVolumeSource. - whether support iSCSI Session CHAP authentication +optional # noqa: E501 + chapAuthSession defines whether support iSCSI Session CHAP authentication +optional # noqa: E501 :param chap_auth_session: The chap_auth_session of this ISCSIVolumeSource. # noqa: E501 :type: bool @@ -147,7 +147,7 @@ def chap_auth_session(self, chap_auth_session): def fs_type(self): """Gets the fs_type of this ISCSIVolumeSource. # noqa: E501 - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 :return: The fs_type of this ISCSIVolumeSource. # noqa: E501 :rtype: str @@ -158,7 +158,7 @@ def fs_type(self): def fs_type(self, fs_type): """Sets the fs_type of this ISCSIVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 :param fs_type: The fs_type of this ISCSIVolumeSource. # noqa: E501 :type: str @@ -170,7 +170,7 @@ def fs_type(self, fs_type): def initiator_name(self): """Gets the initiator_name of this ISCSIVolumeSource. # noqa: E501 - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. +optional # noqa: E501 + initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. +optional # noqa: E501 :return: The initiator_name of this ISCSIVolumeSource. # noqa: E501 :rtype: str @@ -181,7 +181,7 @@ def initiator_name(self): def initiator_name(self, initiator_name): """Sets the initiator_name of this ISCSIVolumeSource. - Custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. +optional # noqa: E501 + initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. +optional # noqa: E501 :param initiator_name: The initiator_name of this ISCSIVolumeSource. # noqa: E501 :type: str @@ -193,7 +193,7 @@ def initiator_name(self, initiator_name): def iqn(self): """Gets the iqn of this ISCSIVolumeSource. # noqa: E501 - Target iSCSI Qualified Name. # noqa: E501 + iqn is the target iSCSI Qualified Name. # noqa: E501 :return: The iqn of this ISCSIVolumeSource. # noqa: E501 :rtype: str @@ -204,7 +204,7 @@ def iqn(self): def iqn(self, iqn): """Sets the iqn of this ISCSIVolumeSource. - Target iSCSI Qualified Name. # noqa: E501 + iqn is the target iSCSI Qualified Name. # noqa: E501 :param iqn: The iqn of this ISCSIVolumeSource. # noqa: E501 :type: str @@ -216,7 +216,7 @@ def iqn(self, iqn): def iscsi_interface(self): """Gets the iscsi_interface of this ISCSIVolumeSource. # noqa: E501 - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). +optional # noqa: E501 + iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). +optional # noqa: E501 :return: The iscsi_interface of this ISCSIVolumeSource. # noqa: E501 :rtype: str @@ -227,7 +227,7 @@ def iscsi_interface(self): def iscsi_interface(self, iscsi_interface): """Sets the iscsi_interface of this ISCSIVolumeSource. - iSCSI Interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). +optional # noqa: E501 + iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). +optional # noqa: E501 :param iscsi_interface: The iscsi_interface of this ISCSIVolumeSource. # noqa: E501 :type: str @@ -239,7 +239,7 @@ def iscsi_interface(self, iscsi_interface): def lun(self): """Gets the lun of this ISCSIVolumeSource. # noqa: E501 - iSCSI Target Lun number. # noqa: E501 + lun represents iSCSI Target Lun number. # noqa: E501 :return: The lun of this ISCSIVolumeSource. # noqa: E501 :rtype: int @@ -250,7 +250,7 @@ def lun(self): def lun(self, lun): """Sets the lun of this ISCSIVolumeSource. - iSCSI Target Lun number. # noqa: E501 + lun represents iSCSI Target Lun number. # noqa: E501 :param lun: The lun of this ISCSIVolumeSource. # noqa: E501 :type: int @@ -262,7 +262,7 @@ def lun(self, lun): def portals(self): """Gets the portals of this ISCSIVolumeSource. # noqa: E501 - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). +optional # noqa: E501 + portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). +optional # noqa: E501 :return: The portals of this ISCSIVolumeSource. # noqa: E501 :rtype: list[str] @@ -273,7 +273,7 @@ def portals(self): def portals(self, portals): """Sets the portals of this ISCSIVolumeSource. - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). +optional # noqa: E501 + portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). +optional # noqa: E501 :param portals: The portals of this ISCSIVolumeSource. # noqa: E501 :type: list[str] @@ -285,7 +285,7 @@ def portals(self, portals): def read_only(self): """Gets the read_only of this ISCSIVolumeSource. # noqa: E501 - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. +optional # noqa: E501 + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. +optional # noqa: E501 :return: The read_only of this ISCSIVolumeSource. # noqa: E501 :rtype: bool @@ -296,7 +296,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this ISCSIVolumeSource. - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. +optional # noqa: E501 + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. +optional # noqa: E501 :param read_only: The read_only of this ISCSIVolumeSource. # noqa: E501 :type: bool @@ -329,7 +329,7 @@ def secret_ref(self, secret_ref): def target_portal(self): """Gets the target_portal of this ISCSIVolumeSource. # noqa: E501 - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). # noqa: E501 + targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). # noqa: E501 :return: The target_portal of this ISCSIVolumeSource. # noqa: E501 :rtype: str @@ -340,7 +340,7 @@ def target_portal(self): def target_portal(self, target_portal): """Sets the target_portal of this ISCSIVolumeSource. - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). # noqa: E501 + targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). # noqa: E501 :param target_portal: The target_portal of this ISCSIVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/key_to_path.py b/python/seldon_deploy_sdk/models/key_to_path.py index 39fb215..cc9b566 100644 --- a/python/seldon_deploy_sdk/models/key_to_path.py +++ b/python/seldon_deploy_sdk/models/key_to_path.py @@ -61,7 +61,7 @@ def __init__(self, key=None, mode=None, path=None): # noqa: E501 def key(self): """Gets the key of this KeyToPath. # noqa: E501 - The key to project. # noqa: E501 + key is the key to project. # noqa: E501 :return: The key of this KeyToPath. # noqa: E501 :rtype: str @@ -72,7 +72,7 @@ def key(self): def key(self, key): """Sets the key of this KeyToPath. - The key to project. # noqa: E501 + key is the key to project. # noqa: E501 :param key: The key of this KeyToPath. # noqa: E501 :type: str @@ -84,7 +84,7 @@ def key(self, key): def mode(self): """Gets the mode of this KeyToPath. # noqa: E501 - Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 + mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 :return: The mode of this KeyToPath. # noqa: E501 :rtype: int @@ -95,7 +95,7 @@ def mode(self): def mode(self, mode): """Sets the mode of this KeyToPath. - Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 + mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 :param mode: The mode of this KeyToPath. # noqa: E501 :type: int @@ -107,7 +107,7 @@ def mode(self, mode): def path(self): """Gets the path of this KeyToPath. # noqa: E501 - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. # noqa: E501 + path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. # noqa: E501 :return: The path of this KeyToPath. # noqa: E501 :rtype: str @@ -118,7 +118,7 @@ def path(self): def path(self, path): """Sets the path of this KeyToPath. - The relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. # noqa: E501 + path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. # noqa: E501 :param path: The path of this KeyToPath. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/label_selector_requirement.py b/python/seldon_deploy_sdk/models/label_selector_requirement.py index ca35bf2..8844ee3 100644 --- a/python/seldon_deploy_sdk/models/label_selector_requirement.py +++ b/python/seldon_deploy_sdk/models/label_selector_requirement.py @@ -61,7 +61,7 @@ def __init__(self, key=None, operator=None, values=None): # noqa: E501 def key(self): """Gets the key of this LabelSelectorRequirement. # noqa: E501 - key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge # noqa: E501 + key is the label key that the selector applies to. # noqa: E501 :return: The key of this LabelSelectorRequirement. # noqa: E501 :rtype: str @@ -72,7 +72,7 @@ def key(self): def key(self, key): """Sets the key of this LabelSelectorRequirement. - key is the label key that the selector applies to. +patchMergeKey=key +patchStrategy=merge # noqa: E501 + key is the label key that the selector applies to. # noqa: E501 :param key: The key of this LabelSelectorRequirement. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/lifecycle.py b/python/seldon_deploy_sdk/models/lifecycle.py index 9ae2f02..a98a525 100644 --- a/python/seldon_deploy_sdk/models/lifecycle.py +++ b/python/seldon_deploy_sdk/models/lifecycle.py @@ -31,8 +31,8 @@ class Lifecycle(object): and the value is json key in definition. """ swagger_types = { - 'post_start': 'Handler', - 'pre_stop': 'Handler' + 'post_start': 'LifecycleHandler', + 'pre_stop': 'LifecycleHandler' } attribute_map = { @@ -58,7 +58,7 @@ def post_start(self): :return: The post_start of this Lifecycle. # noqa: E501 - :rtype: Handler + :rtype: LifecycleHandler """ return self._post_start @@ -68,7 +68,7 @@ def post_start(self, post_start): :param post_start: The post_start of this Lifecycle. # noqa: E501 - :type: Handler + :type: LifecycleHandler """ self._post_start = post_start @@ -79,7 +79,7 @@ def pre_stop(self): :return: The pre_stop of this Lifecycle. # noqa: E501 - :rtype: Handler + :rtype: LifecycleHandler """ return self._pre_stop @@ -89,7 +89,7 @@ def pre_stop(self, pre_stop): :param pre_stop: The pre_stop of this Lifecycle. # noqa: E501 - :type: Handler + :type: LifecycleHandler """ self._pre_stop = pre_stop diff --git a/python/seldon_deploy_sdk/models/handler.py b/python/seldon_deploy_sdk/models/lifecycle_handler.py similarity index 77% rename from python/seldon_deploy_sdk/models/handler.py rename to python/seldon_deploy_sdk/models/lifecycle_handler.py index 466d7a2..a221a40 100644 --- a/python/seldon_deploy_sdk/models/handler.py +++ b/python/seldon_deploy_sdk/models/lifecycle_handler.py @@ -17,7 +17,7 @@ import six -class Handler(object): +class LifecycleHandler(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -43,7 +43,7 @@ class Handler(object): } def __init__(self, _exec=None, http_get=None, tcp_socket=None): # noqa: E501 - """Handler - a model defined in Swagger""" # noqa: E501 + """LifecycleHandler - a model defined in Swagger""" # noqa: E501 self.__exec = None self._http_get = None @@ -59,20 +59,20 @@ def __init__(self, _exec=None, http_get=None, tcp_socket=None): # noqa: E501 @property def _exec(self): - """Gets the _exec of this Handler. # noqa: E501 + """Gets the _exec of this LifecycleHandler. # noqa: E501 - :return: The _exec of this Handler. # noqa: E501 + :return: The _exec of this LifecycleHandler. # noqa: E501 :rtype: ExecAction """ return self.__exec @_exec.setter def _exec(self, _exec): - """Sets the _exec of this Handler. + """Sets the _exec of this LifecycleHandler. - :param _exec: The _exec of this Handler. # noqa: E501 + :param _exec: The _exec of this LifecycleHandler. # noqa: E501 :type: ExecAction """ @@ -80,20 +80,20 @@ def _exec(self, _exec): @property def http_get(self): - """Gets the http_get of this Handler. # noqa: E501 + """Gets the http_get of this LifecycleHandler. # noqa: E501 - :return: The http_get of this Handler. # noqa: E501 + :return: The http_get of this LifecycleHandler. # noqa: E501 :rtype: HTTPGetAction """ return self._http_get @http_get.setter def http_get(self, http_get): - """Sets the http_get of this Handler. + """Sets the http_get of this LifecycleHandler. - :param http_get: The http_get of this Handler. # noqa: E501 + :param http_get: The http_get of this LifecycleHandler. # noqa: E501 :type: HTTPGetAction """ @@ -101,20 +101,20 @@ def http_get(self, http_get): @property def tcp_socket(self): - """Gets the tcp_socket of this Handler. # noqa: E501 + """Gets the tcp_socket of this LifecycleHandler. # noqa: E501 - :return: The tcp_socket of this Handler. # noqa: E501 + :return: The tcp_socket of this LifecycleHandler. # noqa: E501 :rtype: TCPSocketAction """ return self._tcp_socket @tcp_socket.setter def tcp_socket(self, tcp_socket): - """Sets the tcp_socket of this Handler. + """Sets the tcp_socket of this LifecycleHandler. - :param tcp_socket: The tcp_socket of this Handler. # noqa: E501 + :param tcp_socket: The tcp_socket of this LifecycleHandler. # noqa: E501 :type: TCPSocketAction """ @@ -141,7 +141,7 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(Handler, dict): + if issubclass(LifecycleHandler, dict): for key, value in self.items(): result[key] = value @@ -157,7 +157,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, Handler): + if not isinstance(other, LifecycleHandler): return False return self.__dict__ == other.__dict__ diff --git a/python/seldon_deploy_sdk/models/list_meta.py b/python/seldon_deploy_sdk/models/list_meta.py index 7e8a7a6..b84b980 100644 --- a/python/seldon_deploy_sdk/models/list_meta.py +++ b/python/seldon_deploy_sdk/models/list_meta.py @@ -135,7 +135,7 @@ def resource_version(self, resource_version): def self_link(self): """Gets the self_link of this ListMeta. # noqa: E501 - selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :return: The self_link of this ListMeta. # noqa: E501 :rtype: str @@ -146,7 +146,7 @@ def self_link(self): def self_link(self, self_link): """Sets the self_link of this ListMeta. - selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :param self_link: The self_link of this ListMeta. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/managed_fields_entry.py b/python/seldon_deploy_sdk/models/managed_fields_entry.py index 75b843f..e982903 100644 --- a/python/seldon_deploy_sdk/models/managed_fields_entry.py +++ b/python/seldon_deploy_sdk/models/managed_fields_entry.py @@ -36,6 +36,7 @@ class ManagedFieldsEntry(object): 'fields_v1': 'FieldsV1', 'manager': 'str', 'operation': 'ManagedFieldsOperationType', + 'subresource': 'str', 'time': 'str' } @@ -45,10 +46,11 @@ class ManagedFieldsEntry(object): 'fields_v1': 'fieldsV1', 'manager': 'manager', 'operation': 'operation', + 'subresource': 'subresource', 'time': 'time' } - def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=None, operation=None, time=None): # noqa: E501 + def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=None, operation=None, subresource=None, time=None): # noqa: E501 """ManagedFieldsEntry - a model defined in Swagger""" # noqa: E501 self._api_version = None @@ -56,6 +58,7 @@ def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=N self._fields_v1 = None self._manager = None self._operation = None + self._subresource = None self._time = None self.discriminator = None @@ -69,6 +72,8 @@ def __init__(self, api_version=None, fields_type=None, fields_v1=None, manager=N self.manager = manager if operation is not None: self.operation = operation + if subresource is not None: + self.subresource = subresource if time is not None: self.time = time @@ -183,11 +188,34 @@ def operation(self, operation): self._operation = operation + @property + def subresource(self): + """Gets the subresource of this ManagedFieldsEntry. # noqa: E501 + + Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. # noqa: E501 + + :return: The subresource of this ManagedFieldsEntry. # noqa: E501 + :rtype: str + """ + return self._subresource + + @subresource.setter + def subresource(self, subresource): + """Sets the subresource of this ManagedFieldsEntry. + + Subresource is the name of the subresource used to update that object, or empty string if the object was updated through the main resource. The value of this field is used to distinguish between managers, even if they share the same name. For example, a status update will be distinct from a regular update using the same manager name. Note that the APIVersion field is not related to the Subresource field and it always corresponds to the version of the main resource. # noqa: E501 + + :param subresource: The subresource of this ManagedFieldsEntry. # noqa: E501 + :type: str + """ + + self._subresource = subresource + @property def time(self): """Gets the time of this ManagedFieldsEntry. # noqa: E501 - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' +optional # noqa: E501 + Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. +optional # noqa: E501 :return: The time of this ManagedFieldsEntry. # noqa: E501 :rtype: str @@ -198,7 +226,7 @@ def time(self): def time(self, time): """Sets the time of this ManagedFieldsEntry. - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' +optional # noqa: E501 + Time is the timestamp of when the ManagedFields entry was added. The timestamp will also be updated if a field is added, the manager changes any of the owned fields value or removes a field. The timestamp does not update when a field is removed from the entry because another manager took it over. +optional # noqa: E501 :param time: The time of this ManagedFieldsEntry. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/metric_identifier.py b/python/seldon_deploy_sdk/models/metric_identifier.py new file mode 100644 index 0000000..8729ba5 --- /dev/null +++ b/python/seldon_deploy_sdk/models/metric_identifier.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class MetricIdentifier(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'selector': 'LabelSelector' + } + + attribute_map = { + 'name': 'name', + 'selector': 'selector' + } + + def __init__(self, name=None, selector=None): # noqa: E501 + """MetricIdentifier - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._selector = None + self.discriminator = None + + if name is not None: + self.name = name + if selector is not None: + self.selector = selector + + @property + def name(self): + """Gets the name of this MetricIdentifier. # noqa: E501 + + name is the name of the given metric # noqa: E501 + + :return: The name of this MetricIdentifier. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this MetricIdentifier. + + name is the name of the given metric # noqa: E501 + + :param name: The name of this MetricIdentifier. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def selector(self): + """Gets the selector of this MetricIdentifier. # noqa: E501 + + + :return: The selector of this MetricIdentifier. # noqa: E501 + :rtype: LabelSelector + """ + return self._selector + + @selector.setter + def selector(self, selector): + """Sets the selector of this MetricIdentifier. + + + :param selector: The selector of this MetricIdentifier. # noqa: E501 + :type: LabelSelector + """ + + self._selector = selector + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(MetricIdentifier, dict): + for key, value in self.items(): + result[key] = 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, MetricIdentifier): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/metric_spec.py b/python/seldon_deploy_sdk/models/metric_spec.py index acea371..f942a8b 100644 --- a/python/seldon_deploy_sdk/models/metric_spec.py +++ b/python/seldon_deploy_sdk/models/metric_spec.py @@ -31,6 +31,7 @@ class MetricSpec(object): and the value is json key in definition. """ swagger_types = { + 'container_resource': 'ContainerResourceMetricSource', 'external': 'ExternalMetricSource', 'object': 'ObjectMetricSource', 'pods': 'PodsMetricSource', @@ -39,6 +40,7 @@ class MetricSpec(object): } attribute_map = { + 'container_resource': 'containerResource', 'external': 'external', 'object': 'object', 'pods': 'pods', @@ -46,9 +48,10 @@ class MetricSpec(object): 'type': 'type' } - def __init__(self, external=None, object=None, pods=None, resource=None, type=None): # noqa: E501 + def __init__(self, container_resource=None, external=None, object=None, pods=None, resource=None, type=None): # noqa: E501 """MetricSpec - a model defined in Swagger""" # noqa: E501 + self._container_resource = None self._external = None self._object = None self._pods = None @@ -56,6 +59,8 @@ def __init__(self, external=None, object=None, pods=None, resource=None, type=No self._type = None self.discriminator = None + if container_resource is not None: + self.container_resource = container_resource if external is not None: self.external = external if object is not None: @@ -67,6 +72,27 @@ def __init__(self, external=None, object=None, pods=None, resource=None, type=No if type is not None: self.type = type + @property + def container_resource(self): + """Gets the container_resource of this MetricSpec. # noqa: E501 + + + :return: The container_resource of this MetricSpec. # noqa: E501 + :rtype: ContainerResourceMetricSource + """ + return self._container_resource + + @container_resource.setter + def container_resource(self, container_resource): + """Sets the container_resource of this MetricSpec. + + + :param container_resource: The container_resource of this MetricSpec. # noqa: E501 + :type: ContainerResourceMetricSource + """ + + self._container_resource = container_resource + @property def external(self): """Gets the external of this MetricSpec. # noqa: E501 diff --git a/python/seldon_deploy_sdk/models/metric_target.py b/python/seldon_deploy_sdk/models/metric_target.py new file mode 100644 index 0000000..1bb2c7a --- /dev/null +++ b/python/seldon_deploy_sdk/models/metric_target.py @@ -0,0 +1,195 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class MetricTarget(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'average_utilization': 'int', + 'average_value': 'Quantity', + 'type': 'MetricTargetType', + 'value': 'Quantity' + } + + attribute_map = { + 'average_utilization': 'averageUtilization', + 'average_value': 'averageValue', + 'type': 'type', + 'value': 'value' + } + + def __init__(self, average_utilization=None, average_value=None, type=None, value=None): # noqa: E501 + """MetricTarget - a model defined in Swagger""" # noqa: E501 + + self._average_utilization = None + self._average_value = None + self._type = None + self._value = None + self.discriminator = None + + if average_utilization is not None: + self.average_utilization = average_utilization + if average_value is not None: + self.average_value = average_value + if type is not None: + self.type = type + if value is not None: + self.value = value + + @property + def average_utilization(self): + """Gets the average_utilization of this MetricTarget. # noqa: E501 + + averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type +optional # noqa: E501 + + :return: The average_utilization of this MetricTarget. # noqa: E501 + :rtype: int + """ + return self._average_utilization + + @average_utilization.setter + def average_utilization(self, average_utilization): + """Sets the average_utilization of this MetricTarget. + + averageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. Currently only valid for Resource metric source type +optional # noqa: E501 + + :param average_utilization: The average_utilization of this MetricTarget. # noqa: E501 + :type: int + """ + + self._average_utilization = average_utilization + + @property + def average_value(self): + """Gets the average_value of this MetricTarget. # noqa: E501 + + + :return: The average_value of this MetricTarget. # noqa: E501 + :rtype: Quantity + """ + return self._average_value + + @average_value.setter + def average_value(self, average_value): + """Sets the average_value of this MetricTarget. + + + :param average_value: The average_value of this MetricTarget. # noqa: E501 + :type: Quantity + """ + + self._average_value = average_value + + @property + def type(self): + """Gets the type of this MetricTarget. # noqa: E501 + + + :return: The type of this MetricTarget. # noqa: E501 + :rtype: MetricTargetType + """ + return self._type + + @type.setter + def type(self, type): + """Sets the type of this MetricTarget. + + + :param type: The type of this MetricTarget. # noqa: E501 + :type: MetricTargetType + """ + + self._type = type + + @property + def value(self): + """Gets the value of this MetricTarget. # noqa: E501 + + + :return: The value of this MetricTarget. # noqa: E501 + :rtype: Quantity + """ + return self._value + + @value.setter + def value(self, value): + """Sets the value of this MetricTarget. + + + :param value: The value of this MetricTarget. # noqa: E501 + :type: Quantity + """ + + self._value = value + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(MetricTarget, dict): + for key, value in self.items(): + result[key] = 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, MetricTarget): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/model.py b/python/seldon_deploy_sdk/models/model.py index b9ef6f6..5974f26 100644 --- a/python/seldon_deploy_sdk/models/model.py +++ b/python/seldon_deploy_sdk/models/model.py @@ -33,7 +33,6 @@ class Model(object): swagger_types = { 'annotations': 'dict(str, str)', 'api_version': 'str', - 'cluster_name': 'str', 'creation_timestamp': 'str', 'deletion_grace_period_seconds': 'int', 'deletion_timestamp': 'str', @@ -56,7 +55,6 @@ class Model(object): attribute_map = { 'annotations': 'annotations', 'api_version': 'apiVersion', - 'cluster_name': 'clusterName', 'creation_timestamp': 'creationTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', @@ -76,12 +74,11 @@ class Model(object): 'uid': 'uid' } - def __init__(self, annotations=None, api_version=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, kind=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, status=None, uid=None): # noqa: E501 + def __init__(self, annotations=None, api_version=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, kind=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, status=None, uid=None): # noqa: E501 """Model - a model defined in Swagger""" # noqa: E501 self._annotations = None self._api_version = None - self._cluster_name = None self._creation_timestamp = None self._deletion_grace_period_seconds = None self._deletion_timestamp = None @@ -105,8 +102,6 @@ def __init__(self, annotations=None, api_version=None, cluster_name=None, creati self.annotations = annotations if api_version is not None: self.api_version = api_version - if cluster_name is not None: - self.cluster_name = cluster_name if creation_timestamp is not None: self.creation_timestamp = creation_timestamp if deletion_grace_period_seconds is not None: @@ -146,7 +141,7 @@ def __init__(self, annotations=None, api_version=None, cluster_name=None, creati def annotations(self): """Gets the annotations of this Model. # noqa: E501 - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :return: The annotations of this Model. # noqa: E501 :rtype: dict(str, str) @@ -157,7 +152,7 @@ def annotations(self): def annotations(self, annotations): """Sets the annotations of this Model. - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :param annotations: The annotations of this Model. # noqa: E501 :type: dict(str, str) @@ -188,29 +183,6 @@ def api_version(self, api_version): self._api_version = api_version - @property - def cluster_name(self): - """Gets the cluster_name of this Model. # noqa: E501 - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :return: The cluster_name of this Model. # noqa: E501 - :rtype: str - """ - return self._cluster_name - - @cluster_name.setter - def cluster_name(self, cluster_name): - """Sets the cluster_name of this Model. - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :param cluster_name: The cluster_name of this Model. # noqa: E501 - :type: str - """ - - self._cluster_name = cluster_name - @property def creation_timestamp(self): """Gets the creation_timestamp of this Model. # noqa: E501 @@ -307,7 +279,7 @@ def finalizers(self, finalizers): def generate_name(self): """Gets the generate_name of this Model. # noqa: E501 - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :return: The generate_name of this Model. # noqa: E501 :rtype: str @@ -318,7 +290,7 @@ def generate_name(self): def generate_name(self, generate_name): """Sets the generate_name of this Model. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :param generate_name: The generate_name of this Model. # noqa: E501 :type: str @@ -376,7 +348,7 @@ def kind(self, kind): def labels(self): """Gets the labels of this Model. # noqa: E501 - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :return: The labels of this Model. # noqa: E501 :rtype: dict(str, str) @@ -387,7 +359,7 @@ def labels(self): def labels(self, labels): """Sets the labels of this Model. - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :param labels: The labels of this Model. # noqa: E501 :type: dict(str, str) @@ -422,7 +394,7 @@ def managed_fields(self, managed_fields): def name(self): """Gets the name of this Model. # noqa: E501 - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :return: The name of this Model. # noqa: E501 :rtype: str @@ -433,7 +405,7 @@ def name(self): def name(self, name): """Sets the name of this Model. - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :param name: The name of this Model. # noqa: E501 :type: str @@ -445,7 +417,7 @@ def name(self, name): def namespace(self): """Gets the namespace of this Model. # noqa: E501 - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :return: The namespace of this Model. # noqa: E501 :rtype: str @@ -456,7 +428,7 @@ def namespace(self): def namespace(self, namespace): """Sets the namespace of this Model. - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :param namespace: The namespace of this Model. # noqa: E501 :type: str @@ -514,7 +486,7 @@ def resource_version(self, resource_version): def self_link(self): """Gets the self_link of this Model. # noqa: E501 - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :return: The self_link of this Model. # noqa: E501 :rtype: str @@ -525,7 +497,7 @@ def self_link(self): def self_link(self, self_link): """Sets the self_link of this Model. - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :param self_link: The self_link of this Model. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/namespace.py b/python/seldon_deploy_sdk/models/namespace.py index 348b4f5..70fec25 100644 --- a/python/seldon_deploy_sdk/models/namespace.py +++ b/python/seldon_deploy_sdk/models/namespace.py @@ -33,7 +33,6 @@ class Namespace(object): swagger_types = { 'annotations': 'dict(str, str)', 'api_version': 'str', - 'cluster_name': 'str', 'creation_timestamp': 'str', 'deletion_grace_period_seconds': 'int', 'deletion_timestamp': 'str', @@ -56,7 +55,6 @@ class Namespace(object): attribute_map = { 'annotations': 'annotations', 'api_version': 'apiVersion', - 'cluster_name': 'clusterName', 'creation_timestamp': 'creationTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', @@ -76,12 +74,11 @@ class Namespace(object): 'uid': 'uid' } - def __init__(self, annotations=None, api_version=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, kind=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, status=None, uid=None): # noqa: E501 + def __init__(self, annotations=None, api_version=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, kind=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, status=None, uid=None): # noqa: E501 """Namespace - a model defined in Swagger""" # noqa: E501 self._annotations = None self._api_version = None - self._cluster_name = None self._creation_timestamp = None self._deletion_grace_period_seconds = None self._deletion_timestamp = None @@ -105,8 +102,6 @@ def __init__(self, annotations=None, api_version=None, cluster_name=None, creati self.annotations = annotations if api_version is not None: self.api_version = api_version - if cluster_name is not None: - self.cluster_name = cluster_name if creation_timestamp is not None: self.creation_timestamp = creation_timestamp if deletion_grace_period_seconds is not None: @@ -146,7 +141,7 @@ def __init__(self, annotations=None, api_version=None, cluster_name=None, creati def annotations(self): """Gets the annotations of this Namespace. # noqa: E501 - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :return: The annotations of this Namespace. # noqa: E501 :rtype: dict(str, str) @@ -157,7 +152,7 @@ def annotations(self): def annotations(self, annotations): """Sets the annotations of this Namespace. - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :param annotations: The annotations of this Namespace. # noqa: E501 :type: dict(str, str) @@ -188,29 +183,6 @@ def api_version(self, api_version): self._api_version = api_version - @property - def cluster_name(self): - """Gets the cluster_name of this Namespace. # noqa: E501 - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :return: The cluster_name of this Namespace. # noqa: E501 - :rtype: str - """ - return self._cluster_name - - @cluster_name.setter - def cluster_name(self, cluster_name): - """Sets the cluster_name of this Namespace. - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :param cluster_name: The cluster_name of this Namespace. # noqa: E501 - :type: str - """ - - self._cluster_name = cluster_name - @property def creation_timestamp(self): """Gets the creation_timestamp of this Namespace. # noqa: E501 @@ -307,7 +279,7 @@ def finalizers(self, finalizers): def generate_name(self): """Gets the generate_name of this Namespace. # noqa: E501 - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :return: The generate_name of this Namespace. # noqa: E501 :rtype: str @@ -318,7 +290,7 @@ def generate_name(self): def generate_name(self, generate_name): """Sets the generate_name of this Namespace. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :param generate_name: The generate_name of this Namespace. # noqa: E501 :type: str @@ -376,7 +348,7 @@ def kind(self, kind): def labels(self): """Gets the labels of this Namespace. # noqa: E501 - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :return: The labels of this Namespace. # noqa: E501 :rtype: dict(str, str) @@ -387,7 +359,7 @@ def labels(self): def labels(self, labels): """Sets the labels of this Namespace. - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :param labels: The labels of this Namespace. # noqa: E501 :type: dict(str, str) @@ -422,7 +394,7 @@ def managed_fields(self, managed_fields): def name(self): """Gets the name of this Namespace. # noqa: E501 - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :return: The name of this Namespace. # noqa: E501 :rtype: str @@ -433,7 +405,7 @@ def name(self): def name(self, name): """Sets the name of this Namespace. - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :param name: The name of this Namespace. # noqa: E501 :type: str @@ -445,7 +417,7 @@ def name(self, name): def namespace(self): """Gets the namespace of this Namespace. # noqa: E501 - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :return: The namespace of this Namespace. # noqa: E501 :rtype: str @@ -456,7 +428,7 @@ def namespace(self): def namespace(self, namespace): """Sets the namespace of this Namespace. - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :param namespace: The namespace of this Namespace. # noqa: E501 :type: str @@ -514,7 +486,7 @@ def resource_version(self, resource_version): def self_link(self): """Gets the self_link of this Namespace. # noqa: E501 - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :return: The self_link of this Namespace. # noqa: E501 :rtype: str @@ -525,7 +497,7 @@ def self_link(self): def self_link(self, self_link): """Sets the self_link of this Namespace. - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :param self_link: The self_link of this Namespace. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/nfs_volume_source.py b/python/seldon_deploy_sdk/models/nfs_volume_source.py index 36eb4f6..55cc5ef 100644 --- a/python/seldon_deploy_sdk/models/nfs_volume_source.py +++ b/python/seldon_deploy_sdk/models/nfs_volume_source.py @@ -61,7 +61,7 @@ def __init__(self, path=None, read_only=None, server=None): # noqa: E501 def path(self): """Gets the path of this NFSVolumeSource. # noqa: E501 - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 + path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 :return: The path of this NFSVolumeSource. # noqa: E501 :rtype: str @@ -72,7 +72,7 @@ def path(self): def path(self, path): """Sets the path of this NFSVolumeSource. - Path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 + path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 :param path: The path of this NFSVolumeSource. # noqa: E501 :type: str @@ -84,7 +84,7 @@ def path(self, path): def read_only(self): """Gets the read_only of this NFSVolumeSource. # noqa: E501 - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs +optional # noqa: E501 + readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs +optional # noqa: E501 :return: The read_only of this NFSVolumeSource. # noqa: E501 :rtype: bool @@ -95,7 +95,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this NFSVolumeSource. - ReadOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs +optional # noqa: E501 + readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs +optional # noqa: E501 :param read_only: The read_only of this NFSVolumeSource. # noqa: E501 :type: bool @@ -107,7 +107,7 @@ def read_only(self, read_only): def server(self): """Gets the server of this NFSVolumeSource. # noqa: E501 - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 + server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 :return: The server of this NFSVolumeSource. # noqa: E501 :rtype: str @@ -118,7 +118,7 @@ def server(self): def server(self, server): """Sets the server of this NFSVolumeSource. - Server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 + server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs # noqa: E501 :param server: The server of this NFSVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/node_inclusion_policy.py b/python/seldon_deploy_sdk/models/node_inclusion_policy.py new file mode 100644 index 0000000..2cb98bd --- /dev/null +++ b/python/seldon_deploy_sdk/models/node_inclusion_policy.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class NodeInclusionPolicy(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """NodeInclusionPolicy - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(NodeInclusionPolicy, dict): + for key, value in self.items(): + result[key] = 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, NodeInclusionPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/object_meta.py b/python/seldon_deploy_sdk/models/object_meta.py index 77f7791..d8c3b4b 100644 --- a/python/seldon_deploy_sdk/models/object_meta.py +++ b/python/seldon_deploy_sdk/models/object_meta.py @@ -32,7 +32,6 @@ class ObjectMeta(object): """ swagger_types = { 'annotations': 'dict(str, str)', - 'cluster_name': 'str', 'creation_timestamp': 'str', 'deletion_grace_period_seconds': 'int', 'deletion_timestamp': 'str', @@ -51,7 +50,6 @@ class ObjectMeta(object): attribute_map = { 'annotations': 'annotations', - 'cluster_name': 'clusterName', 'creation_timestamp': 'creationTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', @@ -68,11 +66,10 @@ class ObjectMeta(object): 'uid': 'uid' } - def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None): # noqa: E501 + def __init__(self, annotations=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, uid=None): # noqa: E501 """ObjectMeta - a model defined in Swagger""" # noqa: E501 self._annotations = None - self._cluster_name = None self._creation_timestamp = None self._deletion_grace_period_seconds = None self._deletion_timestamp = None @@ -91,8 +88,6 @@ def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, if annotations is not None: self.annotations = annotations - if cluster_name is not None: - self.cluster_name = cluster_name if creation_timestamp is not None: self.creation_timestamp = creation_timestamp if deletion_grace_period_seconds is not None: @@ -126,7 +121,7 @@ def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, def annotations(self): """Gets the annotations of this ObjectMeta. # noqa: E501 - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :return: The annotations of this ObjectMeta. # noqa: E501 :rtype: dict(str, str) @@ -137,7 +132,7 @@ def annotations(self): def annotations(self, annotations): """Sets the annotations of this ObjectMeta. - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :param annotations: The annotations of this ObjectMeta. # noqa: E501 :type: dict(str, str) @@ -145,29 +140,6 @@ def annotations(self, annotations): self._annotations = annotations - @property - def cluster_name(self): - """Gets the cluster_name of this ObjectMeta. # noqa: E501 - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :return: The cluster_name of this ObjectMeta. # noqa: E501 - :rtype: str - """ - return self._cluster_name - - @cluster_name.setter - def cluster_name(self, cluster_name): - """Sets the cluster_name of this ObjectMeta. - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :param cluster_name: The cluster_name of this ObjectMeta. # noqa: E501 - :type: str - """ - - self._cluster_name = cluster_name - @property def creation_timestamp(self): """Gets the creation_timestamp of this ObjectMeta. # noqa: E501 @@ -264,7 +236,7 @@ def finalizers(self, finalizers): def generate_name(self): """Gets the generate_name of this ObjectMeta. # noqa: E501 - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :return: The generate_name of this ObjectMeta. # noqa: E501 :rtype: str @@ -275,7 +247,7 @@ def generate_name(self): def generate_name(self, generate_name): """Sets the generate_name of this ObjectMeta. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :param generate_name: The generate_name of this ObjectMeta. # noqa: E501 :type: str @@ -310,7 +282,7 @@ def generation(self, generation): def labels(self): """Gets the labels of this ObjectMeta. # noqa: E501 - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :return: The labels of this ObjectMeta. # noqa: E501 :rtype: dict(str, str) @@ -321,7 +293,7 @@ def labels(self): def labels(self, labels): """Sets the labels of this ObjectMeta. - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :param labels: The labels of this ObjectMeta. # noqa: E501 :type: dict(str, str) @@ -356,7 +328,7 @@ def managed_fields(self, managed_fields): def name(self): """Gets the name of this ObjectMeta. # noqa: E501 - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :return: The name of this ObjectMeta. # noqa: E501 :rtype: str @@ -367,7 +339,7 @@ def name(self): def name(self, name): """Sets the name of this ObjectMeta. - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :param name: The name of this ObjectMeta. # noqa: E501 :type: str @@ -379,7 +351,7 @@ def name(self, name): def namespace(self): """Gets the namespace of this ObjectMeta. # noqa: E501 - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :return: The namespace of this ObjectMeta. # noqa: E501 :rtype: str @@ -390,7 +362,7 @@ def namespace(self): def namespace(self, namespace): """Sets the namespace of this ObjectMeta. - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :param namespace: The namespace of this ObjectMeta. # noqa: E501 :type: str @@ -448,7 +420,7 @@ def resource_version(self, resource_version): def self_link(self): """Gets the self_link of this ObjectMeta. # noqa: E501 - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :return: The self_link of this ObjectMeta. # noqa: E501 :rtype: str @@ -459,7 +431,7 @@ def self_link(self): def self_link(self, self_link): """Sets the self_link of this ObjectMeta. - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :param self_link: The self_link of this ObjectMeta. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/object_metric_source.py b/python/seldon_deploy_sdk/models/object_metric_source.py index d5ba857..d2fc4ae 100644 --- a/python/seldon_deploy_sdk/models/object_metric_source.py +++ b/python/seldon_deploy_sdk/models/object_metric_source.py @@ -31,106 +31,73 @@ class ObjectMetricSource(object): and the value is json key in definition. """ swagger_types = { - 'average_value': 'Quantity', - 'metric_name': 'str', - 'selector': 'LabelSelector', - 'target': 'CrossVersionObjectReference', - 'target_value': 'Quantity' + 'described_object': 'CrossVersionObjectReference', + 'metric': 'MetricIdentifier', + 'target': 'MetricTarget' } attribute_map = { - 'average_value': 'averageValue', - 'metric_name': 'metricName', - 'selector': 'selector', - 'target': 'target', - 'target_value': 'targetValue' + 'described_object': 'describedObject', + 'metric': 'metric', + 'target': 'target' } - def __init__(self, average_value=None, metric_name=None, selector=None, target=None, target_value=None): # noqa: E501 + def __init__(self, described_object=None, metric=None, target=None): # noqa: E501 """ObjectMetricSource - a model defined in Swagger""" # noqa: E501 - self._average_value = None - self._metric_name = None - self._selector = None + self._described_object = None + self._metric = None self._target = None - self._target_value = None self.discriminator = None - if average_value is not None: - self.average_value = average_value - if metric_name is not None: - self.metric_name = metric_name - if selector is not None: - self.selector = selector + if described_object is not None: + self.described_object = described_object + if metric is not None: + self.metric = metric if target is not None: self.target = target - if target_value is not None: - self.target_value = target_value @property - def average_value(self): - """Gets the average_value of this ObjectMetricSource. # noqa: E501 + def described_object(self): + """Gets the described_object of this ObjectMetricSource. # noqa: E501 - :return: The average_value of this ObjectMetricSource. # noqa: E501 - :rtype: Quantity - """ - return self._average_value - - @average_value.setter - def average_value(self, average_value): - """Sets the average_value of this ObjectMetricSource. - - - :param average_value: The average_value of this ObjectMetricSource. # noqa: E501 - :type: Quantity - """ - - self._average_value = average_value - - @property - def metric_name(self): - """Gets the metric_name of this ObjectMetricSource. # noqa: E501 - - metricName is the name of the metric in question. # noqa: E501 - - :return: The metric_name of this ObjectMetricSource. # noqa: E501 - :rtype: str + :return: The described_object of this ObjectMetricSource. # noqa: E501 + :rtype: CrossVersionObjectReference """ - return self._metric_name + return self._described_object - @metric_name.setter - def metric_name(self, metric_name): - """Sets the metric_name of this ObjectMetricSource. + @described_object.setter + def described_object(self, described_object): + """Sets the described_object of this ObjectMetricSource. - metricName is the name of the metric in question. # noqa: E501 - :param metric_name: The metric_name of this ObjectMetricSource. # noqa: E501 - :type: str + :param described_object: The described_object of this ObjectMetricSource. # noqa: E501 + :type: CrossVersionObjectReference """ - self._metric_name = metric_name + self._described_object = described_object @property - def selector(self): - """Gets the selector of this ObjectMetricSource. # noqa: E501 + def metric(self): + """Gets the metric of this ObjectMetricSource. # noqa: E501 - :return: The selector of this ObjectMetricSource. # noqa: E501 - :rtype: LabelSelector + :return: The metric of this ObjectMetricSource. # noqa: E501 + :rtype: MetricIdentifier """ - return self._selector + return self._metric - @selector.setter - def selector(self, selector): - """Sets the selector of this ObjectMetricSource. + @metric.setter + def metric(self, metric): + """Sets the metric of this ObjectMetricSource. - :param selector: The selector of this ObjectMetricSource. # noqa: E501 - :type: LabelSelector + :param metric: The metric of this ObjectMetricSource. # noqa: E501 + :type: MetricIdentifier """ - self._selector = selector + self._metric = metric @property def target(self): @@ -138,7 +105,7 @@ def target(self): :return: The target of this ObjectMetricSource. # noqa: E501 - :rtype: CrossVersionObjectReference + :rtype: MetricTarget """ return self._target @@ -148,32 +115,11 @@ def target(self, target): :param target: The target of this ObjectMetricSource. # noqa: E501 - :type: CrossVersionObjectReference + :type: MetricTarget """ self._target = target - @property - def target_value(self): - """Gets the target_value of this ObjectMetricSource. # noqa: E501 - - - :return: The target_value of this ObjectMetricSource. # noqa: E501 - :rtype: Quantity - """ - return self._target_value - - @target_value.setter - def target_value(self, target_value): - """Sets the target_value of this ObjectMetricSource. - - - :param target_value: The target_value of this ObjectMetricSource. # noqa: E501 - :type: Quantity - """ - - self._target_value = target_value - def to_dict(self): """Returns the model properties as a dict""" result = {} diff --git a/python/seldon_deploy_sdk/models/node_phase.py b/python/seldon_deploy_sdk/models/os_name.py similarity index 92% rename from python/seldon_deploy_sdk/models/node_phase.py rename to python/seldon_deploy_sdk/models/os_name.py index 7f784c8..17f0faa 100644 --- a/python/seldon_deploy_sdk/models/node_phase.py +++ b/python/seldon_deploy_sdk/models/os_name.py @@ -17,7 +17,7 @@ import six -class NodePhase(object): +class OSName(object): """NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually. @@ -37,7 +37,7 @@ class NodePhase(object): } def __init__(self): # noqa: E501 - """NodePhase - a model defined in Swagger""" # noqa: E501 + """OSName - a model defined in Swagger""" # noqa: E501 self.discriminator = None def to_dict(self): @@ -61,7 +61,7 @@ def to_dict(self): )) else: result[attr] = value - if issubclass(NodePhase, dict): + if issubclass(OSName, dict): for key, value in self.items(): result[key] = value @@ -77,7 +77,7 @@ def __repr__(self): def __eq__(self, other): """Returns true if both objects are equal""" - if not isinstance(other, NodePhase): + if not isinstance(other, OSName): return False return self.__dict__ == other.__dict__ diff --git a/python/seldon_deploy_sdk/models/owner_reference.py b/python/seldon_deploy_sdk/models/owner_reference.py index 79d4486..59d4a21 100644 --- a/python/seldon_deploy_sdk/models/owner_reference.py +++ b/python/seldon_deploy_sdk/models/owner_reference.py @@ -99,7 +99,7 @@ def api_version(self, api_version): def block_owner_deletion(self): """Gets the block_owner_deletion of this OwnerReference. # noqa: E501 - If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. +optional # noqa: E501 + If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. +optional # noqa: E501 :return: The block_owner_deletion of this OwnerReference. # noqa: E501 :rtype: bool @@ -110,7 +110,7 @@ def block_owner_deletion(self): def block_owner_deletion(self, block_owner_deletion): """Sets the block_owner_deletion of this OwnerReference. - If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. +optional # noqa: E501 + If true, AND if the owner has the \"foregroundDeletion\" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs \"delete\" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. +optional # noqa: E501 :param block_owner_deletion: The block_owner_deletion of this OwnerReference. # noqa: E501 :type: bool @@ -168,7 +168,7 @@ def kind(self, kind): def name(self): """Gets the name of this OwnerReference. # noqa: E501 - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names # noqa: E501 + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names # noqa: E501 :return: The name of this OwnerReference. # noqa: E501 :rtype: str @@ -179,7 +179,7 @@ def name(self): def name(self, name): """Sets the name of this OwnerReference. - Name of the referent. More info: http://kubernetes.io/docs/user-guide/identifiers#names # noqa: E501 + Name of the referent. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names # noqa: E501 :param name: The name of this OwnerReference. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/persistent_volume_claim_spec.py b/python/seldon_deploy_sdk/models/persistent_volume_claim_spec.py index 4807a56..ca79f7e 100644 --- a/python/seldon_deploy_sdk/models/persistent_volume_claim_spec.py +++ b/python/seldon_deploy_sdk/models/persistent_volume_claim_spec.py @@ -33,6 +33,7 @@ class PersistentVolumeClaimSpec(object): swagger_types = { 'access_modes': 'list[PersistentVolumeAccessMode]', 'data_source': 'TypedLocalObjectReference', + 'data_source_ref': 'TypedObjectReference', 'resources': 'ResourceRequirements', 'selector': 'LabelSelector', 'storage_class_name': 'str', @@ -43,6 +44,7 @@ class PersistentVolumeClaimSpec(object): attribute_map = { 'access_modes': 'accessModes', 'data_source': 'dataSource', + 'data_source_ref': 'dataSourceRef', 'resources': 'resources', 'selector': 'selector', 'storage_class_name': 'storageClassName', @@ -50,11 +52,12 @@ class PersistentVolumeClaimSpec(object): 'volume_name': 'volumeName' } - def __init__(self, access_modes=None, data_source=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): # noqa: E501 + def __init__(self, access_modes=None, data_source=None, data_source_ref=None, resources=None, selector=None, storage_class_name=None, volume_mode=None, volume_name=None): # noqa: E501 """PersistentVolumeClaimSpec - a model defined in Swagger""" # noqa: E501 self._access_modes = None self._data_source = None + self._data_source_ref = None self._resources = None self._selector = None self._storage_class_name = None @@ -66,6 +69,8 @@ def __init__(self, access_modes=None, data_source=None, resources=None, selector self.access_modes = access_modes if data_source is not None: self.data_source = data_source + if data_source_ref is not None: + self.data_source_ref = data_source_ref if resources is not None: self.resources = resources if selector is not None: @@ -81,7 +86,7 @@ def __init__(self, access_modes=None, data_source=None, resources=None, selector def access_modes(self): """Gets the access_modes of this PersistentVolumeClaimSpec. # noqa: E501 - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional # noqa: E501 + accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional # noqa: E501 :return: The access_modes of this PersistentVolumeClaimSpec. # noqa: E501 :rtype: list[PersistentVolumeAccessMode] @@ -92,7 +97,7 @@ def access_modes(self): def access_modes(self, access_modes): """Sets the access_modes of this PersistentVolumeClaimSpec. - AccessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional # noqa: E501 + accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional # noqa: E501 :param access_modes: The access_modes of this PersistentVolumeClaimSpec. # noqa: E501 :type: list[PersistentVolumeAccessMode] @@ -121,6 +126,27 @@ def data_source(self, data_source): self._data_source = data_source + @property + def data_source_ref(self): + """Gets the data_source_ref of this PersistentVolumeClaimSpec. # noqa: E501 + + + :return: The data_source_ref of this PersistentVolumeClaimSpec. # noqa: E501 + :rtype: TypedObjectReference + """ + return self._data_source_ref + + @data_source_ref.setter + def data_source_ref(self, data_source_ref): + """Sets the data_source_ref of this PersistentVolumeClaimSpec. + + + :param data_source_ref: The data_source_ref of this PersistentVolumeClaimSpec. # noqa: E501 + :type: TypedObjectReference + """ + + self._data_source_ref = data_source_ref + @property def resources(self): """Gets the resources of this PersistentVolumeClaimSpec. # noqa: E501 @@ -167,7 +193,7 @@ def selector(self, selector): def storage_class_name(self): """Gets the storage_class_name of this PersistentVolumeClaimSpec. # noqa: E501 - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional # noqa: E501 + storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional # noqa: E501 :return: The storage_class_name of this PersistentVolumeClaimSpec. # noqa: E501 :rtype: str @@ -178,7 +204,7 @@ def storage_class_name(self): def storage_class_name(self, storage_class_name): """Sets the storage_class_name of this PersistentVolumeClaimSpec. - Name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional # noqa: E501 + storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional # noqa: E501 :param storage_class_name: The storage_class_name of this PersistentVolumeClaimSpec. # noqa: E501 :type: str @@ -211,7 +237,7 @@ def volume_mode(self, volume_mode): def volume_name(self): """Gets the volume_name of this PersistentVolumeClaimSpec. # noqa: E501 - VolumeName is the binding reference to the PersistentVolume backing this claim. +optional # noqa: E501 + volumeName is the binding reference to the PersistentVolume backing this claim. +optional # noqa: E501 :return: The volume_name of this PersistentVolumeClaimSpec. # noqa: E501 :rtype: str @@ -222,7 +248,7 @@ def volume_name(self): def volume_name(self, volume_name): """Sets the volume_name of this PersistentVolumeClaimSpec. - VolumeName is the binding reference to the PersistentVolume backing this claim. +optional # noqa: E501 + volumeName is the binding reference to the PersistentVolume backing this claim. +optional # noqa: E501 :param volume_name: The volume_name of this PersistentVolumeClaimSpec. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/persistent_volume_claim_template.py b/python/seldon_deploy_sdk/models/persistent_volume_claim_template.py index 1838c28..0f26a56 100644 --- a/python/seldon_deploy_sdk/models/persistent_volume_claim_template.py +++ b/python/seldon_deploy_sdk/models/persistent_volume_claim_template.py @@ -32,7 +32,6 @@ class PersistentVolumeClaimTemplate(object): """ swagger_types = { 'annotations': 'dict(str, str)', - 'cluster_name': 'str', 'creation_timestamp': 'str', 'deletion_grace_period_seconds': 'int', 'deletion_timestamp': 'str', @@ -52,7 +51,6 @@ class PersistentVolumeClaimTemplate(object): attribute_map = { 'annotations': 'annotations', - 'cluster_name': 'clusterName', 'creation_timestamp': 'creationTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', @@ -70,11 +68,10 @@ class PersistentVolumeClaimTemplate(object): 'uid': 'uid' } - def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, uid=None): # noqa: E501 + def __init__(self, annotations=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, uid=None): # noqa: E501 """PersistentVolumeClaimTemplate - a model defined in Swagger""" # noqa: E501 self._annotations = None - self._cluster_name = None self._creation_timestamp = None self._deletion_grace_period_seconds = None self._deletion_timestamp = None @@ -94,8 +91,6 @@ def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, if annotations is not None: self.annotations = annotations - if cluster_name is not None: - self.cluster_name = cluster_name if creation_timestamp is not None: self.creation_timestamp = creation_timestamp if deletion_grace_period_seconds is not None: @@ -131,7 +126,7 @@ def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, def annotations(self): """Gets the annotations of this PersistentVolumeClaimTemplate. # noqa: E501 - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :return: The annotations of this PersistentVolumeClaimTemplate. # noqa: E501 :rtype: dict(str, str) @@ -142,7 +137,7 @@ def annotations(self): def annotations(self, annotations): """Sets the annotations of this PersistentVolumeClaimTemplate. - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :param annotations: The annotations of this PersistentVolumeClaimTemplate. # noqa: E501 :type: dict(str, str) @@ -150,29 +145,6 @@ def annotations(self, annotations): self._annotations = annotations - @property - def cluster_name(self): - """Gets the cluster_name of this PersistentVolumeClaimTemplate. # noqa: E501 - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :return: The cluster_name of this PersistentVolumeClaimTemplate. # noqa: E501 - :rtype: str - """ - return self._cluster_name - - @cluster_name.setter - def cluster_name(self, cluster_name): - """Sets the cluster_name of this PersistentVolumeClaimTemplate. - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :param cluster_name: The cluster_name of this PersistentVolumeClaimTemplate. # noqa: E501 - :type: str - """ - - self._cluster_name = cluster_name - @property def creation_timestamp(self): """Gets the creation_timestamp of this PersistentVolumeClaimTemplate. # noqa: E501 @@ -269,7 +241,7 @@ def finalizers(self, finalizers): def generate_name(self): """Gets the generate_name of this PersistentVolumeClaimTemplate. # noqa: E501 - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :return: The generate_name of this PersistentVolumeClaimTemplate. # noqa: E501 :rtype: str @@ -280,7 +252,7 @@ def generate_name(self): def generate_name(self, generate_name): """Sets the generate_name of this PersistentVolumeClaimTemplate. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :param generate_name: The generate_name of this PersistentVolumeClaimTemplate. # noqa: E501 :type: str @@ -315,7 +287,7 @@ def generation(self, generation): def labels(self): """Gets the labels of this PersistentVolumeClaimTemplate. # noqa: E501 - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :return: The labels of this PersistentVolumeClaimTemplate. # noqa: E501 :rtype: dict(str, str) @@ -326,7 +298,7 @@ def labels(self): def labels(self, labels): """Sets the labels of this PersistentVolumeClaimTemplate. - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :param labels: The labels of this PersistentVolumeClaimTemplate. # noqa: E501 :type: dict(str, str) @@ -361,7 +333,7 @@ def managed_fields(self, managed_fields): def name(self): """Gets the name of this PersistentVolumeClaimTemplate. # noqa: E501 - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :return: The name of this PersistentVolumeClaimTemplate. # noqa: E501 :rtype: str @@ -372,7 +344,7 @@ def name(self): def name(self, name): """Sets the name of this PersistentVolumeClaimTemplate. - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :param name: The name of this PersistentVolumeClaimTemplate. # noqa: E501 :type: str @@ -384,7 +356,7 @@ def name(self, name): def namespace(self): """Gets the namespace of this PersistentVolumeClaimTemplate. # noqa: E501 - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :return: The namespace of this PersistentVolumeClaimTemplate. # noqa: E501 :rtype: str @@ -395,7 +367,7 @@ def namespace(self): def namespace(self, namespace): """Sets the namespace of this PersistentVolumeClaimTemplate. - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :param namespace: The namespace of this PersistentVolumeClaimTemplate. # noqa: E501 :type: str @@ -453,7 +425,7 @@ def resource_version(self, resource_version): def self_link(self): """Gets the self_link of this PersistentVolumeClaimTemplate. # noqa: E501 - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :return: The self_link of this PersistentVolumeClaimTemplate. # noqa: E501 :rtype: str @@ -464,7 +436,7 @@ def self_link(self): def self_link(self, self_link): """Sets the self_link of this PersistentVolumeClaimTemplate. - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :param self_link: The self_link of this PersistentVolumeClaimTemplate. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/persistent_volume_claim_volume_source.py b/python/seldon_deploy_sdk/models/persistent_volume_claim_volume_source.py index ed0f81c..c9e50dc 100644 --- a/python/seldon_deploy_sdk/models/persistent_volume_claim_volume_source.py +++ b/python/seldon_deploy_sdk/models/persistent_volume_claim_volume_source.py @@ -56,7 +56,7 @@ def __init__(self, claim_name=None, read_only=None): # noqa: E501 def claim_name(self): """Gets the claim_name of this PersistentVolumeClaimVolumeSource. # noqa: E501 - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims # noqa: E501 + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims # noqa: E501 :return: The claim_name of this PersistentVolumeClaimVolumeSource. # noqa: E501 :rtype: str @@ -67,7 +67,7 @@ def claim_name(self): def claim_name(self, claim_name): """Sets the claim_name of this PersistentVolumeClaimVolumeSource. - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims # noqa: E501 + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims # noqa: E501 :param claim_name: The claim_name of this PersistentVolumeClaimVolumeSource. # noqa: E501 :type: str @@ -79,7 +79,7 @@ def claim_name(self, claim_name): def read_only(self): """Gets the read_only of this PersistentVolumeClaimVolumeSource. # noqa: E501 - Will force the ReadOnly setting in VolumeMounts. Default false. +optional # noqa: E501 + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. +optional # noqa: E501 :return: The read_only of this PersistentVolumeClaimVolumeSource. # noqa: E501 :rtype: bool @@ -90,7 +90,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this PersistentVolumeClaimVolumeSource. - Will force the ReadOnly setting in VolumeMounts. Default false. +optional # noqa: E501 + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. +optional # noqa: E501 :param read_only: The read_only of this PersistentVolumeClaimVolumeSource. # noqa: E501 :type: bool diff --git a/python/seldon_deploy_sdk/models/photon_persistent_disk_volume_source.py b/python/seldon_deploy_sdk/models/photon_persistent_disk_volume_source.py index 54c0c64..6c78cd3 100644 --- a/python/seldon_deploy_sdk/models/photon_persistent_disk_volume_source.py +++ b/python/seldon_deploy_sdk/models/photon_persistent_disk_volume_source.py @@ -56,7 +56,7 @@ def __init__(self, fs_type=None, pd_id=None): # noqa: E501 def fs_type(self): """Gets the fs_type of this PhotonPersistentDiskVolumeSource. # noqa: E501 - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 :return: The fs_type of this PhotonPersistentDiskVolumeSource. # noqa: E501 :rtype: str @@ -67,7 +67,7 @@ def fs_type(self): def fs_type(self, fs_type): """Sets the fs_type of this PhotonPersistentDiskVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 :param fs_type: The fs_type of this PhotonPersistentDiskVolumeSource. # noqa: E501 :type: str @@ -79,7 +79,7 @@ def fs_type(self, fs_type): def pd_id(self): """Gets the pd_id of this PhotonPersistentDiskVolumeSource. # noqa: E501 - ID that identifies Photon Controller persistent disk # noqa: E501 + pdID is the ID that identifies Photon Controller persistent disk # noqa: E501 :return: The pd_id of this PhotonPersistentDiskVolumeSource. # noqa: E501 :rtype: str @@ -90,7 +90,7 @@ def pd_id(self): def pd_id(self, pd_id): """Sets the pd_id of this PhotonPersistentDiskVolumeSource. - ID that identifies Photon Controller persistent disk # noqa: E501 + pdID is the ID that identifies Photon Controller persistent disk # noqa: E501 :param pd_id: The pd_id of this PhotonPersistentDiskVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/pipeline.py b/python/seldon_deploy_sdk/models/pipeline.py index cfa0ca4..d6cbd1f 100644 --- a/python/seldon_deploy_sdk/models/pipeline.py +++ b/python/seldon_deploy_sdk/models/pipeline.py @@ -33,7 +33,6 @@ class Pipeline(object): swagger_types = { 'annotations': 'dict(str, str)', 'api_version': 'str', - 'cluster_name': 'str', 'creation_timestamp': 'str', 'deletion_grace_period_seconds': 'int', 'deletion_timestamp': 'str', @@ -56,7 +55,6 @@ class Pipeline(object): attribute_map = { 'annotations': 'annotations', 'api_version': 'apiVersion', - 'cluster_name': 'clusterName', 'creation_timestamp': 'creationTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', @@ -76,12 +74,11 @@ class Pipeline(object): 'uid': 'uid' } - def __init__(self, annotations=None, api_version=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, kind=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, status=None, uid=None): # noqa: E501 + def __init__(self, annotations=None, api_version=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, kind=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, status=None, uid=None): # noqa: E501 """Pipeline - a model defined in Swagger""" # noqa: E501 self._annotations = None self._api_version = None - self._cluster_name = None self._creation_timestamp = None self._deletion_grace_period_seconds = None self._deletion_timestamp = None @@ -105,8 +102,6 @@ def __init__(self, annotations=None, api_version=None, cluster_name=None, creati self.annotations = annotations if api_version is not None: self.api_version = api_version - if cluster_name is not None: - self.cluster_name = cluster_name if creation_timestamp is not None: self.creation_timestamp = creation_timestamp if deletion_grace_period_seconds is not None: @@ -146,7 +141,7 @@ def __init__(self, annotations=None, api_version=None, cluster_name=None, creati def annotations(self): """Gets the annotations of this Pipeline. # noqa: E501 - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :return: The annotations of this Pipeline. # noqa: E501 :rtype: dict(str, str) @@ -157,7 +152,7 @@ def annotations(self): def annotations(self, annotations): """Sets the annotations of this Pipeline. - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :param annotations: The annotations of this Pipeline. # noqa: E501 :type: dict(str, str) @@ -188,29 +183,6 @@ def api_version(self, api_version): self._api_version = api_version - @property - def cluster_name(self): - """Gets the cluster_name of this Pipeline. # noqa: E501 - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :return: The cluster_name of this Pipeline. # noqa: E501 - :rtype: str - """ - return self._cluster_name - - @cluster_name.setter - def cluster_name(self, cluster_name): - """Sets the cluster_name of this Pipeline. - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :param cluster_name: The cluster_name of this Pipeline. # noqa: E501 - :type: str - """ - - self._cluster_name = cluster_name - @property def creation_timestamp(self): """Gets the creation_timestamp of this Pipeline. # noqa: E501 @@ -307,7 +279,7 @@ def finalizers(self, finalizers): def generate_name(self): """Gets the generate_name of this Pipeline. # noqa: E501 - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :return: The generate_name of this Pipeline. # noqa: E501 :rtype: str @@ -318,7 +290,7 @@ def generate_name(self): def generate_name(self, generate_name): """Sets the generate_name of this Pipeline. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :param generate_name: The generate_name of this Pipeline. # noqa: E501 :type: str @@ -376,7 +348,7 @@ def kind(self, kind): def labels(self): """Gets the labels of this Pipeline. # noqa: E501 - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :return: The labels of this Pipeline. # noqa: E501 :rtype: dict(str, str) @@ -387,7 +359,7 @@ def labels(self): def labels(self, labels): """Sets the labels of this Pipeline. - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :param labels: The labels of this Pipeline. # noqa: E501 :type: dict(str, str) @@ -422,7 +394,7 @@ def managed_fields(self, managed_fields): def name(self): """Gets the name of this Pipeline. # noqa: E501 - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :return: The name of this Pipeline. # noqa: E501 :rtype: str @@ -433,7 +405,7 @@ def name(self): def name(self, name): """Sets the name of this Pipeline. - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :param name: The name of this Pipeline. # noqa: E501 :type: str @@ -445,7 +417,7 @@ def name(self, name): def namespace(self): """Gets the namespace of this Pipeline. # noqa: E501 - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :return: The namespace of this Pipeline. # noqa: E501 :rtype: str @@ -456,7 +428,7 @@ def namespace(self): def namespace(self, namespace): """Sets the namespace of this Pipeline. - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :param namespace: The namespace of this Pipeline. # noqa: E501 :type: str @@ -514,7 +486,7 @@ def resource_version(self, resource_version): def self_link(self): """Gets the self_link of this Pipeline. # noqa: E501 - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :return: The self_link of this Pipeline. # noqa: E501 :rtype: str @@ -525,7 +497,7 @@ def self_link(self): def self_link(self, self_link): """Sets the self_link of this Pipeline. - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :param self_link: The self_link of this Pipeline. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/pod.py b/python/seldon_deploy_sdk/models/pod.py index f4d705d..65f43cd 100644 --- a/python/seldon_deploy_sdk/models/pod.py +++ b/python/seldon_deploy_sdk/models/pod.py @@ -33,7 +33,6 @@ class Pod(object): swagger_types = { 'annotations': 'dict(str, str)', 'api_version': 'str', - 'cluster_name': 'str', 'creation_timestamp': 'str', 'deletion_grace_period_seconds': 'int', 'deletion_timestamp': 'str', @@ -56,7 +55,6 @@ class Pod(object): attribute_map = { 'annotations': 'annotations', 'api_version': 'apiVersion', - 'cluster_name': 'clusterName', 'creation_timestamp': 'creationTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', @@ -76,12 +74,11 @@ class Pod(object): 'uid': 'uid' } - def __init__(self, annotations=None, api_version=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, kind=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, status=None, uid=None): # noqa: E501 + def __init__(self, annotations=None, api_version=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, kind=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, status=None, uid=None): # noqa: E501 """Pod - a model defined in Swagger""" # noqa: E501 self._annotations = None self._api_version = None - self._cluster_name = None self._creation_timestamp = None self._deletion_grace_period_seconds = None self._deletion_timestamp = None @@ -105,8 +102,6 @@ def __init__(self, annotations=None, api_version=None, cluster_name=None, creati self.annotations = annotations if api_version is not None: self.api_version = api_version - if cluster_name is not None: - self.cluster_name = cluster_name if creation_timestamp is not None: self.creation_timestamp = creation_timestamp if deletion_grace_period_seconds is not None: @@ -146,7 +141,7 @@ def __init__(self, annotations=None, api_version=None, cluster_name=None, creati def annotations(self): """Gets the annotations of this Pod. # noqa: E501 - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :return: The annotations of this Pod. # noqa: E501 :rtype: dict(str, str) @@ -157,7 +152,7 @@ def annotations(self): def annotations(self, annotations): """Sets the annotations of this Pod. - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :param annotations: The annotations of this Pod. # noqa: E501 :type: dict(str, str) @@ -188,29 +183,6 @@ def api_version(self, api_version): self._api_version = api_version - @property - def cluster_name(self): - """Gets the cluster_name of this Pod. # noqa: E501 - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :return: The cluster_name of this Pod. # noqa: E501 - :rtype: str - """ - return self._cluster_name - - @cluster_name.setter - def cluster_name(self, cluster_name): - """Sets the cluster_name of this Pod. - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :param cluster_name: The cluster_name of this Pod. # noqa: E501 - :type: str - """ - - self._cluster_name = cluster_name - @property def creation_timestamp(self): """Gets the creation_timestamp of this Pod. # noqa: E501 @@ -307,7 +279,7 @@ def finalizers(self, finalizers): def generate_name(self): """Gets the generate_name of this Pod. # noqa: E501 - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :return: The generate_name of this Pod. # noqa: E501 :rtype: str @@ -318,7 +290,7 @@ def generate_name(self): def generate_name(self, generate_name): """Sets the generate_name of this Pod. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :param generate_name: The generate_name of this Pod. # noqa: E501 :type: str @@ -376,7 +348,7 @@ def kind(self, kind): def labels(self): """Gets the labels of this Pod. # noqa: E501 - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :return: The labels of this Pod. # noqa: E501 :rtype: dict(str, str) @@ -387,7 +359,7 @@ def labels(self): def labels(self, labels): """Sets the labels of this Pod. - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :param labels: The labels of this Pod. # noqa: E501 :type: dict(str, str) @@ -422,7 +394,7 @@ def managed_fields(self, managed_fields): def name(self): """Gets the name of this Pod. # noqa: E501 - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :return: The name of this Pod. # noqa: E501 :rtype: str @@ -433,7 +405,7 @@ def name(self): def name(self, name): """Sets the name of this Pod. - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :param name: The name of this Pod. # noqa: E501 :type: str @@ -445,7 +417,7 @@ def name(self, name): def namespace(self): """Gets the namespace of this Pod. # noqa: E501 - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :return: The namespace of this Pod. # noqa: E501 :rtype: str @@ -456,7 +428,7 @@ def namespace(self): def namespace(self, namespace): """Sets the namespace of this Pod. - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :param namespace: The namespace of this Pod. # noqa: E501 :type: str @@ -514,7 +486,7 @@ def resource_version(self, resource_version): def self_link(self): """Gets the self_link of this Pod. # noqa: E501 - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :return: The self_link of this Pod. # noqa: E501 :rtype: str @@ -525,7 +497,7 @@ def self_link(self): def self_link(self, self_link): """Sets the self_link of this Pod. - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :param self_link: The self_link of this Pod. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/pod_affinity_term.py b/python/seldon_deploy_sdk/models/pod_affinity_term.py index 7c2cadd..69273dc 100644 --- a/python/seldon_deploy_sdk/models/pod_affinity_term.py +++ b/python/seldon_deploy_sdk/models/pod_affinity_term.py @@ -32,26 +32,31 @@ class PodAffinityTerm(object): """ swagger_types = { 'label_selector': 'LabelSelector', + 'namespace_selector': 'LabelSelector', 'namespaces': 'list[str]', 'topology_key': 'str' } attribute_map = { 'label_selector': 'labelSelector', + 'namespace_selector': 'namespaceSelector', 'namespaces': 'namespaces', 'topology_key': 'topologyKey' } - def __init__(self, label_selector=None, namespaces=None, topology_key=None): # noqa: E501 + def __init__(self, label_selector=None, namespace_selector=None, namespaces=None, topology_key=None): # noqa: E501 """PodAffinityTerm - a model defined in Swagger""" # noqa: E501 self._label_selector = None + self._namespace_selector = None self._namespaces = None self._topology_key = None self.discriminator = None if label_selector is not None: self.label_selector = label_selector + if namespace_selector is not None: + self.namespace_selector = namespace_selector if namespaces is not None: self.namespaces = namespaces if topology_key is not None: @@ -78,11 +83,32 @@ def label_selector(self, label_selector): self._label_selector = label_selector + @property + def namespace_selector(self): + """Gets the namespace_selector of this PodAffinityTerm. # noqa: E501 + + + :return: The namespace_selector of this PodAffinityTerm. # noqa: E501 + :rtype: LabelSelector + """ + return self._namespace_selector + + @namespace_selector.setter + def namespace_selector(self, namespace_selector): + """Sets the namespace_selector of this PodAffinityTerm. + + + :param namespace_selector: The namespace_selector of this PodAffinityTerm. # noqa: E501 + :type: LabelSelector + """ + + self._namespace_selector = namespace_selector + @property def namespaces(self): """Gets the namespaces of this PodAffinityTerm. # noqa: E501 - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" +optional # noqa: E501 + namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". +optional # noqa: E501 :return: The namespaces of this PodAffinityTerm. # noqa: E501 :rtype: list[str] @@ -93,7 +119,7 @@ def namespaces(self): def namespaces(self, namespaces): """Sets the namespaces of this PodAffinityTerm. - namespaces specifies which namespaces the labelSelector applies to (matches against); null or empty list means \"this pod's namespace\" +optional # noqa: E501 + namespaces specifies a static list of namespace names that the term applies to. The term is applied to the union of the namespaces listed in this field and the ones selected by namespaceSelector. null or empty namespaces list and null namespaceSelector means \"this pod's namespace\". +optional # noqa: E501 :param namespaces: The namespaces of this PodAffinityTerm. # noqa: E501 :type: list[str] diff --git a/python/seldon_deploy_sdk/models/pod_ip.py b/python/seldon_deploy_sdk/models/pod_ip.py index 497beeb..1c3b87e 100644 --- a/python/seldon_deploy_sdk/models/pod_ip.py +++ b/python/seldon_deploy_sdk/models/pod_ip.py @@ -51,7 +51,7 @@ def __init__(self, ip=None): # noqa: E501 def ip(self): """Gets the ip of this PodIP. # noqa: E501 - ip is an IP address (IPv4 or IPv6) assigned to the pod # noqa: E501 + IP is the IP address assigned to the pod # noqa: E501 :return: The ip of this PodIP. # noqa: E501 :rtype: str @@ -62,7 +62,7 @@ def ip(self): def ip(self, ip): """Sets the ip of this PodIP. - ip is an IP address (IPv4 or IPv6) assigned to the pod # noqa: E501 + IP is the IP address assigned to the pod # noqa: E501 :param ip: The ip of this PodIP. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/pod_list.py b/python/seldon_deploy_sdk/models/pod_list.py index d2ea54f..5b51ee3 100644 --- a/python/seldon_deploy_sdk/models/pod_list.py +++ b/python/seldon_deploy_sdk/models/pod_list.py @@ -219,7 +219,7 @@ def resource_version(self, resource_version): def self_link(self): """Gets the self_link of this PodList. # noqa: E501 - selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :return: The self_link of this PodList. # noqa: E501 :rtype: str @@ -230,7 +230,7 @@ def self_link(self): def self_link(self, self_link): """Sets the self_link of this PodList. - selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :param self_link: The self_link of this PodList. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/pod_os.py b/python/seldon_deploy_sdk/models/pod_os.py new file mode 100644 index 0000000..ed3835b --- /dev/null +++ b/python/seldon_deploy_sdk/models/pod_os.py @@ -0,0 +1,115 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class PodOS(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'OSName' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): # noqa: E501 + """PodOS - a model defined in Swagger""" # noqa: E501 + + self._name = None + self.discriminator = None + + if name is not None: + self.name = name + + @property + def name(self): + """Gets the name of this PodOS. # noqa: E501 + + + :return: The name of this PodOS. # noqa: E501 + :rtype: OSName + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PodOS. + + + :param name: The name of this PodOS. # noqa: E501 + :type: OSName + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PodOS, dict): + for key, value in self.items(): + result[key] = 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, PodOS): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/pod_resize_status.py b/python/seldon_deploy_sdk/models/pod_resize_status.py new file mode 100644 index 0000000..98bc134 --- /dev/null +++ b/python/seldon_deploy_sdk/models/pod_resize_status.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class PodResizeStatus(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """PodResizeStatus - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PodResizeStatus, dict): + for key, value in self.items(): + result[key] = 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, PodResizeStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/pod_resource_claim.py b/python/seldon_deploy_sdk/models/pod_resource_claim.py new file mode 100644 index 0000000..66c649b --- /dev/null +++ b/python/seldon_deploy_sdk/models/pod_resource_claim.py @@ -0,0 +1,143 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class PodResourceClaim(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'source': 'ClaimSource' + } + + attribute_map = { + 'name': 'name', + 'source': 'source' + } + + def __init__(self, name=None, source=None): # noqa: E501 + """PodResourceClaim - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._source = None + self.discriminator = None + + if name is not None: + self.name = name + if source is not None: + self.source = source + + @property + def name(self): + """Gets the name of this PodResourceClaim. # noqa: E501 + + Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. # noqa: E501 + + :return: The name of this PodResourceClaim. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PodResourceClaim. + + Name uniquely identifies this resource claim inside the pod. This must be a DNS_LABEL. # noqa: E501 + + :param name: The name of this PodResourceClaim. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def source(self): + """Gets the source of this PodResourceClaim. # noqa: E501 + + + :return: The source of this PodResourceClaim. # noqa: E501 + :rtype: ClaimSource + """ + return self._source + + @source.setter + def source(self, source): + """Sets the source of this PodResourceClaim. + + + :param source: The source of this PodResourceClaim. # noqa: E501 + :type: ClaimSource + """ + + self._source = source + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PodResourceClaim, dict): + for key, value in self.items(): + result[key] = 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, PodResourceClaim): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/pod_resource_claim_status.py b/python/seldon_deploy_sdk/models/pod_resource_claim_status.py new file mode 100644 index 0000000..4832a63 --- /dev/null +++ b/python/seldon_deploy_sdk/models/pod_resource_claim_status.py @@ -0,0 +1,145 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class PodResourceClaimStatus(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str', + 'resource_claim_name': 'str' + } + + attribute_map = { + 'name': 'name', + 'resource_claim_name': 'resourceClaimName' + } + + def __init__(self, name=None, resource_claim_name=None): # noqa: E501 + """PodResourceClaimStatus - a model defined in Swagger""" # noqa: E501 + + self._name = None + self._resource_claim_name = None + self.discriminator = None + + if name is not None: + self.name = name + if resource_claim_name is not None: + self.resource_claim_name = resource_claim_name + + @property + def name(self): + """Gets the name of this PodResourceClaimStatus. # noqa: E501 + + Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL. # noqa: E501 + + :return: The name of this PodResourceClaimStatus. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PodResourceClaimStatus. + + Name uniquely identifies this resource claim inside the pod. This must match the name of an entry in pod.spec.resourceClaims, which implies that the string must be a DNS_LABEL. # noqa: E501 + + :param name: The name of this PodResourceClaimStatus. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def resource_claim_name(self): + """Gets the resource_claim_name of this PodResourceClaimStatus. # noqa: E501 + + ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. +optional # noqa: E501 + + :return: The resource_claim_name of this PodResourceClaimStatus. # 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 PodResourceClaimStatus. + + ResourceClaimName is the name of the ResourceClaim that was generated for the Pod in the namespace of the Pod. It this is unset, then generating a ResourceClaim was not necessary. The pod.spec.resourceClaims entry can be ignored in this case. +optional # noqa: E501 + + :param resource_claim_name: The resource_claim_name of this PodResourceClaimStatus. # noqa: E501 + :type: str + """ + + 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.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PodResourceClaimStatus, dict): + for key, value in self.items(): + result[key] = 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, PodResourceClaimStatus): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/pod_scheduling_gate.py b/python/seldon_deploy_sdk/models/pod_scheduling_gate.py new file mode 100644 index 0000000..fdce87a --- /dev/null +++ b/python/seldon_deploy_sdk/models/pod_scheduling_gate.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class PodSchedulingGate(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): # noqa: E501 + """PodSchedulingGate - a model defined in Swagger""" # noqa: E501 + + self._name = None + self.discriminator = None + + if name is not None: + self.name = name + + @property + def name(self): + """Gets the name of this PodSchedulingGate. # noqa: E501 + + Name of the scheduling gate. Each scheduling gate must have a unique name field. # noqa: E501 + + :return: The name of this PodSchedulingGate. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this PodSchedulingGate. + + Name of the scheduling gate. Each scheduling gate must have a unique name field. # noqa: E501 + + :param name: The name of this PodSchedulingGate. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(PodSchedulingGate, dict): + for key, value in self.items(): + result[key] = 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, PodSchedulingGate): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/pod_security_context.py b/python/seldon_deploy_sdk/models/pod_security_context.py index 5f3da64..d9e4c02 100644 --- a/python/seldon_deploy_sdk/models/pod_security_context.py +++ b/python/seldon_deploy_sdk/models/pod_security_context.py @@ -96,7 +96,7 @@ def __init__(self, fs_group=None, fs_group_change_policy=None, run_as_group=None def fs_group(self): """Gets the fs_group of this PodSecurityContext. # noqa: E501 - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. +optional # noqa: E501 + A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :return: The fs_group of this PodSecurityContext. # noqa: E501 :rtype: int @@ -107,7 +107,7 @@ def fs_group(self): def fs_group(self, fs_group): """Sets the fs_group of this PodSecurityContext. - A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. +optional # noqa: E501 + A special supplemental group that applies to all containers in a pod. Some volume types allow the Kubelet to change the ownership of that volume to be owned by the pod: 1. The owning GID will be the FSGroup 2. The setgid bit is set (new files created in the volume will be owned by FSGroup) 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :param fs_group: The fs_group of this PodSecurityContext. # noqa: E501 :type: int @@ -140,7 +140,7 @@ def fs_group_change_policy(self, fs_group_change_policy): def run_as_group(self): """Gets the run_as_group of this PodSecurityContext. # noqa: E501 - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. +optional # noqa: E501 + The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :return: The run_as_group of this PodSecurityContext. # noqa: E501 :rtype: int @@ -151,7 +151,7 @@ def run_as_group(self): def run_as_group(self, run_as_group): """Sets the run_as_group of this PodSecurityContext. - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. +optional # noqa: E501 + The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :param run_as_group: The run_as_group of this PodSecurityContext. # noqa: E501 :type: int @@ -186,7 +186,7 @@ def run_as_non_root(self, run_as_non_root): def run_as_user(self): """Gets the run_as_user of this PodSecurityContext. # noqa: E501 - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. +optional # noqa: E501 + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :return: The run_as_user of this PodSecurityContext. # noqa: E501 :rtype: int @@ -197,7 +197,7 @@ def run_as_user(self): def run_as_user(self, run_as_user): """Sets the run_as_user of this PodSecurityContext. - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. +optional # noqa: E501 + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :param run_as_user: The run_as_user of this PodSecurityContext. # noqa: E501 :type: int @@ -251,7 +251,7 @@ def seccomp_profile(self, seccomp_profile): def supplemental_groups(self): """Gets the supplemental_groups of this PodSecurityContext. # noqa: E501 - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. +optional # noqa: E501 + A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :return: The supplemental_groups of this PodSecurityContext. # noqa: E501 :rtype: list[int] @@ -262,7 +262,7 @@ def supplemental_groups(self): def supplemental_groups(self, supplemental_groups): """Sets the supplemental_groups of this PodSecurityContext. - A list of groups applied to the first process run in each container, in addition to the container's primary GID. If unspecified, no groups will be added to any container. +optional # noqa: E501 + A list of groups applied to the first process run in each container, in addition to the container's primary GID, the fsGroup (if specified), and group memberships defined in the container image for the uid of the container process. If unspecified, no additional groups are added to any container. Note that group memberships defined in the container image for the uid of the container process are still effective, even if they are not included in this list. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :param supplemental_groups: The supplemental_groups of this PodSecurityContext. # noqa: E501 :type: list[int] @@ -274,7 +274,7 @@ def supplemental_groups(self, supplemental_groups): def sysctls(self): """Gets the sysctls of this PodSecurityContext. # noqa: E501 - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. +optional # noqa: E501 + Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :return: The sysctls of this PodSecurityContext. # noqa: E501 :rtype: list[Sysctl] @@ -285,7 +285,7 @@ def sysctls(self): def sysctls(self, sysctls): """Sets the sysctls of this PodSecurityContext. - Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. +optional # noqa: E501 + Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :param sysctls: The sysctls of this PodSecurityContext. # noqa: E501 :type: list[Sysctl] diff --git a/python/seldon_deploy_sdk/models/pod_spec.py b/python/seldon_deploy_sdk/models/pod_spec.py index 98997a4..5251c8e 100644 --- a/python/seldon_deploy_sdk/models/pod_spec.py +++ b/python/seldon_deploy_sdk/models/pod_spec.py @@ -43,19 +43,23 @@ class PodSpec(object): 'host_ipc': 'bool', 'host_network': 'bool', 'host_pid': 'bool', + 'host_users': 'bool', 'hostname': 'str', 'image_pull_secrets': 'list[LocalObjectReference]', 'init_containers': 'list[Container]', 'node_name': 'str', 'node_selector': 'dict(str, str)', + 'os': 'PodOS', 'overhead': 'ResourceList', 'preemption_policy': 'PreemptionPolicy', 'priority': 'int', 'priority_class_name': 'str', 'readiness_gates': 'list[PodReadinessGate]', + 'resource_claims': 'list[PodResourceClaim]', 'restart_policy': 'RestartPolicy', 'runtime_class_name': 'str', 'scheduler_name': 'str', + 'scheduling_gates': 'list[PodSchedulingGate]', 'security_context': 'PodSecurityContext', 'service_account': 'str', 'service_account_name': 'str', @@ -81,19 +85,23 @@ class PodSpec(object): 'host_ipc': 'hostIPC', 'host_network': 'hostNetwork', 'host_pid': 'hostPID', + 'host_users': 'hostUsers', 'hostname': 'hostname', 'image_pull_secrets': 'imagePullSecrets', 'init_containers': 'initContainers', 'node_name': 'nodeName', 'node_selector': 'nodeSelector', + 'os': 'os', 'overhead': 'overhead', 'preemption_policy': 'preemptionPolicy', 'priority': 'priority', 'priority_class_name': 'priorityClassName', 'readiness_gates': 'readinessGates', + 'resource_claims': 'resourceClaims', 'restart_policy': 'restartPolicy', 'runtime_class_name': 'runtimeClassName', 'scheduler_name': 'schedulerName', + 'scheduling_gates': 'schedulingGates', 'security_context': 'securityContext', 'service_account': 'serviceAccount', 'service_account_name': 'serviceAccountName', @@ -106,7 +114,7 @@ class PodSpec(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, hostname=None, image_pull_secrets=None, init_containers=None, node_name=None, node_selector=None, overhead=None, preemption_policy=None, priority=None, priority_class_name=None, readiness_gates=None, restart_policy=None, runtime_class_name=None, scheduler_name=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): # 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, 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, 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): # noqa: E501 """PodSpec - a model defined in Swagger""" # noqa: E501 self._active_deadline_seconds = None @@ -121,19 +129,23 @@ def __init__(self, active_deadline_seconds=None, affinity=None, automount_servic self._host_ipc = None self._host_network = None self._host_pid = None + self._host_users = None self._hostname = None self._image_pull_secrets = None self._init_containers = None self._node_name = None self._node_selector = None + self._os = None self._overhead = None self._preemption_policy = None self._priority = None self._priority_class_name = None self._readiness_gates = None + self._resource_claims = None self._restart_policy = None self._runtime_class_name = None self._scheduler_name = None + self._scheduling_gates = None self._security_context = None self._service_account = None self._service_account_name = None @@ -170,6 +182,8 @@ def __init__(self, active_deadline_seconds=None, affinity=None, automount_servic self.host_network = host_network if host_pid is not None: self.host_pid = host_pid + if host_users is not None: + self.host_users = host_users if hostname is not None: self.hostname = hostname if image_pull_secrets is not None: @@ -180,6 +194,8 @@ def __init__(self, active_deadline_seconds=None, affinity=None, automount_servic self.node_name = node_name if node_selector is not None: self.node_selector = node_selector + if os is not None: + self.os = os if overhead is not None: self.overhead = overhead if preemption_policy is not None: @@ -190,12 +206,16 @@ def __init__(self, active_deadline_seconds=None, affinity=None, automount_servic self.priority_class_name = priority_class_name if readiness_gates is not None: self.readiness_gates = readiness_gates + if resource_claims is not None: + self.resource_claims = resource_claims if restart_policy is not None: self.restart_policy = restart_policy if runtime_class_name is not None: self.runtime_class_name = runtime_class_name if scheduler_name is not None: self.scheduler_name = scheduler_name + if scheduling_gates is not None: + self.scheduling_gates = scheduling_gates if security_context is not None: self.security_context = security_context if service_account is not None: @@ -376,7 +396,7 @@ def enable_service_links(self, enable_service_links): def ephemeral_containers(self): """Gets the ephemeral_containers of this PodSpec. # noqa: E501 - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. +optional +patchMergeKey=name +patchStrategy=merge # noqa: E501 + List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. +optional +patchMergeKey=name +patchStrategy=merge # noqa: E501 :return: The ephemeral_containers of this PodSpec. # noqa: E501 :rtype: list[EphemeralContainer] @@ -387,7 +407,7 @@ def ephemeral_containers(self): def ephemeral_containers(self, ephemeral_containers): """Sets the ephemeral_containers of this PodSpec. - List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. +optional +patchMergeKey=name +patchStrategy=merge # noqa: E501 + List of ephemeral containers run in this pod. Ephemeral containers may be run in an existing pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. +optional +patchMergeKey=name +patchStrategy=merge # noqa: E501 :param ephemeral_containers: The ephemeral_containers of this PodSpec. # noqa: E501 :type: list[EphemeralContainer] @@ -487,6 +507,29 @@ def host_pid(self, host_pid): self._host_pid = host_pid + @property + def host_users(self): + """Gets the host_users of this PodSpec. # noqa: E501 + + Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. +k8s:conversion-gen=false +optional # noqa: E501 + + :return: The host_users of this PodSpec. # noqa: E501 + :rtype: bool + """ + return self._host_users + + @host_users.setter + def host_users(self, host_users): + """Sets the host_users of this PodSpec. + + Use the host's user namespace. Optional: Default to true. If set to true or not present, the pod will be run in the host user namespace, useful for when the pod needs a feature only available to the host user namespace, such as loading a kernel module with CAP_SYS_MODULE. When set to false, a new userns is created for the pod. Setting false is useful for mitigating container breakout vulnerabilities even allowing users to run their containers as root without actually having root privileges on the host. This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. +k8s:conversion-gen=false +optional # noqa: E501 + + :param host_users: The host_users of this PodSpec. # noqa: E501 + :type: bool + """ + + self._host_users = host_users + @property def hostname(self): """Gets the hostname of this PodSpec. # noqa: E501 @@ -514,7 +557,7 @@ def hostname(self, hostname): def image_pull_secrets(self): """Gets the image_pull_secrets of this PodSpec. # noqa: E501 - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod +optional +patchMergeKey=name +patchStrategy=merge # noqa: E501 + ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod +optional +patchMergeKey=name +patchStrategy=merge # noqa: E501 :return: The image_pull_secrets of this PodSpec. # noqa: E501 :rtype: list[LocalObjectReference] @@ -525,7 +568,7 @@ def image_pull_secrets(self): def image_pull_secrets(self, image_pull_secrets): """Sets the image_pull_secrets of this PodSpec. - ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. For example, in the case of docker, only DockerConfig type secrets are honored. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod +optional +patchMergeKey=name +patchStrategy=merge # noqa: E501 + ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod +optional +patchMergeKey=name +patchStrategy=merge # noqa: E501 :param image_pull_secrets: The image_pull_secrets of this PodSpec. # noqa: E501 :type: list[LocalObjectReference] @@ -583,7 +626,7 @@ def node_name(self, node_name): def node_selector(self): """Gets the node_selector of this PodSpec. # noqa: E501 - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional # noqa: E501 + NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional +mapType=atomic # noqa: E501 :return: The node_selector of this PodSpec. # noqa: E501 :rtype: dict(str, str) @@ -594,7 +637,7 @@ def node_selector(self): def node_selector(self, node_selector): """Sets the node_selector of this PodSpec. - NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional # noqa: E501 + NodeSelector is a selector which must be true for the pod to fit on a node. Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional +mapType=atomic # noqa: E501 :param node_selector: The node_selector of this PodSpec. # noqa: E501 :type: dict(str, str) @@ -602,6 +645,27 @@ def node_selector(self, node_selector): self._node_selector = node_selector + @property + def os(self): + """Gets the os of this PodSpec. # noqa: E501 + + + :return: The os of this PodSpec. # noqa: E501 + :rtype: PodOS + """ + return self._os + + @os.setter + def os(self, os): + """Sets the os of this PodSpec. + + + :param os: The os of this PodSpec. # noqa: E501 + :type: PodOS + """ + + self._os = os + @property def overhead(self): """Gets the overhead of this PodSpec. # noqa: E501 @@ -694,7 +758,7 @@ def priority_class_name(self, priority_class_name): def readiness_gates(self): """Gets the readiness_gates of this PodSpec. # noqa: E501 - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md +optional # noqa: E501 + If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates +optional # noqa: E501 :return: The readiness_gates of this PodSpec. # noqa: E501 :rtype: list[PodReadinessGate] @@ -705,7 +769,7 @@ def readiness_gates(self): def readiness_gates(self, readiness_gates): """Sets the readiness_gates of this PodSpec. - If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md +optional # noqa: E501 + If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to \"True\" More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates +optional # noqa: E501 :param readiness_gates: The readiness_gates of this PodSpec. # noqa: E501 :type: list[PodReadinessGate] @@ -713,6 +777,29 @@ def readiness_gates(self, readiness_gates): self._readiness_gates = readiness_gates + @property + def resource_claims(self): + """Gets the resource_claims of this PodSpec. # noqa: E501 + + ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. +patchMergeKey=name +patchStrategy=merge,retainKeys +listType=map +listMapKey=name +featureGate=DynamicResourceAllocation +optional # noqa: E501 + + :return: The resource_claims of this PodSpec. # noqa: E501 + :rtype: list[PodResourceClaim] + """ + return self._resource_claims + + @resource_claims.setter + def resource_claims(self, resource_claims): + """Sets the resource_claims of this PodSpec. + + ResourceClaims defines which ResourceClaims must be allocated and reserved before the Pod is allowed to start. The resources will be made available to those containers which consume them by name. This is an alpha field and requires enabling the DynamicResourceAllocation feature gate. This field is immutable. +patchMergeKey=name +patchStrategy=merge,retainKeys +listType=map +listMapKey=name +featureGate=DynamicResourceAllocation +optional # noqa: E501 + + :param resource_claims: The resource_claims of this PodSpec. # noqa: E501 + :type: list[PodResourceClaim] + """ + + self._resource_claims = resource_claims + @property def restart_policy(self): """Gets the restart_policy of this PodSpec. # noqa: E501 @@ -738,7 +825,7 @@ def restart_policy(self, restart_policy): def runtime_class_name(self): """Gets the runtime_class_name of this PodSpec. # noqa: E501 - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. +optional # noqa: E501 + RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class +optional # noqa: E501 :return: The runtime_class_name of this PodSpec. # noqa: E501 :rtype: str @@ -749,7 +836,7 @@ def runtime_class_name(self): def runtime_class_name(self, runtime_class_name): """Sets the runtime_class_name of this PodSpec. - RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md This is a beta feature as of Kubernetes v1.14. +optional # noqa: E501 + RuntimeClassName refers to a RuntimeClass object in the node.k8s.io group, which should be used to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the \"legacy\" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class +optional # noqa: E501 :param runtime_class_name: The runtime_class_name of this PodSpec. # noqa: E501 :type: str @@ -780,6 +867,29 @@ def scheduler_name(self, scheduler_name): self._scheduler_name = scheduler_name + @property + def scheduling_gates(self): + """Gets the scheduling_gates of this PodSpec. # noqa: E501 + + SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. This is a beta feature enabled by the PodSchedulingReadiness feature gate. +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name +featureGate=PodSchedulingReadiness +optional # noqa: E501 + + :return: The scheduling_gates of this PodSpec. # noqa: E501 + :rtype: list[PodSchedulingGate] + """ + return self._scheduling_gates + + @scheduling_gates.setter + def scheduling_gates(self, scheduling_gates): + """Sets the scheduling_gates of this PodSpec. + + SchedulingGates is an opaque list of values that if specified will block scheduling the pod. If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the scheduler will not attempt to schedule the pod. SchedulingGates can only be set at pod creation time, and be removed only afterwards. This is a beta feature enabled by the PodSchedulingReadiness feature gate. +patchMergeKey=name +patchStrategy=merge +listType=map +listMapKey=name +featureGate=PodSchedulingReadiness +optional # noqa: E501 + + :param scheduling_gates: The scheduling_gates of this PodSpec. # noqa: E501 + :type: list[PodSchedulingGate] + """ + + self._scheduling_gates = scheduling_gates + @property def security_context(self): """Gets the security_context of this PodSpec. # noqa: E501 @@ -920,7 +1030,7 @@ def subdomain(self, subdomain): def termination_grace_period_seconds(self): """Gets the termination_grace_period_seconds of this PodSpec. # noqa: E501 - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. +optional # noqa: E501 + Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. +optional # noqa: E501 :return: The termination_grace_period_seconds of this PodSpec. # noqa: E501 :rtype: int @@ -931,7 +1041,7 @@ def termination_grace_period_seconds(self): def termination_grace_period_seconds(self, termination_grace_period_seconds): """Sets the termination_grace_period_seconds of this PodSpec. - Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates delete immediately. If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. +optional # noqa: E501 + Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds. +optional # noqa: E501 :param termination_grace_period_seconds: The termination_grace_period_seconds of this PodSpec. # noqa: E501 :type: int diff --git a/python/seldon_deploy_sdk/models/pod_status.py b/python/seldon_deploy_sdk/models/pod_status.py index b746ad0..00a1de3 100644 --- a/python/seldon_deploy_sdk/models/pod_status.py +++ b/python/seldon_deploy_sdk/models/pod_status.py @@ -35,6 +35,7 @@ class PodStatus(object): 'container_statuses': 'list[ContainerStatus]', 'ephemeral_container_statuses': 'list[ContainerStatus]', 'host_ip': 'str', + 'host_i_ps': 'list[HostIP]', 'init_container_statuses': 'list[ContainerStatus]', 'message': 'str', 'nominated_node_name': 'str', @@ -43,6 +44,8 @@ class PodStatus(object): 'pod_i_ps': 'list[PodIP]', 'qos_class': 'PodQOSClass', 'reason': 'str', + 'resize': 'PodResizeStatus', + 'resource_claim_statuses': 'list[PodResourceClaimStatus]', 'start_time': 'str' } @@ -51,6 +54,7 @@ class PodStatus(object): 'container_statuses': 'containerStatuses', 'ephemeral_container_statuses': 'ephemeralContainerStatuses', 'host_ip': 'hostIP', + 'host_i_ps': 'hostIPs', 'init_container_statuses': 'initContainerStatuses', 'message': 'message', 'nominated_node_name': 'nominatedNodeName', @@ -59,16 +63,19 @@ class PodStatus(object): 'pod_i_ps': 'podIPs', 'qos_class': 'qosClass', 'reason': 'reason', + 'resize': 'resize', + 'resource_claim_statuses': 'resourceClaimStatuses', 'start_time': 'startTime' } - def __init__(self, conditions=None, container_statuses=None, ephemeral_container_statuses=None, host_ip=None, init_container_statuses=None, message=None, nominated_node_name=None, phase=None, pod_ip=None, pod_i_ps=None, qos_class=None, reason=None, start_time=None): # noqa: E501 + 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, phase=None, pod_ip=None, pod_i_ps=None, qos_class=None, reason=None, resize=None, resource_claim_statuses=None, start_time=None): # noqa: E501 """PodStatus - a model defined in Swagger""" # noqa: E501 self._conditions = None self._container_statuses = None self._ephemeral_container_statuses = None self._host_ip = None + self._host_i_ps = None self._init_container_statuses = None self._message = None self._nominated_node_name = None @@ -77,6 +84,8 @@ def __init__(self, conditions=None, container_statuses=None, ephemeral_container self._pod_i_ps = None self._qos_class = None self._reason = None + self._resize = None + self._resource_claim_statuses = None self._start_time = None self.discriminator = None @@ -88,6 +97,8 @@ def __init__(self, conditions=None, container_statuses=None, ephemeral_container self.ephemeral_container_statuses = ephemeral_container_statuses if host_ip is not None: self.host_ip = host_ip + if host_i_ps is not None: + self.host_i_ps = host_i_ps if init_container_statuses is not None: self.init_container_statuses = init_container_statuses if message is not None: @@ -104,6 +115,10 @@ def __init__(self, conditions=None, container_statuses=None, ephemeral_container self.qos_class = qos_class if reason is not None: self.reason = reason + if resize is not None: + self.resize = resize + if resource_claim_statuses is not None: + self.resource_claim_statuses = resource_claim_statuses if start_time is not None: self.start_time = start_time @@ -134,7 +149,7 @@ def conditions(self, conditions): def container_statuses(self): """Gets the container_statuses of this PodStatus. # noqa: E501 - The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status +optional # noqa: E501 + The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status +optional # noqa: E501 :return: The container_statuses of this PodStatus. # noqa: E501 :rtype: list[ContainerStatus] @@ -145,7 +160,7 @@ def container_statuses(self): def container_statuses(self, container_statuses): """Sets the container_statuses of this PodStatus. - The list has one entry per container in the manifest. Each entry is currently the output of `docker inspect`. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status +optional # noqa: E501 + The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status +optional # noqa: E501 :param container_statuses: The container_statuses of this PodStatus. # noqa: E501 :type: list[ContainerStatus] @@ -157,7 +172,7 @@ def container_statuses(self, container_statuses): def ephemeral_container_statuses(self): """Gets the ephemeral_container_statuses of this PodStatus. # noqa: E501 - Status for any ephemeral containers that have run in this pod. This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature. +optional # noqa: E501 + Status for any ephemeral containers that have run in this pod. +optional # noqa: E501 :return: The ephemeral_container_statuses of this PodStatus. # noqa: E501 :rtype: list[ContainerStatus] @@ -168,7 +183,7 @@ def ephemeral_container_statuses(self): def ephemeral_container_statuses(self, ephemeral_container_statuses): """Sets the ephemeral_container_statuses of this PodStatus. - Status for any ephemeral containers that have run in this pod. This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature. +optional # noqa: E501 + Status for any ephemeral containers that have run in this pod. +optional # noqa: E501 :param ephemeral_container_statuses: The ephemeral_container_statuses of this PodStatus. # noqa: E501 :type: list[ContainerStatus] @@ -180,7 +195,7 @@ def ephemeral_container_statuses(self, ephemeral_container_statuses): def host_ip(self): """Gets the host_ip of this PodStatus. # noqa: E501 - IP address of the host to which the pod is assigned. Empty if not yet scheduled. +optional # noqa: E501 + hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod +optional # noqa: E501 :return: The host_ip of this PodStatus. # noqa: E501 :rtype: str @@ -191,7 +206,7 @@ def host_ip(self): def host_ip(self, host_ip): """Sets the host_ip of this PodStatus. - IP address of the host to which the pod is assigned. Empty if not yet scheduled. +optional # noqa: E501 + hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will not be updated even if there is a node is assigned to pod +optional # noqa: E501 :param host_ip: The host_ip of this PodStatus. # noqa: E501 :type: str @@ -199,6 +214,29 @@ def host_ip(self, host_ip): self._host_ip = host_ip + @property + def host_i_ps(self): + """Gets the host_i_ps of this PodStatus. # noqa: E501 + + hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod. +optional +patchStrategy=merge +patchMergeKey=ip +listType=atomic # noqa: E501 + + :return: The host_i_ps of this PodStatus. # noqa: E501 + :rtype: list[HostIP] + """ + return self._host_i_ps + + @host_i_ps.setter + def host_i_ps(self, host_i_ps): + """Sets the host_i_ps of this PodStatus. + + hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must match the hostIP field. This list is empty if the pod has not started yet. A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will not be updated even if there is a node is assigned to this pod. +optional +patchStrategy=merge +patchMergeKey=ip +listType=atomic # noqa: E501 + + :param host_i_ps: The host_i_ps of this PodStatus. # noqa: E501 + :type: list[HostIP] + """ + + self._host_i_ps = host_i_ps + @property def init_container_statuses(self): """Gets the init_container_statuses of this PodStatus. # noqa: E501 @@ -293,7 +331,7 @@ def phase(self, phase): def pod_ip(self): """Gets the pod_ip of this PodStatus. # noqa: E501 - IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. +optional # noqa: E501 + podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. +optional # noqa: E501 :return: The pod_ip of this PodStatus. # noqa: E501 :rtype: str @@ -304,7 +342,7 @@ def pod_ip(self): def pod_ip(self, pod_ip): """Sets the pod_ip of this PodStatus. - IP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. +optional # noqa: E501 + podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. +optional # noqa: E501 :param pod_ip: The pod_ip of this PodStatus. # noqa: E501 :type: str @@ -379,6 +417,50 @@ def reason(self, reason): self._reason = reason + @property + def resize(self): + """Gets the resize of this PodStatus. # noqa: E501 + + + :return: The resize of this PodStatus. # noqa: E501 + :rtype: PodResizeStatus + """ + return self._resize + + @resize.setter + def resize(self, resize): + """Sets the resize of this PodStatus. + + + :param resize: The resize of this PodStatus. # noqa: E501 + :type: PodResizeStatus + """ + + self._resize = resize + + @property + def resource_claim_statuses(self): + """Gets the resource_claim_statuses of this PodStatus. # noqa: E501 + + Status of resource claims. +patchMergeKey=name +patchStrategy=merge,retainKeys +listType=map +listMapKey=name +featureGate=DynamicResourceAllocation +optional # noqa: E501 + + :return: The resource_claim_statuses of this PodStatus. # noqa: E501 + :rtype: list[PodResourceClaimStatus] + """ + return self._resource_claim_statuses + + @resource_claim_statuses.setter + def resource_claim_statuses(self, resource_claim_statuses): + """Sets the resource_claim_statuses of this PodStatus. + + Status of resource claims. +patchMergeKey=name +patchStrategy=merge,retainKeys +listType=map +listMapKey=name +featureGate=DynamicResourceAllocation +optional # noqa: E501 + + :param resource_claim_statuses: The resource_claim_statuses of this PodStatus. # noqa: E501 + :type: list[PodResourceClaimStatus] + """ + + self._resource_claim_statuses = resource_claim_statuses + @property def start_time(self): """Gets the start_time of this PodStatus. # noqa: E501 diff --git a/python/seldon_deploy_sdk/models/pod_template_spec.py b/python/seldon_deploy_sdk/models/pod_template_spec.py index 158b89e..4232134 100644 --- a/python/seldon_deploy_sdk/models/pod_template_spec.py +++ b/python/seldon_deploy_sdk/models/pod_template_spec.py @@ -32,7 +32,6 @@ class PodTemplateSpec(object): """ swagger_types = { 'annotations': 'dict(str, str)', - 'cluster_name': 'str', 'creation_timestamp': 'str', 'deletion_grace_period_seconds': 'int', 'deletion_timestamp': 'str', @@ -52,7 +51,6 @@ class PodTemplateSpec(object): attribute_map = { 'annotations': 'annotations', - 'cluster_name': 'clusterName', 'creation_timestamp': 'creationTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', @@ -70,11 +68,10 @@ class PodTemplateSpec(object): 'uid': 'uid' } - def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, uid=None): # noqa: E501 + def __init__(self, annotations=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, uid=None): # noqa: E501 """PodTemplateSpec - a model defined in Swagger""" # noqa: E501 self._annotations = None - self._cluster_name = None self._creation_timestamp = None self._deletion_grace_period_seconds = None self._deletion_timestamp = None @@ -94,8 +91,6 @@ def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, if annotations is not None: self.annotations = annotations - if cluster_name is not None: - self.cluster_name = cluster_name if creation_timestamp is not None: self.creation_timestamp = creation_timestamp if deletion_grace_period_seconds is not None: @@ -131,7 +126,7 @@ def __init__(self, annotations=None, cluster_name=None, creation_timestamp=None, def annotations(self): """Gets the annotations of this PodTemplateSpec. # noqa: E501 - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :return: The annotations of this PodTemplateSpec. # noqa: E501 :rtype: dict(str, str) @@ -142,7 +137,7 @@ def annotations(self): def annotations(self, annotations): """Sets the annotations of this PodTemplateSpec. - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :param annotations: The annotations of this PodTemplateSpec. # noqa: E501 :type: dict(str, str) @@ -150,29 +145,6 @@ def annotations(self, annotations): self._annotations = annotations - @property - def cluster_name(self): - """Gets the cluster_name of this PodTemplateSpec. # noqa: E501 - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :return: The cluster_name of this PodTemplateSpec. # noqa: E501 - :rtype: str - """ - return self._cluster_name - - @cluster_name.setter - def cluster_name(self, cluster_name): - """Sets the cluster_name of this PodTemplateSpec. - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :param cluster_name: The cluster_name of this PodTemplateSpec. # noqa: E501 - :type: str - """ - - self._cluster_name = cluster_name - @property def creation_timestamp(self): """Gets the creation_timestamp of this PodTemplateSpec. # noqa: E501 @@ -269,7 +241,7 @@ def finalizers(self, finalizers): def generate_name(self): """Gets the generate_name of this PodTemplateSpec. # noqa: E501 - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :return: The generate_name of this PodTemplateSpec. # noqa: E501 :rtype: str @@ -280,7 +252,7 @@ def generate_name(self): def generate_name(self, generate_name): """Sets the generate_name of this PodTemplateSpec. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :param generate_name: The generate_name of this PodTemplateSpec. # noqa: E501 :type: str @@ -315,7 +287,7 @@ def generation(self, generation): def labels(self): """Gets the labels of this PodTemplateSpec. # noqa: E501 - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :return: The labels of this PodTemplateSpec. # noqa: E501 :rtype: dict(str, str) @@ -326,7 +298,7 @@ def labels(self): def labels(self, labels): """Sets the labels of this PodTemplateSpec. - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :param labels: The labels of this PodTemplateSpec. # noqa: E501 :type: dict(str, str) @@ -361,7 +333,7 @@ def managed_fields(self, managed_fields): def name(self): """Gets the name of this PodTemplateSpec. # noqa: E501 - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :return: The name of this PodTemplateSpec. # noqa: E501 :rtype: str @@ -372,7 +344,7 @@ def name(self): def name(self, name): """Sets the name of this PodTemplateSpec. - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :param name: The name of this PodTemplateSpec. # noqa: E501 :type: str @@ -384,7 +356,7 @@ def name(self, name): def namespace(self): """Gets the namespace of this PodTemplateSpec. # noqa: E501 - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :return: The namespace of this PodTemplateSpec. # noqa: E501 :rtype: str @@ -395,7 +367,7 @@ def namespace(self): def namespace(self, namespace): """Sets the namespace of this PodTemplateSpec. - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :param namespace: The namespace of this PodTemplateSpec. # noqa: E501 :type: str @@ -453,7 +425,7 @@ def resource_version(self, resource_version): def self_link(self): """Gets the self_link of this PodTemplateSpec. # noqa: E501 - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :return: The self_link of this PodTemplateSpec. # noqa: E501 :rtype: str @@ -464,7 +436,7 @@ def self_link(self): def self_link(self, self_link): """Sets the self_link of this PodTemplateSpec. - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :param self_link: The self_link of this PodTemplateSpec. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/pods_metric_source.py b/python/seldon_deploy_sdk/models/pods_metric_source.py index 78e0743..49b21d1 100644 --- a/python/seldon_deploy_sdk/models/pods_metric_source.py +++ b/python/seldon_deploy_sdk/models/pods_metric_source.py @@ -31,96 +31,68 @@ class PodsMetricSource(object): and the value is json key in definition. """ swagger_types = { - 'metric_name': 'str', - 'selector': 'LabelSelector', - 'target_average_value': 'Quantity' + 'metric': 'MetricIdentifier', + 'target': 'MetricTarget' } attribute_map = { - 'metric_name': 'metricName', - 'selector': 'selector', - 'target_average_value': 'targetAverageValue' + 'metric': 'metric', + 'target': 'target' } - def __init__(self, metric_name=None, selector=None, target_average_value=None): # noqa: E501 + def __init__(self, metric=None, target=None): # noqa: E501 """PodsMetricSource - a model defined in Swagger""" # noqa: E501 - self._metric_name = None - self._selector = None - self._target_average_value = None + self._metric = None + self._target = None self.discriminator = None - if metric_name is not None: - self.metric_name = metric_name - if selector is not None: - self.selector = selector - if target_average_value is not None: - self.target_average_value = target_average_value + if metric is not None: + self.metric = metric + if target is not None: + self.target = target @property - def metric_name(self): - """Gets the metric_name of this PodsMetricSource. # noqa: E501 + def metric(self): + """Gets the metric of this PodsMetricSource. # noqa: E501 - metricName is the name of the metric in question # noqa: E501 - :return: The metric_name of this PodsMetricSource. # noqa: E501 - :rtype: str + :return: The metric of this PodsMetricSource. # noqa: E501 + :rtype: MetricIdentifier """ - return self._metric_name + return self._metric - @metric_name.setter - def metric_name(self, metric_name): - """Sets the metric_name of this PodsMetricSource. + @metric.setter + def metric(self, metric): + """Sets the metric of this PodsMetricSource. - metricName is the name of the metric in question # noqa: E501 - :param metric_name: The metric_name of this PodsMetricSource. # noqa: E501 - :type: str + :param metric: The metric of this PodsMetricSource. # noqa: E501 + :type: MetricIdentifier """ - self._metric_name = metric_name + self._metric = metric @property - def selector(self): - """Gets the selector of this PodsMetricSource. # noqa: E501 + def target(self): + """Gets the target of this PodsMetricSource. # noqa: E501 - :return: The selector of this PodsMetricSource. # noqa: E501 - :rtype: LabelSelector + :return: The target of this PodsMetricSource. # noqa: E501 + :rtype: MetricTarget """ - return self._selector + return self._target - @selector.setter - def selector(self, selector): - """Sets the selector of this PodsMetricSource. + @target.setter + def target(self, target): + """Sets the target of this PodsMetricSource. - :param selector: The selector of this PodsMetricSource. # noqa: E501 - :type: LabelSelector + :param target: The target of this PodsMetricSource. # noqa: E501 + :type: MetricTarget """ - self._selector = selector - - @property - def target_average_value(self): - """Gets the target_average_value of this PodsMetricSource. # noqa: E501 - - - :return: The target_average_value of this PodsMetricSource. # noqa: E501 - :rtype: Quantity - """ - return self._target_average_value - - @target_average_value.setter - def target_average_value(self, target_average_value): - """Sets the target_average_value of this PodsMetricSource. - - - :param target_average_value: The target_average_value of this PodsMetricSource. # noqa: E501 - :type: Quantity - """ - - self._target_average_value = target_average_value + self._target = target def to_dict(self): """Returns the model properties as a dict""" diff --git a/python/seldon_deploy_sdk/models/portworx_volume_source.py b/python/seldon_deploy_sdk/models/portworx_volume_source.py index 4048509..b326e24 100644 --- a/python/seldon_deploy_sdk/models/portworx_volume_source.py +++ b/python/seldon_deploy_sdk/models/portworx_volume_source.py @@ -61,7 +61,7 @@ def __init__(self, fs_type=None, read_only=None, volume_id=None): # noqa: E501 def fs_type(self): """Gets the fs_type of this PortworxVolumeSource. # noqa: E501 - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 :return: The fs_type of this PortworxVolumeSource. # noqa: E501 :rtype: str @@ -72,7 +72,7 @@ def fs_type(self): def fs_type(self, fs_type): """Sets the fs_type of this PortworxVolumeSource. - FSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 + fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\". Implicitly inferred to be \"ext4\" if unspecified. # noqa: E501 :param fs_type: The fs_type of this PortworxVolumeSource. # noqa: E501 :type: str @@ -84,7 +84,7 @@ def fs_type(self, fs_type): def read_only(self): """Gets the read_only of this PortworxVolumeSource. # noqa: E501 - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 :return: The read_only of this PortworxVolumeSource. # noqa: E501 :rtype: bool @@ -95,7 +95,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this PortworxVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 :param read_only: The read_only of this PortworxVolumeSource. # noqa: E501 :type: bool @@ -107,7 +107,7 @@ def read_only(self, read_only): def volume_id(self): """Gets the volume_id of this PortworxVolumeSource. # noqa: E501 - VolumeID uniquely identifies a Portworx volume # noqa: E501 + volumeID uniquely identifies a Portworx volume # noqa: E501 :return: The volume_id of this PortworxVolumeSource. # noqa: E501 :rtype: str @@ -118,7 +118,7 @@ def volume_id(self): def volume_id(self, volume_id): """Sets the volume_id of this PortworxVolumeSource. - VolumeID uniquely identifies a Portworx volume # noqa: E501 + volumeID uniquely identifies a Portworx volume # noqa: E501 :param volume_id: The volume_id of this PortworxVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/probe.py b/python/seldon_deploy_sdk/models/probe.py index 28baaba..65e297a 100644 --- a/python/seldon_deploy_sdk/models/probe.py +++ b/python/seldon_deploy_sdk/models/probe.py @@ -33,35 +33,41 @@ class Probe(object): swagger_types = { '_exec': 'ExecAction', 'failure_threshold': 'int', + 'grpc': 'GRPCAction', 'http_get': 'HTTPGetAction', 'initial_delay_seconds': 'int', 'period_seconds': 'int', 'success_threshold': 'int', 'tcp_socket': 'TCPSocketAction', + 'termination_grace_period_seconds': 'int', 'timeout_seconds': 'int' } attribute_map = { '_exec': 'exec', 'failure_threshold': 'failureThreshold', + 'grpc': 'grpc', 'http_get': 'httpGet', 'initial_delay_seconds': 'initialDelaySeconds', 'period_seconds': 'periodSeconds', 'success_threshold': 'successThreshold', 'tcp_socket': 'tcpSocket', + 'termination_grace_period_seconds': 'terminationGracePeriodSeconds', 'timeout_seconds': 'timeoutSeconds' } - def __init__(self, _exec=None, failure_threshold=None, http_get=None, initial_delay_seconds=None, period_seconds=None, success_threshold=None, tcp_socket=None, timeout_seconds=None): # noqa: E501 + def __init__(self, _exec=None, failure_threshold=None, grpc=None, http_get=None, initial_delay_seconds=None, period_seconds=None, success_threshold=None, tcp_socket=None, termination_grace_period_seconds=None, timeout_seconds=None): # noqa: E501 """Probe - a model defined in Swagger""" # noqa: E501 self.__exec = None self._failure_threshold = None + self._grpc = None self._http_get = None self._initial_delay_seconds = None self._period_seconds = None self._success_threshold = None self._tcp_socket = None + self._termination_grace_period_seconds = None self._timeout_seconds = None self.discriminator = None @@ -69,6 +75,8 @@ def __init__(self, _exec=None, failure_threshold=None, http_get=None, initial_de self._exec = _exec if failure_threshold is not None: self.failure_threshold = failure_threshold + if grpc is not None: + self.grpc = grpc if http_get is not None: self.http_get = http_get if initial_delay_seconds is not None: @@ -79,6 +87,8 @@ def __init__(self, _exec=None, failure_threshold=None, http_get=None, initial_de self.success_threshold = success_threshold if tcp_socket is not None: self.tcp_socket = tcp_socket + if termination_grace_period_seconds is not None: + self.termination_grace_period_seconds = termination_grace_period_seconds if timeout_seconds is not None: self.timeout_seconds = timeout_seconds @@ -126,6 +136,27 @@ def failure_threshold(self, failure_threshold): self._failure_threshold = failure_threshold + @property + def grpc(self): + """Gets the grpc of this Probe. # noqa: E501 + + + :return: The grpc of this Probe. # noqa: E501 + :rtype: GRPCAction + """ + return self._grpc + + @grpc.setter + def grpc(self, grpc): + """Sets the grpc of this Probe. + + + :param grpc: The grpc of this Probe. # noqa: E501 + :type: GRPCAction + """ + + self._grpc = grpc + @property def http_get(self): """Gets the http_get of this Probe. # noqa: E501 @@ -237,6 +268,29 @@ def tcp_socket(self, tcp_socket): self._tcp_socket = tcp_socket + @property + def termination_grace_period_seconds(self): + """Gets the termination_grace_period_seconds of this Probe. # noqa: E501 + + Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. +optional # noqa: E501 + + :return: The termination_grace_period_seconds of this Probe. # noqa: E501 + :rtype: int + """ + return self._termination_grace_period_seconds + + @termination_grace_period_seconds.setter + def termination_grace_period_seconds(self, termination_grace_period_seconds): + """Sets the termination_grace_period_seconds of this Probe. + + Optional duration in seconds the pod needs to terminate gracefully upon probe failure. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. Set this value longer than the expected cleanup time for your process. If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this value overrides the value provided by the pod spec. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. +optional # noqa: E501 + + :param termination_grace_period_seconds: The termination_grace_period_seconds of this Probe. # noqa: E501 + :type: int + """ + + self._termination_grace_period_seconds = termination_grace_period_seconds + @property def timeout_seconds(self): """Gets the timeout_seconds of this Probe. # noqa: E501 diff --git a/python/seldon_deploy_sdk/models/projected_volume_source.py b/python/seldon_deploy_sdk/models/projected_volume_source.py index 25e3735..73e4a7f 100644 --- a/python/seldon_deploy_sdk/models/projected_volume_source.py +++ b/python/seldon_deploy_sdk/models/projected_volume_source.py @@ -56,7 +56,7 @@ def __init__(self, default_mode=None, sources=None): # noqa: E501 def default_mode(self): """Gets the default_mode of this ProjectedVolumeSource. # noqa: E501 - Mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 + defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 :return: The default_mode of this ProjectedVolumeSource. # noqa: E501 :rtype: int @@ -67,7 +67,7 @@ def default_mode(self): def default_mode(self, default_mode): """Sets the default_mode of this ProjectedVolumeSource. - Mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 + defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 :param default_mode: The default_mode of this ProjectedVolumeSource. # noqa: E501 :type: int @@ -79,7 +79,7 @@ def default_mode(self, default_mode): def sources(self): """Gets the sources of this ProjectedVolumeSource. # noqa: E501 - list of volume projections # noqa: E501 + sources is the list of volume projections +optional # noqa: E501 :return: The sources of this ProjectedVolumeSource. # noqa: E501 :rtype: list[VolumeProjection] @@ -90,7 +90,7 @@ def sources(self): def sources(self, sources): """Sets the sources of this ProjectedVolumeSource. - list of volume projections # noqa: E501 + sources is the list of volume projections +optional # noqa: E501 :param sources: The sources of this ProjectedVolumeSource. # noqa: E501 :type: list[VolumeProjection] diff --git a/python/seldon_deploy_sdk/models/quobyte_volume_source.py b/python/seldon_deploy_sdk/models/quobyte_volume_source.py index fd28677..b2a8880 100644 --- a/python/seldon_deploy_sdk/models/quobyte_volume_source.py +++ b/python/seldon_deploy_sdk/models/quobyte_volume_source.py @@ -76,7 +76,7 @@ def __init__(self, group=None, read_only=None, registry=None, tenant=None, user= def group(self): """Gets the group of this QuobyteVolumeSource. # noqa: E501 - Group to map volume access to Default is no group +optional # noqa: E501 + group to map volume access to Default is no group +optional # noqa: E501 :return: The group of this QuobyteVolumeSource. # noqa: E501 :rtype: str @@ -87,7 +87,7 @@ def group(self): def group(self, group): """Sets the group of this QuobyteVolumeSource. - Group to map volume access to Default is no group +optional # noqa: E501 + group to map volume access to Default is no group +optional # noqa: E501 :param group: The group of this QuobyteVolumeSource. # noqa: E501 :type: str @@ -99,7 +99,7 @@ def group(self, group): def read_only(self): """Gets the read_only of this QuobyteVolumeSource. # noqa: E501 - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. +optional # noqa: E501 + readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. +optional # noqa: E501 :return: The read_only of this QuobyteVolumeSource. # noqa: E501 :rtype: bool @@ -110,7 +110,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this QuobyteVolumeSource. - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. +optional # noqa: E501 + readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. +optional # noqa: E501 :param read_only: The read_only of this QuobyteVolumeSource. # noqa: E501 :type: bool @@ -122,7 +122,7 @@ def read_only(self, read_only): def registry(self): """Gets the registry of this QuobyteVolumeSource. # noqa: E501 - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes # noqa: E501 + registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes # noqa: E501 :return: The registry of this QuobyteVolumeSource. # noqa: E501 :rtype: str @@ -133,7 +133,7 @@ def registry(self): def registry(self, registry): """Sets the registry of this QuobyteVolumeSource. - Registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes # noqa: E501 + registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes # noqa: E501 :param registry: The registry of this QuobyteVolumeSource. # noqa: E501 :type: str @@ -145,7 +145,7 @@ def registry(self, registry): def tenant(self): """Gets the tenant of this QuobyteVolumeSource. # noqa: E501 - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin +optional # noqa: E501 + tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin +optional # noqa: E501 :return: The tenant of this QuobyteVolumeSource. # noqa: E501 :rtype: str @@ -156,7 +156,7 @@ def tenant(self): def tenant(self, tenant): """Sets the tenant of this QuobyteVolumeSource. - Tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin +optional # noqa: E501 + tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin +optional # noqa: E501 :param tenant: The tenant of this QuobyteVolumeSource. # noqa: E501 :type: str @@ -168,7 +168,7 @@ def tenant(self, tenant): def user(self): """Gets the user of this QuobyteVolumeSource. # noqa: E501 - User to map volume access to Defaults to serivceaccount user +optional # noqa: E501 + user to map volume access to Defaults to serivceaccount user +optional # noqa: E501 :return: The user of this QuobyteVolumeSource. # noqa: E501 :rtype: str @@ -179,7 +179,7 @@ def user(self): def user(self, user): """Sets the user of this QuobyteVolumeSource. - User to map volume access to Defaults to serivceaccount user +optional # noqa: E501 + user to map volume access to Defaults to serivceaccount user +optional # noqa: E501 :param user: The user of this QuobyteVolumeSource. # noqa: E501 :type: str @@ -191,7 +191,7 @@ def user(self, user): def volume(self): """Gets the volume of this QuobyteVolumeSource. # noqa: E501 - Volume is a string that references an already created Quobyte volume by name. # noqa: E501 + volume is a string that references an already created Quobyte volume by name. # noqa: E501 :return: The volume of this QuobyteVolumeSource. # noqa: E501 :rtype: str @@ -202,7 +202,7 @@ def volume(self): def volume(self, volume): """Sets the volume of this QuobyteVolumeSource. - Volume is a string that references an already created Quobyte volume by name. # noqa: E501 + volume is a string that references an already created Quobyte volume by name. # noqa: E501 :param volume: The volume of this QuobyteVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/rbd_volume_source.py b/python/seldon_deploy_sdk/models/rbd_volume_source.py index 5c90b61..fd73ec4 100644 --- a/python/seldon_deploy_sdk/models/rbd_volume_source.py +++ b/python/seldon_deploy_sdk/models/rbd_volume_source.py @@ -86,7 +86,7 @@ def __init__(self, fs_type=None, image=None, keyring=None, monitors=None, pool=N def fs_type(self): """Gets the fs_type of this RBDVolumeSource. # noqa: E501 - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 :return: The fs_type of this RBDVolumeSource. # noqa: E501 :rtype: str @@ -97,7 +97,7 @@ def fs_type(self): def fs_type(self, fs_type): """Sets the fs_type of this RBDVolumeSource. - Filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd TODO: how do we prevent errors in the filesystem from compromising the machine +optional # noqa: E501 :param fs_type: The fs_type of this RBDVolumeSource. # noqa: E501 :type: str @@ -109,7 +109,7 @@ def fs_type(self, fs_type): def image(self): """Gets the image of this RBDVolumeSource. # noqa: E501 - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 :return: The image of this RBDVolumeSource. # noqa: E501 :rtype: str @@ -120,7 +120,7 @@ def image(self): def image(self, image): """Sets the image of this RBDVolumeSource. - The rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 :param image: The image of this RBDVolumeSource. # noqa: E501 :type: str @@ -132,7 +132,7 @@ def image(self, image): def keyring(self): """Gets the keyring of this RBDVolumeSource. # noqa: E501 - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 + keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 :return: The keyring of this RBDVolumeSource. # noqa: E501 :rtype: str @@ -143,7 +143,7 @@ def keyring(self): def keyring(self, keyring): """Sets the keyring of this RBDVolumeSource. - Keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 + keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 :param keyring: The keyring of this RBDVolumeSource. # noqa: E501 :type: str @@ -155,7 +155,7 @@ def keyring(self, keyring): def monitors(self): """Gets the monitors of this RBDVolumeSource. # noqa: E501 - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 :return: The monitors of this RBDVolumeSource. # noqa: E501 :rtype: list[str] @@ -166,7 +166,7 @@ def monitors(self): def monitors(self, monitors): """Sets the monitors of this RBDVolumeSource. - A collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 + monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it # noqa: E501 :param monitors: The monitors of this RBDVolumeSource. # noqa: E501 :type: list[str] @@ -178,7 +178,7 @@ def monitors(self, monitors): def pool(self): """Gets the pool of this RBDVolumeSource. # noqa: E501 - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 + pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 :return: The pool of this RBDVolumeSource. # noqa: E501 :rtype: str @@ -189,7 +189,7 @@ def pool(self): def pool(self, pool): """Sets the pool of this RBDVolumeSource. - The rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 + pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 :param pool: The pool of this RBDVolumeSource. # noqa: E501 :type: str @@ -201,7 +201,7 @@ def pool(self, pool): def read_only(self): """Gets the read_only of this RBDVolumeSource. # noqa: E501 - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 :return: The read_only of this RBDVolumeSource. # noqa: E501 :rtype: bool @@ -212,7 +212,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this RBDVolumeSource. - ReadOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 :param read_only: The read_only of this RBDVolumeSource. # noqa: E501 :type: bool @@ -245,7 +245,7 @@ def secret_ref(self, secret_ref): def user(self): """Gets the user of this RBDVolumeSource. # noqa: E501 - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 + user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 :return: The user of this RBDVolumeSource. # noqa: E501 :rtype: str @@ -256,7 +256,7 @@ def user(self): def user(self, user): """Sets the user of this RBDVolumeSource. - The rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 + user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional # noqa: E501 :param user: The user of this RBDVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/resource_claim.py b/python/seldon_deploy_sdk/models/resource_claim.py new file mode 100644 index 0000000..2f8678a --- /dev/null +++ b/python/seldon_deploy_sdk/models/resource_claim.py @@ -0,0 +1,117 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ResourceClaim(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'name': 'str' + } + + attribute_map = { + 'name': 'name' + } + + def __init__(self, name=None): # noqa: E501 + """ResourceClaim - a model defined in Swagger""" # noqa: E501 + + self._name = None + self.discriminator = None + + if name is not None: + self.name = name + + @property + def name(self): + """Gets the name of this ResourceClaim. # 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 ResourceClaim. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this ResourceClaim. + + 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 ResourceClaim. # noqa: E501 + :type: str + """ + + self._name = name + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResourceClaim, dict): + for key, value in self.items(): + result[key] = 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, ResourceClaim): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/resource_metric_source.py b/python/seldon_deploy_sdk/models/resource_metric_source.py index 212b44f..50fae1e 100644 --- a/python/seldon_deploy_sdk/models/resource_metric_source.py +++ b/python/seldon_deploy_sdk/models/resource_metric_source.py @@ -32,30 +32,25 @@ class ResourceMetricSource(object): """ swagger_types = { 'name': 'ResourceName', - 'target_average_utilization': 'int', - 'target_average_value': 'Quantity' + 'target': 'MetricTarget' } attribute_map = { 'name': 'name', - 'target_average_utilization': 'targetAverageUtilization', - 'target_average_value': 'targetAverageValue' + 'target': 'target' } - def __init__(self, name=None, target_average_utilization=None, target_average_value=None): # noqa: E501 + def __init__(self, name=None, target=None): # noqa: E501 """ResourceMetricSource - a model defined in Swagger""" # noqa: E501 self._name = None - self._target_average_utilization = None - self._target_average_value = None + self._target = None self.discriminator = None if name is not None: self.name = name - if target_average_utilization is not None: - self.target_average_utilization = target_average_utilization - if target_average_value is not None: - self.target_average_value = target_average_value + if target is not None: + self.target = target @property def name(self): @@ -79,48 +74,25 @@ def name(self, name): self._name = name @property - def target_average_utilization(self): - """Gets the target_average_utilization of this ResourceMetricSource. # noqa: E501 + def target(self): + """Gets the target of this ResourceMetricSource. # noqa: E501 - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. +optional # noqa: E501 - :return: The target_average_utilization of this ResourceMetricSource. # noqa: E501 - :rtype: int + :return: The target of this ResourceMetricSource. # noqa: E501 + :rtype: MetricTarget """ - return self._target_average_utilization + return self._target - @target_average_utilization.setter - def target_average_utilization(self, target_average_utilization): - """Sets the target_average_utilization of this ResourceMetricSource. + @target.setter + def target(self, target): + """Sets the target of this ResourceMetricSource. - targetAverageUtilization is the target value of the average of the resource metric across all relevant pods, represented as a percentage of the requested value of the resource for the pods. +optional # noqa: E501 - :param target_average_utilization: The target_average_utilization of this ResourceMetricSource. # noqa: E501 - :type: int + :param target: The target of this ResourceMetricSource. # noqa: E501 + :type: MetricTarget """ - self._target_average_utilization = target_average_utilization - - @property - def target_average_value(self): - """Gets the target_average_value of this ResourceMetricSource. # noqa: E501 - - - :return: The target_average_value of this ResourceMetricSource. # noqa: E501 - :rtype: Quantity - """ - return self._target_average_value - - @target_average_value.setter - def target_average_value(self, target_average_value): - """Sets the target_average_value of this ResourceMetricSource. - - - :param target_average_value: The target_average_value of this ResourceMetricSource. # noqa: E501 - :type: Quantity - """ - - self._target_average_value = target_average_value + self._target = target def to_dict(self): """Returns the model properties as a dict""" diff --git a/python/seldon_deploy_sdk/models/resource_requirements.py b/python/seldon_deploy_sdk/models/resource_requirements.py index edeef6f..67caa86 100644 --- a/python/seldon_deploy_sdk/models/resource_requirements.py +++ b/python/seldon_deploy_sdk/models/resource_requirements.py @@ -31,27 +31,55 @@ class ResourceRequirements(object): and the value is json key in definition. """ swagger_types = { + 'claims': 'list[ResourceClaim]', 'limits': 'ResourceList', 'requests': 'ResourceList' } attribute_map = { + 'claims': 'claims', 'limits': 'limits', 'requests': 'requests' } - def __init__(self, limits=None, requests=None): # noqa: E501 + def __init__(self, claims=None, limits=None, requests=None): # noqa: E501 """ResourceRequirements - a model defined in Swagger""" # noqa: E501 + self._claims = None self._limits = None self._requests = None self.discriminator = None + if claims is not None: + self.claims = claims if limits is not None: self.limits = limits if requests is not None: self.requests = requests + @property + def claims(self): + """Gets the claims of this ResourceRequirements. # 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. +listType=map +listMapKey=name +featureGate=DynamicResourceAllocation +optional # noqa: E501 + + :return: The claims of this ResourceRequirements. # noqa: E501 + :rtype: list[ResourceClaim] + """ + return self._claims + + @claims.setter + def claims(self, claims): + """Sets the claims of this ResourceRequirements. + + 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. +listType=map +listMapKey=name +featureGate=DynamicResourceAllocation +optional # noqa: E501 + + :param claims: The claims of this ResourceRequirements. # noqa: E501 + :type: list[ResourceClaim] + """ + + self._claims = claims + @property def limits(self): """Gets the limits of this ResourceRequirements. # noqa: E501 diff --git a/python/seldon_deploy_sdk/models/resource_resize_restart_policy.py b/python/seldon_deploy_sdk/models/resource_resize_restart_policy.py new file mode 100644 index 0000000..6cf46c6 --- /dev/null +++ b/python/seldon_deploy_sdk/models/resource_resize_restart_policy.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ResourceResizeRestartPolicy(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ResourceResizeRestartPolicy - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ResourceResizeRestartPolicy, dict): + for key, value in self.items(): + result[key] = 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, ResourceResizeRestartPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/scale_io_volume_source.py b/python/seldon_deploy_sdk/models/scale_io_volume_source.py index ef43166..b7624fe 100644 --- a/python/seldon_deploy_sdk/models/scale_io_volume_source.py +++ b/python/seldon_deploy_sdk/models/scale_io_volume_source.py @@ -96,7 +96,7 @@ def __init__(self, fs_type=None, gateway=None, protection_domain=None, read_only def fs_type(self): """Gets the fs_type of this ScaleIOVolumeSource. # noqa: E501 - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". +optional # noqa: E501 + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". +optional # noqa: E501 :return: The fs_type of this ScaleIOVolumeSource. # noqa: E501 :rtype: str @@ -107,7 +107,7 @@ def fs_type(self): def fs_type(self, fs_type): """Sets the fs_type of this ScaleIOVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". +optional # noqa: E501 + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Default is \"xfs\". +optional # noqa: E501 :param fs_type: The fs_type of this ScaleIOVolumeSource. # noqa: E501 :type: str @@ -119,7 +119,7 @@ def fs_type(self, fs_type): def gateway(self): """Gets the gateway of this ScaleIOVolumeSource. # noqa: E501 - The host address of the ScaleIO API Gateway. # noqa: E501 + gateway is the host address of the ScaleIO API Gateway. # noqa: E501 :return: The gateway of this ScaleIOVolumeSource. # noqa: E501 :rtype: str @@ -130,7 +130,7 @@ def gateway(self): def gateway(self, gateway): """Sets the gateway of this ScaleIOVolumeSource. - The host address of the ScaleIO API Gateway. # noqa: E501 + gateway is the host address of the ScaleIO API Gateway. # noqa: E501 :param gateway: The gateway of this ScaleIOVolumeSource. # noqa: E501 :type: str @@ -142,7 +142,7 @@ def gateway(self, gateway): def protection_domain(self): """Gets the protection_domain of this ScaleIOVolumeSource. # noqa: E501 - The name of the ScaleIO Protection Domain for the configured storage. +optional # noqa: E501 + protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. +optional # noqa: E501 :return: The protection_domain of this ScaleIOVolumeSource. # noqa: E501 :rtype: str @@ -153,7 +153,7 @@ def protection_domain(self): def protection_domain(self, protection_domain): """Sets the protection_domain of this ScaleIOVolumeSource. - The name of the ScaleIO Protection Domain for the configured storage. +optional # noqa: E501 + protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. +optional # noqa: E501 :param protection_domain: The protection_domain of this ScaleIOVolumeSource. # noqa: E501 :type: str @@ -165,7 +165,7 @@ def protection_domain(self, protection_domain): def read_only(self): """Gets the read_only of this ScaleIOVolumeSource. # noqa: E501 - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 + readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 :return: The read_only of this ScaleIOVolumeSource. # noqa: E501 :rtype: bool @@ -176,7 +176,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this ScaleIOVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 + readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 :param read_only: The read_only of this ScaleIOVolumeSource. # noqa: E501 :type: bool @@ -209,7 +209,7 @@ def secret_ref(self, secret_ref): def ssl_enabled(self): """Gets the ssl_enabled of this ScaleIOVolumeSource. # noqa: E501 - Flag to enable/disable SSL communication with Gateway, default false +optional # noqa: E501 + sslEnabled Flag enable/disable SSL communication with Gateway, default false +optional # noqa: E501 :return: The ssl_enabled of this ScaleIOVolumeSource. # noqa: E501 :rtype: bool @@ -220,7 +220,7 @@ def ssl_enabled(self): def ssl_enabled(self, ssl_enabled): """Sets the ssl_enabled of this ScaleIOVolumeSource. - Flag to enable/disable SSL communication with Gateway, default false +optional # noqa: E501 + sslEnabled Flag enable/disable SSL communication with Gateway, default false +optional # noqa: E501 :param ssl_enabled: The ssl_enabled of this ScaleIOVolumeSource. # noqa: E501 :type: bool @@ -232,7 +232,7 @@ def ssl_enabled(self, ssl_enabled): def storage_mode(self): """Gets the storage_mode of this ScaleIOVolumeSource. # noqa: E501 - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. +optional # noqa: E501 + storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. +optional # noqa: E501 :return: The storage_mode of this ScaleIOVolumeSource. # noqa: E501 :rtype: str @@ -243,7 +243,7 @@ def storage_mode(self): def storage_mode(self, storage_mode): """Sets the storage_mode of this ScaleIOVolumeSource. - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. +optional # noqa: E501 + storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. +optional # noqa: E501 :param storage_mode: The storage_mode of this ScaleIOVolumeSource. # noqa: E501 :type: str @@ -255,7 +255,7 @@ def storage_mode(self, storage_mode): def storage_pool(self): """Gets the storage_pool of this ScaleIOVolumeSource. # noqa: E501 - The ScaleIO Storage Pool associated with the protection domain. +optional # noqa: E501 + storagePool is the ScaleIO Storage Pool associated with the protection domain. +optional # noqa: E501 :return: The storage_pool of this ScaleIOVolumeSource. # noqa: E501 :rtype: str @@ -266,7 +266,7 @@ def storage_pool(self): def storage_pool(self, storage_pool): """Sets the storage_pool of this ScaleIOVolumeSource. - The ScaleIO Storage Pool associated with the protection domain. +optional # noqa: E501 + storagePool is the ScaleIO Storage Pool associated with the protection domain. +optional # noqa: E501 :param storage_pool: The storage_pool of this ScaleIOVolumeSource. # noqa: E501 :type: str @@ -278,7 +278,7 @@ def storage_pool(self, storage_pool): def system(self): """Gets the system of this ScaleIOVolumeSource. # noqa: E501 - The name of the storage system as configured in ScaleIO. # noqa: E501 + system is the name of the storage system as configured in ScaleIO. # noqa: E501 :return: The system of this ScaleIOVolumeSource. # noqa: E501 :rtype: str @@ -289,7 +289,7 @@ def system(self): def system(self, system): """Sets the system of this ScaleIOVolumeSource. - The name of the storage system as configured in ScaleIO. # noqa: E501 + system is the name of the storage system as configured in ScaleIO. # noqa: E501 :param system: The system of this ScaleIOVolumeSource. # noqa: E501 :type: str @@ -301,7 +301,7 @@ def system(self, system): def volume_name(self): """Gets the volume_name of this ScaleIOVolumeSource. # noqa: E501 - The name of a volume already created in the ScaleIO system that is associated with this volume source. # noqa: E501 + volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. # noqa: E501 :return: The volume_name of this ScaleIOVolumeSource. # noqa: E501 :rtype: str @@ -312,7 +312,7 @@ def volume_name(self): def volume_name(self, volume_name): """Sets the volume_name of this ScaleIOVolumeSource. - The name of a volume already created in the ScaleIO system that is associated with this volume source. # noqa: E501 + volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. # noqa: E501 :param volume_name: The volume_name of this ScaleIOVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/seccomp_profile.py b/python/seldon_deploy_sdk/models/seccomp_profile.py index 514e41c..8d211c5 100644 --- a/python/seldon_deploy_sdk/models/seccomp_profile.py +++ b/python/seldon_deploy_sdk/models/seccomp_profile.py @@ -56,7 +56,7 @@ def __init__(self, localhost_profile=None, type=None): # noqa: E501 def localhost_profile(self): """Gets the localhost_profile of this SeccompProfile. # noqa: E501 - localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\". +optional # noqa: E501 + localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type. +optional # noqa: E501 :return: The localhost_profile of this SeccompProfile. # noqa: E501 :rtype: str @@ -67,7 +67,7 @@ def localhost_profile(self): def localhost_profile(self, localhost_profile): """Sets the localhost_profile of this SeccompProfile. - localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must only be set if type is \"Localhost\". +optional # noqa: E501 + localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. Must be set if type is \"Localhost\". Must NOT be set for any other type. +optional # noqa: E501 :param localhost_profile: The localhost_profile of this SeccompProfile. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/secret_projection.py b/python/seldon_deploy_sdk/models/secret_projection.py index 1dac3cc..5051d9b 100644 --- a/python/seldon_deploy_sdk/models/secret_projection.py +++ b/python/seldon_deploy_sdk/models/secret_projection.py @@ -61,7 +61,7 @@ def __init__(self, items=None, name=None, optional=None): # noqa: E501 def items(self): """Gets the items of this SecretProjection. # noqa: E501 - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 + items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 :return: The items of this SecretProjection. # noqa: E501 :rtype: list[KeyToPath] @@ -72,7 +72,7 @@ def items(self): def items(self, items): """Sets the items of this SecretProjection. - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 + items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 :param items: The items of this SecretProjection. # noqa: E501 :type: list[KeyToPath] @@ -107,7 +107,7 @@ def name(self, name): def optional(self): """Gets the optional of this SecretProjection. # noqa: E501 - Specify whether the Secret or its key must be defined +optional # noqa: E501 + optional field specify whether the Secret or its key must be defined +optional # noqa: E501 :return: The optional of this SecretProjection. # noqa: E501 :rtype: bool @@ -118,7 +118,7 @@ def optional(self): def optional(self, optional): """Sets the optional of this SecretProjection. - Specify whether the Secret or its key must be defined +optional # noqa: E501 + optional field specify whether the Secret or its key must be defined +optional # noqa: E501 :param optional: The optional of this SecretProjection. # noqa: E501 :type: bool diff --git a/python/seldon_deploy_sdk/models/secret_volume_source.py b/python/seldon_deploy_sdk/models/secret_volume_source.py index 913cbac..f9de50a 100644 --- a/python/seldon_deploy_sdk/models/secret_volume_source.py +++ b/python/seldon_deploy_sdk/models/secret_volume_source.py @@ -66,7 +66,7 @@ def __init__(self, default_mode=None, items=None, optional=None, secret_name=Non def default_mode(self): """Gets the default_mode of this SecretVolumeSource. # noqa: E501 - Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 + defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 :return: The default_mode of this SecretVolumeSource. # noqa: E501 :rtype: int @@ -77,7 +77,7 @@ def default_mode(self): def default_mode(self, default_mode): """Sets the default_mode of this SecretVolumeSource. - Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 + defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. Directories within the path are not affected by this setting. This might be in conflict with other options that affect the file mode, like fsGroup, and the result can be other mode bits set. +optional # noqa: E501 :param default_mode: The default_mode of this SecretVolumeSource. # noqa: E501 :type: int @@ -89,7 +89,7 @@ def default_mode(self, default_mode): def items(self): """Gets the items of this SecretVolumeSource. # noqa: E501 - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 + items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 :return: The items of this SecretVolumeSource. # noqa: E501 :rtype: list[KeyToPath] @@ -100,7 +100,7 @@ def items(self): def items(self, items): """Sets the items of this SecretVolumeSource. - If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 + items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be present. If a key is specified which is not present in the Secret, the volume setup will error unless it is marked optional. Paths must be relative and may not contain the '..' path or start with '..'. +optional # noqa: E501 :param items: The items of this SecretVolumeSource. # noqa: E501 :type: list[KeyToPath] @@ -112,7 +112,7 @@ def items(self, items): def optional(self): """Gets the optional of this SecretVolumeSource. # noqa: E501 - Specify whether the Secret or its keys must be defined +optional # noqa: E501 + optional field specify whether the Secret or its keys must be defined +optional # noqa: E501 :return: The optional of this SecretVolumeSource. # noqa: E501 :rtype: bool @@ -123,7 +123,7 @@ def optional(self): def optional(self, optional): """Sets the optional of this SecretVolumeSource. - Specify whether the Secret or its keys must be defined +optional # noqa: E501 + optional field specify whether the Secret or its keys must be defined +optional # noqa: E501 :param optional: The optional of this SecretVolumeSource. # noqa: E501 :type: bool @@ -135,7 +135,7 @@ def optional(self, optional): def secret_name(self): """Gets the secret_name of this SecretVolumeSource. # noqa: E501 - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional # noqa: E501 + secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional # noqa: E501 :return: The secret_name of this SecretVolumeSource. # noqa: E501 :rtype: str @@ -146,7 +146,7 @@ def secret_name(self): def secret_name(self, secret_name): """Sets the secret_name of this SecretVolumeSource. - Name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional # noqa: E501 + secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional # noqa: E501 :param secret_name: The secret_name of this SecretVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/security_context.py b/python/seldon_deploy_sdk/models/security_context.py index 4d3dae8..69baadf 100644 --- a/python/seldon_deploy_sdk/models/security_context.py +++ b/python/seldon_deploy_sdk/models/security_context.py @@ -101,7 +101,7 @@ def __init__(self, allow_privilege_escalation=None, capabilities=None, privilege def allow_privilege_escalation(self): """Gets the allow_privilege_escalation of this SecurityContext. # noqa: E501 - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN +optional # noqa: E501 + AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :return: The allow_privilege_escalation of this SecurityContext. # noqa: E501 :rtype: bool @@ -112,7 +112,7 @@ def allow_privilege_escalation(self): def allow_privilege_escalation(self, allow_privilege_escalation): """Sets the allow_privilege_escalation of this SecurityContext. - AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN +optional # noqa: E501 + AllowPrivilegeEscalation controls whether a process can gain more privileges than its parent process. This bool directly controls if the no_new_privs flag will be set on the container process. AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :param allow_privilege_escalation: The allow_privilege_escalation of this SecurityContext. # noqa: E501 :type: bool @@ -145,7 +145,7 @@ def capabilities(self, capabilities): def privileged(self): """Gets the privileged of this SecurityContext. # noqa: E501 - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. +optional # noqa: E501 + Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :return: The privileged of this SecurityContext. # noqa: E501 :rtype: bool @@ -156,7 +156,7 @@ def privileged(self): def privileged(self, privileged): """Sets the privileged of this SecurityContext. - Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. +optional # noqa: E501 + Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :param privileged: The privileged of this SecurityContext. # noqa: E501 :type: bool @@ -189,7 +189,7 @@ def proc_mount(self, proc_mount): def read_only_root_filesystem(self): """Gets the read_only_root_filesystem of this SecurityContext. # noqa: E501 - Whether this container has a read-only root filesystem. Default is false. +optional # noqa: E501 + Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :return: The read_only_root_filesystem of this SecurityContext. # noqa: E501 :rtype: bool @@ -200,7 +200,7 @@ def read_only_root_filesystem(self): def read_only_root_filesystem(self, read_only_root_filesystem): """Sets the read_only_root_filesystem of this SecurityContext. - Whether this container has a read-only root filesystem. Default is false. +optional # noqa: E501 + Whether this container has a read-only root filesystem. Default is false. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :param read_only_root_filesystem: The read_only_root_filesystem of this SecurityContext. # noqa: E501 :type: bool @@ -212,7 +212,7 @@ def read_only_root_filesystem(self, read_only_root_filesystem): def run_as_group(self): """Gets the run_as_group of this SecurityContext. # noqa: E501 - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional # noqa: E501 + The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :return: The run_as_group of this SecurityContext. # noqa: E501 :rtype: int @@ -223,7 +223,7 @@ def run_as_group(self): def run_as_group(self, run_as_group): """Sets the run_as_group of this SecurityContext. - The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional # noqa: E501 + The GID to run the entrypoint of the container process. Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :param run_as_group: The run_as_group of this SecurityContext. # noqa: E501 :type: int @@ -258,7 +258,7 @@ def run_as_non_root(self, run_as_non_root): def run_as_user(self): """Gets the run_as_user of this SecurityContext. # noqa: E501 - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional # noqa: E501 + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :return: The run_as_user of this SecurityContext. # noqa: E501 :rtype: int @@ -269,7 +269,7 @@ def run_as_user(self): def run_as_user(self, run_as_user): """Sets the run_as_user of this SecurityContext. - The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. +optional # noqa: E501 + The UID to run the entrypoint of the container process. Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. Note that this field cannot be set when spec.os.name is windows. +optional # noqa: E501 :param run_as_user: The run_as_user of this SecurityContext. # noqa: E501 :type: int diff --git a/python/seldon_deploy_sdk/models/seldon_hpa_spec.py b/python/seldon_deploy_sdk/models/seldon_hpa_spec.py index d25c7b2..08abfdb 100644 --- a/python/seldon_deploy_sdk/models/seldon_hpa_spec.py +++ b/python/seldon_deploy_sdk/models/seldon_hpa_spec.py @@ -33,20 +33,23 @@ class SeldonHpaSpec(object): swagger_types = { 'max_replicas': 'int', 'metrics': 'list[MetricSpec]', + 'metricsv2': 'list[MetricSpec]', 'min_replicas': 'int' } attribute_map = { 'max_replicas': 'maxReplicas', 'metrics': 'metrics', + 'metricsv2': 'metricsv2', 'min_replicas': 'minReplicas' } - def __init__(self, max_replicas=None, metrics=None, min_replicas=None): # noqa: E501 + def __init__(self, max_replicas=None, metrics=None, metricsv2=None, min_replicas=None): # noqa: E501 """SeldonHpaSpec - a model defined in Swagger""" # noqa: E501 self._max_replicas = None self._metrics = None + self._metricsv2 = None self._min_replicas = None self.discriminator = None @@ -54,6 +57,8 @@ def __init__(self, max_replicas=None, metrics=None, min_replicas=None): # noqa: self.max_replicas = max_replicas if metrics is not None: self.metrics = metrics + if metricsv2 is not None: + self.metricsv2 = metricsv2 if min_replicas is not None: self.min_replicas = min_replicas @@ -99,6 +104,27 @@ def metrics(self, metrics): self._metrics = metrics + @property + def metricsv2(self): + """Gets the metricsv2 of this SeldonHpaSpec. # noqa: E501 + + + :return: The metricsv2 of this SeldonHpaSpec. # noqa: E501 + :rtype: list[MetricSpec] + """ + return self._metricsv2 + + @metricsv2.setter + def metricsv2(self, metricsv2): + """Sets the metricsv2 of this SeldonHpaSpec. + + + :param metricsv2: The metricsv2 of this SeldonHpaSpec. # noqa: E501 + :type: list[MetricSpec] + """ + + self._metricsv2 = metricsv2 + @property def min_replicas(self): """Gets the min_replicas of this SeldonHpaSpec. # noqa: E501 diff --git a/python/seldon_deploy_sdk/models/service.py b/python/seldon_deploy_sdk/models/service.py index 1e1c7f2..46999ea 100644 --- a/python/seldon_deploy_sdk/models/service.py +++ b/python/seldon_deploy_sdk/models/service.py @@ -33,7 +33,6 @@ class Service(object): swagger_types = { 'annotations': 'dict(str, str)', 'api_version': 'str', - 'cluster_name': 'str', 'creation_timestamp': 'str', 'deletion_grace_period_seconds': 'int', 'deletion_timestamp': 'str', @@ -56,7 +55,6 @@ class Service(object): attribute_map = { 'annotations': 'annotations', 'api_version': 'apiVersion', - 'cluster_name': 'clusterName', 'creation_timestamp': 'creationTimestamp', 'deletion_grace_period_seconds': 'deletionGracePeriodSeconds', 'deletion_timestamp': 'deletionTimestamp', @@ -76,12 +74,11 @@ class Service(object): 'uid': 'uid' } - def __init__(self, annotations=None, api_version=None, cluster_name=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, kind=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, status=None, uid=None): # noqa: E501 + def __init__(self, annotations=None, api_version=None, creation_timestamp=None, deletion_grace_period_seconds=None, deletion_timestamp=None, finalizers=None, generate_name=None, generation=None, kind=None, labels=None, managed_fields=None, name=None, namespace=None, owner_references=None, resource_version=None, self_link=None, spec=None, status=None, uid=None): # noqa: E501 """Service - a model defined in Swagger""" # noqa: E501 self._annotations = None self._api_version = None - self._cluster_name = None self._creation_timestamp = None self._deletion_grace_period_seconds = None self._deletion_timestamp = None @@ -105,8 +102,6 @@ def __init__(self, annotations=None, api_version=None, cluster_name=None, creati self.annotations = annotations if api_version is not None: self.api_version = api_version - if cluster_name is not None: - self.cluster_name = cluster_name if creation_timestamp is not None: self.creation_timestamp = creation_timestamp if deletion_grace_period_seconds is not None: @@ -146,7 +141,7 @@ def __init__(self, annotations=None, api_version=None, cluster_name=None, creati def annotations(self): """Gets the annotations of this Service. # noqa: E501 - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :return: The annotations of this Service. # noqa: E501 :rtype: dict(str, str) @@ -157,7 +152,7 @@ def annotations(self): def annotations(self, annotations): """Sets the annotations of this Service. - Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations +optional # noqa: E501 + Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional # noqa: E501 :param annotations: The annotations of this Service. # noqa: E501 :type: dict(str, str) @@ -188,29 +183,6 @@ def api_version(self, api_version): self._api_version = api_version - @property - def cluster_name(self): - """Gets the cluster_name of this Service. # noqa: E501 - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :return: The cluster_name of this Service. # noqa: E501 - :rtype: str - """ - return self._cluster_name - - @cluster_name.setter - def cluster_name(self, cluster_name): - """Sets the cluster_name of this Service. - - The name of the cluster which the object belongs to. This is used to distinguish resources with same name and namespace in different clusters. This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. +optional # noqa: E501 - - :param cluster_name: The cluster_name of this Service. # noqa: E501 - :type: str - """ - - self._cluster_name = cluster_name - @property def creation_timestamp(self): """Gets the creation_timestamp of this Service. # noqa: E501 @@ -307,7 +279,7 @@ def finalizers(self, finalizers): def generate_name(self): """Gets the generate_name of this Service. # noqa: E501 - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :return: The generate_name of this Service. # noqa: E501 :rtype: str @@ -318,7 +290,7 @@ def generate_name(self): def generate_name(self, generate_name): """Sets the generate_name of this Service. - GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will NOT return a 409 - instead, it will either return 201 Created or 500 with Reason ServerTimeout indicating a unique name could not be found in the time allotted, and the client should retry (optionally after the time indicated in the Retry-After header). Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 + GenerateName is an optional prefix, used by the server, to generate a unique name ONLY IF the Name field has not been provided. If this field is used, the name returned to the client will be different than the name passed. This value will also be combined with a unique suffix. The provided value has the same validation rules as the Name field, and may be truncated by the length of the suffix required to make the value unique on the server. If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency +optional # noqa: E501 :param generate_name: The generate_name of this Service. # noqa: E501 :type: str @@ -376,7 +348,7 @@ def kind(self, kind): def labels(self): """Gets the labels of this Service. # noqa: E501 - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :return: The labels of this Service. # noqa: E501 :rtype: dict(str, str) @@ -387,7 +359,7 @@ def labels(self): def labels(self, labels): """Sets the labels of this Service. - Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels +optional # noqa: E501 + Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional # noqa: E501 :param labels: The labels of this Service. # noqa: E501 :type: dict(str, str) @@ -422,7 +394,7 @@ def managed_fields(self, managed_fields): def name(self): """Gets the name of this Service. # noqa: E501 - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :return: The name of this Service. # noqa: E501 :rtype: str @@ -433,7 +405,7 @@ def name(self): def name(self, name): """Sets the name of this Service. - Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/identifiers#names +optional # noqa: E501 + Name must be unique within a namespace. Is required when creating resources, although some resources may allow a client to request the generation of an appropriate name automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional # noqa: E501 :param name: The name of this Service. # noqa: E501 :type: str @@ -445,7 +417,7 @@ def name(self, name): def namespace(self): """Gets the namespace of this Service. # noqa: E501 - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :return: The namespace of this Service. # noqa: E501 :rtype: str @@ -456,7 +428,7 @@ def namespace(self): def namespace(self, namespace): """Sets the namespace of this Service. - Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: http://kubernetes.io/docs/user-guide/namespaces +optional # noqa: E501 + Namespace defines the space within which each name must be unique. An empty namespace is equivalent to the \"default\" namespace, but \"default\" is the canonical representation. Not all objects are required to be scoped to a namespace - the value of this field for those objects will be empty. Must be a DNS_LABEL. Cannot be updated. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional # noqa: E501 :param namespace: The namespace of this Service. # noqa: E501 :type: str @@ -514,7 +486,7 @@ def resource_version(self, resource_version): def self_link(self): """Gets the self_link of this Service. # noqa: E501 - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :return: The self_link of this Service. # noqa: E501 :rtype: str @@ -525,7 +497,7 @@ def self_link(self): def self_link(self, self_link): """Sets the self_link of this Service. - SelfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :param self_link: The self_link of this Service. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/service_account_token_projection.py b/python/seldon_deploy_sdk/models/service_account_token_projection.py index 163a088..a78cd44 100644 --- a/python/seldon_deploy_sdk/models/service_account_token_projection.py +++ b/python/seldon_deploy_sdk/models/service_account_token_projection.py @@ -61,7 +61,7 @@ def __init__(self, audience=None, expiration_seconds=None, path=None): # noqa: def audience(self): """Gets the audience of this ServiceAccountTokenProjection. # noqa: E501 - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. +optional # noqa: E501 + audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. +optional # noqa: E501 :return: The audience of this ServiceAccountTokenProjection. # noqa: E501 :rtype: str @@ -72,7 +72,7 @@ def audience(self): def audience(self, audience): """Sets the audience of this ServiceAccountTokenProjection. - Audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. +optional # noqa: E501 + audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. +optional # noqa: E501 :param audience: The audience of this ServiceAccountTokenProjection. # noqa: E501 :type: str @@ -84,7 +84,7 @@ def audience(self, audience): def expiration_seconds(self): """Gets the expiration_seconds of this ServiceAccountTokenProjection. # noqa: E501 - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. +optional # noqa: E501 + expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. +optional # noqa: E501 :return: The expiration_seconds of this ServiceAccountTokenProjection. # noqa: E501 :rtype: int @@ -95,7 +95,7 @@ def expiration_seconds(self): def expiration_seconds(self, expiration_seconds): """Sets the expiration_seconds of this ServiceAccountTokenProjection. - ExpirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. +optional # noqa: E501 + expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of its time to live or if the token is older than 24 hours.Defaults to 1 hour and must be at least 10 minutes. +optional # noqa: E501 :param expiration_seconds: The expiration_seconds of this ServiceAccountTokenProjection. # noqa: E501 :type: int @@ -107,7 +107,7 @@ def expiration_seconds(self, expiration_seconds): def path(self): """Gets the path of this ServiceAccountTokenProjection. # noqa: E501 - Path is the path relative to the mount point of the file to project the token into. # noqa: E501 + path is the path relative to the mount point of the file to project the token into. # noqa: E501 :return: The path of this ServiceAccountTokenProjection. # noqa: E501 :rtype: str @@ -118,7 +118,7 @@ def path(self): def path(self, path): """Sets the path of this ServiceAccountTokenProjection. - Path is the path relative to the mount point of the file to project the token into. # noqa: E501 + path is the path relative to the mount point of the file to project the token into. # noqa: E501 :param path: The path of this ServiceAccountTokenProjection. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/service_external_traffic_policy.py b/python/seldon_deploy_sdk/models/service_external_traffic_policy.py new file mode 100644 index 0000000..c7fc354 --- /dev/null +++ b/python/seldon_deploy_sdk/models/service_external_traffic_policy.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ServiceExternalTrafficPolicy(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ServiceExternalTrafficPolicy - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ServiceExternalTrafficPolicy, dict): + for key, value in self.items(): + result[key] = 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, ServiceExternalTrafficPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/service_internal_traffic_policy.py b/python/seldon_deploy_sdk/models/service_internal_traffic_policy.py new file mode 100644 index 0000000..b85ad19 --- /dev/null +++ b/python/seldon_deploy_sdk/models/service_internal_traffic_policy.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class ServiceInternalTrafficPolicy(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """ServiceInternalTrafficPolicy - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(ServiceInternalTrafficPolicy, dict): + for key, value in self.items(): + result[key] = 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, ServiceInternalTrafficPolicy): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/service_list.py b/python/seldon_deploy_sdk/models/service_list.py index 730ecfa..d78bf8c 100644 --- a/python/seldon_deploy_sdk/models/service_list.py +++ b/python/seldon_deploy_sdk/models/service_list.py @@ -219,7 +219,7 @@ def resource_version(self, resource_version): def self_link(self): """Gets the self_link of this ServiceList. # noqa: E501 - selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :return: The self_link of this ServiceList. # noqa: E501 :rtype: str @@ -230,7 +230,7 @@ def self_link(self): def self_link(self, self_link): """Sets the self_link of this ServiceList. - selfLink is a URL representing this object. Populated by the system. Read-only. DEPRECATED Kubernetes will stop propagating this field in 1.20 release and the field is planned to be removed in 1.21 release. +optional # noqa: E501 + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional # noqa: E501 :param self_link: The self_link of this ServiceList. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/service_port.py b/python/seldon_deploy_sdk/models/service_port.py index 4d925c3..1a9beaa 100644 --- a/python/seldon_deploy_sdk/models/service_port.py +++ b/python/seldon_deploy_sdk/models/service_port.py @@ -76,7 +76,7 @@ def __init__(self, app_protocol=None, name=None, node_port=None, port=None, prot def app_protocol(self): """Gets the app_protocol of this ServicePort. # noqa: E501 - The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. This is a beta field that is guarded by the ServiceAppProtocol feature gate and enabled by default. +optional # noqa: E501 + The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Kubernetes-defined prefixed names: 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. +optional # noqa: E501 :return: The app_protocol of this ServicePort. # noqa: E501 :rtype: str @@ -87,7 +87,7 @@ def app_protocol(self): def app_protocol(self, app_protocol): """Sets the app_protocol of this ServicePort. - The application protocol for this port. This field follows standard Kubernetes label syntax. Un-prefixed names are reserved for IANA standard service names (as per RFC-6335 and http://www.iana.org/assignments/service-names). Non-standard protocols should use prefixed names such as mycompany.com/my-custom-protocol. This is a beta field that is guarded by the ServiceAppProtocol feature gate and enabled by default. +optional # noqa: E501 + The application protocol for this port. This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. Valid values are either: Un-prefixed protocol names - reserved for IANA standard service names (as per RFC-6335 and https://www.iana.org/assignments/service-names). Kubernetes-defined prefixed names: 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. +optional # noqa: E501 :param app_protocol: The app_protocol of this ServicePort. # noqa: E501 :type: str @@ -122,7 +122,7 @@ def name(self, name): def node_port(self): """Gets the node_port of this ServicePort. # noqa: E501 - The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport +optional # noqa: E501 + The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport +optional # noqa: E501 :return: The node_port of this ServicePort. # noqa: E501 :rtype: int @@ -133,7 +133,7 @@ def node_port(self): def node_port(self, node_port): """Sets the node_port of this ServicePort. - The port on each node on which this service is exposed when type=NodePort or LoadBalancer. Usually assigned by the system. If specified, it will be allocated to the service if unused or else creation of the service will fail. Default is to auto-allocate a port if the ServiceType of this Service requires one. More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport +optional # noqa: E501 + The port on each node on which this service is exposed when type is NodePort or LoadBalancer. Usually assigned by the system. If a value is specified, in-range, and not in use it will be used, otherwise the operation will fail. If not specified, a port will be allocated if this Service requires one. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport +optional # noqa: E501 :param node_port: The node_port of this ServicePort. # noqa: E501 :type: int diff --git a/python/seldon_deploy_sdk/models/service_spec.py b/python/seldon_deploy_sdk/models/service_spec.py index a4c85a6..e38316b 100644 --- a/python/seldon_deploy_sdk/models/service_spec.py +++ b/python/seldon_deploy_sdk/models/service_spec.py @@ -31,12 +31,17 @@ class ServiceSpec(object): and the value is json key in definition. """ swagger_types = { + 'allocate_load_balancer_node_ports': 'bool', 'cluster_ip': 'str', + 'cluster_i_ps': 'list[str]', 'external_i_ps': 'list[str]', 'external_name': 'str', - 'external_traffic_policy': 'ServiceExternalTrafficPolicyType', + 'external_traffic_policy': 'ServiceExternalTrafficPolicy', 'health_check_node_port': 'int', - 'ip_family': 'IPFamily', + 'internal_traffic_policy': 'ServiceInternalTrafficPolicy', + 'ip_families': 'list[IPFamily]', + 'ip_family_policy': 'IPFamilyPolicy', + 'load_balancer_class': 'str', 'load_balancer_ip': 'str', 'load_balancer_source_ranges': 'list[str]', 'ports': 'list[ServicePort]', @@ -44,17 +49,21 @@ class ServiceSpec(object): 'selector': 'dict(str, str)', 'session_affinity': 'ServiceAffinity', 'session_affinity_config': 'SessionAffinityConfig', - 'topology_keys': 'list[str]', 'type': 'ServiceType' } attribute_map = { + 'allocate_load_balancer_node_ports': 'allocateLoadBalancerNodePorts', 'cluster_ip': 'clusterIP', + 'cluster_i_ps': 'clusterIPs', 'external_i_ps': 'externalIPs', 'external_name': 'externalName', 'external_traffic_policy': 'externalTrafficPolicy', 'health_check_node_port': 'healthCheckNodePort', - 'ip_family': 'ipFamily', + 'internal_traffic_policy': 'internalTrafficPolicy', + 'ip_families': 'ipFamilies', + 'ip_family_policy': 'ipFamilyPolicy', + 'load_balancer_class': 'loadBalancerClass', 'load_balancer_ip': 'loadBalancerIP', 'load_balancer_source_ranges': 'loadBalancerSourceRanges', 'ports': 'ports', @@ -62,19 +71,23 @@ class ServiceSpec(object): 'selector': 'selector', 'session_affinity': 'sessionAffinity', 'session_affinity_config': 'sessionAffinityConfig', - 'topology_keys': 'topologyKeys', 'type': 'type' } - def __init__(self, cluster_ip=None, external_i_ps=None, external_name=None, external_traffic_policy=None, health_check_node_port=None, ip_family=None, load_balancer_ip=None, load_balancer_source_ranges=None, ports=None, publish_not_ready_addresses=None, selector=None, session_affinity=None, session_affinity_config=None, topology_keys=None, type=None): # noqa: E501 + def __init__(self, allocate_load_balancer_node_ports=None, cluster_ip=None, cluster_i_ps=None, external_i_ps=None, external_name=None, external_traffic_policy=None, health_check_node_port=None, internal_traffic_policy=None, ip_families=None, ip_family_policy=None, load_balancer_class=None, load_balancer_ip=None, load_balancer_source_ranges=None, ports=None, publish_not_ready_addresses=None, selector=None, session_affinity=None, session_affinity_config=None, type=None): # noqa: E501 """ServiceSpec - a model defined in Swagger""" # noqa: E501 + self._allocate_load_balancer_node_ports = None self._cluster_ip = None + self._cluster_i_ps = None self._external_i_ps = None self._external_name = None self._external_traffic_policy = None self._health_check_node_port = None - self._ip_family = None + self._internal_traffic_policy = None + self._ip_families = None + self._ip_family_policy = None + self._load_balancer_class = None self._load_balancer_ip = None self._load_balancer_source_ranges = None self._ports = None @@ -82,12 +95,15 @@ def __init__(self, cluster_ip=None, external_i_ps=None, external_name=None, exte self._selector = None self._session_affinity = None self._session_affinity_config = None - self._topology_keys = None self._type = None self.discriminator = None + if allocate_load_balancer_node_ports is not None: + self.allocate_load_balancer_node_ports = allocate_load_balancer_node_ports if cluster_ip is not None: self.cluster_ip = cluster_ip + if cluster_i_ps is not None: + self.cluster_i_ps = cluster_i_ps if external_i_ps is not None: self.external_i_ps = external_i_ps if external_name is not None: @@ -96,8 +112,14 @@ def __init__(self, cluster_ip=None, external_i_ps=None, external_name=None, exte self.external_traffic_policy = external_traffic_policy if health_check_node_port is not None: self.health_check_node_port = health_check_node_port - if ip_family is not None: - self.ip_family = ip_family + if internal_traffic_policy is not None: + self.internal_traffic_policy = internal_traffic_policy + if ip_families is not None: + self.ip_families = ip_families + if ip_family_policy is not None: + self.ip_family_policy = ip_family_policy + if load_balancer_class is not None: + self.load_balancer_class = load_balancer_class if load_balancer_ip is not None: self.load_balancer_ip = load_balancer_ip if load_balancer_source_ranges is not None: @@ -112,16 +134,37 @@ def __init__(self, cluster_ip=None, external_i_ps=None, external_name=None, exte self.session_affinity = session_affinity if session_affinity_config is not None: self.session_affinity_config = session_affinity_config - if topology_keys is not None: - self.topology_keys = topology_keys if type is not None: self.type = type + @property + def allocate_load_balancer_node_ports(self): + """Gets the allocate_load_balancer_node_ports of this ServiceSpec. # noqa: E501 + + allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. +optional # noqa: E501 + + :return: The allocate_load_balancer_node_ports of this ServiceSpec. # noqa: E501 + :rtype: bool + """ + return self._allocate_load_balancer_node_ports + + @allocate_load_balancer_node_ports.setter + def allocate_load_balancer_node_ports(self, allocate_load_balancer_node_ports): + """Sets the allocate_load_balancer_node_ports of this ServiceSpec. + + allocateLoadBalancerNodePorts defines if NodePorts will be automatically allocated for services with type LoadBalancer. Default is \"true\". It may be set to \"false\" if the cluster load-balancer does not rely on NodePorts. If the caller requests specific NodePorts (by specifying a value), those requests will be respected, regardless of this field. This field may only be set for services with type LoadBalancer and will be cleared if the type is changed to any other type. +optional # noqa: E501 + + :param allocate_load_balancer_node_ports: The allocate_load_balancer_node_ports of this ServiceSpec. # noqa: E501 + :type: bool + """ + + self._allocate_load_balancer_node_ports = allocate_load_balancer_node_ports + @property def cluster_ip(self): """Gets the cluster_ip of this ServiceSpec. # noqa: E501 - clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies +optional # noqa: E501 + clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies +optional # noqa: E501 :return: The cluster_ip of this ServiceSpec. # noqa: E501 :rtype: str @@ -132,7 +175,7 @@ def cluster_ip(self): def cluster_ip(self, cluster_ip): """Sets the cluster_ip of this ServiceSpec. - clusterIP is the IP address of the service and is usually assigned randomly by the master. If an address is specified manually and is not in use by others, it will be allocated to the service; otherwise, creation of the service will fail. This field can not be changed through updates. Valid values are \"None\", empty string (\"\"), or a valid IP address. \"None\" can be specified for headless services when proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies +optional # noqa: E501 + clusterIP is the IP address of the service and is usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be blank) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies +optional # noqa: E501 :param cluster_ip: The cluster_ip of this ServiceSpec. # noqa: E501 :type: str @@ -140,6 +183,29 @@ def cluster_ip(self, cluster_ip): self._cluster_ip = cluster_ip + @property + def cluster_i_ps(self): + """Gets the cluster_i_ps of this ServiceSpec. # noqa: E501 + + ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies +listType=atomic +optional # noqa: E501 + + :return: The cluster_i_ps of this ServiceSpec. # noqa: E501 + :rtype: list[str] + """ + return self._cluster_i_ps + + @cluster_i_ps.setter + def cluster_i_ps(self, cluster_i_ps): + """Sets the cluster_i_ps of this ServiceSpec. + + ClusterIPs is a list of IP addresses assigned to this service, and are usually assigned randomly. If an address is specified manually, is in-range (as per system configuration), and is not in use, it will be allocated to the service; otherwise creation of the service will fail. This field may not be changed through updates unless the type field is also being changed to ExternalName (which requires this field to be empty) or the type field is being changed from ExternalName (in which case this field may optionally be specified, as describe above). Valid values are \"None\", empty string (\"\"), or a valid IP address. Setting this to \"None\" makes a \"headless service\" (no virtual IP), which is useful when direct endpoint connections are preferred and proxying is not required. Only applies to types ClusterIP, NodePort, and LoadBalancer. If this field is specified when creating a Service of type ExternalName, creation will fail. This field will be wiped when updating a Service to type ExternalName. If this field is not specified, it will be initialized from the clusterIP field. If this field is specified, clients must ensure that clusterIPs[0] and clusterIP have the same value. This field may hold a maximum of two entries (dual-stack IPs, in either order). These IPs must correspond to the values of the ipFamilies field. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies +listType=atomic +optional # noqa: E501 + + :param cluster_i_ps: The cluster_i_ps of this ServiceSpec. # noqa: E501 + :type: list[str] + """ + + self._cluster_i_ps = cluster_i_ps + @property def external_i_ps(self): """Gets the external_i_ps of this ServiceSpec. # noqa: E501 @@ -167,7 +233,7 @@ def external_i_ps(self, external_i_ps): def external_name(self): """Gets the external_name of this ServiceSpec. # noqa: E501 - externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. +optional # noqa: E501 + externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\". +optional # noqa: E501 :return: The external_name of this ServiceSpec. # noqa: E501 :rtype: str @@ -178,7 +244,7 @@ def external_name(self): def external_name(self, external_name): """Sets the external_name of this ServiceSpec. - externalName is the external reference that kubedns or equivalent will return as a CNAME record for this service. No proxying will be involved. Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires Type to be ExternalName. +optional # noqa: E501 + externalName is the external reference that discovery mechanisms will return as an alias for this service (e.g. a DNS CNAME record). No proxying will be involved. Must be a lowercase RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) and requires `type` to be \"ExternalName\". +optional # noqa: E501 :param external_name: The external_name of this ServiceSpec. # noqa: E501 :type: str @@ -192,7 +258,7 @@ def external_traffic_policy(self): :return: The external_traffic_policy of this ServiceSpec. # noqa: E501 - :rtype: ServiceExternalTrafficPolicyType + :rtype: ServiceExternalTrafficPolicy """ return self._external_traffic_policy @@ -202,7 +268,7 @@ def external_traffic_policy(self, external_traffic_policy): :param external_traffic_policy: The external_traffic_policy of this ServiceSpec. # noqa: E501 - :type: ServiceExternalTrafficPolicyType + :type: ServiceExternalTrafficPolicy """ self._external_traffic_policy = external_traffic_policy @@ -211,7 +277,7 @@ def external_traffic_policy(self, external_traffic_policy): def health_check_node_port(self): """Gets the health_check_node_port of this ServiceSpec. # noqa: E501 - healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. +optional # noqa: E501 + healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. +optional # noqa: E501 :return: The health_check_node_port of this ServiceSpec. # noqa: E501 :rtype: int @@ -222,7 +288,7 @@ def health_check_node_port(self): def health_check_node_port(self, health_check_node_port): """Sets the health_check_node_port of this ServiceSpec. - healthCheckNodePort specifies the healthcheck nodePort for the service. If not specified, HealthCheckNodePort is created by the service api backend with the allocated nodePort. Will use user-specified nodePort value if specified by the client. Only effects when Type is set to LoadBalancer and ExternalTrafficPolicy is set to Local. +optional # noqa: E501 + healthCheckNodePort specifies the healthcheck nodePort for the service. This only applies when type is set to LoadBalancer and externalTrafficPolicy is set to Local. If a value is specified, is in-range, and is not in use, it will be used. If not specified, a value will be automatically allocated. External systems (e.g. load-balancers) can use this port to determine if a given node holds endpoints for this service or not. If this field is specified when creating a Service which does not need it, creation will fail. This field will be wiped when updating a Service to no longer need it (e.g. changing type). This field cannot be updated once set. +optional # noqa: E501 :param health_check_node_port: The health_check_node_port of this ServiceSpec. # noqa: E501 :type: int @@ -231,31 +297,98 @@ def health_check_node_port(self, health_check_node_port): self._health_check_node_port = health_check_node_port @property - def ip_family(self): - """Gets the ip_family of this ServiceSpec. # noqa: E501 + def internal_traffic_policy(self): + """Gets the internal_traffic_policy of this ServiceSpec. # noqa: E501 + + + :return: The internal_traffic_policy of this ServiceSpec. # noqa: E501 + :rtype: ServiceInternalTrafficPolicy + """ + return self._internal_traffic_policy + + @internal_traffic_policy.setter + def internal_traffic_policy(self, internal_traffic_policy): + """Sets the internal_traffic_policy of this ServiceSpec. + + + :param internal_traffic_policy: The internal_traffic_policy of this ServiceSpec. # noqa: E501 + :type: ServiceInternalTrafficPolicy + """ + + self._internal_traffic_policy = internal_traffic_policy + + @property + def ip_families(self): + """Gets the ip_families of this ServiceSpec. # noqa: E501 + IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName. This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. +listType=atomic +optional # noqa: E501 - :return: The ip_family of this ServiceSpec. # noqa: E501 - :rtype: IPFamily + :return: The ip_families of this ServiceSpec. # noqa: E501 + :rtype: list[IPFamily] """ - return self._ip_family + return self._ip_families - @ip_family.setter - def ip_family(self, ip_family): - """Sets the ip_family of this ServiceSpec. + @ip_families.setter + def ip_families(self, ip_families): + """Sets the ip_families of this ServiceSpec. + IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this service. This field is usually assigned automatically based on cluster configuration and the ipFamilyPolicy field. If this field is specified manually, the requested family is available in the cluster, and ipFamilyPolicy allows it, it will be used; otherwise creation of the service will fail. This field is conditionally mutable: it allows for adding or removing a secondary IP family, but it does not allow changing the primary IP family of the Service. Valid values are \"IPv4\" and \"IPv6\". This field only applies to Services of types ClusterIP, NodePort, and LoadBalancer, and does apply to \"headless\" services. This field will be wiped when updating a Service to type ExternalName. This field may hold a maximum of two entries (dual-stack families, in either order). These families must correspond to the values of the clusterIPs field, if specified. Both clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. +listType=atomic +optional # noqa: E501 - :param ip_family: The ip_family of this ServiceSpec. # noqa: E501 - :type: IPFamily + :param ip_families: The ip_families of this ServiceSpec. # noqa: E501 + :type: list[IPFamily] """ - self._ip_family = ip_family + self._ip_families = ip_families + + @property + def ip_family_policy(self): + """Gets the ip_family_policy of this ServiceSpec. # noqa: E501 + + + :return: The ip_family_policy of this ServiceSpec. # noqa: E501 + :rtype: IPFamilyPolicy + """ + return self._ip_family_policy + + @ip_family_policy.setter + def ip_family_policy(self, ip_family_policy): + """Sets the ip_family_policy of this ServiceSpec. + + + :param ip_family_policy: The ip_family_policy of this ServiceSpec. # noqa: E501 + :type: IPFamilyPolicy + """ + + self._ip_family_policy = ip_family_policy + + @property + def load_balancer_class(self): + """Gets the load_balancer_class of this ServiceSpec. # noqa: E501 + + loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. +optional # noqa: E501 + + :return: The load_balancer_class of this ServiceSpec. # noqa: E501 + :rtype: str + """ + return self._load_balancer_class + + @load_balancer_class.setter + def load_balancer_class(self, load_balancer_class): + """Sets the load_balancer_class of this ServiceSpec. + + loadBalancerClass is the class of the load balancer implementation this Service belongs to. If specified, the value of this field must be a label-style identifier, with an optional prefix, e.g. \"internal-vip\" or \"example.com/internal-vip\". Unprefixed names are reserved for end-users. This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load balancer implementation is used, today this is typically done through the cloud provider integration, but should apply for any default implementation. If set, it is assumed that a load balancer implementation is watching for Services with a matching class. Any default load balancer implementation (e.g. cloud providers) should ignore Services that set this field. This field can only be set when creating or updating a Service to type 'LoadBalancer'. Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. +optional # noqa: E501 + + :param load_balancer_class: The load_balancer_class of this ServiceSpec. # noqa: E501 + :type: str + """ + + self._load_balancer_class = load_balancer_class @property def load_balancer_ip(self): """Gets the load_balancer_ip of this ServiceSpec. # noqa: E501 - Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. +optional # noqa: E501 + Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available. +optional # noqa: E501 :return: The load_balancer_ip of this ServiceSpec. # noqa: E501 :rtype: str @@ -266,7 +399,7 @@ def load_balancer_ip(self): def load_balancer_ip(self, load_balancer_ip): """Sets the load_balancer_ip of this ServiceSpec. - Only applies to Service Type: LoadBalancer LoadBalancer will get created with the IP specified in this field. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. +optional # noqa: E501 + Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. Deprecated: This field was under-specified and its meaning varies across implementations. Using it is non-portable and it may not support dual-stack. Users are encouraged to use implementation-specific annotations when available. +optional # noqa: E501 :param load_balancer_ip: The load_balancer_ip of this ServiceSpec. # noqa: E501 :type: str @@ -278,7 +411,7 @@ def load_balancer_ip(self, load_balancer_ip): def load_balancer_source_ranges(self): """Gets the load_balancer_source_ranges of this ServiceSpec. # noqa: E501 - If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ +optional # noqa: E501 + If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ +optional # noqa: E501 :return: The load_balancer_source_ranges of this ServiceSpec. # noqa: E501 :rtype: list[str] @@ -289,7 +422,7 @@ def load_balancer_source_ranges(self): def load_balancer_source_ranges(self, load_balancer_source_ranges): """Sets the load_balancer_source_ranges of this ServiceSpec. - If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ +optional # noqa: E501 + If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature.\" More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ +optional # noqa: E501 :param load_balancer_source_ranges: The load_balancer_source_ranges of this ServiceSpec. # noqa: E501 :type: list[str] @@ -347,7 +480,7 @@ def publish_not_ready_addresses(self, publish_not_ready_addresses): def selector(self): """Gets the selector of this ServiceSpec. # noqa: E501 - Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ +optional # noqa: E501 + Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ +optional +mapType=atomic # noqa: E501 :return: The selector of this ServiceSpec. # noqa: E501 :rtype: dict(str, str) @@ -358,7 +491,7 @@ def selector(self): def selector(self, selector): """Sets the selector of this ServiceSpec. - Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ +optional # noqa: E501 + Route service traffic to pods with label keys and values matching this selector. If empty or not present, the service is assumed to have an external process managing its endpoints, which Kubernetes will not modify. Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ +optional +mapType=atomic # noqa: E501 :param selector: The selector of this ServiceSpec. # noqa: E501 :type: dict(str, str) @@ -408,29 +541,6 @@ def session_affinity_config(self, session_affinity_config): self._session_affinity_config = session_affinity_config - @property - def topology_keys(self): - """Gets the topology_keys of this ServiceSpec. # noqa: E501 - - topologyKeys is a preference-order list of topology keys which implementations of services should use to preferentially sort endpoints when accessing this Service, it can not be used at the same time as externalTrafficPolicy=Local. Topology keys must be valid label keys and at most 16 keys may be specified. Endpoints are chosen based on the first topology key with available backends. If this field is specified and all entries have no backends that match the topology of the client, the service has no backends for that client and connections should fail. The special value \"*\" may be used to mean \"any topology\". This catch-all value, if used, only makes sense as the last value in the list. If this is not specified or empty, no topology constraints will be applied. +optional # noqa: E501 - - :return: The topology_keys of this ServiceSpec. # noqa: E501 - :rtype: list[str] - """ - return self._topology_keys - - @topology_keys.setter - def topology_keys(self, topology_keys): - """Sets the topology_keys of this ServiceSpec. - - topologyKeys is a preference-order list of topology keys which implementations of services should use to preferentially sort endpoints when accessing this Service, it can not be used at the same time as externalTrafficPolicy=Local. Topology keys must be valid label keys and at most 16 keys may be specified. Endpoints are chosen based on the first topology key with available backends. If this field is specified and all entries have no backends that match the topology of the client, the service has no backends for that client and connections should fail. The special value \"*\" may be used to mean \"any topology\". This catch-all value, if used, only makes sense as the last value in the list. If this is not specified or empty, no topology constraints will be applied. +optional # noqa: E501 - - :param topology_keys: The topology_keys of this ServiceSpec. # noqa: E501 - :type: list[str] - """ - - self._topology_keys = topology_keys - @property def type(self): """Gets the type of this ServiceSpec. # noqa: E501 diff --git a/python/seldon_deploy_sdk/models/storage_os_volume_source.py b/python/seldon_deploy_sdk/models/storage_os_volume_source.py index 36b02da..05ab973 100644 --- a/python/seldon_deploy_sdk/models/storage_os_volume_source.py +++ b/python/seldon_deploy_sdk/models/storage_os_volume_source.py @@ -71,7 +71,7 @@ def __init__(self, fs_type=None, read_only=None, secret_ref=None, volume_name=No def fs_type(self): """Gets the fs_type of this StorageOSVolumeSource. # noqa: E501 - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional # noqa: E501 + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional # noqa: E501 :return: The fs_type of this StorageOSVolumeSource. # noqa: E501 :rtype: str @@ -82,7 +82,7 @@ def fs_type(self): def fs_type(self, fs_type): """Sets the fs_type of this StorageOSVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional # noqa: E501 + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional # noqa: E501 :param fs_type: The fs_type of this StorageOSVolumeSource. # noqa: E501 :type: str @@ -94,7 +94,7 @@ def fs_type(self, fs_type): def read_only(self): """Gets the read_only of this StorageOSVolumeSource. # noqa: E501 - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 :return: The read_only of this StorageOSVolumeSource. # noqa: E501 :rtype: bool @@ -105,7 +105,7 @@ def read_only(self): def read_only(self, read_only): """Sets the read_only of this StorageOSVolumeSource. - Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional # noqa: E501 :param read_only: The read_only of this StorageOSVolumeSource. # noqa: E501 :type: bool @@ -138,7 +138,7 @@ def secret_ref(self, secret_ref): def volume_name(self): """Gets the volume_name of this StorageOSVolumeSource. # noqa: E501 - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. # noqa: E501 + volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. # noqa: E501 :return: The volume_name of this StorageOSVolumeSource. # noqa: E501 :rtype: str @@ -149,7 +149,7 @@ def volume_name(self): def volume_name(self, volume_name): """Sets the volume_name of this StorageOSVolumeSource. - VolumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. # noqa: E501 + volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. # noqa: E501 :param volume_name: The volume_name of this StorageOSVolumeSource. # noqa: E501 :type: str @@ -161,7 +161,7 @@ def volume_name(self, volume_name): def volume_namespace(self): """Gets the volume_namespace of this StorageOSVolumeSource. # noqa: E501 - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. +optional # noqa: E501 + volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. +optional # noqa: E501 :return: The volume_namespace of this StorageOSVolumeSource. # noqa: E501 :rtype: str @@ -172,7 +172,7 @@ def volume_namespace(self): def volume_namespace(self, volume_namespace): """Sets the volume_namespace of this StorageOSVolumeSource. - VolumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. +optional # noqa: E501 + volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. Set to \"default\" if you are not using namespaces within StorageOS. Namespaces that do not pre-exist within StorageOS will be created. +optional # noqa: E501 :param volume_namespace: The volume_namespace of this StorageOSVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/topology_spread_constraint.py b/python/seldon_deploy_sdk/models/topology_spread_constraint.py index c5a166c..fce6fe1 100644 --- a/python/seldon_deploy_sdk/models/topology_spread_constraint.py +++ b/python/seldon_deploy_sdk/models/topology_spread_constraint.py @@ -32,31 +32,51 @@ class TopologySpreadConstraint(object): """ swagger_types = { 'label_selector': 'LabelSelector', + 'match_label_keys': 'list[str]', 'max_skew': 'int', + 'min_domains': 'int', + 'node_affinity_policy': 'NodeInclusionPolicy', + 'node_taints_policy': 'NodeInclusionPolicy', 'topology_key': 'str', 'when_unsatisfiable': 'UnsatisfiableConstraintAction' } attribute_map = { 'label_selector': 'labelSelector', + 'match_label_keys': 'matchLabelKeys', 'max_skew': 'maxSkew', + 'min_domains': 'minDomains', + 'node_affinity_policy': 'nodeAffinityPolicy', + 'node_taints_policy': 'nodeTaintsPolicy', 'topology_key': 'topologyKey', 'when_unsatisfiable': 'whenUnsatisfiable' } - def __init__(self, label_selector=None, max_skew=None, topology_key=None, when_unsatisfiable=None): # noqa: E501 + def __init__(self, label_selector=None, match_label_keys=None, max_skew=None, min_domains=None, node_affinity_policy=None, node_taints_policy=None, topology_key=None, when_unsatisfiable=None): # noqa: E501 """TopologySpreadConstraint - a model defined in Swagger""" # noqa: E501 self._label_selector = None + self._match_label_keys = None self._max_skew = None + self._min_domains = None + self._node_affinity_policy = None + self._node_taints_policy = None self._topology_key = None self._when_unsatisfiable = None self.discriminator = None if label_selector is not None: self.label_selector = label_selector + if match_label_keys is not None: + self.match_label_keys = match_label_keys if max_skew is not None: self.max_skew = max_skew + if min_domains is not None: + self.min_domains = min_domains + if node_affinity_policy is not None: + self.node_affinity_policy = node_affinity_policy + if node_taints_policy is not None: + self.node_taints_policy = node_taints_policy if topology_key is not None: self.topology_key = topology_key if when_unsatisfiable is not None: @@ -83,11 +103,34 @@ def label_selector(self, label_selector): self._label_selector = label_selector + @property + def match_label_keys(self): + """Gets the match_label_keys of this TopologySpreadConstraint. # noqa: E501 + + MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). +listType=atomic +optional # noqa: E501 + + :return: The match_label_keys of this TopologySpreadConstraint. # noqa: E501 + :rtype: list[str] + """ + return self._match_label_keys + + @match_label_keys.setter + def match_label_keys(self, match_label_keys): + """Sets the match_label_keys of this TopologySpreadConstraint. + + MatchLabelKeys is a set of pod label keys to select the pods over which spreading will be calculated. The keys are used to lookup values from the incoming pod labels, those key-value labels are ANDed with labelSelector to select the group of existing pods over which spreading will be calculated for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. MatchLabelKeys cannot be set when LabelSelector isn't set. Keys that don't exist in the incoming pod labels will be ignored. A null or empty list means only match against labelSelector. This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). +listType=atomic +optional # noqa: E501 + + :param match_label_keys: The match_label_keys of this TopologySpreadConstraint. # noqa: E501 + :type: list[str] + """ + + self._match_label_keys = match_label_keys + @property def max_skew(self): """Gets the max_skew of this TopologySpreadConstraint. # noqa: E501 - MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: +-------+-------+-------+ zone1 | zone2 | zone3 | +-------+-------+-------+ P | P | | +-------+-------+-------+ if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. # noqa: E501 + MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. +-------+-------+-------+ zone1 | zone2 | zone3 | +-------+-------+-------+ P P | P P | P | +-------+-------+-------+ if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. # noqa: E501 :return: The max_skew of this TopologySpreadConstraint. # noqa: E501 :rtype: int @@ -98,7 +141,7 @@ def max_skew(self): def max_skew(self, max_skew): """Sets the max_skew of this TopologySpreadConstraint. - MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 1/1/0: +-------+-------+-------+ zone1 | zone2 | zone3 | +-------+-------+-------+ P | P | | +-------+-------+-------+ if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) violate MaxSkew(1). if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. # noqa: E501 + MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. The global minimum is the minimum number of matching pods in an eligible domain or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same labelSelector spread as 2/2/1: In this case, the global minimum is 1. +-------+-------+-------+ zone1 | zone2 | zone3 | +-------+-------+-------+ P P | P P | P | +-------+-------+-------+ if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence to topologies that satisfy it. It's a required field. Default value is 1 and 0 is not allowed. # noqa: E501 :param max_skew: The max_skew of this TopologySpreadConstraint. # noqa: E501 :type: int @@ -106,11 +149,76 @@ def max_skew(self, max_skew): self._max_skew = max_skew + @property + def min_domains(self): + """Gets the min_domains of this TopologySpreadConstraint. # noqa: E501 + + MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: +-------+-------+-------+ zone1 | zone2 | zone3 | +-------+-------+-------+ P P | P P | P P | +-------+-------+-------+ The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). +optional # noqa: E501 + + :return: The min_domains of this TopologySpreadConstraint. # noqa: E501 + :rtype: int + """ + return self._min_domains + + @min_domains.setter + def min_domains(self, min_domains): + """Sets the min_domains of this TopologySpreadConstraint. + + MinDomains indicates a minimum number of eligible domains. When the number of eligible domains with matching topology keys is less than minDomains, Pod Topology Spread treats \"global minimum\" as 0, and then the calculation of Skew is performed. And when the number of eligible domains with matching topology keys equals or greater than minDomains, this value has no effect on scheduling. As a result, when the number of eligible domains is less than minDomains, scheduler won't schedule more than maxSkew Pods to those domains. If value is nil, the constraint behaves as if MinDomains is equal to 1. Valid values are integers greater than 0. When value is not nil, WhenUnsatisfiable must be DoNotSchedule. For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same labelSelector spread as 2/2/2: +-------+-------+-------+ zone1 | zone2 | zone3 | +-------+-------+-------+ P P | P P | P P | +-------+-------+-------+ The number of domains is less than 5(MinDomains), so \"global minimum\" is treated as 0. In this situation, new pod with the same labelSelector cannot be scheduled, because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, it will violate MaxSkew. This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). +optional # noqa: E501 + + :param min_domains: The min_domains of this TopologySpreadConstraint. # noqa: E501 + :type: int + """ + + self._min_domains = min_domains + + @property + def node_affinity_policy(self): + """Gets the node_affinity_policy of this TopologySpreadConstraint. # noqa: E501 + + + :return: The node_affinity_policy of this TopologySpreadConstraint. # noqa: E501 + :rtype: NodeInclusionPolicy + """ + return self._node_affinity_policy + + @node_affinity_policy.setter + def node_affinity_policy(self, node_affinity_policy): + """Sets the node_affinity_policy of this TopologySpreadConstraint. + + + :param node_affinity_policy: The node_affinity_policy of this TopologySpreadConstraint. # noqa: E501 + :type: NodeInclusionPolicy + """ + + self._node_affinity_policy = node_affinity_policy + + @property + def node_taints_policy(self): + """Gets the node_taints_policy of this TopologySpreadConstraint. # noqa: E501 + + + :return: The node_taints_policy of this TopologySpreadConstraint. # noqa: E501 + :rtype: NodeInclusionPolicy + """ + return self._node_taints_policy + + @node_taints_policy.setter + def node_taints_policy(self, node_taints_policy): + """Sets the node_taints_policy of this TopologySpreadConstraint. + + + :param node_taints_policy: The node_taints_policy of this TopologySpreadConstraint. # noqa: E501 + :type: NodeInclusionPolicy + """ + + self._node_taints_policy = node_taints_policy + @property def topology_key(self): """Gets the topology_key of this TopologySpreadConstraint. # noqa: E501 - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. It's a required field. # noqa: E501 + TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. # noqa: E501 :return: The topology_key of this TopologySpreadConstraint. # noqa: E501 :rtype: str @@ -121,7 +229,7 @@ def topology_key(self): def topology_key(self, topology_key): """Sets the topology_key of this TopologySpreadConstraint. - TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. It's a required field. # noqa: E501 + TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a \"bucket\", and try to put balanced number of pods into each bucket. We define a domain as a particular instance of a topology. Also, we define an eligible domain as a domain whose nodes meet the requirements of nodeAffinityPolicy and nodeTaintsPolicy. e.g. If TopologyKey is \"kubernetes.io/hostname\", each Node is a domain of that topology. And, if TopologyKey is \"topology.kubernetes.io/zone\", each zone is a domain of that topology. It's a required field. # noqa: E501 :param topology_key: The topology_key of this TopologySpreadConstraint. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/typed_object_reference.py b/python/seldon_deploy_sdk/models/typed_object_reference.py new file mode 100644 index 0000000..784c587 --- /dev/null +++ b/python/seldon_deploy_sdk/models/typed_object_reference.py @@ -0,0 +1,201 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class TypedObjectReference(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + 'api_group': 'str', + 'kind': 'str', + 'name': 'str', + 'namespace': 'str' + } + + attribute_map = { + 'api_group': 'apiGroup', + 'kind': 'kind', + 'name': 'name', + 'namespace': 'namespace' + } + + def __init__(self, api_group=None, kind=None, name=None, namespace=None): # noqa: E501 + """TypedObjectReference - a model defined in Swagger""" # noqa: E501 + + self._api_group = None + self._kind = None + self._name = None + self._namespace = None + self.discriminator = None + + if api_group is not None: + self.api_group = api_group + if kind is not None: + self.kind = kind + if name is not None: + self.name = name + if namespace is not None: + self.namespace = namespace + + @property + def api_group(self): + """Gets the api_group of this TypedObjectReference. # noqa: E501 + + APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. +optional # noqa: E501 + + :return: The api_group of this TypedObjectReference. # noqa: E501 + :rtype: str + """ + return self._api_group + + @api_group.setter + def api_group(self, api_group): + """Sets the api_group of this TypedObjectReference. + + APIGroup is the group for the resource being referenced. If APIGroup is not specified, the specified Kind must be in the core API group. For any other third-party types, APIGroup is required. +optional # noqa: E501 + + :param api_group: The api_group of this TypedObjectReference. # noqa: E501 + :type: str + """ + + self._api_group = api_group + + @property + def kind(self): + """Gets the kind of this TypedObjectReference. # noqa: E501 + + Kind is the type of resource being referenced # noqa: E501 + + :return: The kind of this TypedObjectReference. # noqa: E501 + :rtype: str + """ + return self._kind + + @kind.setter + def kind(self, kind): + """Sets the kind of this TypedObjectReference. + + Kind is the type of resource being referenced # noqa: E501 + + :param kind: The kind of this TypedObjectReference. # noqa: E501 + :type: str + """ + + self._kind = kind + + @property + def name(self): + """Gets the name of this TypedObjectReference. # noqa: E501 + + Name is the name of resource being referenced # noqa: E501 + + :return: The name of this TypedObjectReference. # noqa: E501 + :rtype: str + """ + return self._name + + @name.setter + def name(self, name): + """Sets the name of this TypedObjectReference. + + Name is the name of resource being referenced # noqa: E501 + + :param name: The name of this TypedObjectReference. # noqa: E501 + :type: str + """ + + self._name = name + + @property + def namespace(self): + """Gets the namespace of this TypedObjectReference. # noqa: E501 + + Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. +featureGate=CrossNamespaceVolumeDataSource +optional # noqa: E501 + + :return: The namespace of this TypedObjectReference. # noqa: E501 + :rtype: str + """ + return self._namespace + + @namespace.setter + def namespace(self, namespace): + """Sets the namespace of this TypedObjectReference. + + Namespace is the namespace of resource being referenced Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. +featureGate=CrossNamespaceVolumeDataSource +optional # noqa: E501 + + :param namespace: The namespace of this TypedObjectReference. # noqa: E501 + :type: str + """ + + self._namespace = namespace + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(TypedObjectReference, dict): + for key, value in self.items(): + result[key] = 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, TypedObjectReference): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/seldon_deploy_sdk/models/volume.py b/python/seldon_deploy_sdk/models/volume.py index 21fc864..a6c732c 100644 --- a/python/seldon_deploy_sdk/models/volume.py +++ b/python/seldon_deploy_sdk/models/volume.py @@ -574,7 +574,7 @@ def iscsi(self, iscsi): def name(self): """Gets the name of this Volume. # noqa: E501 - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 :return: The name of this Volume. # noqa: E501 :rtype: str @@ -585,7 +585,7 @@ def name(self): def name(self, name): """Sets the name of this Volume. - Volume's name. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 + name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names # noqa: E501 :param name: The name of this Volume. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/vsphere_virtual_disk_volume_source.py b/python/seldon_deploy_sdk/models/vsphere_virtual_disk_volume_source.py index f5758ef..eb856fa 100644 --- a/python/seldon_deploy_sdk/models/vsphere_virtual_disk_volume_source.py +++ b/python/seldon_deploy_sdk/models/vsphere_virtual_disk_volume_source.py @@ -66,7 +66,7 @@ def __init__(self, fs_type=None, storage_policy_id=None, storage_policy_name=Non def fs_type(self): """Gets the fs_type of this VsphereVirtualDiskVolumeSource. # noqa: E501 - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional # noqa: E501 + fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional # noqa: E501 :return: The fs_type of this VsphereVirtualDiskVolumeSource. # noqa: E501 :rtype: str @@ -77,7 +77,7 @@ def fs_type(self): def fs_type(self, fs_type): """Sets the fs_type of this VsphereVirtualDiskVolumeSource. - Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional # noqa: E501 + fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. \"ext4\", \"xfs\", \"ntfs\". Implicitly inferred to be \"ext4\" if unspecified. +optional # noqa: E501 :param fs_type: The fs_type of this VsphereVirtualDiskVolumeSource. # noqa: E501 :type: str @@ -89,7 +89,7 @@ def fs_type(self, fs_type): def storage_policy_id(self): """Gets the storage_policy_id of this VsphereVirtualDiskVolumeSource. # noqa: E501 - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. +optional # noqa: E501 + storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. +optional # noqa: E501 :return: The storage_policy_id of this VsphereVirtualDiskVolumeSource. # noqa: E501 :rtype: str @@ -100,7 +100,7 @@ def storage_policy_id(self): def storage_policy_id(self, storage_policy_id): """Sets the storage_policy_id of this VsphereVirtualDiskVolumeSource. - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. +optional # noqa: E501 + storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. +optional # noqa: E501 :param storage_policy_id: The storage_policy_id of this VsphereVirtualDiskVolumeSource. # noqa: E501 :type: str @@ -112,7 +112,7 @@ def storage_policy_id(self, storage_policy_id): def storage_policy_name(self): """Gets the storage_policy_name of this VsphereVirtualDiskVolumeSource. # noqa: E501 - Storage Policy Based Management (SPBM) profile name. +optional # noqa: E501 + storagePolicyName is the storage Policy Based Management (SPBM) profile name. +optional # noqa: E501 :return: The storage_policy_name of this VsphereVirtualDiskVolumeSource. # noqa: E501 :rtype: str @@ -123,7 +123,7 @@ def storage_policy_name(self): def storage_policy_name(self, storage_policy_name): """Sets the storage_policy_name of this VsphereVirtualDiskVolumeSource. - Storage Policy Based Management (SPBM) profile name. +optional # noqa: E501 + storagePolicyName is the storage Policy Based Management (SPBM) profile name. +optional # noqa: E501 :param storage_policy_name: The storage_policy_name of this VsphereVirtualDiskVolumeSource. # noqa: E501 :type: str @@ -135,7 +135,7 @@ def storage_policy_name(self, storage_policy_name): def volume_path(self): """Gets the volume_path of this VsphereVirtualDiskVolumeSource. # noqa: E501 - Path that identifies vSphere volume vmdk # noqa: E501 + volumePath is the path that identifies vSphere volume vmdk # noqa: E501 :return: The volume_path of this VsphereVirtualDiskVolumeSource. # noqa: E501 :rtype: str @@ -146,7 +146,7 @@ def volume_path(self): def volume_path(self, volume_path): """Sets the volume_path of this VsphereVirtualDiskVolumeSource. - Path that identifies vSphere volume vmdk # noqa: E501 + volumePath is the path that identifies vSphere volume vmdk # noqa: E501 :param volume_path: The volume_path of this VsphereVirtualDiskVolumeSource. # noqa: E501 :type: str diff --git a/python/seldon_deploy_sdk/models/windows_security_context_options.py b/python/seldon_deploy_sdk/models/windows_security_context_options.py index d3d3502..4061b73 100644 --- a/python/seldon_deploy_sdk/models/windows_security_context_options.py +++ b/python/seldon_deploy_sdk/models/windows_security_context_options.py @@ -33,20 +33,23 @@ class WindowsSecurityContextOptions(object): swagger_types = { 'gmsa_credential_spec': 'str', 'gmsa_credential_spec_name': 'str', + 'host_process': 'bool', 'run_as_user_name': 'str' } attribute_map = { 'gmsa_credential_spec': 'gmsaCredentialSpec', 'gmsa_credential_spec_name': 'gmsaCredentialSpecName', + 'host_process': 'hostProcess', 'run_as_user_name': 'runAsUserName' } - def __init__(self, gmsa_credential_spec=None, gmsa_credential_spec_name=None, run_as_user_name=None): # noqa: E501 + def __init__(self, gmsa_credential_spec=None, gmsa_credential_spec_name=None, host_process=None, run_as_user_name=None): # noqa: E501 """WindowsSecurityContextOptions - a model defined in Swagger""" # noqa: E501 self._gmsa_credential_spec = None self._gmsa_credential_spec_name = None + self._host_process = None self._run_as_user_name = None self.discriminator = None @@ -54,6 +57,8 @@ def __init__(self, gmsa_credential_spec=None, gmsa_credential_spec_name=None, ru self.gmsa_credential_spec = gmsa_credential_spec if gmsa_credential_spec_name is not None: self.gmsa_credential_spec_name = gmsa_credential_spec_name + if host_process is not None: + self.host_process = host_process if run_as_user_name is not None: self.run_as_user_name = run_as_user_name @@ -103,6 +108,29 @@ def gmsa_credential_spec_name(self, gmsa_credential_spec_name): self._gmsa_credential_spec_name = gmsa_credential_spec_name + @property + def host_process(self): + """Gets the host_process of this WindowsSecurityContextOptions. # noqa: E501 + + HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. +optional # noqa: E501 + + :return: The host_process of this WindowsSecurityContextOptions. # noqa: E501 + :rtype: bool + """ + return self._host_process + + @host_process.setter + def host_process(self, host_process): + """Sets the host_process of this WindowsSecurityContextOptions. + + HostProcess determines if a container should be run as a 'Host Process' container. All of a Pod's containers must have the same effective HostProcess value (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). In addition, if HostProcess is true then HostNetwork must also be set to true. +optional # noqa: E501 + + :param host_process: The host_process of this WindowsSecurityContextOptions. # noqa: E501 + :type: bool + """ + + self._host_process = host_process + @property def run_as_user_name(self): """Gets the run_as_user_name of this WindowsSecurityContextOptions. # noqa: E501 diff --git a/python/seldon_deploy_sdk/models/workflow_phase.py b/python/seldon_deploy_sdk/models/workflow_phase.py new file mode 100644 index 0000000..2a74d91 --- /dev/null +++ b/python/seldon_deploy_sdk/models/workflow_phase.py @@ -0,0 +1,87 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +import pprint +import re # noqa: F401 + +import six + + +class WorkflowPhase(object): + """NOTE: This class is auto generated by the swagger code generator program. + + Do not edit the class manually. + """ + + """ + Attributes: + swagger_types (dict): The key is attribute name + and the value is attribute type. + attribute_map (dict): The key is attribute name + and the value is json key in definition. + """ + swagger_types = { + } + + attribute_map = { + } + + def __init__(self): # noqa: E501 + """WorkflowPhase - a model defined in Swagger""" # noqa: E501 + self.discriminator = None + + def to_dict(self): + """Returns the model properties as a dict""" + result = {} + + for attr, _ in six.iteritems(self.swagger_types): + value = getattr(self, attr) + if isinstance(value, list): + result[attr] = list(map( + lambda x: x.to_dict() if hasattr(x, "to_dict") else x, + value + )) + elif hasattr(value, "to_dict"): + result[attr] = value.to_dict() + elif isinstance(value, dict): + result[attr] = dict(map( + lambda item: (item[0], item[1].to_dict()) + if hasattr(item[1], "to_dict") else item, + value.items() + )) + else: + result[attr] = value + if issubclass(WorkflowPhase, dict): + for key, value in self.items(): + result[key] = 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, WorkflowPhase): + return False + + return self.__dict__ == other.__dict__ + + def __ne__(self, other): + """Returns true if both objects are not equal""" + return not self == other diff --git a/python/setup.py b/python/setup.py index 22ccfff..7b8f94d 100644 --- a/python/setup.py +++ b/python/setup.py @@ -14,7 +14,7 @@ from setuptools import setup, find_packages # noqa: H301 NAME = "seldon-deploy-sdk" -VERSION = "2.2.0rc9" +VERSION = "2.2.0" # To install the library, run the following # # python setup.py install diff --git a/python/test/test_claim_source.py b/python/test/test_claim_source.py new file mode 100644 index 0000000..0b074c7 --- /dev/null +++ b/python/test/test_claim_source.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.claim_source import ClaimSource # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestClaimSource(unittest.TestCase): + """ClaimSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testClaimSource(self): + """Test ClaimSource""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.claim_source.ClaimSource() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_container_resize_policy.py b/python/test/test_container_resize_policy.py new file mode 100644 index 0000000..9591668 --- /dev/null +++ b/python/test/test_container_resize_policy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.container_resize_policy import ContainerResizePolicy # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestContainerResizePolicy(unittest.TestCase): + """ContainerResizePolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContainerResizePolicy(self): + """Test ContainerResizePolicy""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.container_resize_policy.ContainerResizePolicy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_container_resource_metric_source.py b/python/test/test_container_resource_metric_source.py new file mode 100644 index 0000000..b3c7d62 --- /dev/null +++ b/python/test/test_container_resource_metric_source.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.container_resource_metric_source import ContainerResourceMetricSource # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestContainerResourceMetricSource(unittest.TestCase): + """ContainerResourceMetricSource unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContainerResourceMetricSource(self): + """Test ContainerResourceMetricSource""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.container_resource_metric_source.ContainerResourceMetricSource() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_container_restart_policy.py b/python/test/test_container_restart_policy.py new file mode 100644 index 0000000..b09f92f --- /dev/null +++ b/python/test/test_container_restart_policy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.container_restart_policy import ContainerRestartPolicy # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestContainerRestartPolicy(unittest.TestCase): + """ContainerRestartPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testContainerRestartPolicy(self): + """Test ContainerRestartPolicy""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.container_restart_policy.ContainerRestartPolicy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_grpc_action.py b/python/test/test_grpc_action.py new file mode 100644 index 0000000..7938832 --- /dev/null +++ b/python/test/test_grpc_action.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.grpc_action import GRPCAction # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestGRPCAction(unittest.TestCase): + """GRPCAction unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testGRPCAction(self): + """Test GRPCAction""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.grpc_action.GRPCAction() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_handler.py b/python/test/test_host_ip.py similarity index 70% rename from python/test/test_handler.py rename to python/test/test_host_ip.py index d8c992b..b57743b 100644 --- a/python/test/test_handler.py +++ b/python/test/test_host_ip.py @@ -16,12 +16,12 @@ import unittest import seldon_deploy_sdk -from seldon_deploy_sdk.models.handler import Handler # noqa: E501 +from seldon_deploy_sdk.models.host_ip import HostIP # noqa: E501 from seldon_deploy_sdk.rest import ApiException -class TestHandler(unittest.TestCase): - """Handler unit test stubs""" +class TestHostIP(unittest.TestCase): + """HostIP unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testHandler(self): - """Test Handler""" + def testHostIP(self): + """Test HostIP""" # FIXME: construct object with mandatory attributes with example values - # model = seldon_deploy_sdk.models.handler.Handler() # noqa: E501 + # model = seldon_deploy_sdk.models.host_ip.HostIP() # noqa: E501 pass diff --git a/python/test/test_ip_family_policy.py b/python/test/test_ip_family_policy.py new file mode 100644 index 0000000..6c33b59 --- /dev/null +++ b/python/test/test_ip_family_policy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.ip_family_policy import IPFamilyPolicy # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestIPFamilyPolicy(unittest.TestCase): + """IPFamilyPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testIPFamilyPolicy(self): + """Test IPFamilyPolicy""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.ip_family_policy.IPFamilyPolicy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_lifecycle_handler.py b/python/test/test_lifecycle_handler.py new file mode 100644 index 0000000..3e10c8c --- /dev/null +++ b/python/test/test_lifecycle_handler.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.lifecycle_handler import LifecycleHandler # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestLifecycleHandler(unittest.TestCase): + """LifecycleHandler unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testLifecycleHandler(self): + """Test LifecycleHandler""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.lifecycle_handler.LifecycleHandler() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_metric_identifier.py b/python/test/test_metric_identifier.py new file mode 100644 index 0000000..f109941 --- /dev/null +++ b/python/test/test_metric_identifier.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.metric_identifier import MetricIdentifier # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestMetricIdentifier(unittest.TestCase): + """MetricIdentifier unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMetricIdentifier(self): + """Test MetricIdentifier""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.metric_identifier.MetricIdentifier() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_metric_target.py b/python/test/test_metric_target.py new file mode 100644 index 0000000..f0a0539 --- /dev/null +++ b/python/test/test_metric_target.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.metric_target import MetricTarget # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestMetricTarget(unittest.TestCase): + """MetricTarget unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testMetricTarget(self): + """Test MetricTarget""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.metric_target.MetricTarget() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_node_inclusion_policy.py b/python/test/test_node_inclusion_policy.py new file mode 100644 index 0000000..fb1e085 --- /dev/null +++ b/python/test/test_node_inclusion_policy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.node_inclusion_policy import NodeInclusionPolicy # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestNodeInclusionPolicy(unittest.TestCase): + """NodeInclusionPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testNodeInclusionPolicy(self): + """Test NodeInclusionPolicy""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.node_inclusion_policy.NodeInclusionPolicy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_os_name.py b/python/test/test_os_name.py new file mode 100644 index 0000000..041a579 --- /dev/null +++ b/python/test/test_os_name.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.os_name import OSName # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestOSName(unittest.TestCase): + """OSName unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testOSName(self): + """Test OSName""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.os_name.OSName() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_node_phase.py b/python/test/test_pod_os.py similarity index 70% rename from python/test/test_node_phase.py rename to python/test/test_pod_os.py index e6084ac..ab939e9 100644 --- a/python/test/test_node_phase.py +++ b/python/test/test_pod_os.py @@ -16,12 +16,12 @@ import unittest import seldon_deploy_sdk -from seldon_deploy_sdk.models.node_phase import NodePhase # noqa: E501 +from seldon_deploy_sdk.models.pod_os import PodOS # noqa: E501 from seldon_deploy_sdk.rest import ApiException -class TestNodePhase(unittest.TestCase): - """NodePhase unit test stubs""" +class TestPodOS(unittest.TestCase): + """PodOS unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testNodePhase(self): - """Test NodePhase""" + def testPodOS(self): + """Test PodOS""" # FIXME: construct object with mandatory attributes with example values - # model = seldon_deploy_sdk.models.node_phase.NodePhase() # noqa: E501 + # model = seldon_deploy_sdk.models.pod_os.PodOS() # noqa: E501 pass diff --git a/python/test/test_pod_resize_status.py b/python/test/test_pod_resize_status.py new file mode 100644 index 0000000..6fa1b73 --- /dev/null +++ b/python/test/test_pod_resize_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.pod_resize_status import PodResizeStatus # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestPodResizeStatus(unittest.TestCase): + """PodResizeStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPodResizeStatus(self): + """Test PodResizeStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.pod_resize_status.PodResizeStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_pod_resource_claim.py b/python/test/test_pod_resource_claim.py new file mode 100644 index 0000000..47af52b --- /dev/null +++ b/python/test/test_pod_resource_claim.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.pod_resource_claim import PodResourceClaim # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestPodResourceClaim(unittest.TestCase): + """PodResourceClaim unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPodResourceClaim(self): + """Test PodResourceClaim""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.pod_resource_claim.PodResourceClaim() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_pod_resource_claim_status.py b/python/test/test_pod_resource_claim_status.py new file mode 100644 index 0000000..46aa5e2 --- /dev/null +++ b/python/test/test_pod_resource_claim_status.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.pod_resource_claim_status import PodResourceClaimStatus # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestPodResourceClaimStatus(unittest.TestCase): + """PodResourceClaimStatus unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPodResourceClaimStatus(self): + """Test PodResourceClaimStatus""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.pod_resource_claim_status.PodResourceClaimStatus() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_pod_scheduling_gate.py b/python/test/test_pod_scheduling_gate.py new file mode 100644 index 0000000..4a02fa8 --- /dev/null +++ b/python/test/test_pod_scheduling_gate.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.pod_scheduling_gate import PodSchedulingGate # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestPodSchedulingGate(unittest.TestCase): + """PodSchedulingGate unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testPodSchedulingGate(self): + """Test PodSchedulingGate""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.pod_scheduling_gate.PodSchedulingGate() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_resource_claim.py b/python/test/test_resource_claim.py new file mode 100644 index 0000000..e8e086f --- /dev/null +++ b/python/test/test_resource_claim.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.resource_claim import ResourceClaim # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestResourceClaim(unittest.TestCase): + """ResourceClaim unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResourceClaim(self): + """Test ResourceClaim""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.resource_claim.ResourceClaim() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_resource_resize_restart_policy.py b/python/test/test_resource_resize_restart_policy.py new file mode 100644 index 0000000..3802d8b --- /dev/null +++ b/python/test/test_resource_resize_restart_policy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.resource_resize_restart_policy import ResourceResizeRestartPolicy # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestResourceResizeRestartPolicy(unittest.TestCase): + """ResourceResizeRestartPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testResourceResizeRestartPolicy(self): + """Test ResourceResizeRestartPolicy""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.resource_resize_restart_policy.ResourceResizeRestartPolicy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_service_external_traffic_policy_type.py b/python/test/test_service_external_traffic_policy.py similarity index 63% rename from python/test/test_service_external_traffic_policy_type.py rename to python/test/test_service_external_traffic_policy.py index 3d6d0ed..9e6ba18 100644 --- a/python/test/test_service_external_traffic_policy_type.py +++ b/python/test/test_service_external_traffic_policy.py @@ -16,12 +16,12 @@ import unittest import seldon_deploy_sdk -from seldon_deploy_sdk.models.service_external_traffic_policy_type import ServiceExternalTrafficPolicyType # noqa: E501 +from seldon_deploy_sdk.models.service_external_traffic_policy import ServiceExternalTrafficPolicy # noqa: E501 from seldon_deploy_sdk.rest import ApiException -class TestServiceExternalTrafficPolicyType(unittest.TestCase): - """ServiceExternalTrafficPolicyType unit test stubs""" +class TestServiceExternalTrafficPolicy(unittest.TestCase): + """ServiceExternalTrafficPolicy unit test stubs""" def setUp(self): pass @@ -29,10 +29,10 @@ def setUp(self): def tearDown(self): pass - def testServiceExternalTrafficPolicyType(self): - """Test ServiceExternalTrafficPolicyType""" + def testServiceExternalTrafficPolicy(self): + """Test ServiceExternalTrafficPolicy""" # FIXME: construct object with mandatory attributes with example values - # model = seldon_deploy_sdk.models.service_external_traffic_policy_type.ServiceExternalTrafficPolicyType() # noqa: E501 + # model = seldon_deploy_sdk.models.service_external_traffic_policy.ServiceExternalTrafficPolicy() # noqa: E501 pass diff --git a/python/test/test_service_internal_traffic_policy.py b/python/test/test_service_internal_traffic_policy.py new file mode 100644 index 0000000..200bab0 --- /dev/null +++ b/python/test/test_service_internal_traffic_policy.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.service_internal_traffic_policy import ServiceInternalTrafficPolicy # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestServiceInternalTrafficPolicy(unittest.TestCase): + """ServiceInternalTrafficPolicy unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testServiceInternalTrafficPolicy(self): + """Test ServiceInternalTrafficPolicy""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.service_internal_traffic_policy.ServiceInternalTrafficPolicy() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_typed_object_reference.py b/python/test/test_typed_object_reference.py new file mode 100644 index 0000000..53f005a --- /dev/null +++ b/python/test/test_typed_object_reference.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.typed_object_reference import TypedObjectReference # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestTypedObjectReference(unittest.TestCase): + """TypedObjectReference unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testTypedObjectReference(self): + """Test TypedObjectReference""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.typed_object_reference.TypedObjectReference() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/python/test/test_workflow_phase.py b/python/test/test_workflow_phase.py new file mode 100644 index 0000000..549c0d9 --- /dev/null +++ b/python/test/test_workflow_phase.py @@ -0,0 +1,40 @@ +# coding: utf-8 + +""" + Seldon Deploy API + + API to interact and manage the lifecycle of your machine learning models deployed through Seldon Deploy. # noqa: E501 + + OpenAPI spec version: v1alpha1 + Contact: hello@seldon.io + Generated by: https://github.com/swagger-api/swagger-codegen.git +""" + + +from __future__ import absolute_import + +import unittest + +import seldon_deploy_sdk +from seldon_deploy_sdk.models.workflow_phase import WorkflowPhase # noqa: E501 +from seldon_deploy_sdk.rest import ApiException + + +class TestWorkflowPhase(unittest.TestCase): + """WorkflowPhase unit test stubs""" + + def setUp(self): + pass + + def tearDown(self): + pass + + def testWorkflowPhase(self): + """Test WorkflowPhase""" + # FIXME: construct object with mandatory attributes with example values + # model = seldon_deploy_sdk.models.workflow_phase.WorkflowPhase() # noqa: E501 + pass + + +if __name__ == '__main__': + unittest.main() diff --git a/swagger-v1alpha1.yml b/swagger-v1alpha1.yml index adbe89b..bd857b2 100644 --- a/swagger-v1alpha1.yml +++ b/swagger-v1alpha1.yml @@ -11,7 +11,7 @@ definitions: properties: fsType: description: |- - Filesystem type of the volume that you want to mount. + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore @@ -20,7 +20,7 @@ definitions: type: string partition: description: |- - The partition in the volume that you want to mount. + partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). @@ -29,14 +29,13 @@ definitions: type: integer readOnly: description: |- - Specify "true" to force and set the ReadOnly property in VolumeMounts to "true". - If omitted, the default is "false". + readOnly value true will force the readOnly setting in VolumeMounts. More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore +optional type: boolean volumeID: description: |- - Unique ID of the persistent disk resource in AWS (Amazon EBS volume). + volumeID is unique ID of the persistent disk resource in AWS (Amazon EBS volume). More info: https://kubernetes.io/docs/concepts/storage/volumes#awselasticblockstore type: string title: Represents a Persistent Disk resource in AWS. @@ -125,22 +124,24 @@ definitions: type: string type: object AzureDataDiskCachingMode: + description: +enum type: string AzureDataDiskKind: + description: +enum type: string AzureDiskVolumeSource: properties: cachingMode: $ref: '#/definitions/AzureDataDiskCachingMode' diskName: - description: The Name of the data disk in the blob storage + description: diskName is the Name of the data disk in the blob storage type: string diskURI: - description: The URI the data disk in the blob storage + description: diskURI is the URI of data disk in the blob storage type: string fsType: description: |- - Filesystem type to mount. + fsType is Filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. +optional @@ -149,7 +150,7 @@ definitions: $ref: '#/definitions/AzureDataDiskKind' readOnly: description: |- - Defaults to false (read/write). ReadOnly here will force + readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional type: boolean @@ -159,15 +160,15 @@ definitions: properties: readOnly: description: |- - Defaults to false (read/write). ReadOnly here will force + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional type: boolean secretName: - description: the name of secret that contains Azure Storage Account Name and Key + description: secretName is the name of secret that contains Azure Storage Account Name and Key type: string shareName: - description: Share Name + description: shareName is the azure share Name type: string title: AzureFile represents an Azure File Service mount on the host and bind mount to the pod. type: object @@ -253,7 +254,7 @@ definitions: description: Name of related Argo Workflow type: string workflowStatus: - $ref: '#/definitions/NodePhase' + $ref: '#/definitions/WorkflowPhase' workflowUID: $ref: '#/definitions/UID' type: object @@ -316,12 +317,12 @@ definitions: properties: driver: description: |- - Driver is the name of the CSI driver that handles this volume. + driver is the name of the CSI driver that handles this volume. Consult with your admin for the correct name as registered in the cluster. type: string fsType: description: |- - Filesystem type to mount. Ex. "ext4", "xfs", "ntfs". + fsType to mount. Ex. "ext4", "xfs", "ntfs". If not provided, the empty value is passed to the associated CSI driver which will determine the default filesystem to apply. +optional @@ -330,7 +331,7 @@ definitions: $ref: '#/definitions/LocalObjectReference' readOnly: description: |- - Specifies a read-only configuration for the volume. + readOnly specifies a read-only configuration for the volume. Defaults to false (read/write). +optional type: boolean @@ -338,7 +339,7 @@ definitions: additionalProperties: type: string description: |- - VolumeAttributes stores driver-specific properties that are passed to the CSI + volumeAttributes stores driver-specific properties that are passed to the CSI driver. Consult your driver's documentation for supported values. +optional type: object @@ -371,26 +372,26 @@ definitions: properties: monitors: description: |- - Required: Monitors is a collection of Ceph monitors + monitors is Required: Monitors is a collection of Ceph monitors More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it items: type: string type: array path: description: |- - Optional: Used as the mounted root, rather than the full Ceph tree, default is / + path is Optional: Used as the mounted root, rather than the full Ceph tree, default is / +optional type: string readOnly: description: |- - Optional: Defaults to false (read/write). ReadOnly here will force + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional type: boolean secretFile: description: |- - Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret + secretFile is Optional: SecretFile is the path to key ring for User, default is /etc/ceph/user.secret More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional type: string @@ -398,7 +399,7 @@ definitions: $ref: '#/definitions/LocalObjectReference' user: description: |- - Optional: User is the rados user name, default is admin + user is optional: User is the rados user name, default is admin More info: https://examples.k8s.io/volumes/cephfs/README.md#how-to-use-it +optional type: string @@ -411,7 +412,7 @@ definitions: properties: fsType: description: |- - Filesystem type to mount. + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://examples.k8s.io/mysql-cinder-pd/README.md @@ -419,7 +420,7 @@ definitions: type: string readOnly: description: |- - Optional: Defaults to false (read/write). ReadOnly here will force + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. More info: https://examples.k8s.io/mysql-cinder-pd/README.md +optional @@ -428,11 +429,38 @@ definitions: $ref: '#/definitions/LocalObjectReference' volumeID: description: |- - volume id used to identify the volume in cinder. + volumeID used to identify the volume in cinder. More info: https://examples.k8s.io/mysql-cinder-pd/README.md type: string title: Represents a cinder volume resource in Openstack. type: object + ClaimSource: + description: |- + Exactly one of these fields should be set. Consumers of this type must + treat an empty object as if it has an unknown value. + properties: + resourceClaimName: + description: |- + ResourceClaimName is the name of a ResourceClaim object in the same + namespace as this pod. + type: string + resourceClaimTemplateName: + description: |- + ResourceClaimTemplateName is the name of a ResourceClaimTemplate + object in the same namespace as this pod. + + The template will be used to create a new ResourceClaim, which will + be bound to this pod. When this pod is deleted, the ResourceClaim + will also be deleted. The pod name and resource name, along with a + generated component, will be used to form a unique name for the + ResourceClaim, which will be recorded in pod.status.resourceClaimStatuses. + + This field is immutable and no changes will be made to the + corresponding ResourceClaim by the control plane after creating the + ResourceClaim. + type: string + title: ClaimSource describes a reference to a ResourceClaim. + type: object ClientIPConfig: properties: timeoutSeconds: @@ -490,6 +518,7 @@ definitions: variables with. type: object ConfigMapKeySelector: + description: +structType=atomic properties: key: description: The key to select. @@ -518,7 +547,7 @@ definitions: properties: items: description: |- - If unspecified, each key-value pair in the Data field of the referenced + items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be @@ -538,7 +567,7 @@ definitions: type: string optional: description: |- - Specify whether the ConfigMap or its keys must be defined + optional specify whether the ConfigMap or its keys must be defined +optional type: boolean title: Adapts a ConfigMap into a projected volume. @@ -552,7 +581,7 @@ definitions: properties: defaultMode: description: |- - Optional: mode bits used to set permissions on created files by default. + defaultMode is optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. @@ -564,7 +593,7 @@ definitions: type: integer items: description: |- - If unspecified, each key-value pair in the Data field of the referenced + items if unspecified, each key-value pair in the Data field of the referenced ConfigMap will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be @@ -584,7 +613,7 @@ definitions: type: string optional: description: |- - Specify whether the ConfigMap or its keys must be defined + optional specify whether the ConfigMap or its keys must be defined +optional type: boolean title: Adapts a ConfigMap into a volume. @@ -594,12 +623,12 @@ definitions: args: description: |- Arguments to the entrypoint. - The docker image's CMD is used if this is not provided. + The container image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax - can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - regardless of whether the variable exists or not. - Cannot be updated. + cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will + produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless + of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional items: @@ -608,12 +637,12 @@ definitions: command: description: |- Entrypoint array. Not executed within a shell. - The docker image's ENTRYPOINT is used if this is not provided. + The container image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax - can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - regardless of whether the variable exists or not. - Cannot be updated. + cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will + produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless + of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional items: @@ -643,7 +672,7 @@ definitions: type: array image: description: |- - Docker image name. + Container image name. More info: https://kubernetes.io/docs/concepts/containers/images This field is optional to allow higher level config management to default or override container images in workload controllers like Deployments and StatefulSets. @@ -663,12 +692,12 @@ definitions: type: string ports: description: |- - List of ports to expose from the container. Exposing a port here gives - the system additional information about the network connections a - container uses, but is primarily informational. Not specifying a port here + List of ports to expose from the container. Not specifying a port here DOES NOT prevent that port from being exposed. Any port which is listening on the default "0.0.0.0" address inside a container will be accessible from the network. + Modifying this array with strategic merge patch may corrupt the data. + For more information See https://github.com/kubernetes/kubernetes/issues/108255. Cannot be updated. +optional +patchMergeKey=containerPort @@ -681,8 +710,19 @@ definitions: type: array readinessProbe: $ref: '#/definitions/Probe' + resizePolicy: + description: |- + Resources resize policy for the container. + +featureGate=InPlacePodVerticalScaling + +optional + +listType=atomic + items: + $ref: '#/definitions/ContainerResizePolicy' + type: array resources: $ref: '#/definitions/ResourceRequirements' + restartPolicy: + $ref: '#/definitions/ContainerRestartPolicy' securityContext: $ref: '#/definitions/SecurityContext' startupProbe: @@ -786,6 +826,36 @@ definitions: $ref: '#/definitions/Protocol' title: ContainerPort represents a network port in a single container. type: object + ContainerResizePolicy: + properties: + resourceName: + $ref: '#/definitions/ResourceName' + restartPolicy: + $ref: '#/definitions/ResourceResizeRestartPolicy' + title: ContainerResizePolicy represents resource resize policy for the container. + type: object + ContainerResourceMetricSource: + description: |- + ContainerResourceMetricSource indicates how to scale on a resource metric known to + Kubernetes, as specified in requests and limits, describing each pod in the + current scale target (e.g. CPU or memory). The values will be averaged + together before being compared to the target. Such metrics are built in to + Kubernetes, and have special scaling options on top of those available to + normal per-pod metrics using the "pods" source. Only one "target" type + should be set. + properties: + container: + description: container is the name of the container in the pods of the scaling target + type: string + name: + $ref: '#/definitions/ResourceName' + target: + $ref: '#/definitions/MetricTarget' + type: object + ContainerRestartPolicy: + description: This may only be set for init containers and only allowed value is "Always". + title: ContainerRestartPolicy is the restart policy for a single container. + type: string ContainerState: description: |- Only one of its members may be specified. @@ -812,7 +882,7 @@ definitions: properties: containerID: description: |- - Container's ID in the format 'docker://' + Container's ID in the format '://' +optional type: string exitCode: @@ -863,44 +933,66 @@ definitions: type: object ContainerStatus: properties: + allocatedResources: + $ref: '#/definitions/ResourceList' containerID: description: |- - Container's ID in the format 'docker://'. + ContainerID is the ID of the container in the format '://'. + Where type is a container runtime identifier, returned from Version call of CRI API + (for example "containerd"). +optional type: string image: description: |- - The image the container is running. - More info: https://kubernetes.io/docs/concepts/containers/images - TODO(dchen1107): Which image the container is running with? + Image is the name of container image that the container is running. + The container image may not match the image used in the PodSpec, + as it may have been resolved by the runtime. + More info: https://kubernetes.io/docs/concepts/containers/images. type: string imageID: - description: ImageID of the container's image. + description: |- + ImageID is the image ID of the container's image. The image ID may not + match the image ID of the image used in the PodSpec, as it may have been + resolved by the runtime. type: string lastState: $ref: '#/definitions/ContainerState' name: description: |- - This must be a DNS_LABEL. Each container in a pod must have a unique name. + Name is a DNS_LABEL representing the unique name of the container. + Each container in a pod must have a unique name across all container types. Cannot be updated. type: string ready: - description: Specifies whether the container has passed its readiness probe. + description: |- + Ready specifies whether the container is currently passing its readiness check. + The value will change as readiness probes keep executing. If no readiness + probes are specified, this field defaults to true once the container is + fully started (see Started field). + + The value is typically used to determine whether a container is ready to + accept traffic. type: boolean + resources: + $ref: '#/definitions/ResourceRequirements' restartCount: description: |- - The number of times the container has been restarted, currently based on - the number of dead containers that have not yet been removed. - Note that this is calculated from dead containers. But those containers are subject to - garbage collection. This value will get capped at 5 by GC. + RestartCount holds the number of times the container has been restarted. + Kubelet makes an effort to always increment the value, but there + are cases when the state may be lost due to node restarts and then the value + may be reset to 0. The value is never negative. format: int32 type: integer started: description: |- - Specifies whether the container has passed its startup probe. - Initialized as false, becomes true after startupProbe is considered successful. - Resets to false when the container is restarted, or if kubelet loses state temporarily. - Is always true when no startupProbe is defined. + Started indicates whether the container has finished its postStart lifecycle hook + and passed its startup probe. + Initialized as false, becomes true after startupProbe is considered + successful. Resets to false when the container is restarted, or if kubelet + loses state temporarily. In both cases, startup probes will run again. + Is always true when no startupProbe is defined and container is running and + has passed the postStart lifecycle hook. The null value must be treated the + same as false. +optional type: boolean state: @@ -911,18 +1003,19 @@ definitions: properties: apiVersion: description: |- - API version of the referent + apiVersion is the API version of the referent +optional type: string kind: - description: 'Kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds"' + description: 'kind is the kind of the referent; More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds' type: string name: - description: 'Name of the referent; More info: http://kubernetes.io/docs/user-guide/identifiers#names' + description: 'name is the name of the referent; More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names' type: string title: CrossVersionObjectReference contains enough information to let you identify the referred resource. type: object DNSPolicy: + description: +enum title: DNSPolicy defines how a pod's DNS will be configured. type: string Deployment: @@ -934,7 +1027,7 @@ definitions: Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. - More info: http://kubernetes.io/docs/user-guide/annotations + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional type: object apiVersion: @@ -945,13 +1038,6 @@ definitions: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources +optional type: string - clusterName: - description: |- - The name of the cluster which the object belongs to. - This is used to distinguish resources with same name and namespace in different clusters. - This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - +optional - type: string creationTimestamp: description: |- CreationTimestamp is a timestamp representing the server time when this object was @@ -1025,10 +1111,7 @@ definitions: and may be truncated by the length of the suffix required to make the value unique on the server. - If this field is specified and the generated name exists, the server will - NOT return a 409 - instead, it will either return 201 Created or 500 with Reason - ServerTimeout indicating a unique name could not be found in the time allotted, and the client - should retry (optionally after the time indicated in the Retry-After header). + If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency @@ -1057,7 +1140,7 @@ definitions: Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. - More info: http://kubernetes.io/docs/user-guide/labels + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional type: object managedFields: @@ -1081,7 +1164,7 @@ definitions: automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/identifiers#names + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional type: string namespace: @@ -1093,7 +1176,7 @@ definitions: Must be a DNS_LABEL. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/namespaces + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional type: string ownerReferences: @@ -1124,13 +1207,7 @@ definitions: type: string selfLink: description: |- - SelfLink is a URL representing this object. - Populated by the system. - Read-only. - - DEPRECATED - Kubernetes will stop propagating this field in 1.20 release and the field is planned - to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional type: string spec: @@ -1238,13 +1315,7 @@ definitions: type: string selfLink: description: |- - selfLink is a URL representing this object. - Populated by the system. - Read-only. - - DEPRECATED - Kubernetes will stop propagating this field in 1.20 release and the field is planned - to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional type: string title: DeploymentList is a list of Deployments. @@ -1322,6 +1393,7 @@ definitions: title: DeploymentStrategy describes how to replace existing pods with new ones. type: object DeploymentStrategyType: + description: +enum type: string DetectorConfigData: properties: @@ -1487,11 +1559,12 @@ definitions: value: description: |- Variable references $(VAR_NAME) are expanded - using the previous defined environment variables in the container and + using the previously defined environment variables in the container and any service environment variables. If a variable cannot be resolved, - the reference in the input string will be unchanged. The $(VAR_NAME) - syntax can be escaped with a double $$, ie: $$(VAR_NAME). Escaped - references will never be expanded, regardless of whether the variable + the reference in the input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. + "$$(VAR_NAME)" will produce the string literal "$(VAR_NAME)". + Escaped references will never be expanded, regardless of whether the variable exists or not. Defaults to "". +optional @@ -1514,25 +1587,18 @@ definitions: type: object EphemeralContainer: description: |- - An EphemeralContainer is a container that may be added temporarily to an existing pod for - user-initiated activities such as debugging. Ephemeral containers have no resource or - scheduling guarantees, and they will not be restarted when they exit or when a pod is - removed or restarted. If an ephemeral container causes a pod to exceed its resource - allocation, the pod may be evicted. - Ephemeral containers may not be added by directly updating the pod spec. They must be added - via the pod's ephemeralcontainers subresource, and they will appear in the pod spec - once added. - This is an alpha feature enabled by the EphemeralContainers feature flag. + To add an ephemeral container, use the ephemeralcontainers subresource of an existing + Pod. Ephemeral containers may not be removed or restarted. properties: args: description: |- Arguments to the entrypoint. - The docker image's CMD is used if this is not provided. + The image's CMD is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax - can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - regardless of whether the variable exists or not. - Cannot be updated. + cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will + produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless + of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional items: @@ -1541,12 +1607,12 @@ definitions: command: description: |- Entrypoint array. Not executed within a shell. - The docker image's ENTRYPOINT is used if this is not provided. + The image's ENTRYPOINT is used if this is not provided. Variable references $(VAR_NAME) are expanded using the container's environment. If a variable - cannot be resolved, the reference in the input string will be unchanged. The $(VAR_NAME) syntax - can be escaped with a double $$, ie: $$(VAR_NAME). Escaped references will never be expanded, - regardless of whether the variable exists or not. - Cannot be updated. + cannot be resolved, the reference in the input string will be unchanged. Double $$ are reduced + to a single $, which allows for escaping the $(VAR_NAME) syntax: i.e. "$$(VAR_NAME)" will + produce the string literal "$(VAR_NAME)". Escaped references will never be expanded, regardless + of whether the variable exists or not. Cannot be updated. More info: https://kubernetes.io/docs/tasks/inject-data-application/define-command-argument-container/#running-a-command-in-a-shell +optional items: @@ -1576,7 +1642,7 @@ definitions: type: array image: description: |- - Docker image name. + Container image name. More info: https://kubernetes.io/docs/concepts/containers/images type: string imagePullPolicy: @@ -1591,14 +1657,32 @@ definitions: This name must be unique among all containers, init containers and ephemeral containers. type: string ports: - description: Ports are not allowed for ephemeral containers. + description: |- + Ports are not allowed for ephemeral containers. + +optional + +patchMergeKey=containerPort + +patchStrategy=merge + +listType=map + +listMapKey=containerPort + +listMapKey=protocol items: $ref: '#/definitions/ContainerPort' type: array readinessProbe: $ref: '#/definitions/Probe' + resizePolicy: + description: |- + Resources resize policy for the container. + +featureGate=InPlacePodVerticalScaling + +optional + +listType=atomic + items: + $ref: '#/definitions/ContainerResizePolicy' + type: array resources: $ref: '#/definitions/ResourceRequirements' + restartPolicy: + $ref: '#/definitions/ContainerRestartPolicy' securityContext: $ref: '#/definitions/SecurityContext' startupProbe: @@ -1625,8 +1709,10 @@ definitions: description: |- If set, the name of the container from PodSpec that this ephemeral container targets. The ephemeral container will be run in the namespaces (IPC, PID, etc) of this container. - If not set then the ephemeral container is run in whatever namespaces are shared - for the pod. Note that the container runtime must support this feature. + If not set then the ephemeral container uses the namespaces configured in the Pod spec. + + The container runtime must implement support for this feature. If the runtime does not + support namespace targeting then the result of setting this field is undefined. +optional type: string terminationMessagePath: @@ -1659,7 +1745,7 @@ definitions: type: array volumeMounts: description: |- - Pod volumes to mount into the container's filesystem. + Pod volumes to mount into the container's filesystem. Subpath mounts are not allowed for ephemeral containers. Cannot be updated. +optional +patchMergeKey=mountPath @@ -1675,15 +1761,15 @@ definitions: Cannot be updated. +optional type: string + title: |- + An EphemeralContainer is a temporary container that you may add to an existing Pod for + user-initiated activities such as debugging. Ephemeral containers have no resource or + scheduling guarantees, and they will not be restarted when they exit or when a Pod is + removed or restarted. The kubelet may evict a Pod if an ephemeral container causes the + Pod to exceed its resource allocation. type: object EphemeralVolumeSource: properties: - readOnly: - description: |- - Specifies a read-only configuration for the volume. - Defaults to false (read/write). - +optional - type: boolean volumeClaimTemplate: $ref: '#/definitions/PersistentVolumeClaimTemplate' title: Represents an ephemeral volume that is handled by a normal storage driver. @@ -1727,7 +1813,7 @@ definitions: Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. - More info: http://kubernetes.io/docs/user-guide/annotations + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional type: object apiVersion: @@ -1738,13 +1824,6 @@ definitions: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources +optional type: string - clusterName: - description: |- - The name of the cluster which the object belongs to. - This is used to distinguish resources with same name and namespace in different clusters. - This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - +optional - type: string creationTimestamp: description: |- CreationTimestamp is a timestamp representing the server time when this object was @@ -1818,10 +1897,7 @@ definitions: and may be truncated by the length of the suffix required to make the value unique on the server. - If this field is specified and the generated name exists, the server will - NOT return a 409 - instead, it will either return 201 Created or 500 with Reason - ServerTimeout indicating a unique name could not be found in the time allotted, and the client - should retry (optionally after the time indicated in the Retry-After header). + If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency @@ -1850,7 +1926,7 @@ definitions: Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. - More info: http://kubernetes.io/docs/user-guide/labels + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional type: object managedFields: @@ -1874,7 +1950,7 @@ definitions: automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/identifiers#names + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional type: string namespace: @@ -1886,7 +1962,7 @@ definitions: Must be a DNS_LABEL. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/namespaces + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional type: string ownerReferences: @@ -1917,13 +1993,7 @@ definitions: type: string selfLink: description: |- - SelfLink is a URL representing this object. - Populated by the system. - Read-only. - - DEPRECATED - Kubernetes will stop propagating this field in 1.20 release and the field is planned - to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional type: string spec: @@ -2034,17 +2104,11 @@ definitions: ExternalMetricSource indicates how to scale on a metric not associated with any Kubernetes object (for example length of queue in cloud messaging service, or QPS from loadbalancer running outside of cluster). - Exactly one "target" type should be set. properties: - metricName: - description: metricName is the name of the metric in question. - type: string - metricSelector: - $ref: '#/definitions/LabelSelector' - targetAverageValue: - $ref: '#/definitions/Quantity' - targetValue: - $ref: '#/definitions/Quantity' + metric: + $ref: '#/definitions/MetricIdentifier' + target: + $ref: '#/definitions/MetricTarget' type: object FCVolumeSource: description: |- @@ -2053,7 +2117,7 @@ definitions: properties: fsType: description: |- - Filesystem type to mount. + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. TODO: how do we prevent errors in the filesystem from compromising the machine @@ -2061,26 +2125,26 @@ definitions: type: string lun: description: |- - Optional: FC target lun number + lun is Optional: FC target lun number +optional format: int32 type: integer readOnly: description: |- - Optional: Defaults to false (read/write). ReadOnly here will force + readOnly is Optional: Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional type: boolean targetWWNs: description: |- - Optional: FC target worldwide names (WWNs) + targetWWNs is Optional: FC target worldwide names (WWNs) +optional items: type: string type: array wwids: description: |- - Optional: FC volume world wide identifiers (wwids) + wwids Optional: FC volume world wide identifiers (wwids) Either wwids or combination of targetWWNs and lun must be set, but not both simultaneously. +optional items: @@ -2297,11 +2361,11 @@ definitions: provisioned/attached using an exec based plugin. properties: driver: - description: Driver is the name of the driver to use for this volume. + description: driver is the name of the driver to use for this volume. type: string fsType: description: |- - Filesystem type to mount. + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". The default filesystem depends on FlexVolume script. +optional @@ -2310,12 +2374,12 @@ definitions: additionalProperties: type: string description: |- - Optional: Extra command options if any. + options is Optional: this field holds extra command options if any. +optional type: object readOnly: description: |- - Optional: Defaults to false (read/write). ReadOnly here will force + readOnly is Optional: defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional type: boolean @@ -2329,13 +2393,13 @@ definitions: properties: datasetName: description: |- - Name of the dataset stored as metadata -> name on the dataset for Flocker + datasetName is Name of the dataset stored as metadata -> name on the dataset for Flocker should be considered as deprecated +optional type: string datasetUUID: description: |- - UUID of the dataset. This is unique identifier of a Flocker dataset + datasetUUID is the UUID of the dataset. This is unique identifier of a Flocker dataset +optional type: string title: Represents a Flocker volume mounted by the Flocker agent. @@ -2349,7 +2413,7 @@ definitions: properties: fsType: description: |- - Filesystem type of the volume that you want to mount. + fsType is filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk @@ -2358,7 +2422,7 @@ definitions: type: string partition: description: |- - The partition in the volume that you want to mount. + partition is the partition in the volume that you want to mount. If omitted, the default is to mount by volume name. Examples: For volume /dev/sda1, you specify the partition as "1". Similarly, the volume partition for /dev/sda is "0" (or you can leave the property empty). @@ -2368,18 +2432,34 @@ definitions: type: integer pdName: description: |- - Unique name of the PD resource in GCE. Used to identify the disk in GCE. + pdName is unique name of the PD resource in GCE. Used to identify the disk in GCE. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk type: string readOnly: description: |- - ReadOnly here will force the ReadOnly setting in VolumeMounts. + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#gcepersistentdisk +optional type: boolean title: Represents a Persistent Disk resource in Google Compute Engine. type: object + GRPCAction: + properties: + port: + description: Port number of the gRPC service. Number must be in the range 1 to 65535. + format: int32 + type: integer + service: + description: |- + Service is the name of the service to place in the gRPC HealthCheckRequest + (see https://github.com/grpc/grpc/blob/master/doc/health-checking.md). + + If this is not specified, the default behavior is defined by gRPC. + +optional + +default="" + type: string + type: object GitRepoVolumeSource: description: |- DEPRECATED: GitRepo is deprecated. To provision a container with a git repo, mount an @@ -2388,18 +2468,18 @@ definitions: properties: directory: description: |- - Target directory name. + directory is the target directory name. Must not contain or start with '..'. If '.' is supplied, the volume directory will be the git repository. Otherwise, if specified, the volume will contain the git repository in the subdirectory with the given name. +optional type: string repository: - description: Repository URL + description: repository is the URL type: string revision: description: |- - Commit hash for the specified revision. + revision is the commit hash for the specified revision. +optional type: string title: |- @@ -2412,17 +2492,17 @@ definitions: properties: endpoints: description: |- - EndpointsName is the endpoint name that details Glusterfs topology. + endpoints is the endpoint name that details Glusterfs topology. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod type: string path: description: |- - Path is the Glusterfs volume path. + path is the Glusterfs volume path. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod type: string readOnly: description: |- - ReadOnly here will force the Glusterfs volume to be mounted with read-only permissions. + readOnly here will force the Glusterfs volume to be mounted with read-only permissions. Defaults to false. More info: https://examples.k8s.io/volumes/glusterfs/README.md#create-a-pod +optional @@ -2433,7 +2513,7 @@ definitions: properties: periodSeconds: description: |- - PeriodSeconds specifies the window of time for which the policy should hold true. + periodSeconds specifies the window of time for which the policy should hold true. PeriodSeconds must be greater than zero and less than or equal to 1800 (30 min). format: int32 type: integer @@ -2441,7 +2521,7 @@ definitions: $ref: '#/definitions/HPAScalingPolicyType' value: description: |- - Value contains the amount of change which is permitted by the policy. + value contains the amount of change which is permitted by the policy. It must be greater than zero format: int32 type: integer @@ -2470,7 +2550,7 @@ definitions: $ref: '#/definitions/ScalingPolicySelect' stabilizationWindowSeconds: description: |- - StabilizationWindowSeconds is the number of seconds for which past recommendations should be + stabilizationWindowSeconds is the number of seconds for which past recommendations should be considered while scaling up or scaling down. StabilizationWindowSeconds must be greater than or equal to zero and less than or equal to 3600 (one hour). If not set, use the default values: @@ -2511,24 +2591,14 @@ definitions: description: HTTPHeader describes a custom header to be used in HTTP probes properties: name: - description: The header field name + description: |- + The header field name. + This will be canonicalized upon output, so case-variant names will be understood as the same header. type: string value: description: The header field value type: string type: object - Handler: - description: |- - Handler defines a specific action that should be taken - TODO: pass structured data to these actions, and document that data here. - properties: - exec: - $ref: '#/definitions/ExecAction' - httpGet: - $ref: '#/definitions/HTTPGetAction' - tcpSocket: - $ref: '#/definitions/TCPSocketAction' - type: object HealthCheckInfo: description: for checking health of dependencies properties: @@ -2567,14 +2637,22 @@ definitions: description: IP address of the host file entry. type: string type: object + HostIP: + properties: + ip: + description: IP is the IP address assigned to the host + type: string + title: HostIP represents a single IP address allocated to the host. + type: object HostPathType: + description: +enum type: string HostPathVolumeSource: description: Host path volumes do not support ownership management or SELinux relabeling. properties: path: description: |- - Path of the directory on the host. + path of the directory on the host. If the path is a symlink, it will follow the link to the real path. More info: https://kubernetes.io/docs/concepts/storage/volumes#hostpath type: string @@ -2585,7 +2663,13 @@ definitions: IPFamily: description: |- IPFamily represents the IP Family (IPv4 or IPv6). This type is used - to express the family of an IP expressed by a type (i.e. service.Spec.IPFamily) + to express the family of an IP expressed by a type (e.g. service.spec.ipFamilies). + +enum + type: string + IPFamilyPolicy: + description: |- + IPFamilyPolicy represents the dual-stack-ness requested or required by a Service + +enum type: string ISCSIVolumeSource: description: |- @@ -2594,17 +2678,17 @@ definitions: properties: chapAuthDiscovery: description: |- - whether support iSCSI Discovery CHAP authentication + chapAuthDiscovery defines whether support iSCSI Discovery CHAP authentication +optional type: boolean chapAuthSession: description: |- - whether support iSCSI Session CHAP authentication + chapAuthSession defines whether support iSCSI Session CHAP authentication +optional type: boolean fsType: description: |- - Filesystem type of the volume that you want to mount. + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#iscsi @@ -2613,27 +2697,27 @@ definitions: type: string initiatorName: description: |- - Custom iSCSI Initiator Name. + initiatorName is the custom iSCSI Initiator Name. If initiatorName is specified with iscsiInterface simultaneously, new iSCSI interface : will be created for the connection. +optional type: string iqn: - description: Target iSCSI Qualified Name. + description: iqn is the target iSCSI Qualified Name. type: string iscsiInterface: description: |- - iSCSI Interface Name that uses an iSCSI transport. + iscsiInterface is the interface Name that uses an iSCSI transport. Defaults to 'default' (tcp). +optional type: string lun: - description: iSCSI Target Lun number. + description: lun represents iSCSI Target Lun number. format: int32 type: integer portals: description: |- - iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port + portals is the iSCSI Target Portal List. The portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). +optional items: @@ -2641,7 +2725,7 @@ definitions: type: array readOnly: description: |- - ReadOnly here will force the ReadOnly setting in VolumeMounts. + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. +optional type: boolean @@ -2649,7 +2733,7 @@ definitions: $ref: '#/definitions/LocalObjectReference' targetPortal: description: |- - iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port + targetPortal is iSCSI Target Portal. The Portal is either an IP or ip_addr:port if the port is other than default (typically TCP ports 860 and 3260). type: string title: Represents an ISCSI disk. @@ -2679,11 +2763,11 @@ definitions: KeyToPath: properties: key: - description: The key to project. + description: key is the key to project. type: string mode: description: |- - Optional: mode bits used to set permissions on this file. + mode is Optional: mode bits used to set permissions on this file. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. If not specified, the volume defaultMode will be used. @@ -2694,7 +2778,7 @@ definitions: type: integer path: description: |- - The relative path of the file to map the key to. + path is the relative path of the file to map the key to. May not be an absolute path. May not contain the path element '..'. May not start with the string '..'. @@ -2706,6 +2790,7 @@ definitions: A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. An empty label selector matches all objects. A null label selector matches no objects. + +structType=atomic properties: matchExpressions: description: |- @@ -2733,10 +2818,7 @@ definitions: relates the key and values. properties: key: - description: |- - key is the label key that the selector applies to. - +patchMergeKey=key - +patchStrategy=merge + description: key is the label key that the selector applies to. type: string operator: $ref: '#/definitions/LabelSelectorOperator' @@ -2758,9 +2840,21 @@ definitions: until the action is complete, unless the container process fails, in which case the handler is aborted. properties: postStart: - $ref: '#/definitions/Handler' + $ref: '#/definitions/LifecycleHandler' preStop: - $ref: '#/definitions/Handler' + $ref: '#/definitions/LifecycleHandler' + type: object + LifecycleHandler: + description: |- + LifecycleHandler defines a specific action that should be taken in a lifecycle + hook. One and only one of the fields, except TCPSocket must be specified. + properties: + exec: + $ref: '#/definitions/ExecAction' + httpGet: + $ref: '#/definitions/HTTPGetAction' + tcpSocket: + $ref: '#/definitions/TCPSocketAction' type: object ListMeta: description: |- @@ -2803,13 +2897,7 @@ definitions: type: string selfLink: description: |- - selfLink is a URL representing this object. - Populated by the system. - Read-only. - - DEPRECATED - Kubernetes will stop propagating this field in 1.20 release and the field is planned - to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional type: string type: object @@ -2817,6 +2905,7 @@ definitions: description: |- LocalObjectReference contains enough information to let you locate the referenced object inside the same namespace. + +structType=atomic properties: name: description: |- @@ -2872,9 +2961,23 @@ definitions: type: string operation: $ref: '#/definitions/ManagedFieldsOperationType' + subresource: + description: |- + Subresource is the name of the subresource used to update that object, or + empty string if the object was updated through the main resource. The + value of this field is used to distinguish between managers, even if they + share the same name. For example, a status update will be distinct from a + regular update using the same manager name. + Note that the APIVersion field is not related to the Subresource field and + it always corresponds to the version of the main resource. + type: string time: description: |- - Time is timestamp of when these fields were set. It should always be empty if Operation is 'Apply' + Time is the timestamp of when the ManagedFields entry was added. The + timestamp will also be updated if a field is added, the manager + changes any of the owned fields value or removes a field. The + timestamp does not update when a field is removed from the entry + because another manager took it over. +optional type: string type: object @@ -2892,6 +2995,15 @@ definitions: description: Message type: string type: object + MetricIdentifier: + description: MetricIdentifier defines the name and optionally selector for a metric + properties: + name: + description: name is the name of the given metric + type: string + selector: + $ref: '#/definitions/LabelSelector' + type: object MetricSourceType: title: MetricSourceType indicates the type of metric. type: string @@ -2900,6 +3012,8 @@ definitions: MetricSpec specifies how to scale based on a single metric (only `type` and one other matching field should be set at once). properties: + containerResource: + $ref: '#/definitions/ContainerResourceMetricSource' external: $ref: '#/definitions/ExternalMetricSource' object: @@ -2911,6 +3025,25 @@ definitions: type: $ref: '#/definitions/MetricSourceType' type: object + MetricTarget: + description: MetricTarget defines the target value, average value, or average utilization of a specific metric + properties: + averageUtilization: + description: |- + averageUtilization is the target value of the average of the + resource metric across all relevant pods, represented as a percentage of + the requested value of the resource for the pods. + Currently only valid for Resource metric source type + +optional + format: int32 + type: integer + averageValue: + $ref: '#/definitions/Quantity' + type: + $ref: '#/definitions/MetricTargetType' + value: + $ref: '#/definitions/Quantity' + type: object MetricTargetType: description: |- MetricTargetType specifies the type of metric being targeted, and should be either @@ -2926,7 +3059,7 @@ definitions: Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. - More info: http://kubernetes.io/docs/user-guide/annotations + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional type: object apiVersion: @@ -2937,13 +3070,6 @@ definitions: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources +optional type: string - clusterName: - description: |- - The name of the cluster which the object belongs to. - This is used to distinguish resources with same name and namespace in different clusters. - This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - +optional - type: string creationTimestamp: description: |- CreationTimestamp is a timestamp representing the server time when this object was @@ -3017,10 +3143,7 @@ definitions: and may be truncated by the length of the suffix required to make the value unique on the server. - If this field is specified and the generated name exists, the server will - NOT return a 409 - instead, it will either return 201 Created or 500 with Reason - ServerTimeout indicating a unique name could not be found in the time allotted, and the client - should retry (optionally after the time indicated in the Retry-After header). + If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency @@ -3049,7 +3172,7 @@ definitions: Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. - More info: http://kubernetes.io/docs/user-guide/labels + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional type: object managedFields: @@ -3073,7 +3196,7 @@ definitions: automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/identifiers#names + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional type: string namespace: @@ -3085,7 +3208,7 @@ definitions: Must be a DNS_LABEL. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/namespaces + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional type: string ownerReferences: @@ -3116,13 +3239,7 @@ definitions: type: string selfLink: description: |- - SelfLink is a URL representing this object. - Populated by the system. - Read-only. - - DEPRECATED - Kubernetes will stop propagating this field in 1.20 release and the field is planned - to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional type: string spec: @@ -3267,6 +3384,7 @@ definitions: type: string type: object MountPropagationMode: + description: +enum title: MountPropagationMode describes mount propagation. type: string NFSVolumeSource: @@ -3274,20 +3392,19 @@ definitions: properties: path: description: |- - Path that is exported by the NFS server. + path that is exported by the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs type: string readOnly: description: |- - ReadOnly here will force - the NFS export to be mounted with read-only permissions. + readOnly here will force the NFS export to be mounted with read-only permissions. Defaults to false. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs +optional type: boolean server: description: |- - Server is the hostname or IP address of the NFS server. + server is the hostname or IP address of the NFS server. More info: https://kubernetes.io/docs/concepts/storage/volumes#nfs type: string title: Represents an NFS mount that lasts the lifetime of a pod. @@ -3302,7 +3419,7 @@ definitions: Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. - More info: http://kubernetes.io/docs/user-guide/annotations + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional type: object apiVersion: @@ -3313,13 +3430,6 @@ definitions: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources +optional type: string - clusterName: - description: |- - The name of the cluster which the object belongs to. - This is used to distinguish resources with same name and namespace in different clusters. - This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - +optional - type: string creationTimestamp: description: |- CreationTimestamp is a timestamp representing the server time when this object was @@ -3393,10 +3503,7 @@ definitions: and may be truncated by the length of the suffix required to make the value unique on the server. - If this field is specified and the generated name exists, the server will - NOT return a 409 - instead, it will either return 201 Created or 500 with Reason - ServerTimeout indicating a unique name could not be found in the time allotted, and the client - should retry (optionally after the time indicated in the Retry-After header). + If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency @@ -3425,7 +3532,7 @@ definitions: Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. - More info: http://kubernetes.io/docs/user-guide/labels + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional type: object managedFields: @@ -3449,7 +3556,7 @@ definitions: automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/identifiers#names + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional type: string namespace: @@ -3461,7 +3568,7 @@ definitions: Must be a DNS_LABEL. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/namespaces + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional type: string ownerReferences: @@ -3492,13 +3599,7 @@ definitions: type: string selfLink: description: |- - SelfLink is a URL representing this object. - Populated by the system. - Read-only. - - DEPRECATED - Kubernetes will stop propagating this field in 1.20 release and the field is planned - to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional type: string spec: @@ -3529,6 +3630,7 @@ definitions: NamespaceConditionType: type: string NamespacePhase: + description: +enum type: string NamespaceSpec: properties: @@ -3578,14 +3680,17 @@ definitions: $ref: '#/definitions/NodeSelector' title: Node affinity is a group of node affinity scheduling rules. type: object - NodePhase: - title: NodePhase is a label for the condition of a node at the current time. + NodeInclusionPolicy: + description: |- + NodeInclusionPolicy defines the type of node inclusion policy + +enum type: string NodeSelector: description: |- A node selector represents the union of the results of one or more label queries over a set of nodes; that is, it represents the OR of the selectors represented by the node selector terms. + +structType=atomic properties: nodeSelectorTerms: description: Required. A list of node selector terms. The terms are ORed. @@ -3597,6 +3702,7 @@ definitions: description: |- A node selector operator is the set of operators that can be used in a node selector requirement. + +enum type: string NodeSelectorRequirement: description: |- @@ -3625,6 +3731,7 @@ definitions: A null or empty node selector term matches no objects. The requirements of them are ANDed. The TopologySelectorTerm type implements a subset of the NodeSelectorTerm. + +structType=atomic properties: matchExpressions: description: |- @@ -3641,7 +3748,11 @@ definitions: $ref: '#/definitions/NodeSelectorRequirement' type: array type: object + OSName: + title: OSName is the set of OS'es that can be used in OS. + type: string ObjectFieldSelector: + description: +structType=atomic properties: apiVersion: description: |- @@ -3665,16 +3776,9 @@ definitions: Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. - More info: http://kubernetes.io/docs/user-guide/annotations + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional type: object - clusterName: - description: |- - The name of the cluster which the object belongs to. - This is used to distinguish resources with same name and namespace in different clusters. - This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - +optional - type: string creationTimestamp: description: |- CreationTimestamp is a timestamp representing the server time when this object was @@ -3748,10 +3852,7 @@ definitions: and may be truncated by the length of the suffix required to make the value unique on the server. - If this field is specified and the generated name exists, the server will - NOT return a 409 - instead, it will either return 201 Created or 500 with Reason - ServerTimeout indicating a unique name could not be found in the time allotted, and the client - should retry (optionally after the time indicated in the Retry-After header). + If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency @@ -3771,7 +3872,7 @@ definitions: Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. - More info: http://kubernetes.io/docs/user-guide/labels + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional type: object managedFields: @@ -3795,7 +3896,7 @@ definitions: automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/identifiers#names + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional type: string namespace: @@ -3807,7 +3908,7 @@ definitions: Must be a DNS_LABEL. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/namespaces + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional type: string ownerReferences: @@ -3838,13 +3939,7 @@ definitions: type: string selfLink: description: |- - SelfLink is a URL representing this object. - Populated by the system. - Read-only. - - DEPRECATED - Kubernetes will stop propagating this field in 1.20 release and the field is planned - to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional type: string uid: @@ -3855,23 +3950,19 @@ definitions: ObjectMetricSource indicates how to scale on a metric describing a kubernetes object (for example, hits-per-second on an Ingress object). properties: - averageValue: - $ref: '#/definitions/Quantity' - metricName: - description: metricName is the name of the metric in question. - type: string - selector: - $ref: '#/definitions/LabelSelector' - target: + describedObject: $ref: '#/definitions/CrossVersionObjectReference' - targetValue: - $ref: '#/definitions/Quantity' + metric: + $ref: '#/definitions/MetricIdentifier' + target: + $ref: '#/definitions/MetricTarget' type: object OwnerReference: description: |- OwnerReference contains enough information to let you identify an owning object. An owning object must be in the same namespace as the dependent, or be cluster-scoped, so there is no namespace field. + +structType=atomic properties: apiVersion: description: API version of the referent. @@ -3881,6 +3972,8 @@ definitions: If true, AND if the owner has the "foregroundDeletion" finalizer, then the owner cannot be deleted from the key-value store until this reference is removed. + See https://kubernetes.io/docs/concepts/architecture/garbage-collection/#foreground-deletion + for how the garbage collector interacts with this field and enforces the foreground deletion. Defaults to false. To set this field, a user needs "delete" permission of the owner, otherwise 422 (Unprocessable Entity) will be returned. @@ -3899,7 +3992,7 @@ definitions: name: description: |- Name of the referent. - More info: http://kubernetes.io/docs/user-guide/identifiers#names + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names type: string uid: $ref: '#/definitions/UID' @@ -3923,6 +4016,7 @@ definitions: ParmeterType: type: string PersistentVolumeAccessMode: + description: +enum type: string PersistentVolumeClaimSpec: description: |- @@ -3931,7 +4025,7 @@ definitions: properties: accessModes: description: |- - AccessModes contains the desired access modes the volume should have. + accessModes contains the desired access modes the volume should have. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#access-modes-1 +optional items: @@ -3939,13 +4033,15 @@ definitions: type: array dataSource: $ref: '#/definitions/TypedLocalObjectReference' + dataSourceRef: + $ref: '#/definitions/TypedObjectReference' resources: $ref: '#/definitions/ResourceRequirements' selector: $ref: '#/definitions/LabelSelector' storageClassName: description: |- - Name of the StorageClass required by the claim. + storageClassName is the name of the StorageClass required by the claim. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#class-1 +optional type: string @@ -3953,7 +4049,7 @@ definitions: $ref: '#/definitions/PersistentVolumeMode' volumeName: description: |- - VolumeName is the binding reference to the PersistentVolume backing this claim. + volumeName is the binding reference to the PersistentVolume backing this claim. +optional type: string type: object @@ -3969,16 +4065,9 @@ definitions: Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. - More info: http://kubernetes.io/docs/user-guide/annotations + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional type: object - clusterName: - description: |- - The name of the cluster which the object belongs to. - This is used to distinguish resources with same name and namespace in different clusters. - This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - +optional - type: string creationTimestamp: description: |- CreationTimestamp is a timestamp representing the server time when this object was @@ -4052,10 +4141,7 @@ definitions: and may be truncated by the length of the suffix required to make the value unique on the server. - If this field is specified and the generated name exists, the server will - NOT return a 409 - instead, it will either return 201 Created or 500 with Reason - ServerTimeout indicating a unique name could not be found in the time allotted, and the client - should retry (optionally after the time indicated in the Retry-After header). + If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency @@ -4075,7 +4161,7 @@ definitions: Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. - More info: http://kubernetes.io/docs/user-guide/labels + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional type: object managedFields: @@ -4099,7 +4185,7 @@ definitions: automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/identifiers#names + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional type: string namespace: @@ -4111,7 +4197,7 @@ definitions: Must be a DNS_LABEL. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/namespaces + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional type: string ownerReferences: @@ -4142,13 +4228,7 @@ definitions: type: string selfLink: description: |- - SelfLink is a URL representing this object. - Populated by the system. - Read-only. - - DEPRECATED - Kubernetes will stop propagating this field in 1.20 release and the field is planned - to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional type: string spec: @@ -4164,30 +4244,31 @@ definitions: properties: claimName: description: |- - ClaimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. + claimName is the name of a PersistentVolumeClaim in the same namespace as the pod using this volume. More info: https://kubernetes.io/docs/concepts/storage/persistent-volumes#persistentvolumeclaims type: string readOnly: description: |- - Will force the ReadOnly setting in VolumeMounts. + readOnly Will force the ReadOnly setting in VolumeMounts. Default false. +optional type: boolean title: PersistentVolumeClaimVolumeSource references the user's PVC in the same namespace. type: object PersistentVolumeMode: + description: +enum title: PersistentVolumeMode describes how a volume is intended to be consumed, either Block or Filesystem. type: string PhotonPersistentDiskVolumeSource: properties: fsType: description: |- - Filesystem type to mount. + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. type: string pdID: - description: ID that identifies Photon Controller persistent disk + description: pdID is the ID that identifies Photon Controller persistent disk type: string title: Represents a Photon Controller persistent disk resource. type: object @@ -4201,7 +4282,7 @@ definitions: Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. - More info: http://kubernetes.io/docs/user-guide/annotations + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional type: object apiVersion: @@ -4212,13 +4293,6 @@ definitions: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources +optional type: string - clusterName: - description: |- - The name of the cluster which the object belongs to. - This is used to distinguish resources with same name and namespace in different clusters. - This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - +optional - type: string creationTimestamp: description: |- CreationTimestamp is a timestamp representing the server time when this object was @@ -4292,10 +4366,7 @@ definitions: and may be truncated by the length of the suffix required to make the value unique on the server. - If this field is specified and the generated name exists, the server will - NOT return a 409 - instead, it will either return 201 Created or 500 with Reason - ServerTimeout indicating a unique name could not be found in the time allotted, and the client - should retry (optionally after the time indicated in the Retry-After header). + If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency @@ -4324,7 +4395,7 @@ definitions: Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. - More info: http://kubernetes.io/docs/user-guide/labels + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional type: object managedFields: @@ -4348,7 +4419,7 @@ definitions: automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/identifiers#names + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional type: string namespace: @@ -4360,7 +4431,7 @@ definitions: Must be a DNS_LABEL. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/namespaces + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional type: string ownerReferences: @@ -4391,13 +4462,7 @@ definitions: type: string selfLink: description: |- - SelfLink is a URL representing this object. - Populated by the system. - Read-only. - - DEPRECATED - Kubernetes will stop propagating this field in 1.20 release and the field is planned - to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional type: string spec: @@ -4513,7 +4578,7 @@ definitions: Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. - More info: http://kubernetes.io/docs/user-guide/annotations + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional type: object apiVersion: @@ -4524,13 +4589,6 @@ definitions: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources +optional type: string - clusterName: - description: |- - The name of the cluster which the object belongs to. - This is used to distinguish resources with same name and namespace in different clusters. - This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - +optional - type: string creationTimestamp: description: |- CreationTimestamp is a timestamp representing the server time when this object was @@ -4604,10 +4662,7 @@ definitions: and may be truncated by the length of the suffix required to make the value unique on the server. - If this field is specified and the generated name exists, the server will - NOT return a 409 - instead, it will either return 201 Created or 500 with Reason - ServerTimeout indicating a unique name could not be found in the time allotted, and the client - should retry (optionally after the time indicated in the Retry-After header). + If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency @@ -4636,7 +4691,7 @@ definitions: Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. - More info: http://kubernetes.io/docs/user-guide/labels + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional type: object managedFields: @@ -4660,7 +4715,7 @@ definitions: automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/identifiers#names + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional type: string namespace: @@ -4672,7 +4727,7 @@ definitions: Must be a DNS_LABEL. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/namespaces + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional type: string ownerReferences: @@ -4703,13 +4758,7 @@ definitions: type: string selfLink: description: |- - SelfLink is a URL representing this object. - Populated by the system. - Read-only. - - DEPRECATED - Kubernetes will stop propagating this field in 1.20 release and the field is planned - to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional type: string spec: @@ -4762,10 +4811,14 @@ definitions: properties: labelSelector: $ref: '#/definitions/LabelSelector' + namespaceSelector: + $ref: '#/definitions/LabelSelector' namespaces: description: |- - namespaces specifies which namespaces the labelSelector applies to (matches against); - null or empty list means "this pod's namespace" + namespaces specifies a static list of namespace names that the term applies to. + The term is applied to the union of the namespaces listed in this field + and the ones selected by namespaceSelector. + null or empty namespaces list and null namespaceSelector means "this pod's namespace". +optional items: type: string @@ -4890,16 +4943,14 @@ definitions: description: |- PodFSGroupChangePolicy holds policies that will be used for applying fsGroup to a volume when volume is mounted. + +enum type: string PodIP: - description: |- - Each entry includes: - IP: An IP address allocated to the pod. Routable at least within the cluster. properties: ip: - description: ip is an IP address (IPv4 or IPv6) assigned to the pod + description: IP is the IP address assigned to the pod type: string - title: IP address information for entries in the (plural) PodIPs field. + title: PodIP represents a single IP address allocated to the pod. type: object PodList: properties: @@ -4963,21 +5014,23 @@ definitions: type: string selfLink: description: |- - selfLink is a URL representing this object. - Populated by the system. - Read-only. - - DEPRECATED - Kubernetes will stop propagating this field in 1.20 release and the field is planned - to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional type: string title: PodList is a list of Pods. type: object + PodOS: + properties: + name: + $ref: '#/definitions/OSName' + title: PodOS defines the OS parameters of a pod. + type: object PodPhase: + description: +enum title: PodPhase is a label for the condition of a pod at the current time. type: string PodQOSClass: + description: +enum title: PodQOSClass defines the supported qos classes of Pods. type: string PodReadinessGate: @@ -4986,6 +5039,54 @@ definitions: conditionType: $ref: '#/definitions/PodConditionType' type: object + PodResizeStatus: + title: PodResizeStatus shows status of desired resize of a pod's containers. + type: string + PodResourceClaim: + description: |- + It adds a name to it that uniquely identifies the ResourceClaim inside the Pod. + Containers that need access to the ResourceClaim reference it with this name. + properties: + name: + description: |- + Name uniquely identifies this resource claim inside the pod. + This must be a DNS_LABEL. + type: string + source: + $ref: '#/definitions/ClaimSource' + title: PodResourceClaim references exactly one ResourceClaim through a ClaimSource. + type: object + PodResourceClaimStatus: + description: |- + PodResourceClaimStatus is stored in the PodStatus for each PodResourceClaim + which references a ResourceClaimTemplate. It stores the generated name for + the corresponding ResourceClaim. + properties: + name: + description: |- + Name uniquely identifies this resource claim inside the pod. + This must match the name of an entry in pod.spec.resourceClaims, + which implies that the string must be a DNS_LABEL. + type: string + resourceClaimName: + description: |- + ResourceClaimName is the name of the ResourceClaim that was + generated for the Pod in the namespace of the Pod. It this is + unset, then generating a ResourceClaim was not necessary. The + pod.spec.resourceClaims entry can be ignored in this case. + + +optional + type: string + type: object + PodSchedulingGate: + properties: + name: + description: |- + Name of the scheduling gate. + Each scheduling gate must have a unique name field. + type: string + title: PodSchedulingGate is associated to a Pod to guard its scheduling. + type: object PodSecurityContext: description: |- Some fields are also present in container.securityContext. Field values of @@ -5002,6 +5103,7 @@ definitions: 3. The permission bits are OR'd with rw-rw---- If unset, the Kubelet will not modify the ownership and permissions of any volume. + Note that this field cannot be set when spec.os.name is windows. +optional format: int64 type: integer @@ -5014,6 +5116,7 @@ definitions: May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + Note that this field cannot be set when spec.os.name is windows. +optional format: int64 type: integer @@ -5034,6 +5137,7 @@ definitions: May also be set in SecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence for that container. + Note that this field cannot be set when spec.os.name is windows. +optional format: int64 type: integer @@ -5044,8 +5148,12 @@ definitions: supplementalGroups: description: |- A list of groups applied to the first process run in each container, in addition - to the container's primary GID. If unspecified, no groups will be added to - any container. + to the container's primary GID, the fsGroup (if specified), and group memberships + defined in the container image for the uid of the container process. If unspecified, + no additional groups are added to any container. Note that group memberships + defined in the container image for the uid of the container process are still effective, + even if they are not included in this list. + Note that this field cannot be set when spec.os.name is windows. +optional items: format: int64 @@ -5055,6 +5163,7 @@ definitions: description: |- Sysctls hold a list of namespaced sysctls used for the pod. Pods with unsupported sysctls (by the container runtime) might fail to launch. + Note that this field cannot be set when spec.os.name is windows. +optional items: $ref: '#/definitions/Sysctl' @@ -5108,7 +5217,6 @@ definitions: pod to perform user-initiated actions such as debugging. This list cannot be specified when creating a pod, and it cannot be modified by updating the pod spec. In order to add an ephemeral container to an existing pod, use the pod's ephemeralcontainers subresource. - This field is alpha-level and is only honored by servers that enable the EphemeralContainers feature. +optional +patchMergeKey=name +patchStrategy=merge @@ -5147,6 +5255,20 @@ definitions: +k8s:conversion-gen=false +optional type: boolean + hostUsers: + description: |- + Use the host's user namespace. + Optional: Default to true. + If set to true or not present, the pod will be run in the host user namespace, useful + for when the pod needs a feature only available to the host user namespace, such as + loading a kernel module with CAP_SYS_MODULE. + When set to false, a new userns is created for the pod. Setting false is useful for + mitigating container breakout vulnerabilities even allowing users to run their + containers as root without actually having root privileges on the host. + This field is alpha-level and is only honored by servers that enable the UserNamespacesSupport feature. + +k8s:conversion-gen=false + +optional + type: boolean hostname: description: |- Specifies the hostname of the Pod @@ -5156,8 +5278,7 @@ definitions: imagePullSecrets: description: |- ImagePullSecrets is an optional list of references to secrets in the same namespace to use for pulling any of the images used by this PodSpec. - If specified, these secrets will be passed to individual puller implementations for them to use. For example, - in the case of docker, only DockerConfig type secrets are honored. + If specified, these secrets will be passed to individual puller implementations for them to use. More info: https://kubernetes.io/docs/concepts/containers/images#specifying-imagepullsecrets-on-a-pod +optional +patchMergeKey=name @@ -5200,7 +5321,10 @@ definitions: Selector which must match a node's labels for the pod to be scheduled on that node. More info: https://kubernetes.io/docs/concepts/configuration/assign-pod-node/ +optional + +mapType=atomic type: object + os: + $ref: '#/definitions/PodOS' overhead: $ref: '#/definitions/ResourceList' preemptionPolicy: @@ -5230,11 +5354,32 @@ definitions: If specified, all readiness gates will be evaluated for pod readiness. A pod is ready when all its containers are ready AND all conditions specified in the readiness gates have status equal to "True" - More info: https://git.k8s.io/enhancements/keps/sig-network/0007-pod-ready%2B%2B.md + More info: https://git.k8s.io/enhancements/keps/sig-network/580-pod-readiness-gates +optional items: $ref: '#/definitions/PodReadinessGate' type: array + resourceClaims: + description: |- + ResourceClaims defines which ResourceClaims must be allocated + and reserved before the Pod is allowed to start. The resources + will be made available to those containers which consume them + by name. + + This is an alpha field and requires enabling the + DynamicResourceAllocation feature gate. + + This field is immutable. + + +patchMergeKey=name + +patchStrategy=merge,retainKeys + +listType=map + +listMapKey=name + +featureGate=DynamicResourceAllocation + +optional + items: + $ref: '#/definitions/PodResourceClaim' + type: array restartPolicy: $ref: '#/definitions/RestartPolicy' runtimeClassName: @@ -5243,8 +5388,7 @@ definitions: to run this pod. If no RuntimeClass resource matches the named class, the pod will not be run. If unset or empty, the "legacy" RuntimeClass will be used, which is an implicit class with an empty definition that uses the default runtime handler. - More info: https://git.k8s.io/enhancements/keps/sig-node/runtime-class.md - This is a beta feature as of Kubernetes v1.14. + More info: https://git.k8s.io/enhancements/keps/sig-node/585-runtime-class +optional type: string schedulerName: @@ -5253,6 +5397,25 @@ definitions: If not specified, the pod will be dispatched by default scheduler. +optional type: string + schedulingGates: + description: |- + SchedulingGates is an opaque list of values that if specified will block scheduling the pod. + If schedulingGates is not empty, the pod will stay in the SchedulingGated state and the + scheduler will not attempt to schedule the pod. + + SchedulingGates can only be set at pod creation time, and be removed only afterwards. + + This is a beta feature enabled by the PodSchedulingReadiness feature gate. + + +patchMergeKey=name + +patchStrategy=merge + +listType=map + +listMapKey=name + +featureGate=PodSchedulingReadiness + +optional + items: + $ref: '#/definitions/PodSchedulingGate' + type: array securityContext: $ref: '#/definitions/PodSecurityContext' serviceAccount: @@ -5296,7 +5459,8 @@ definitions: terminationGracePeriodSeconds: description: |- Optional duration in seconds the pod needs to terminate gracefully. May be decreased in delete request. - Value must be non-negative integer. The value zero indicates delete immediately. + Value must be non-negative integer. The value zero indicates stop immediately via + the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. The grace period is the duration in seconds after the processes running in the pod are sent a termination signal and the time when the processes are forcibly halted with a kill signal. @@ -5356,8 +5520,7 @@ definitions: type: array containerStatuses: description: |- - The list has one entry per container in the manifest. Each entry is currently the output - of `docker inspect`. + The list has one entry per container in the manifest. More info: https://kubernetes.io/docs/concepts/workloads/pods/pod-lifecycle#pod-and-container-status +optional items: @@ -5366,16 +5529,30 @@ definitions: ephemeralContainerStatuses: description: |- Status for any ephemeral containers that have run in this pod. - This field is alpha-level and is only populated by servers that enable the EphemeralContainers feature. +optional items: $ref: '#/definitions/ContainerStatus' type: array hostIP: description: |- - IP address of the host to which the pod is assigned. Empty if not yet scheduled. + hostIP holds the IP address of the host to which the pod is assigned. Empty if the pod has not started yet. + A pod can be assigned to a node that has a problem in kubelet which in turns mean that HostIP will + not be updated even if there is a node is assigned to pod +optional type: string + hostIPs: + description: |- + hostIPs holds the IP addresses allocated to the host. If this field is specified, the first entry must + match the hostIP field. This list is empty if the pod has not started yet. + A pod can be assigned to a node that has a problem in kubelet which in turns means that HostIPs will + not be updated even if there is a node is assigned to this pod. + +optional + +patchStrategy=merge + +patchMergeKey=ip + +listType=atomic + items: + $ref: '#/definitions/HostIP' + type: array initContainerStatuses: description: |- The list has one entry per init container in the manifest. The most recent successful @@ -5405,7 +5582,7 @@ definitions: $ref: '#/definitions/PodPhase' podIP: description: |- - IP address allocated to the pod. Routable at least within the cluster. + podIP address allocated to the pod. Routable at least within the cluster. Empty if not yet allocated. +optional type: string @@ -5428,6 +5605,20 @@ definitions: e.g. 'Evicted' +optional type: string + resize: + $ref: '#/definitions/PodResizeStatus' + resourceClaimStatuses: + description: |- + Status of resource claims. + +patchMergeKey=name + +patchStrategy=merge,retainKeys + +listType=map + +listMapKey=name + +featureGate=DynamicResourceAllocation + +optional + items: + $ref: '#/definitions/PodResourceClaimStatus' + type: array startTime: description: |- RFC 3339 date and time at which the object was acknowledged by the Kubelet. @@ -5445,16 +5636,9 @@ definitions: Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. - More info: http://kubernetes.io/docs/user-guide/annotations + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional type: object - clusterName: - description: |- - The name of the cluster which the object belongs to. - This is used to distinguish resources with same name and namespace in different clusters. - This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - +optional - type: string creationTimestamp: description: |- CreationTimestamp is a timestamp representing the server time when this object was @@ -5528,10 +5712,7 @@ definitions: and may be truncated by the length of the suffix required to make the value unique on the server. - If this field is specified and the generated name exists, the server will - NOT return a 409 - instead, it will either return 201 Created or 500 with Reason - ServerTimeout indicating a unique name could not be found in the time allotted, and the client - should retry (optionally after the time indicated in the Retry-After header). + If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency @@ -5551,7 +5732,7 @@ definitions: Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. - More info: http://kubernetes.io/docs/user-guide/labels + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional type: object managedFields: @@ -5575,7 +5756,7 @@ definitions: automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/identifiers#names + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional type: string namespace: @@ -5587,7 +5768,7 @@ definitions: Must be a DNS_LABEL. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/namespaces + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional type: string ownerReferences: @@ -5618,13 +5799,7 @@ definitions: type: string selfLink: description: |- - SelfLink is a URL representing this object. - Populated by the system. - Read-only. - - DEPRECATED - Kubernetes will stop propagating this field in 1.20 release and the field is planned - to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional type: string spec: @@ -5639,30 +5814,27 @@ definitions: The values will be averaged together before being compared to the target value. properties: - metricName: - description: metricName is the name of the metric in question - type: string - selector: - $ref: '#/definitions/LabelSelector' - targetAverageValue: - $ref: '#/definitions/Quantity' + metric: + $ref: '#/definitions/MetricIdentifier' + target: + $ref: '#/definitions/MetricTarget' type: object PortworxVolumeSource: properties: fsType: description: |- - FSType represents the filesystem type to mount + fSType represents the filesystem type to mount Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs". Implicitly inferred to be "ext4" if unspecified. type: string readOnly: description: |- - Defaults to false (read/write). ReadOnly here will force + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional type: boolean volumeID: - description: VolumeID uniquely identifies a Portworx volume + description: volumeID uniquely identifies a Portworx volume type: string title: PortworxVolumeSource represents a Portworx volume resource. type: object @@ -5744,6 +5916,7 @@ definitions: type: integer type: object PreemptionPolicy: + description: +enum title: PreemptionPolicy describes a policy for if/when to preempt a pod. type: string PreferredSchedulingTerm: @@ -5772,6 +5945,8 @@ definitions: +optional format: int32 type: integer + grpc: + $ref: '#/definitions/GRPCAction' httpGet: $ref: '#/definitions/HTTPGetAction' initialDelaySeconds: @@ -5797,6 +5972,21 @@ definitions: type: integer tcpSocket: $ref: '#/definitions/TCPSocketAction' + terminationGracePeriodSeconds: + description: |- + Optional duration in seconds the pod needs to terminate gracefully upon probe failure. + The grace period is the duration in seconds after the processes running in the pod are sent + a termination signal and the time when the processes are forcibly halted with a kill signal. + Set this value longer than the expected cleanup time for your process. + If this value is nil, the pod's terminationGracePeriodSeconds will be used. Otherwise, this + value overrides the value provided by the pod spec. + Value must be non-negative integer. The value zero indicates stop immediately via + the kill signal (no opportunity to shut down). + This is a beta field and requires enabling ProbeTerminationGracePeriod feature gate. + Minimum value is 1. spec.terminationGracePeriodSeconds is used if unset. + +optional + format: int64 + type: integer timeoutSeconds: description: |- Number of seconds after which the probe times out. @@ -5807,13 +5997,14 @@ definitions: type: integer type: object ProcMountType: + description: +enum type: string ProjectedVolumeSource: description: Represents a projected volume source properties: defaultMode: description: |- - Mode bits used to set permissions on created files by default. + defaultMode are the mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Directories within the path are not affected by this setting. @@ -5823,7 +6014,9 @@ definitions: format: int32 type: integer sources: - description: list of volume projections + description: |- + sources is the list of volume projections + +optional items: $ref: '#/definitions/VolumeProjection' type: array @@ -5831,14 +6024,19 @@ definitions: Protocol: type: string PullPolicy: - description: PullPolicy describes a policy for if/when to pull a container image + description: |- + PullPolicy describes a policy for if/when to pull a container image + +enum type: string Quantity: description: |- The serialization format is: + ``` ::= + (Note that may be empty, from the "" case in .) + ::= 0 | 1 | ... | 9 ::= | ::= | . | . | . @@ -5846,10 +6044,15 @@ definitions: ::= | ::= | | ::= Ki | Mi | Gi | Ti | Pi | Ei + (International System of units; See: http://physics.nist.gov/cuu/Units/binary.html) + ::= m | "" | k | M | G | T | P | E + (Note that 1024 = 1Ki but 1000 = 1k; I didn't choose the capitalization.) + ::= "e" | "E" + ``` No matter which of the three exponent forms is used, no quantity may represent a number greater than 2^63-1 in magnitude, nor may it have more than 3 decimal @@ -5863,12 +6066,15 @@ definitions: Before serializing, Quantity will be put in "canonical form". This means that Exponent/suffix will be adjusted up or down (with a corresponding increase or decrease in Mantissa) such that: - a. No precision is lost - b. No fractional digits will be emitted - c. The exponent (or suffix) is as large as possible. + + No precision is lost + No fractional digits will be emitted + The exponent (or suffix) is as large as possible. + The sign will be omitted unless the number is negative. Examples: + 1.5 will be serialized as "1500m" 1.5Gi will be serialized as "1536Mi" @@ -5899,36 +6105,36 @@ definitions: properties: group: description: |- - Group to map volume access to + group to map volume access to Default is no group +optional type: string readOnly: description: |- - ReadOnly here will force the Quobyte volume to be mounted with read-only permissions. + readOnly here will force the Quobyte volume to be mounted with read-only permissions. Defaults to false. +optional type: boolean registry: description: |- - Registry represents a single or multiple Quobyte Registry services + registry represents a single or multiple Quobyte Registry services specified as a string as host:port pair (multiple entries are separated with commas) which acts as the central registry for volumes type: string tenant: description: |- - Tenant owning the given Quobyte volume in the Backend + tenant owning the given Quobyte volume in the Backend Used with dynamically provisioned Quobyte volumes, value is set by the plugin +optional type: string user: description: |- - User to map volume access to + user to map volume access to Defaults to serivceaccount user +optional type: string volume: - description: Volume is a string that references an already created Quobyte volume by name. + description: volume is a string that references an already created Quobyte volume by name. type: string title: Represents a Quobyte mount that lasts the lifetime of a pod. type: object @@ -5937,7 +6143,7 @@ definitions: properties: fsType: description: |- - Filesystem type of the volume that you want to mount. + fsType is the filesystem type of the volume that you want to mount. Tip: Ensure that the filesystem type is supported by the host operating system. Examples: "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. More info: https://kubernetes.io/docs/concepts/storage/volumes#rbd @@ -5946,33 +6152,33 @@ definitions: type: string image: description: |- - The rados image name. + image is the rados image name. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it type: string keyring: description: |- - Keyring is the path to key ring for RBDUser. + keyring is the path to key ring for RBDUser. Default is /etc/ceph/keyring. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional type: string monitors: description: |- - A collection of Ceph monitors. + monitors is a collection of Ceph monitors. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it items: type: string type: array pool: description: |- - The rados pool name. + pool is the rados pool name. Default is rbd. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional type: string readOnly: description: |- - ReadOnly here will force the ReadOnly setting in VolumeMounts. + readOnly here will force the ReadOnly setting in VolumeMounts. Defaults to false. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional @@ -5981,15 +6187,27 @@ definitions: $ref: '#/definitions/LocalObjectReference' user: description: |- - The rados user name. + user is the rados user name. Default is admin. More info: https://examples.k8s.io/volumes/rbd/README.md#how-to-use-it +optional type: string title: Represents a Rados Block Device mount that lasts the lifetime of a pod. type: object + ResourceClaim: + properties: + name: + description: |- + 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. + type: string + title: ResourceClaim references one entry in PodSpec.ResourceClaims. + type: object ResourceFieldSelector: - description: ResourceFieldSelector represents container resources (cpu, memory) and their output format + description: |- + ResourceFieldSelector represents container resources (cpu, memory) and their output format + +structType=atomic properties: containerName: description: |- @@ -6019,28 +6237,40 @@ definitions: properties: name: $ref: '#/definitions/ResourceName' - targetAverageUtilization: - description: |- - targetAverageUtilization is the target value of the average of the - resource metric across all relevant pods, represented as a percentage of - the requested value of the resource for the pods. - +optional - format: int32 - type: integer - targetAverageValue: - $ref: '#/definitions/Quantity' + target: + $ref: '#/definitions/MetricTarget' type: object ResourceName: title: ResourceName is the name identifying various resources in a ResourceList. type: string ResourceRequirements: properties: + claims: + description: |- + 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. + + +listType=map + +listMapKey=name + +featureGate=DynamicResourceAllocation + +optional + items: + $ref: '#/definitions/ResourceClaim' + type: array limits: $ref: '#/definitions/ResourceList' requests: $ref: '#/definitions/ResourceList' title: ResourceRequirements describes the compute resource requirements. type: object + ResourceResizeRestartPolicy: + title: ResourceResizeRestartPolicy specifies how to handle container resource resize. + type: string ResourceType: type: string RestartPolicy: @@ -6048,6 +6278,7 @@ definitions: Only one of the following restart policies may be specified. If none of the following policies is specified, the default one is RestartPolicyAlways. + +enum title: RestartPolicy describes how the container should be restarted. type: string RollingUpdateDeployment: @@ -6092,23 +6323,23 @@ definitions: properties: fsType: description: |- - Filesystem type to mount. + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Default is "xfs". +optional type: string gateway: - description: The host address of the ScaleIO API Gateway. + description: gateway is the host address of the ScaleIO API Gateway. type: string protectionDomain: description: |- - The name of the ScaleIO Protection Domain for the configured storage. + protectionDomain is the name of the ScaleIO Protection Domain for the configured storage. +optional type: string readOnly: description: |- - Defaults to false (read/write). ReadOnly here will force + readOnly Defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional type: boolean @@ -6116,26 +6347,26 @@ definitions: $ref: '#/definitions/LocalObjectReference' sslEnabled: description: |- - Flag to enable/disable SSL communication with Gateway, default false + sslEnabled Flag enable/disable SSL communication with Gateway, default false +optional type: boolean storageMode: description: |- - Indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. + storageMode indicates whether the storage for a volume should be ThickProvisioned or ThinProvisioned. Default is ThinProvisioned. +optional type: string storagePool: description: |- - The ScaleIO Storage Pool associated with the protection domain. + storagePool is the ScaleIO Storage Pool associated with the protection domain. +optional type: string system: - description: The name of the storage system as configured in ScaleIO. + description: system is the name of the storage system as configured in ScaleIO. type: string volumeName: description: |- - The name of a volume already created in the ScaleIO system + volumeName is the name of a volume already created in the ScaleIO system that is associated with this volume source. type: string type: object @@ -6182,7 +6413,7 @@ definitions: localhostProfile indicates a profile defined in a file on the node should be used. The profile must be preconfigured on the node to work. Must be a descending path, relative to the kubelet's configured seccomp profile location. - Must only be set if type is "Localhost". + Must be set if type is "Localhost". Must NOT be set for any other type. +optional type: string type: @@ -6190,6 +6421,7 @@ definitions: title: SeccompProfile defines a pod/container's seccomp profile settings. type: object SeccompProfileType: + description: +enum title: SeccompProfileType defines the supported seccomp profile types. type: string SecretEnvSource: @@ -6214,6 +6446,7 @@ definitions: variables with. type: object SecretKeySelector: + description: +structType=atomic properties: key: description: The key of the secret to select from. Must be a valid secret key. @@ -6241,7 +6474,7 @@ definitions: properties: items: description: |- - If unspecified, each key-value pair in the Data field of the referenced + items if unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be @@ -6261,7 +6494,7 @@ definitions: type: string optional: description: |- - Specify whether the Secret or its key must be defined + optional field specify whether the Secret or its key must be defined +optional type: boolean title: Adapts a secret into a projected volume. @@ -6274,7 +6507,7 @@ definitions: properties: defaultMode: description: |- - Optional: mode bits used to set permissions on created files by default. + defaultMode is Optional: mode bits used to set permissions on created files by default. Must be an octal value between 0000 and 0777 or a decimal value between 0 and 511. YAML accepts both octal and decimal values, JSON requires decimal values for mode bits. Defaults to 0644. @@ -6286,7 +6519,7 @@ definitions: type: integer items: description: |- - If unspecified, each key-value pair in the Data field of the referenced + items If unspecified, each key-value pair in the Data field of the referenced Secret will be projected into the volume as a file whose name is the key and content is the value. If specified, the listed keys will be projected into the specified paths, and unlisted keys will not be @@ -6299,12 +6532,12 @@ definitions: type: array optional: description: |- - Specify whether the Secret or its keys must be defined + optional field specify whether the Secret or its keys must be defined +optional type: boolean secretName: description: |- - Name of the secret in the pod's namespace to use. + secretName is the name of the secret in the pod's namespace to use. More info: https://kubernetes.io/docs/concepts/storage/volumes#secret +optional type: string @@ -6323,6 +6556,7 @@ definitions: AllowPrivilegeEscalation is true always when the container is: 1) run as Privileged 2) has CAP_SYS_ADMIN + Note that this field cannot be set when spec.os.name is windows. +optional type: boolean capabilities: @@ -6332,6 +6566,7 @@ definitions: Run container in privileged mode. Processes in privileged containers are essentially equivalent to root on the host. Defaults to false. + Note that this field cannot be set when spec.os.name is windows. +optional type: boolean procMount: @@ -6340,6 +6575,7 @@ definitions: description: |- Whether this container has a read-only root filesystem. Default is false. + Note that this field cannot be set when spec.os.name is windows. +optional type: boolean runAsGroup: @@ -6348,6 +6584,7 @@ definitions: Uses runtime default if unset. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + Note that this field cannot be set when spec.os.name is windows. +optional format: int64 type: integer @@ -6367,6 +6604,7 @@ definitions: Defaults to user specified in image metadata if unspecified. May also be set in PodSecurityContext. If set in both SecurityContext and PodSecurityContext, the value specified in SecurityContext takes precedence. + Note that this field cannot be set when spec.os.name is windows. +optional format: int64 type: integer @@ -6524,6 +6762,10 @@ definitions: items: $ref: '#/definitions/MetricSpec' type: array + metricsv2: + items: + $ref: '#/definitions/MetricSpec' + type: array minReplicas: format: int32 type: integer @@ -6650,7 +6892,7 @@ definitions: Annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. - More info: http://kubernetes.io/docs/user-guide/annotations + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/annotations +optional type: object apiVersion: @@ -6661,13 +6903,6 @@ definitions: More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources +optional type: string - clusterName: - description: |- - The name of the cluster which the object belongs to. - This is used to distinguish resources with same name and namespace in different clusters. - This field is not set anywhere right now and apiserver is going to ignore it if set in create or update request. - +optional - type: string creationTimestamp: description: |- CreationTimestamp is a timestamp representing the server time when this object was @@ -6741,10 +6976,7 @@ definitions: and may be truncated by the length of the suffix required to make the value unique on the server. - If this field is specified and the generated name exists, the server will - NOT return a 409 - instead, it will either return 201 Created or 500 with Reason - ServerTimeout indicating a unique name could not be found in the time allotted, and the client - should retry (optionally after the time indicated in the Retry-After header). + If this field is specified and the generated name exists, the server will return a 409. Applied only if Name is not specified. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#idempotency @@ -6773,7 +7005,7 @@ definitions: Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. - More info: http://kubernetes.io/docs/user-guide/labels + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/labels +optional type: object managedFields: @@ -6797,7 +7029,7 @@ definitions: automatically. Name is primarily intended for creation idempotence and configuration definition. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/identifiers#names + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names#names +optional type: string namespace: @@ -6809,7 +7041,7 @@ definitions: Must be a DNS_LABEL. Cannot be updated. - More info: http://kubernetes.io/docs/user-guide/namespaces + More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/namespaces +optional type: string ownerReferences: @@ -6840,13 +7072,7 @@ definitions: type: string selfLink: description: |- - SelfLink is a URL representing this object. - Populated by the system. - Read-only. - - DEPRECATED - Kubernetes will stop propagating this field in 1.20 release and the field is planned - to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional type: string spec: @@ -6865,7 +7091,7 @@ definitions: properties: audience: description: |- - Audience is the intended audience of the token. A recipient of a token + audience is the intended audience of the token. A recipient of a token must identify itself with an identifier specified in the audience of the token, and otherwise should reject the token. The audience defaults to the identifier of the apiserver. @@ -6873,7 +7099,7 @@ definitions: type: string expirationSeconds: description: |- - ExpirationSeconds is the requested duration of validity of the service + expirationSeconds is the requested duration of validity of the service account token. As the token approaches expiration, the kubelet volume plugin will proactively rotate the service account token. The kubelet will start trying to rotate the token if the token is older than 80 percent of @@ -6884,15 +7110,27 @@ definitions: type: integer path: description: |- - Path is the path relative to the mount point of the file to project the + path is the path relative to the mount point of the file to project the token into. type: string type: object ServiceAffinity: - description: Session Affinity Type string + description: |- + Session Affinity Type string + +enum + type: string + ServiceExternalTrafficPolicy: + description: |- + ServiceExternalTrafficPolicy describes how nodes distribute service traffic they + receive on one of the Service's "externally-facing" addresses (NodePorts, ExternalIPs, + and LoadBalancer IPs. + +enum type: string - ServiceExternalTrafficPolicyType: - description: Service External Traffic Policy Type string + ServiceInternalTrafficPolicy: + description: |- + ServiceInternalTrafficPolicy describes how nodes distribute service traffic they + receive on the ClusterIP. + +enum type: string ServiceList: properties: @@ -6954,13 +7192,7 @@ definitions: type: string selfLink: description: |- - selfLink is a URL representing this object. - Populated by the system. - Read-only. - - DEPRECATED - Kubernetes will stop propagating this field in 1.20 release and the field is planned - to be removed in 1.21 release. + Deprecated: selfLink is a legacy read-only field that is no longer populated by the system. +optional type: string title: ServiceList holds a list of services. @@ -6970,13 +7202,20 @@ definitions: appProtocol: description: |- The application protocol for this port. + This is used as a hint for implementations to offer richer behavior for protocols that they understand. This field follows standard Kubernetes label syntax. - Un-prefixed names are reserved for IANA standard service names (as per - RFC-6335 and http://www.iana.org/assignments/service-names). - Non-standard protocols should use prefixed names such as + Valid values are either: + + Un-prefixed protocol names - reserved for IANA standard service names (as per + RFC-6335 and https://www.iana.org/assignments/service-names). + + Kubernetes-defined prefixed names: + 'kubernetes.io/h2c' - HTTP/2 over cleartext as described in https://www.rfc-editor.org/rfc/rfc7540 + 'kubernetes.io/ws' - WebSocket over cleartext as described in https://www.rfc-editor.org/rfc/rfc6455 + 'kubernetes.io/wss' - WebSocket over TLS as described in https://www.rfc-editor.org/rfc/rfc6455 + + Other protocols should use implementation-defined prefixed names such as mycompany.com/my-custom-protocol. - This is a beta field that is guarded by the ServiceAppProtocol feature - gate and enabled by default. +optional type: string name: @@ -6990,10 +7229,14 @@ definitions: type: string nodePort: description: |- - The port on each node on which this service is exposed when type=NodePort or LoadBalancer. - Usually assigned by the system. If specified, it will be allocated to the service - if unused or else creation of the service will fail. - Default is to auto-allocate a port if the ServiceType of this Service requires one. + The port on each node on which this service is exposed when type is + NodePort or LoadBalancer. Usually assigned by the system. If a value is + specified, in-range, and not in use it will be used, otherwise the + operation will fail. If not specified, a port will be allocated if this + Service requires one. If this field is specified when creating a + Service which does not need it, creation will fail. This field will be + wiped when updating a Service to no longer need it (e.g. changing type + from NodePort to ClusterIP). More info: https://kubernetes.io/docs/concepts/services-networking/service/#type-nodeport +optional format: int32 @@ -7010,19 +7253,66 @@ definitions: type: object ServiceSpec: properties: + allocateLoadBalancerNodePorts: + description: |- + allocateLoadBalancerNodePorts defines if NodePorts will be automatically + allocated for services with type LoadBalancer. Default is "true". It + may be set to "false" if the cluster load-balancer does not rely on + NodePorts. If the caller requests specific NodePorts (by specifying a + value), those requests will be respected, regardless of this field. + This field may only be set for services with type LoadBalancer and will + be cleared if the type is changed to any other type. + +optional + type: boolean clusterIP: description: |- clusterIP is the IP address of the service and is usually assigned - randomly by the master. If an address is specified manually and is not in - use by others, it will be allocated to the service; otherwise, creation - of the service will fail. This field can not be changed through updates. - Valid values are "None", empty string (""), or a valid IP address. "None" - can be specified for headless services when proxying is not required. - Only applies to types ClusterIP, NodePort, and LoadBalancer. Ignored if - type is ExternalName. + randomly. If an address is specified manually, is in-range (as per + system configuration), and is not in use, it will be allocated to the + service; otherwise creation of the service will fail. This field may not + be changed through updates unless the type field is also being changed + to ExternalName (which requires this field to be blank) or the type + field is being changed from ExternalName (in which case this field may + optionally be specified, as describe above). Valid values are "None", + empty string (""), or a valid IP address. Setting this to "None" makes a + "headless service" (no virtual IP), which is useful when direct endpoint + connections are preferred and proxying is not required. Only applies to + types ClusterIP, NodePort, and LoadBalancer. If this field is specified + when creating a Service of type ExternalName, creation will fail. This + field will be wiped when updating a Service to type ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies +optional type: string + clusterIPs: + description: |- + ClusterIPs is a list of IP addresses assigned to this service, and are + usually assigned randomly. If an address is specified manually, is + in-range (as per system configuration), and is not in use, it will be + allocated to the service; otherwise creation of the service will fail. + This field may not be changed through updates unless the type field is + also being changed to ExternalName (which requires this field to be + empty) or the type field is being changed from ExternalName (in which + case this field may optionally be specified, as describe above). Valid + values are "None", empty string (""), or a valid IP address. Setting + this to "None" makes a "headless service" (no virtual IP), which is + useful when direct endpoint connections are preferred and proxying is + not required. Only applies to types ClusterIP, NodePort, and + LoadBalancer. If this field is specified when creating a Service of type + ExternalName, creation will fail. This field will be wiped when updating + a Service to type ExternalName. If this field is not specified, it will + be initialized from the clusterIP field. If this field is specified, + clients must ensure that clusterIPs[0] and clusterIP have the same + value. + + This field may hold a maximum of two entries (dual-stack IPs, in either order). + These IPs must correspond to the values of the ipFamilies field. Both + clusterIPs and ipFamilies are governed by the ipFamilyPolicy field. + More info: https://kubernetes.io/docs/concepts/services-networking/service/#virtual-ips-and-service-proxies + +listType=atomic + +optional + items: + type: string + type: array externalIPs: description: |- externalIPs is a list of IP addresses for which nodes in the cluster @@ -7036,33 +7326,79 @@ definitions: type: array externalName: description: |- - externalName is the external reference that kubedns or equivalent will - return as a CNAME record for this service. No proxying will be involved. - Must be a valid RFC-1123 hostname (https://tools.ietf.org/html/rfc1123) - and requires Type to be ExternalName. + externalName is the external reference that discovery mechanisms will + return as an alias for this service (e.g. a DNS CNAME record). No + proxying will be involved. Must be a lowercase RFC-1123 hostname + (https://tools.ietf.org/html/rfc1123) and requires `type` to be "ExternalName". +optional type: string externalTrafficPolicy: - $ref: '#/definitions/ServiceExternalTrafficPolicyType' + $ref: '#/definitions/ServiceExternalTrafficPolicy' healthCheckNodePort: description: |- healthCheckNodePort specifies the healthcheck nodePort for the service. - If not specified, HealthCheckNodePort is created by the service api - backend with the allocated nodePort. Will use user-specified nodePort value - if specified by the client. Only effects when Type is set to LoadBalancer - and ExternalTrafficPolicy is set to Local. + This only applies when type is set to LoadBalancer and + externalTrafficPolicy is set to Local. If a value is specified, is + in-range, and is not in use, it will be used. If not specified, a value + will be automatically allocated. External systems (e.g. load-balancers) + can use this port to determine if a given node holds endpoints for this + service or not. If this field is specified when creating a Service + which does not need it, creation will fail. This field will be wiped + when updating a Service to no longer need it (e.g. changing type). + This field cannot be updated once set. +optional format: int32 type: integer - ipFamily: - $ref: '#/definitions/IPFamily' + internalTrafficPolicy: + $ref: '#/definitions/ServiceInternalTrafficPolicy' + ipFamilies: + description: |- + IPFamilies is a list of IP families (e.g. IPv4, IPv6) assigned to this + service. This field is usually assigned automatically based on cluster + configuration and the ipFamilyPolicy field. If this field is specified + manually, the requested family is available in the cluster, + and ipFamilyPolicy allows it, it will be used; otherwise creation of + the service will fail. This field is conditionally mutable: it allows + for adding or removing a secondary IP family, but it does not allow + changing the primary IP family of the Service. Valid values are "IPv4" + and "IPv6". This field only applies to Services of types ClusterIP, + NodePort, and LoadBalancer, and does apply to "headless" services. + This field will be wiped when updating a Service to type ExternalName. + + This field may hold a maximum of two entries (dual-stack families, in + either order). These families must correspond to the values of the + clusterIPs field, if specified. Both clusterIPs and ipFamilies are + governed by the ipFamilyPolicy field. + +listType=atomic + +optional + items: + $ref: '#/definitions/IPFamily' + type: array + ipFamilyPolicy: + $ref: '#/definitions/IPFamilyPolicy' + loadBalancerClass: + description: |- + loadBalancerClass is the class of the load balancer implementation this Service belongs to. + If specified, the value of this field must be a label-style identifier, with an optional prefix, + e.g. "internal-vip" or "example.com/internal-vip". Unprefixed names are reserved for end-users. + This field can only be set when the Service type is 'LoadBalancer'. If not set, the default load + balancer implementation is used, today this is typically done through the cloud provider integration, + but should apply for any default implementation. If set, it is assumed that a load balancer + implementation is watching for Services with a matching class. Any default load balancer + implementation (e.g. cloud providers) should ignore Services that set this field. + This field can only be set when creating or updating a Service to type 'LoadBalancer'. + Once set, it can not be changed. This field will be wiped when a service is updated to a non 'LoadBalancer' type. + +optional + type: string loadBalancerIP: description: |- - Only applies to Service Type: LoadBalancer - LoadBalancer will get created with the IP specified in this field. + Only applies to Service Type: LoadBalancer. This feature depends on whether the underlying cloud-provider supports specifying the loadBalancerIP when a load balancer is created. This field will be ignored if the cloud-provider does not support the feature. + Deprecated: This field was under-specified and its meaning varies across implementations. + Using it is non-portable and it may not support dual-stack. + Users are encouraged to use implementation-specific annotations when available. +optional type: string loadBalancerSourceRanges: @@ -7070,7 +7406,7 @@ definitions: If specified and supported by the platform, this will restrict traffic through the cloud-provider load-balancer will be restricted to the specified client IPs. This field will be ignored if the cloud-provider does not support the feature." - More info: https://kubernetes.io/docs/tasks/access-application-cluster/configure-cloud-provider-firewall/ + More info: https://kubernetes.io/docs/tasks/access-application-cluster/create-external-load-balancer/ +optional items: type: string @@ -7110,29 +7446,12 @@ definitions: Ignored if type is ExternalName. More info: https://kubernetes.io/docs/concepts/services-networking/service/ +optional + +mapType=atomic type: object sessionAffinity: $ref: '#/definitions/ServiceAffinity' sessionAffinityConfig: $ref: '#/definitions/SessionAffinityConfig' - topologyKeys: - description: |- - topologyKeys is a preference-order list of topology keys which - implementations of services should use to preferentially sort endpoints - when accessing this Service, it can not be used at the same time as - externalTrafficPolicy=Local. - Topology keys must be valid label keys and at most 16 keys may be specified. - Endpoints are chosen based on the first topology key with available backends. - If this field is specified and all entries have no backends that match - the topology of the client, the service has no backends for that client - and connections should fail. - The special value "*" may be used to mean "any topology". This catch-all - value, if used, only makes sense as the last value in the list. - If this is not specified or empty, no topology constraints will be applied. - +optional - items: - type: string - type: array type: $ref: '#/definitions/ServiceType' title: ServiceSpec describes the attributes that a user creates on a service. @@ -7149,7 +7468,9 @@ definitions: type: string type: object ServiceType: - description: Service Type string describes ingress methods for a service + description: |- + Service Type string describes ingress methods for a service + +enum type: string SessionAffinityConfig: properties: @@ -7166,14 +7487,14 @@ definitions: properties: fsType: description: |- - Filesystem type to mount. + fsType is the filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. +optional type: string readOnly: description: |- - Defaults to false (read/write). ReadOnly here will force + readOnly defaults to false (read/write). ReadOnly here will force the ReadOnly setting in VolumeMounts. +optional type: boolean @@ -7181,12 +7502,12 @@ definitions: $ref: '#/definitions/LocalObjectReference' volumeName: description: |- - VolumeName is the human-readable name of the StorageOS volume. Volume + volumeName is the human-readable name of the StorageOS volume. Volume names are only unique within a namespace. type: string volumeNamespace: description: |- - VolumeNamespace specifies the scope of the volume within StorageOS. If no + volumeNamespace specifies the scope of the volume within StorageOS. If no namespace is specified then the Pod's namespace will be used. This allows the Kubernetes name scoping to be mirrored within StorageOS for tighter integration. Set VolumeName to any name to override the default behaviour. @@ -7230,8 +7551,10 @@ definitions: $ref: '#/definitions/IntOrString' type: object TaintEffect: + description: +enum type: string TerminationMessagePolicy: + description: +enum title: TerminationMessagePolicy describes how termination messages are retrieved from a container. type: string Toleration: @@ -7266,26 +7589,47 @@ definitions: type: string type: object TolerationOperator: + description: +enum title: A toleration operator is the set of operators that can be used in a toleration. type: string TopologySpreadConstraint: properties: labelSelector: $ref: '#/definitions/LabelSelector' + matchLabelKeys: + description: |- + MatchLabelKeys is a set of pod label keys to select the pods over which + spreading will be calculated. The keys are used to lookup values from the + incoming pod labels, those key-value labels are ANDed with labelSelector + to select the group of existing pods over which spreading will be calculated + for the incoming pod. The same key is forbidden to exist in both MatchLabelKeys and LabelSelector. + MatchLabelKeys cannot be set when LabelSelector isn't set. + Keys that don't exist in the incoming pod labels will + be ignored. A null or empty list means only match against labelSelector. + + This is a beta field and requires the MatchLabelKeysInPodTopologySpread feature gate to be enabled (enabled by default). + +listType=atomic + +optional + items: + type: string + type: array maxSkew: description: |- MaxSkew describes the degree to which pods may be unevenly distributed. When `whenUnsatisfiable=DoNotSchedule`, it is the maximum permitted difference between the number of matching pods in the target topology and the global minimum. + The global minimum is the minimum number of matching pods in an eligible domain + or zero if the number of eligible domains is less than MinDomains. For example, in a 3-zone cluster, MaxSkew is set to 1, and pods with the same - labelSelector spread as 1/1/0: + labelSelector spread as 2/2/1: + In this case, the global minimum is 1. +-------+-------+-------+ zone1 | zone2 | zone3 | +-------+-------+-------+ - P | P | | + P P | P P | P | +-------+-------+-------+ - if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 1/1/1; - scheduling it onto zone1(zone2) would make the ActualSkew(2-0) on zone1(zone2) + if MaxSkew is 1, incoming pod can only be scheduled to zone3 to become 2/2/2; + scheduling it onto zone1(zone2) would make the ActualSkew(3-1) on zone1(zone2) violate MaxSkew(1). if MaxSkew is 2, incoming pod can be scheduled onto any zone. When `whenUnsatisfiable=ScheduleAnyway`, it is used to give higher precedence @@ -7293,12 +7637,50 @@ definitions: It's a required field. Default value is 1 and 0 is not allowed. format: int32 type: integer + minDomains: + description: |- + MinDomains indicates a minimum number of eligible domains. + When the number of eligible domains with matching topology keys is less than minDomains, + Pod Topology Spread treats "global minimum" as 0, and then the calculation of Skew is performed. + And when the number of eligible domains with matching topology keys equals or greater than minDomains, + this value has no effect on scheduling. + As a result, when the number of eligible domains is less than minDomains, + scheduler won't schedule more than maxSkew Pods to those domains. + If value is nil, the constraint behaves as if MinDomains is equal to 1. + Valid values are integers greater than 0. + When value is not nil, WhenUnsatisfiable must be DoNotSchedule. + + For example, in a 3-zone cluster, MaxSkew is set to 2, MinDomains is set to 5 and pods with the same + labelSelector spread as 2/2/2: + +-------+-------+-------+ + zone1 | zone2 | zone3 | + +-------+-------+-------+ + P P | P P | P P | + +-------+-------+-------+ + The number of domains is less than 5(MinDomains), so "global minimum" is treated as 0. + In this situation, new pod with the same labelSelector cannot be scheduled, + because computed skew will be 3(3 - 0) if new Pod is scheduled to any of the three zones, + it will violate MaxSkew. + + This is a beta field and requires the MinDomainsInPodTopologySpread feature gate to be enabled (enabled by default). + +optional + format: int32 + type: integer + nodeAffinityPolicy: + $ref: '#/definitions/NodeInclusionPolicy' + nodeTaintsPolicy: + $ref: '#/definitions/NodeInclusionPolicy' topologyKey: description: |- TopologyKey is the key of node labels. Nodes that have a label with this key and identical values are considered to be in the same topology. We consider each as a "bucket", and try to put balanced number of pods into each bucket. + We define a domain as a particular instance of a topology. + Also, we define an eligible domain as a domain whose nodes meet the requirements of + nodeAffinityPolicy and nodeTaintsPolicy. + e.g. If TopologyKey is "kubernetes.io/hostname", each Node is a domain of that topology. + And, if TopologyKey is "topology.kubernetes.io/zone", each zone is a domain of that topology. It's a required field. type: string whenUnsatisfiable: @@ -7315,6 +7697,7 @@ definitions: description: |- TypedLocalObjectReference contains enough information to let you locate the typed referenced object inside the same namespace. + +structType=atomic properties: apiGroup: description: |- @@ -7330,6 +7713,30 @@ definitions: description: Name is the name of resource being referenced type: string type: object + TypedObjectReference: + properties: + apiGroup: + description: |- + APIGroup is the group for the resource being referenced. + If APIGroup is not specified, the specified Kind must be in the core API group. + For any other third-party types, APIGroup is required. + +optional + type: string + kind: + description: Kind is the type of resource being referenced + type: string + name: + description: Name is the name of resource being referenced + type: string + namespace: + description: |- + Namespace is the namespace of resource being referenced + Note that when a namespace is specified, a gateway.networking.k8s.io/ReferenceGrant object is required in the referent namespace to allow that namespace's owner to accept the reference. See the ReferenceGrant documentation for details. + (Alpha) This field requires the CrossNamespaceVolumeDataSource feature gate to be enabled. + +featureGate=CrossNamespaceVolumeDataSource + +optional + type: string + type: object UID: description: |- UID is a type that holds unique ID values, including UUIDs. Because we @@ -7337,9 +7744,12 @@ definitions: intent and helps make sure that UIDs and names do not get conflated. type: string URIScheme: - description: URIScheme identifies the scheme used for connection to a host for Get actions + description: |- + URIScheme identifies the scheme used for connection to a host for Get actions + +enum type: string UnsatisfiableConstraintAction: + description: +enum type: string UserInfo: properties: @@ -7409,7 +7819,7 @@ definitions: $ref: '#/definitions/ISCSIVolumeSource' name: description: |- - Volume's name. + name of the volume. Must be a DNS_LABEL and unique within the pod. More info: https://kubernetes.io/docs/concepts/overview/working-with-objects/names/#names type: string @@ -7497,23 +7907,23 @@ definitions: properties: fsType: description: |- - Filesystem type to mount. + fsType is filesystem type to mount. Must be a filesystem type supported by the host operating system. Ex. "ext4", "xfs", "ntfs". Implicitly inferred to be "ext4" if unspecified. +optional type: string storagePolicyID: description: |- - Storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. + storagePolicyID is the storage Policy Based Management (SPBM) profile ID associated with the StoragePolicyName. +optional type: string storagePolicyName: description: |- - Storage Policy Based Management (SPBM) profile name. + storagePolicyName is the storage Policy Based Management (SPBM) profile name. +optional type: string volumePath: - description: Path that identifies vSphere volume vmdk + description: volumePath is the path that identifies vSphere volume vmdk type: string title: Represents a vSphere volume resource. type: object @@ -7543,6 +7953,14 @@ definitions: GMSACredentialSpecName is the name of the GMSA credential spec to use. +optional type: string + hostProcess: + description: |- + HostProcess determines if a container should be run as a 'Host Process' container. + All of a Pod's containers must have the same effective HostProcess value + (it is not allowed to have a mix of HostProcess containers and non-HostProcess containers). + In addition, if HostProcess is true then HostNetwork must also be set to true. + +optional + type: boolean runAsUserName: description: |- The UserName in Windows to run the entrypoint of the container process. @@ -7553,6 +7971,9 @@ definitions: type: string title: WindowsSecurityContextOptions contain Windows-specific options and credentials. type: object + WorkflowPhase: + description: the workflow's phase + type: string protobufAny: type: object properties: